/* ════════════════════════════════════════════
   AMMAR SWIM – DESIGN SYSTEM
   Brand: Cyan #09ACD0 · Orange #E05A00
════════════════════════════════════════════ */
:root {
    /* Brand colours (from logo) */
    --brand-cyan:   #09ACD0;
    --brand-cyan-d: #0791AF;
    --brand-cyan-l: #D6F4FC;
    --brand-cyan-xl:#EEF9FD;
    --brand-orange: #E05A00;
    --brand-orange-l:#FFF0E6;

    /* Neutrals */
    --ink-900: #0D1F2D;
    --ink-800: #1A3048;
    --ink-700: #264D6B;
    --ink-300: #8BA5B8;
    --ink-200: #C8D9E6;
    --ink-100: #E8F1F7;
    --ink-50:  #F4F8FB;

    /* Surfaces */
    --surface:   #FFFFFF;
    --surface-2: #F7FAFC;
    --border:    #E4EDF5;
    --border-l:  #F0F6FA;

    /* Semantic */
    --success: #16A34A;
    --success-l: #DCFCE7;
    --danger:  #DC2626;
    --danger-l: #FEE2E2;

    /* Shadows */
    --sh-xs: 0 1px 3px rgba(9,44,74,.06);
    --sh-sm: 0 2px 10px rgba(9,44,74,.08);
    --sh-md: 0 4px 24px rgba(9,44,74,.10);
    --sh-lg: 0 8px 48px rgba(9,44,74,.14);
    --sh-brand: 0 4px 20px rgba(9,172,208,.28);

    /* Shape */
    --r-sm: 0.5rem;
    --r-md: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.25rem;
    --r-2xl: 1.5rem;
    --r-full: 9999px;

    /* Layout */
    --sidebar-w: 260px;

    /* Typography */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --ease: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--surface-2);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a { text-decoration: none; }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 60% at 15% 90%, rgba(9,172,208,.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 85% 10%, rgba(9,172,208,.08) 0%, transparent 55%),
        #F4F8FB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

/* Brand block */
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(9,172,208,.25));
}

.login-brand-name {
    display: block;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    margin-top: 0.625rem;
}

.login-brand-sub {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-300);
    font-weight: 500;
    margin-top: 0.125rem;
}

/* Card */
.login-card {
    background: var(--surface);
    border: 1px solid var(--border-l);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-md);
    padding: 2.25rem 2rem;
}

.login-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}

.login-card-sub {
    font-size: 0.8125rem;
    color: var(--ink-300);
    margin: 0 0 1.75rem;
}

/* Alert */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--danger-l);
    border: 1px solid #FECACA;
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--danger);
    margin-bottom: 1.25rem;
}

.login-alert i { font-size: 1rem; flex-shrink: 0; }

/* Fields */
.lf { margin-bottom: 1.125rem; }

.lf label {
    display: block;
    font-size: .8rem;
    font-weight: 800;
    color: var(--ink-800);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}

.lf-input {
    position: relative;
}

.lf-input i {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-300);
    font-size: .95rem;
    pointer-events: none;
}

.lf-input input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.6rem;
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--ink-900);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    transition: border var(--ease), box-shadow var(--ease), background var(--ease);
    outline: none;
}

.lf-input input::placeholder { color: var(--ink-200); }

.lf-input input:focus {
    background: var(--surface);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(9,172,208,.15);
}

/* Submit */
.login-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: .875rem 1.5rem;
    font-family: var(--font);
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #C24E00 100%);
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all var(--ease);
    box-shadow: 0 4px 16px rgba(224,90,0,.30);
    letter-spacing: .01em;
}

.login-submit:hover {
    background: linear-gradient(135deg, #C24E00 0%, #A84200 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224,90,0,.38);
}

.login-submit:active { transform: translateY(0); }

.login-submit i { font-size: 1.05rem; transition: transform var(--ease); }
.login-submit:hover i { transform: translateX(3px); }

/* Footer */
.login-secure {
    text-align: center;
    font-size: .75rem;
    color: var(--ink-300);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.login-secure i { color: var(--brand-cyan); }


/* ══════════════════════════════════════
   ADMIN LAYOUT – Sidebar + Content
══════════════════════════════════════ */
#wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--ink-900);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    overflow-y: auto;
    transition: transform var(--ease);
}

.sb-brand {
    padding: 1.375rem 1.25rem 1.125rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.sb-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--r-md);
    background: rgba(255,255,255,.08);
    padding: 4px;
    flex-shrink: 0;
}

.sb-brand-text strong {
    display: block;
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.sb-brand-text span {
    font-size: .65rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

/* Nav */
.sb-nav {
    padding: .875rem .75rem;
    flex: 1;
}

.sb-section {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.28);
    padding: .75rem .75rem .375rem;
    margin-top: .5rem;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .6875rem .875rem;
    border-radius: var(--r-md);
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    transition: all var(--ease);
    margin-bottom: .125rem;
    border: 1px solid transparent;
}

.sb-link i { font-size: .95rem; opacity: .75; flex-shrink: 0; }

.sb-link:hover {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.9);
}

.sb-link.active {
    background: rgba(9,172,208,.15);
    color: var(--brand-cyan);
    border-color: rgba(9,172,208,.25);
    font-weight: 600;
}

.sb-link.active i { opacity: 1; }

/* Sidebar footer */
.sb-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.sb-user {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .75rem;
}

.sb-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-d) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sb-user-name {
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .5rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-md);
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font);
    text-decoration: none;
}

.sb-logout:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
}

/* Page content */
#page-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
}

/* Mobile topbar */
.admin-topbar {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border-l);
    padding: .75rem 1rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar .topbar-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.admin-topbar .topbar-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.admin-topbar .topbar-logo span {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-900);
}

.admin-topbar-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .375rem .625rem;
    color: var(--ink-700);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all var(--ease);
}

.admin-topbar-btn:hover { background: var(--ink-100); }

/* Main area */
.admin-main {
    padding: 2rem 2rem 3rem;
    flex: 1;
}

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.page-header-left h1 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink-900);
    margin: 0 0 .2rem;
}

.page-header-left p {
    font-size: .875rem;
    color: var(--ink-700);
    margin: 0;
    font-weight: 500;
}

/* Buttons */
.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5625rem 1.125rem;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-d) 100%);
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--ease);
    box-shadow: var(--sh-brand);
    white-space: nowrap;
    text-decoration: none;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand-cyan-d) 0%, #066480 100%);
    box-shadow: 0 6px 24px rgba(9,172,208,.38);
    transform: translateY(-1px);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5625rem 1.125rem;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--ease);
    text-decoration: none;
}

.btn-secondary:hover { background: var(--ink-100); color: var(--ink-900); }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.card-hd {
    padding: 1.125rem 1.375rem;
    border-bottom: 1px solid var(--border-l);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    background: var(--surface);
}

.card-hd-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-hd-title i { color: var(--brand-cyan); }

.card-body-p { padding: 1.375rem; }

/* Form group */
.fg { margin-bottom: 1rem; }

.fg label {
    display: block;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-700);
    margin-bottom: .4rem;
}

.fg input,
.fg select {
    width: 100%;
    padding: .6875rem .875rem;
    font-family: var(--font);
    font-size: .9rem;
    color: var(--ink-900);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    transition: all var(--ease);
    appearance: none;
}

.fg input:focus,
.fg select:focus {
    background: var(--surface);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(9,172,208,.14);
}

.fg select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238BA5B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

.fg-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-700);
    cursor: pointer;
    margin-top: .25rem;
}

.fg-check input[type=checkbox] {
    width: 1.0625rem;
    height: 1.0625rem;
    accent-color: var(--brand-cyan);
    cursor: pointer;
    flex-shrink: 0;
}

/* Flash */
.flash {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    border-radius: var(--r-md);
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--success-l);
    border-color: #BBF7D0;
    color: #15803D;
}

.flash-danger {
    background: var(--danger-l);
    border-color: #FECACA;
    color: var(--danger);
}

.flash i { font-size: 1rem; flex-shrink: 0; }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    font-size: .9rem;
    padding: .125rem;
    flex-shrink: 0;
}

.flash-close:hover { opacity: 1; }

/* Tables */
.tbl {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tbl thead th {
    background: var(--ink-100);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-700);
    padding: .9375rem 1rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
}

.tbl tbody td {
    padding: 1rem;
    font-size: .9375rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--ink-800);
    text-align: left;
    word-break: break-word;
}

/* Column widths & alignment */
.tbl .c-no    { width: 3.5rem;  text-align: center !important; }
.tbl .c-act   { width: 6rem;    text-align: center !important; }
.tbl .c-status{ width: 7.5rem;  text-align: center !important; }
.tbl .c-date  { width: 11rem;   white-space: nowrap; }
.tbl .c-user  { width: 11rem; }
.tbl .c-cabang{ width: 9rem; }
.tbl .c-kolam { width: 11rem; }

.tbl .cell-primary {
    font-weight: 700;
    color: var(--ink-900);
}

.tbl .cell-muted {
    color: var(--ink-700);
    font-size: .875rem;
}

.tbl .cell-date {
    color: var(--ink-700);
    font-size: .875rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tbl .act-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
}

.tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tbl-count {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink-700);
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl tbody tr { transition: background var(--ease); }

.tbl tbody tr:nth-child(even) { background: var(--surface-2); }

.tbl tbody tr:hover { background: var(--brand-cyan-l); }

/* Badges */
.badge-active {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    padding: .3em .75em;
    border-radius: var(--r-full);
    letter-spacing: .02em;
}

.badge-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-on  { background: var(--success-l); color: #15803D; }
.badge-on::before  { background: var(--success); }
.badge-off { background: var(--ink-100); color: var(--ink-300); }
.badge-off::before { background: var(--ink-200); }

/* Action buttons */
.act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: .875rem;
    color: var(--ink-300);
    transition: all var(--ease);
    text-decoration: none;
}

.act-btn:hover { color: var(--brand-cyan); border-color: var(--brand-cyan); background: var(--brand-cyan-xl); }
.act-btn.del:hover { color: var(--danger); border-color: #FECACA; background: var(--danger-l); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--ink-100);
    border-radius: var(--r-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    color: var(--ink-200);
    margin-bottom: 1rem;
}

.empty-state h6 {
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: .375rem;
}

.empty-state p {
    font-size: .875rem;
    color: var(--ink-300);
    margin: 0;
}


/* ══════════════════════════════════════
   MITRA LAYOUT
══════════════════════════════════════ */
.mitra-page {
    min-height: 100vh;
    background: var(--ink-50);
}

/* Navbar */
.mitra-nav {
    background: var(--ink-900);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(9,44,74,.18);
}

.mitra-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: .875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mitra-nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.mitra-nav-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    padding: 3px;
    flex-shrink: 0;
}

.mitra-nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mitra-nav-brand-text strong {
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.mitra-nav-brand-text span {
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mitra-nav-right {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.mitra-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-full);
    padding: .3125rem .75rem .3125rem .3125rem;
}

.mitra-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-d) 100%);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.mitra-chip-name {
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}

.nav-logout {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4375rem .875rem;
    font-family: var(--font);
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ease);
}

.nav-logout:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* Mitra content */
.mitra-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 3rem;
}

/* Hero card */
.mitra-hero {
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 40%, var(--brand-cyan-d) 100%);
    border-radius: var(--r-2xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-md);
}

.mitra-hero::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(9,172,208,.25) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.mitra-hero::after {
    content: '';
    position: absolute;
    left: 30%;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224,90,0,.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.mitra-hero-inner {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.5);
    margin-bottom: .375rem;
}

.hero-name {
    font-size: 1.625rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 0 .625rem;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-full);
    padding: .3rem .875rem;
    font-size: .8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.375rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.hs-val {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1;
}

.hs-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.65);
    margin-top: .3rem;
}

/* Filter */
.filter-wrap {
    background: var(--surface);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    padding: 1.125rem 1.375rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--sh-xs);
}

.filter-wrap .fg {
    margin: 0;
    min-width: 180px;
    flex: 1;
}

/* Schedule card */
.sched-card { overflow: hidden; }

.sched-count {
    font-size: .8125rem;
    font-weight: 800;
    color: var(--ink-800);
    background: var(--brand-cyan-l);
    border: 1.5px solid rgba(9,172,208,.35);
    padding: .3125rem .875rem;
    border-radius: var(--r-full);
}

/* Table premium – jadwal mitra (high contrast) */
.tbl-prem { width: 100%; border-collapse: collapse; }

.tbl-prem thead th {
    background: var(--ink-100);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-800);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.tbl-prem tbody td {
    padding: 1.0625rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: .9375rem;
    vertical-align: middle;
    color: var(--ink-800);
}

.tbl-prem tbody tr:nth-child(even) { background: var(--surface-2); }

.tbl-prem tbody tr:last-child td { border-bottom: none; }

.tbl-prem tbody tr { transition: background var(--ease); }

.tbl-prem tbody tr:hover { background: var(--brand-cyan-l); }

/* Table cell helpers */
.td-num {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--ink-700);
    font-size: .9375rem;
    width: 48px;
}

.td-date {
    font-weight: 600;
    color: var(--ink-800);
    font-size: .9rem;
    white-space: nowrap;
}

.td-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink-900);
    letter-spacing: -.01em;
    line-height: 1.35;
}

.time-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--surface);
    color: var(--ink-900);
    font-size: .9375rem;
    font-weight: 800;
    padding: .4rem .875rem;
    border-radius: var(--r-full);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    box-shadow: var(--sh-xs);
}

.time-pill i { color: var(--brand-cyan-d); font-size: .875rem; }

.meet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .5rem;
    background: var(--surface);
    color: var(--brand-cyan-d);
    font-size: .9375rem;
    font-weight: 800;
    border-radius: var(--r-sm);
    border: 2px solid var(--brand-cyan);
}

.coach-wrap {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.coach-av {
    width: 32px;
    height: 32px;
    background: var(--brand-cyan-l);
    border: 1.5px solid rgba(9,172,208,.35);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    color: var(--brand-cyan-d);
    flex-shrink: 0;
}

.coach-name {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--ink-900);
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--sh-lg);
    }

    #page-content {
        margin-left: 0;
    }

    .admin-topbar { display: flex; }

    .admin-main { padding: 1.25rem 1rem 2.5rem; }
}

@media (max-width: 767px) {
    .mitra-wrap { padding: 1.25rem 1rem 2.5rem; }

    .mitra-hero { padding: 1.375rem 1.25rem; }

    .hero-name { font-size: 1.25rem; }

    .hero-stats { gap: 1.25rem; }

    .hs-val { font-size: 1.5rem; }

    .mitra-chip-name { display: none; }

    .tbl-prem thead th:nth-child(2),
    .tbl-prem tbody td:nth-child(2) { display: none; }

    .filter-wrap { padding: 1rem; }

    .page-header { flex-direction: column; align-items: stretch; }

    .btn-brand { justify-content: center; }
}

@media (max-width: 479px) {
    .login-card { padding: 1.625rem 1.25rem; }

    .mitra-nav-inner { padding: .75rem 1rem; }
}
