/* ==========================================================================
   OpenSlots — Design System
   GradeLocal-inspired muted palette with dark mode
   ========================================================================== */

/* --- Reset & Base --- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: light;
    /* GradeLocal muted light palette — no harsh whites */
    --bg: #d0d0d0;
    --bg-card: #dcdcdc;
    --bg-card-header: #d2d2d2;
    --bg-muted: #c8c8c8;
    --bg-input: #e4e4e4;
    --border: #a8a8a8;
    --border-light: #b8b8b8;
    --text: #1a1a1a;
    --text-secondary: #444;
    --text-muted: #666;
    --text-faint: #888;

    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-light: #c7c3ed;
    --color-primary-100: #b8b3e6;
    --color-primary-200: #a9a3de;
    --color-primary-text: #3730A3;

    --color-success: #059669;
    --color-success-light: #b4dece;
    --color-success-border: #7dd3b0;
    --color-success-text: #065F46;
    --color-warning: #D97706;
    --color-warning-light: #e8d5a8;
    --color-warning-border: #d4b06a;
    --color-warning-text: #92400E;
    --color-error: #DC2626;
    --color-error-light: #e8bbbb;
    --color-error-border: #d49494;
    --color-error-text: #991B1B;

    --color-zoom: #2563EB;
    --color-zoom-light: #b8cde8;
    --color-zoom-border: #8baed4;
    --color-in-person: #059669;
    --color-in-person-light: #b4dece;
    --color-in-person-border: #7dd3b0;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.12), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.08);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --transition: 150ms ease;
}

/* --- Dark Mode --- */

.dark {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-header: #141414;
    --bg-muted: #262626;
    --bg-input: #2a2a2a;
    --border: #404040;
    --border-light: #333;
    --text: #ededed;
    --text-secondary: #bbb;
    --text-muted: #888;
    --text-faint: #666;

    --color-primary: #818CF8;
    --color-primary-hover: #6366F1;
    --color-primary-light: #2a2850;
    --color-primary-100: #232045;
    --color-primary-200: #1e1c3a;
    --color-primary-text: #A5B4FC;

    --color-success: #34D399;
    --color-success-light: #0d2d1f;
    --color-success-border: #1a4a32;
    --color-success-text: #6EE7B7;
    --color-warning: #FBBF24;
    --color-warning-light: #2d2210;
    --color-warning-border: #4a3a1a;
    --color-warning-text: #FCD34D;
    --color-error: #F87171;
    --color-error-light: #2d1010;
    --color-error-border: #4a1a1a;
    --color-error-text: #FCA5A5;

    --color-zoom: #60A5FA;
    --color-zoom-light: #0d1f2d;
    --color-zoom-border: #1a3a5a;
    --color-in-person: #34D399;
    --color-in-person-light: #0d2d1f;
    --color-in-person-border: #1a4a32;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code, .mono {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

/* --- Typography --- */

h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--text); }
h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--text); }

.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }
.required { color: var(--color-error); }
.inline { display: inline; }

.link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* --- Theme Toggle --- */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-muted);
    color: var(--text);
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    color: var(--text);
}

.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.dark .btn-primary { color: #111; }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-muted); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }

.btn-danger {
    background: var(--color-error);
    color: #fff;
}
.btn-danger:hover { background: #B91C1C; }
.dark .btn-danger:hover { background: #EF4444; }

.btn-danger-text { color: var(--color-error); }
.btn-danger-text:hover { background: var(--color-error-light); }

.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-text { color: var(--color-primary); font-weight: 500; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition);
    color: var(--text-faint);
}

.btn-icon-danger { color: var(--text-faint); }
.btn-icon-danger:hover { color: var(--color-error); background: var(--color-error-light); }

.action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Forms --- */

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-input::placeholder { color: var(--text-faint); }

.form-input-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.form-textarea {
    resize: vertical;
    min-height: 5rem;
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* --- Cards --- */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-header);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-danger {
    border-color: var(--color-error-border);
}

.card-danger .card-header {
    background: var(--color-error-light);
    border-bottom-color: var(--color-error-border);
    color: var(--color-error-text);
}

/* --- Share Link --- */

.share-link-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link-input-wrap {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.share-link-input-wrap .form-input {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: text;
    user-select: all;
}

.btn-copied {
    background: var(--color-success) !important;
    color: #fff !important;
    border-color: var(--color-success) !important;
    transition: all 0.2s ease;
}

/* --- Bulk Actions --- */

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--color-primary-light);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
}

.slot-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* --- Tables --- */

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    padding: 0.625rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-card-header);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.table tbody tr:hover {
    background: var(--bg-card-header);
}

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

/* --- Badges --- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-sm { font-size: 0.6875rem; padding: 0.0625rem 0.375rem; }

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.badge-muted {
    background: var(--bg-muted);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-zoom {
    background: var(--color-zoom-light);
    color: var(--color-zoom);
    border: 1px solid var(--color-zoom-border);
}

.badge-in_person, .badge-in-person {
    background: var(--color-in-person-light);
    color: var(--color-in-person);
    border: 1px solid var(--color-in-person-border);
}

/* --- Alerts --- */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success-text);
    border-color: var(--color-success-border);
}

.alert-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-text);
    border-color: var(--color-warning-border);
}

.alert-error {
    background: var(--color-error-light);
    color: var(--color-error-text);
    border-color: var(--color-error-border);
}

/* --- Stats --- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Empty States --- */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-inline {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* ==========================================================================
   Public Scheduling Form
   ========================================================================== */

.public-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.public-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.public-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- Date Groups --- */

.schedule-grid {
    margin-bottom: 2rem;
}

.date-group {
    margin-bottom: 1.5rem;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.date-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.location-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Slot Cards --- */

.slots-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.slot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.slot-card:hover {
    border-color: var(--color-primary-200);
    background: var(--color-primary-light);
}

.slot-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-card:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.slot-time {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.slot-remaining {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Booking Panel --- */

.booking-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0;
    margin-top: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.booking-panel.active {
    opacity: 1;
}

.booking-panel-inner {
    padding: 1.5rem;
}

.booking-panel h3 {
    margin-bottom: 0.25rem;
}

.booking-selection {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

/* --- Confirmation --- */

.confirmation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 2rem auto 0;
}

.confirmation-icon {
    width: 4rem;
    height: 4rem;
    background: var(--color-success-light);
    color: var(--color-success);
    border: 2px solid var(--color-success-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.confirmation-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.confirmation-details {
    text-align: left;
    margin: 1.5rem 0;
    background: var(--bg-card-header);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-row {
    display: flex;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-weight: 500;
    color: var(--text);
}

.confirmation-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* --- Events Grid (home) --- */

.events-grid {
    display: grid;
    gap: 1rem;
}

.event-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    border-color: var(--color-primary-200);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.event-card h3 {
    margin-bottom: 0.25rem;
}

.event-card .btn-text {
    margin-top: 0.75rem;
    display: inline-block;
}

/* ==========================================================================
   Admin Layout
   ========================================================================== */

.admin-layout {
    background: var(--bg);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand a {
    text-decoration: none;
    color: inherit;
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.sidebar-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 0.125rem;
}

.sidebar-link:hover {
    background: var(--bg-muted);
    color: var(--text);
    text-decoration: none;
}

.sidebar-link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
    max-width: 1100px;
}

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

.admin-header h1 {
    font-size: 1.5rem;
}

/* --- Event Meta --- */

.event-meta {
    margin-bottom: 1.5rem;
}

.event-meta code {
    background: var(--bg-muted);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* --- Slot Form --- */

.slot-form .form-row {
    align-items: end;
}

/* --- Slot Preview --- */

.slot-preview {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.slot-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.slot-preview-item {
    padding: 0.25rem 0.625rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* --- Booking Chips --- */

.booking-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
}

.booking-chip + .booking-chip {
    border-top: 1px solid var(--border-light);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

/* --- Danger Zone --- */

.danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.danger-row + .danger-row {
    border-top: 1px solid var(--color-error-border);
}

.danger-row p {
    font-size: 0.8125rem;
}

/* --- Login --- */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-brand h1 {
    font-size: 1.5rem;
}

.login-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* --- Filter Form --- */

.filter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Scrollbar --- */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

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

@media (max-width: 768px) {
    .public-container { padding: 1.5rem 1rem 3rem; }
    .public-header h1 { font-size: 1.5rem; }

    .slot-card { min-width: 120px; }

    .confirmation-card { padding: 1.5rem; }
    .confirmation-actions { flex-direction: column; }
    .confirmation-actions .btn { width: 100%; }

    .detail-row { flex-direction: column; gap: 0.125rem; }
    .detail-label { width: auto; }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .table { font-size: 0.8125rem; }
    .table th, .table td { padding: 0.5rem 0.625rem; }

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

    .danger-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .slots-row { flex-direction: column; }
    .slot-card { min-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}
