@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
    --bg: #050505;
    --panel: #141414;
    --surface: #1e1e1e;
    --surface-2: #282828;
    --text: #ffffff;
    --text-soft: #e5e5e5;
    --muted: #b5b5b5;
    --line: #2e2e2e;
    --line-soft: #242424;
    --primary: #c9962c;
    --primary-strong: #e0ad3f;
    --primary-dark: #8a6418;
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.16);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.16);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    overflow-x: hidden;
}

body {
    padding: 18px;
}

button, input, select {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

/* =========================================================
   Containers & Brand Header
   ========================================================= */

.container {
    width: min(500px, 100%);
    margin: 24px auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow-md);
    text-align: center;
}

    .container.wide {
        width: min(760px, 100%);
        display: none;
        text-align: left;
    }

.brand-header {
    margin-bottom: 12px;
    text-align: center;
}

.brand-logo-img {
    width: min(220px, 72%);
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: lighten;
}

.container h2 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
}

.container > p,
.muted {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.coach-welcome {
    margin: 4px 0 16px;
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

    .coach-welcome b {
        color: var(--primary-strong);
        font-weight: 900;
    }

/* =========================================================
   Tab Bar
   ========================================================= */

.tab-bar {
    margin: 0 0 16px;
    padding: 5px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    background: var(--surface);
}

.tab-btn {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

    .tab-btn.active {
        background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark));
        color: #050505;
        border-color: rgba(201, 150, 44, 0.5);
        box-shadow: 0 6px 18px rgba(201, 150, 44, 0.24);
    }

/* =========================================================
   Forms & Inputs (Dark Mode)
   ========================================================= */

.field-label {
    display: block;
    margin: 10px 0 6px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 4px 0;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

    input:hover,
    select:hover {
        border-color: var(--primary);
    }

    input:focus,
    select:focus {
        background: var(--surface-2);
        border-color: var(--primary-strong);
        box-shadow: 0 0 0 3px rgba(201, 150, 44, 0.2);
    }

    input::placeholder {
        color: #808080;
    }

    select[multiple] {
        min-height: 130px;
        padding: 8px;
    }

        select[multiple] option {
            padding: 8px 10px;
            margin-bottom: 2px;
            border-radius: 8px;
            color: var(--text);
        }

    /* Force DD/MM/YYYY display on date inputs */
    input[type="date"] {
        position: relative;
    }

        input[type="date"]::-webkit-datetime-edit {
            color: transparent;
        }

        input[type="date"]::before {
            content: attr(data-display-date);
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text);
            font-weight: 600;
            pointer-events: none;
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
            cursor: pointer;
            opacity: 0.85;
        }

/* =========================================================
   Buttons
   ========================================================= */

button {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.14s ease;
}

.btn-primary,
.btn-green,
.btn-blue {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #050505;
    border-color: rgba(201, 150, 44, 0.45);
    box-shadow: 0 6px 16px rgba(201, 150, 44, 0.2);
}

    .btn-primary:hover,
    .btn-green:hover,
    .btn-blue:hover {
        background: var(--primary-strong);
    }

.btn-red {
    width: 100%;
    margin-top: 20px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.45);
}

    .btn-red:hover {
        background: rgba(239, 68, 68, 0.22);
    }

/* =========================================================
   Cards & Sections (Dark Mode)
   ========================================================= */

.box {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

    .box h3 {
        margin: 0 0 6px;
        color: var(--text);
        font-size: 19px;
        font-weight: 800;
    }

    .box h4 {
        margin: 0 0 10px;
        color: var(--text);
        font-size: 15px;
        font-weight: 800;
    }

    .box.inner {
        margin-top: 14px;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--surface);
    }

/* =========================================================
   Assigned Students Area
   ========================================================= */

#coach-action-area {
    display: none;
    margin-top: 14px;
}

.student-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric {
    padding: 14px;
    border: 1px solid rgba(201, 150, 44, 0.4);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1f1608 0%, #141414 100%);
    text-align: center;
}

    .metric span {
        display: block;
        color: var(--muted);
        font-size: 11.5px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .metric b {
        display: block;
        margin-top: 4px;
        color: var(--primary-strong);
        font-size: 18px;
        font-weight: 900;
    }

.history-list {
    max-height: 220px;
    overflow-y: auto;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

    .history-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line-soft);
        color: var(--text-soft);
        font-size: 13px;
    }

        .history-list li b {
            color: var(--primary-strong);
            font-size: 12px;
            font-weight: 700;
        }

/* =========================================================
   Calendar & Schedule Grid (Dark Mode)
   ========================================================= */

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.duration-helper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
}

    .duration-helper span {
        margin-right: 4px;
        color: var(--primary-strong);
        font-size: 13px;
        font-weight: 800;
    }

    .duration-helper button {
        width: auto;
        min-height: 32px;
        margin: 0;
        padding: 6px 11px;
        background: var(--surface-2);
        color: var(--text-soft);
        border: 1px solid var(--line);
        border-radius: 10px;
        font-size: 12px;
    }

#coach-calendar-grid {
    max-height: 680px;
    overflow-y: auto;
    margin-top: 16px;
    padding-right: 4px;
}

.calendar-hour {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.calendar-hour-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

    .calendar-hour-header span:last-child {
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(201, 150, 44, 0.16);
        color: var(--primary-strong);
        font-size: 11.5px;
        font-weight: 800;
    }

.quarter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.quarter-slot {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
}

    .quarter-slot.active-slot {
        background: rgba(201, 150, 44, 0.18);
        border-color: rgba(201, 150, 44, 0.45);
    }

    .quarter-slot span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 600;
    }

    .quarter-slot b {
        color: var(--text);
        font-size: 11px;
        font-weight: 700;
    }

.booking-card {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    background: var(--panel);
}

.minute-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0.12;
    z-index: 0;
}

.booking-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.booking-content {
    min-width: 0;
    color: var(--text-soft);
    font-size: 13px;
}

    .booking-content b {
        display: block;
        margin-bottom: 6px;
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
    }

.booking-kid-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.btn-delete-mini {
    width: auto;
    min-height: 30px;
    padding: 5px 10px;
    margin: 0;
    background: var(--red-soft);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 9px;
    font-size: 11.5px;
}

.empty {
    padding: 8px 4px 2px;
    color: var(--muted);
    font-size: 12.5px;
}

/* =========================================================
   Status Badges & Messages
   ========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

    .status.checked {
        background: var(--green-soft);
        color: #4ade80;
    }

    .status.noshow {
        background: var(--red-soft);
        color: #f87171;
    }

    .status.booked {
        background: rgba(201, 150, 44, 0.18);
        color: var(--primary-strong);
    }

.error,
#login-error {
    margin-top: 10px;
    color: #f87171;
    font-size: 13px;
    font-weight: 700;
}

#coach-upload-result,
#coach-calendar-result {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   PWA Install Banner (Dark Mode)
   ========================================================= */

.pwa-install-card {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 9999;
    width: min(360px, calc(100% - 28px));
    transform: translateX(-50%);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.pwa-install-btn {
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #050505;
}

.pwa-install-hint {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .container,
    .container.wide {
        margin: 10px auto;
        padding: 16px;
        border-radius: 18px;
    }

    .box {
        padding: 14px;
    }

    .time-grid,
    .student-metrics-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quarter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   Playtomic-Style Date Strip, Duration Pills & Hour Grid
   ========================================================= */

.date-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 6px;
}

.compact-date-input {
    width: 150px;
    min-height: 36px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    outline: none;
}

.day-strip {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

    .day-strip::-webkit-scrollbar {
        height: 5px;
    }

    .day-strip::-webkit-scrollbar-track {
        background: transparent;
    }

    .day-strip::-webkit-scrollbar-thumb {
        background: var(--line);
        border-radius: 999px;
    }

.day-pill {
    flex: 0 0 60px;
    min-width: 60px;
    min-height: 58px;
    margin: 0;
    padding: 6px 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
}


.day-pill-name {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--muted);
}

.day-pill-num {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.day-pill-month {
    font-size: 9.5px;
    color: var(--muted);
}

.day-pill.active {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-color: var(--primary-strong);
    color: #050505;
}

    .day-pill.active .day-pill-name,
    .day-pill.active .day-pill-num,
    .day-pill.active .day-pill-month {
        color: #050505;
    }

.duration-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.dur-pill {
    min-height: 36px;
    margin: 0;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

    .dur-pill.active {
        background: var(--text);
        color: #050505;
        border-color: var(--text);
    }

.hour-pill-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

.hour-tile {
    min-height: 48px;
    margin: 0;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.hour-tile-time {
    font-size: 13px;
    font-weight: 800;
}

.hour-cap {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

.hour-tile.has-mine {
    border-color: rgba(201, 150, 44, 0.55);
}

    .hour-tile.has-mine .hour-cap {
        color: var(--primary-strong);
    }

.hour-tile.is-full {
    opacity: 0.45;
    text-decoration: line-through;
}

.hour-tile.selected {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-color: var(--primary-strong);
    color: #050505;
    box-shadow: 0 4px 14px rgba(201, 150, 44, 0.3);
}

    .hour-tile.selected .hour-tile-time,
    .hour-tile.selected .hour-cap {
        color: #050505;
    }

.quarter-drawer {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    margin-bottom: 12px;
}

.quarter-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-soft);
}

    .quarter-drawer-head small {
        color: var(--muted);
        font-weight: 600;
    }

.quarter-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.quarter-tile {
    min-height: 54px;
    margin: 0;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

    .quarter-tile .q-time {
        font-size: 13px;
        font-weight: 900;
    }

    .quarter-tile .q-cap {
        font-size: 10.5px;
        font-weight: 700;
        color: var(--muted);
    }

        .quarter-tile .q-cap.gold {
            color: var(--primary-strong);
        }

        .quarter-tile .q-cap.red {
            color: #f87171;
        }

    .quarter-tile .q-other {
        font-size: 9.5px;
        color: var(--muted);
    }

    .quarter-tile.selected {
        border: 2px solid var(--primary-strong);
        background: rgba(201, 150, 44, 0.16);
    }

.selected-interval-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid rgba(201, 150, 44, 0.4);
    border-radius: 12px;
    background: rgba(201, 150, 44, 0.1);
    margin-bottom: 10px;
    font-size: 13px;
}

    .selected-interval-bar b {
        color: var(--primary-strong);
        font-weight: 900;
    }
.step2-bubble {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    margin: 10px 0;
    border: 1px solid rgba(201, 150, 44, 0.5);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 150, 44, 0.16), rgba(20, 20, 20, 0.95));
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .step2-bubble:hover {
        border-color: var(--primary-strong);
    }

.step2-bubble-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.step2-bubble b {
    color: var(--primary-strong);
    font-size: 15px;
    font-weight: 900;
}

.step2-arrow {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 11.5px;
    font-weight: 800;
}
/* =========================================================
   Mirrored Admin Student Profile Card & Tabs in Coach Portal
   ========================================================= */

.mobile-member-card {
    padding: 18px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.mobile-member-top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.mobile-member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(201, 150, 44, 0.16);
    border: 1px solid rgba(201, 150, 44, 0.45);
    color: var(--primary-strong);
    font-size: 22px;
    font-weight: 900;
}

.mobile-member-info {
    min-width: 0;
    text-align: left;
}

    .mobile-member-info h2 {
        margin: 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .mobile-member-info p {
        margin: 3px 0 0;
        color: var(--muted);
        font-size: 12.5px;
        font-weight: 700;
    }

.student-status-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    font-size: 11.5px;
    font-weight: 800;
}

    .student-status-badge.danger {
        background: var(--red-soft);
        border-color: rgba(248, 113, 113, 0.35);
        color: #f87171;
    }

    .student-status-badge.subscription {
        background: rgba(59, 130, 246, 0.16);
        border-color: rgba(59, 130, 246, 0.38);
        color: #60a5fa;
    }

.mobile-member-divider {
    width: 100%;
    height: 1px;
    margin: 14px 0;
    background: var(--line);
}

.membership-only-metrics {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(201, 150, 44, 0.4);
    background: linear-gradient(135deg, #1f1608 0%, #141414 100%);
    text-align: center;
}

.mobile-member-metric span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-member-metric strong {
    display: block;
    color: var(--primary-strong);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.btn-lime {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #050505;
    border-color: rgba(201, 150, 44, 0.45);
    margin: 0;
}

#balance-add-box .btn-red {
    margin: 0;
}

.student-tabs {
    margin: 16px 0 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.student-tab {
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

    .student-tab.active {
        background: linear-gradient(135deg, var(--primary-strong), var(--primary));
        color: #050505;
        border-color: rgba(201, 150, 44, 0.5);
    }

.student-panel {
    display: none;
}

    .student-panel.active {
        display: block;
    }

.profile-info-compact-card,
.management-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.profile-info-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .profile-info-compact-head h3,
    .management-card h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
    }

.profile-info-edit-btn {
    width: auto;
    min-height: 32px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(201, 150, 44, 0.5);
    border-radius: 999px;
    background: rgba(201, 150, 44, 0.16);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 800;
}

.profile-info-summary-grid {
    display: grid;
    gap: 8px;
}

.profile-info-summary-row {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--surface);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

    .profile-info-summary-row span {
        color: var(--muted);
        font-size: 12.5px;
        font-weight: 700;
    }

    .profile-info-summary-row strong {
        color: var(--text);
        font-size: 13.5px;
        font-weight: 800;
        text-align: right;
        overflow-wrap: anywhere;
    }

.admin-performance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-performance-index {
    min-width: 84px;
    padding: 10px 12px;
    border: 1px solid rgba(201, 150, 44, 0.45);
    border-radius: 14px;
    background: rgba(201, 150, 44, 0.12);
    text-align: center;
}

    .admin-performance-index span {
        display: block;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 800;
    }

    .admin-performance-index strong {
        color: var(--primary-strong);
        font-size: 20px;
        font-weight: 900;
    }

.admin-performance-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-performance-row {
    display: grid;
    grid-template-columns: 1fr 110px 56px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.admin-performance-drill-info strong {
    display: block;
    font-size: 13px;
}

.admin-performance-drill-info small {
    color: var(--muted);
    font-size: 11px;
}

.admin-performance-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-performance-score {
    color: var(--primary-strong);
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.upload-zone {
    padding: 18px;
    border: 1.5px dashed var(--line);
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.profile-edit-modal-backdrop {
    position: fixed;
    inset: 0;
}

.profile-edit-modal-card {
    position: relative;
    z-index: 2;
    width: min(500px, 100%);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.profile-edit-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-edit-close-btn {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.unit-input {
    position: relative;
}

    .unit-input span {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }
