/* ====================================================
   CLUB PAGES THEME
   Covers the Club Dashboard, Trials list, Trials dashboard
   and the Create New Trial wizard overrides.
   Loaded from PlayersFirst.UI in both host apps.
   ==================================================== */

/* Force the trial wizard to the club blue/white theme.
   This is scoped to .wizard-content / .trial-step so it does not leak
   to player/parent/admin pages, and it uses !important to beat any
   player-first red theming that may be cached or loaded. */
.wizard-content {
    background: #f5f5f5 !important;
}

/* Club trial management v2 */
.club-trials-v2 { --ct-purple:#003da5; --ct-ink:#10162f; --ct-muted:#6f7890; background:#f5f8fe; border-radius:1rem; min-height:100vh; padding:1rem; }
.ct2-titlebar { align-items:center; display:flex; gap:1rem; justify-content:space-between; margin-bottom:.8rem; }
.ct2-titlebar h1 { color:var(--ct-ink); font-size:1.45rem; font-weight:850; letter-spacing:-.03em; margin:0; }
.ct2-titlebar p { color:var(--ct-muted); font-size:.8rem; margin:.15rem 0 0; }
.ct2-create { align-items:center; background:linear-gradient(135deg,#1769d2,var(--ct-purple)); border:0; border-radius:.65rem; box-shadow:0 7px 18px rgba(0,61,165,.22); color:#fff; display:flex; font-size:.78rem; font-weight:750; gap:.4rem; padding:.72rem .95rem; white-space:nowrap; }
.ct2-tools { display:grid; gap:.55rem; grid-template-columns:minmax(0,1fr) auto; }
.ct2-search { align-items:center; background:#fff; border:1px solid #e6e7f0; border-radius:.65rem; color:#8b93a7; display:flex; gap:.55rem; padding:0 .75rem; }
.ct2-search input { background:transparent; border:0; color:var(--ct-ink); font-size:.82rem; min-height:2.65rem; outline:0; width:100%; }
.ct2-filter-button { align-items:center; background:#fff; border:1px solid #e6e7f0; border-radius:.65rem; color:#31384f; display:flex; font-size:.78rem; font-weight:750; gap:.4rem; padding:0 .75rem; }
.ct2-filter-button span { background:var(--ct-purple); border-radius:50%; color:#fff; display:grid; font-size:.65rem; height:1.25rem; place-items:center; width:1.25rem; }
.ct2-tabs { display:grid; gap:.4rem; grid-auto-columns:4.8rem; grid-auto-flow:column; margin-top:.7rem; overflow-x:auto; padding-bottom:.2rem; scroll-snap-type:x proximity; scrollbar-width:none; }
.ct2-tabs::-webkit-scrollbar { display:none; }
.ct2-tabs button { align-content:center; background:#fff; border:1px solid #e2e7f0; border-radius:.6rem; color:#697187; display:grid; font-size:.67rem; gap:.12rem; justify-items:center; line-height:1.15; min-height:3.2rem; overflow:hidden; padding:.42rem .35rem; scroll-snap-align:start; text-align:center; }
.ct2-tabs button strong { display:block; font-weight:750; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.ct2-tabs button small { display:block; font-size:.65rem; line-height:1; }.ct2-tabs button.active { background:var(--ct-purple); border-color:var(--ct-purple); color:#fff; }
.ct2-sort-row { display:flex; justify-content:flex-end; margin:.55rem 0; }.ct2-sort-row select { background:#fff; border:1px solid #e2e3ed; border-radius:.55rem; color:#343b51; font-size:.72rem; padding:.45rem .65rem; }
.ct2-list { display:grid; gap:.55rem; }.ct2-card { background:#fff; border:1px solid #e7e8f0; border-radius:.75rem; box-shadow:0 3px 12px rgba(28,34,67,.045); display:grid; gap:.7rem; grid-template-columns:2.9rem minmax(0,1fr); padding:.72rem; }
.ct2-crest { align-items:center; background:linear-gradient(145deg,#002b74,#1769d2); border:3px double #fff; border-radius:.7rem; box-shadow:0 0 0 1px #bfd4f4; color:#fff; display:flex; font-size:1.25rem; height:3.1rem; justify-content:center; width:2.9rem; }
.ct2-card-body { min-width:0; }.ct2-card-heading { align-items:flex-start; display:grid; gap:.45rem; grid-template-columns:minmax(0,1fr) auto auto; }.ct2-card-heading h2 { color:var(--ct-ink); font-size:.88rem; font-weight:850; line-height:1.2; margin:0; }.ct2-card-heading p { color:var(--ct-muted); font-size:.65rem; margin:.18rem 0 .25rem; }.ct2-card-heading button { background:transparent; border:0; color:#687087; padding:0; }
.ct2-status { border-radius:999px; font-size:.61rem; font-weight:800; padding:.26rem .55rem; white-space:nowrap; }.ct2-status.published { background:#dcf8e6;color:#168046; }.ct2-status.draft { background:#eff0f5;color:#596175; }.ct2-status.submitted { background:#fff0cf;color:#b16b00; }.ct2-status.closed { background:#dce4f3;color:#344767; }.ct2-status.rejected { background:#ffe1e3;color:#dc3340; }
.ct2-meta { align-items:center; color:#657087; display:flex; font-size:.67rem; gap:.35rem; margin:.2rem 0; }.ct2-meta i { color:#53617e; }.ct2-card-footer { align-items:center; border-top:1px solid #f0f0f5; display:flex; justify-content:space-between; margin-top:.5rem; padding-top:.55rem; }.ct2-card-footer span { color:#687087; font-size:.66rem; }.ct2-card-footer button { background:#fff; border:1.5px solid var(--ct-purple); border-radius:.5rem; color:var(--ct-purple); font-size:.69rem; font-weight:800; padding:.45rem .75rem; }
.ct2-empty { background:#fff; border:1px solid #e7e8f0; border-radius:.9rem; color:var(--ct-muted); padding:3rem 1rem; text-align:center; }.ct2-empty>i { color:var(--ct-purple); font-size:2.5rem; }.ct2-empty h2 { color:var(--ct-ink); font-size:1rem; margin:.6rem 0 .25rem; }.ct2-empty p { font-size:.8rem; }.ct2-empty button { background:var(--ct-purple); border:0; border-radius:.55rem; color:#fff; font-weight:750; padding:.65rem 1rem; }
.ct2-pagination { align-items:center; display:flex; gap:.8rem; justify-content:center; margin:1rem 0; }.ct2-pagination button { background:#fff; border:1px solid #dddfea; border-radius:.5rem; height:2.2rem; width:2.2rem; }.ct2-pagination span { color:var(--ct-muted); font-size:.75rem; }
.ct2-filter-backdrop { background:rgba(7,10,25,.58); inset:0; position:fixed; z-index:1090; }.ct2-filter-sheet { background:#fff; border-radius:1.2rem 1.2rem 0 0; bottom:0; box-shadow:0 -12px 40px rgba(15,18,35,.2); left:0; max-height:88vh; overflow:auto; padding:0 1rem calc(1rem + env(safe-area-inset-bottom,0px)); position:fixed; right:0; z-index:1100; }
.ct2-handle { background:#ccd0dd; border-radius:999px; height:.25rem; margin:.55rem auto .5rem; width:2.5rem; }.ct2-filter-sheet>header { align-items:center; display:grid; grid-template-columns:1fr auto auto; padding:.35rem 0 .8rem; }.ct2-filter-sheet h2 { color:var(--ct-ink); font-size:1.2rem; font-weight:850; margin:0; }.ct2-clear,.ct2-close { background:transparent;border:0; }.ct2-clear { color:var(--ct-purple);font-size:.75rem;font-weight:750; }.ct2-close { color:var(--ct-ink);font-size:1rem; }
.ct2-filter-content { display:grid; gap:1rem; }.ct2-filter-content fieldset { border:0;margin:0;padding:0; }.ct2-filter-content legend,.ct2-filter-content>label { color:var(--ct-ink);display:grid;font-size:.78rem;font-weight:800;gap:.45rem; }.ct2-filter-content select,.ct2-filter-content input { background:#fff;border:1px solid #dfe1eb;border-radius:.55rem;color:#465069;font-size:.76rem;min-height:2.65rem;padding:.6rem .75rem;width:100%; }.ct2-filter-chips { display:flex;flex-wrap:wrap;gap:.4rem; }.ct2-filter-chips button { background:#fafaff;border:1px solid #e1e3ec;border-radius:.55rem;color:#596176;font-size:.7rem;padding:.5rem .7rem; }.ct2-filter-chips button.active { background:var(--ct-purple);border-color:var(--ct-purple);color:#fff; }.ct2-dates { display:grid;gap:.45rem;grid-template-columns:1fr 1fr; }.ct2-dates label span { color:var(--ct-muted);display:block;font-size:.65rem;margin-bottom:.25rem; }.ct2-filter-sheet>footer { display:grid;gap:.5rem;grid-template-columns:1fr 1.25fr;margin-top:1.15rem; }.ct2-filter-sheet>footer button { border-radius:.55rem;font-size:.77rem;font-weight:800;min-height:2.75rem; }.ct2-reset { background:#fff;border:1.5px solid var(--ct-purple);color:var(--ct-purple); }.ct2-apply { background:var(--ct-purple);border:1.5px solid var(--ct-purple);color:#fff; }
@media (min-width:768px) { .club-trials-v2 { margin:auto;max-width:960px;padding:1.5rem; }.ct2-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.ct2-filter-sheet { border-radius:1rem;bottom:auto;left:50%;max-width:560px;right:auto;top:50%;transform:translate(-50%,-50%);width:calc(100% - 2rem); }.ct2-handle { display:none; }.ct2-filter-sheet>header { padding-top:1rem; } }

.trial-step {
    background: #ffffff !important;
    min-height: 100vh !important;
    color: #111827 !important;
}

.wizard-content .btn-primary,
.trial-step .btn-primary {
    background-color: #003DA5 !important;
    border-color: #003DA5 !important;
    color: #ffffff !important;
}

.wizard-content .btn-primary:hover:not(:disabled),
.trial-step .btn-primary:hover:not(:disabled) {
    background-color: #002d7a !important;
    border-color: #002d7a !important;
}

.wizard-content .btn-secondary,
.trial-step .btn-secondary {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #374151 !important;
}

.wizard-content .btn-secondary:hover:not(:disabled),
.trial-step .btn-secondary:hover:not(:disabled) {
    border-color: #003DA5 !important;
    color: #003DA5 !important;
    background-color: #f8fbff !important;
}

/* --- Trial global page heading (used by TrialStepHeader) --- */
.trial-page-heading {
    text-align: center;
    margin-bottom: 1.25rem;
}

.trial-page-heading h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 .25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.trial-page-heading p {
    font-size: .9rem;
    color: #6b7280;
    margin: 0;
}

.trial-step-icon-wrapper {
    align-items: center;
    background: #eaf2ff;
    border-radius: 50%;
    color: #003da5;
    display: flex;
    font-size: 1.7rem;
    height: 3.5rem;
    justify-content: center;
    margin: .4rem auto .8rem;
    width: 3.5rem;
}

/* --- Create New Trial wizard overrides --- */
.trials-container {
    background: #ffffff;
}

.trials-container .wizard-stepper .back-arrow {
    background: #003DA5;
}

.trials-container .wizard-stepper .back-arrow:hover:not(:disabled) {
    background: #002d7a;
    box-shadow: 0 2px 8px rgba(0, 61, 165, .3);
}

.trials-container .wizard-stepper .back-arrow:focus {
    box-shadow: 0 0 0 3px rgba(0, 61, 165, .2);
}

.trials-container .step:hover {
    background: #e0e3e9;
}

.trials-container .step.active,
.trials-container .step.completed {
    background: #16a34a;
}

.trials-container .step::before {
    background: #d1d5db;
}

.trials-container .step.completed::before,
.trials-container .step.active::before {
    background: #16a34a;
}

.trials-container .trial-step h2 {
    font-size: 1.3rem;
    color: #111827;
}

.trials-container .trial-step .trial-step-label {
    color: #16a34a;
}

.trials-container .trial-step-description {
    color: #6b7280;
}

.trials-container .trial-field input,
.trials-container .trial-field select,
.trials-container .trial-field textarea {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: .75rem .9rem;
}

.trials-container .trial-field input:focus,
.trials-container .trial-field select:focus,
.trials-container .trial-field textarea:focus {
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, .12);
    outline: none;
}

.trials-container .toggle-btn.active {
    background: #003DA5;
    border-color: #003DA5;
}

.trials-container .toggle-btn.active:focus {
    box-shadow: 0 0 0 3px rgba(0, 61, 165, .2);
}

.trials-container .btn-primary {
    background: #003DA5;
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
}

.trials-container .btn-primary:hover:not(:disabled) {
    background: #002d7a;
}

.trials-container .btn-primary:disabled {
    background: #d1d5db;
    color: #6b7280;
}

.trials-container .btn-secondary {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #374151;
    border-radius: 10px;
    font-weight: 700;
}

.trials-container .btn-secondary:hover:not(:disabled) {
    border-color: #003DA5;
    color: #003DA5;
    background: #f8fbff;
}

.trials-container .review-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.trials-container .review-edit {
    color: #003DA5;
}

.success-step-page .success-stepper-dots span,
.success-step-page .success-stepper-dots::before {
    background: #16a34a;
}

.success-step-page .success-next-card {
    background: #f8fbff;
    border-color: #e0e7ff;
}

.success-step-page .success-next-card h3 {
    color: #1e3a8a;
}

.success-step-page .success-next-item i {
    color: #003DA5;
}

.success-step-page .success-actions .btn-secondary {
    background: #003DA5;
    border-color: #003DA5;
    color: #ffffff;
    border-radius: 10px;
}

.success-step-page .success-actions .btn-secondary:hover:not(:disabled) {
    background: #002d7a;
}

/* --- Club Dashboard overrides --- */
.role-club {
    --role-color: #003DA5;
    --role-tint: #eff6ff;
}

.club-create-btn {
    background: #003DA5;
    border-radius: 10px;
    min-height: 2.8rem;
}

.club-create-btn:hover {
    background: #002d7a;
}

.club-metric-card {
    border-radius: .75rem;
    border: 1px solid #e2e9f7;
    background: #ffffff;
}

.club-metric-card strong {
    font-size: 2rem;
}

.club-metric-card i {
    border-radius: 50%;
}

.club-recent-icon {
    border-radius: .5rem;
    background: #1d2f5e;
    color: #ffffff;
}

.club-status.status-upcoming { background: #e6efff; color: #1f4fc7; }
.club-status.status-live { background: #e8f9ee; color: #1c8a45; }
.club-status.status-completed { background: #eef2f8; color: #586684; }
.club-status.status-draft { background: #ffedd5; color: #d97706; }

/* --- Trials list page --- */
.trials-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 1rem;
    padding-bottom: 6rem;
}

.trials-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.trials-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 .15rem;
}

.trials-header .subtitle {
    color: #6b7280;
    font-size: .9rem;
    margin: 0 0 1rem;
}

.search-container {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.search-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: .7rem .9rem;
    background: #ffffff;
}

.search-input:focus {
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, .12);
    outline: none;
}

.btn-filter {
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
}

.btn-filter:hover {
    border-color: #003DA5;
    color: #003DA5;
}

.status-tabs {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.status-tab {
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    padding: .55rem .85rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}

.status-tab:hover {
    color: #003DA5;
    background: #eff6ff;
}

.status-tab.active {
    background: #003DA5;
    color: #ffffff;
}

.trials-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trials-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.trial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trial-card-header {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.trial-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .6rem;
    background: #1d2f5e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.trial-title-section h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.trial-title-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.trial-status {
    font-size: .65rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .2rem .5rem;
    white-space: nowrap;
}

.trial-status.status-draft { background: #ffedd5; color: #d97706; }
.trial-status.status-upcoming { background: #e6efff; color: #1f4fc7; }
.trial-status.status-live { background: #e8f9ee; color: #1c8a45; }
.trial-status.status-completed { background: #eef2f8; color: #586684; }

.trial-meta-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #6b7280;
    font-size: .85rem;
}

.meta-icon {
    font-size: .9rem;
}

.trial-card-footer {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.btn-action {
    flex: 1;
    padding: .55rem .75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
}

.btn-action:hover {
    border-color: #003DA5;
    color: #003DA5;
    background: #f8fbff;
}

.fab-create {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #003DA5;
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 61, 165, .35);
    z-index: 50;
    cursor: pointer;
    transition: background .2s;
}

.fab-create:hover {
    background: #002d7a;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.empty-state h3 {
    margin: 1rem 0 .5rem;
    color: #111827;
    font-weight: 700;
}

.empty-state p {
    color: #6b7280;
    margin: 0 0 1.5rem;
}

.btn-create-first {
    padding: .85rem 1.5rem;
    background: #003DA5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.btn-create-first:hover {
    background: #002d7a;
}

/* --- Trials Dashboard --- */
.trials-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 1rem;
    padding-bottom: 6rem;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 .15rem;
}

.dashboard-header .subtitle {
    color: #6b7280;
    font-size: .9rem;
    margin: 0;
}

.dashboard-header .btn {
    align-self: flex-start;
    padding: .85rem 1.25rem;
    border-radius: 10px;
    background: #003DA5;
    color: #ffffff;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: background .2s;
}

.dashboard-header .btn:hover {
    background: #002d7a;
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-label {
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .15rem;
}

.stat-description {
    font-size: .75rem;
    color: #9ca3af;
}

.stat-card-active .stat-value { color: #16a34a; }
.stat-card-upcoming .stat-value { color: #003DA5; }
.stat-card-draft .stat-value { color: #f59e0b; }
.stat-card-applications .stat-value { color: #003da5; }
.stat-card-pending .stat-value { color: #dc2626; }

.recent-section,
.quick-actions-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.view-all-link {
    color: #003DA5;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.recent-trials-list {
    display: flex;
    flex-direction: column;
}

.recent-trial-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    cursor: pointer;
    transition: background .15s;
}

.recent-trial-item:hover {
    background: #f9fafb;
}

.recent-trial-item:last-child {
    border-bottom: none;
}

.trial-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.badge-circle {
    display: flex;
}

.trial-content {
    flex: 1 1 auto;
    min-width: 0;
}

.trial-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.trial-content h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}

.trial-title-row .club-status {
    font-size: .7rem;
    padding: .2rem .55rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: capitalize;
    flex-shrink: 0;
}

.trial-content .trial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    color: #6b7280;
    font-size: .8rem;
}

.trial-content .meta-item {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.trial-content .meta-icon {
    font-size: .85rem;
}

.quick-actions-section h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.action-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}

.action-card:hover {
    border-color: #003DA5;
    box-shadow: 0 4px 12px rgba(0, 61, 165, .08);
}

.action-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #eff6ff;
    color: #003DA5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    font-size: 1.25rem;
}

.action-title {
    font-size: .85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .15rem;
}

.action-description {
    font-size: .75rem;
    color: #6b7280;
}

/* --- Filter panel --- */
.filter-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem;
    z-index: 101;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}

.btn-clear-all:hover {
    color: #003DA5;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
}

.form-control.filter-select,
.form-control.filter-date {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: .7rem .9rem;
}

.form-control.filter-select:focus,
.form-control.filter-date:focus {
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, .12);
    outline: none;
}

.btn-apply {
    width: 100%;
    padding: .85rem;
    background: #003DA5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.btn-apply:hover {
    background: #002d7a;
}

/* --- Pagination --- */
.pagination-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    padding: .45rem .75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
}

.page-item .page-link:hover {
    border-color: #003DA5;
    color: #003DA5;
    background: #f8fbff;
}

.page-item.active .page-link {
    background: #003DA5;
    border-color: #003DA5;
    color: #ffffff;
}

.page-item.disabled .page-link {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .trials-page,
    .trials-dashboard {
        padding: .75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}
