/* ═══════════════════════════════════════════════════════════
   PIGEON ADMIN — Slate Design System
   Palette: sidebar slate-900, teal-600 accent, slate-50 bg
═══════════════════════════════════════════════════════════ */

:root {
    /* Sidebar */
    --sidebar-bg:          #0F172A;
    --sidebar-border:      rgba(255,255,255,0.07);
    --nav-text:            #94A3B8;
    --nav-text-hover:      #F1F5F9;
    --nav-active-bg:       rgba(13,148,136,0.14);
    --nav-active-border:   #0D9488;
    --nav-active-text:     #5EEAD4;
    --sidebar-header-text: #F8FAFC;
    --sidebar-footer-text: #64748B;

    /* Accent teal */
    --primary-color:  #0D9488;
    --primary-dark:   #0F766E;
    --primary-light:  rgba(13,148,136,0.1);

    /* Content */
    --bg-color:      #F1F5F9;
    --card-bg:       #FFFFFF;
    --border-color:  #E2E8F0;

    /* Typography */
    --text-primary:   #0F172A;
    --text-secondary: #64748B;
    --text-muted:     #94A3B8;

    /* Feedback */
    --success-color: #16A34A;
    --error-color:   #DC2626;
    --warning-color: #D97706;
    --info-color:    #0369A1;

    /* Dimensions */
    --sidebar-width: 240px;
    --radius-sm:     6px;
    --radius-md:     8px;
    --radius-lg:     12px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ── Screens ──────────────────────────────────────────────── */
.screen          { display: none; }
.screen.active   { display: block; }

/* ── Login ────────────────────────────────────────────────── */
#login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0D9488 150%);
    padding: 2rem;
}

.login-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 100%;
}

.logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: block;
    border-radius: 16px;
}

#login-screen h1 {
    text-align: center;
    color: white;
    margin-bottom: 0.375rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#login-screen .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

/* ── Inputs ───────────────────────────────────────────────── */
.input-group           { margin-bottom: 1.25rem; }
.input-group label     { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.8125rem; color: var(--text-secondary); }

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: white;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-group select {
    cursor: pointer;
    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='%2364748B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.input-group textarea { resize: vertical; min-height: 90px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    width: 100%;
}

.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }

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

.btn-danger {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}
.btn-danger:hover { background: #B91C1C; }

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-sm {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Google button */
.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.btn-google .btn-text { display: flex; align-items: center; justify-content: center; }

/* Separator */
.separator {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}
.separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.separator span { padding: 0 0.875rem; color: var(--text-muted); font-size: 0.75rem; }

/* Auth panel toggle (login <-> signup) */
.auth-toggle {
    text-align: center;
    margin-top: 1.125rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.auth-toggle a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.auth-toggle a:hover { text-decoration: underline; }

/* Error message */
.error-message {
    background: #FEF2F2;
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    border: 1px solid #FECACA;
}

/* ── Layout ───────────────────────────────────────────────── */
#dashboard-screen { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sidebar-header img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-header h2 {
    color: var(--sidebar-header-text);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.625rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5625rem 0.75rem;
    color: var(--nav-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 1px;
    transition: background 0.15s, color 0.15s;
    font-size: 0.8125rem;
    font-weight: 450;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--nav-text-hover);
}

.nav-item.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
    border-left-color: var(--nav-active-border);
    font-weight: 500;
}

.nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
}

.user-info {
    font-size: 0.75rem;
    color: var(--sidebar-footer-text);
    margin-bottom: 0.625rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#backend-version {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--sidebar-border);
    font-size: 0.6875rem;
    color: #475569;
}

/* ── Main content ─────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 1.75rem 2rem;
    min-height: 100vh;
}

#content-area { max-width: 1320px; }

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

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

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary { background: rgba(13,148,136,0.1);  color: var(--primary-color); }
.stat-icon.success { background: rgba(22,163,74,0.1);   color: var(--success-color); }
.stat-icon.warning { background: rgba(217,119,6,0.1);   color: var(--warning-color); }
.stat-icon.accent  { background: rgba(14,165,233,0.1);  color: #0EA5E9; }
.stat-icon.error   { background: rgba(220,38,38,0.1);   color: var(--error-color); }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* stat-card via stat-content (dashboard) */
.stat-content h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.stat-content p  { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Tables ───────────────────────────────────────────────── */
.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead { background: var(--bg-color); }

th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-primary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-error   { background: #FEE2E2; color: #DC2626; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-info    { background: #DBEAFE; color: #1D4ED8; }
.badge-primary { background: var(--primary-light); color: var(--primary-color); }

/* ── Loading ──────────────────────────────────────────────── */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.loading::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 1rem auto 0;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    margin: 0 auto 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.6;
}

.empty-state p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Toggle Switch ────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #CBD5E1;
    transition: 0.25s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider                 { background: var(--primary-color); }
input:checked + .slider:before          { transform: translateX(16px); }
.switch.admin input:checked + .slider   { background: var(--warning-color); }

/* ── Utilities ────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }

/* ═══════════════════════════════════════════════════════════
   RÔLES ET BADGES
═══════════════════════════════════════════════════════════ */
.role-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   LIVE INDICATOR
═══════════════════════════════════════════════════════════ */
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ═══════════════════════════════════════════════════════════
   MEMBER CARDS (host-dashboard)
═══════════════════════════════════════════════════════════ */
.member-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.member-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.member-info    { flex: 1; min-width: 0; }
.member-name    { font-weight: 600; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-email   { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    align-items: center;
}

.status-dot          { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-online       { background: var(--success-color); box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
.status-offline      { background: #CBD5E1; }

/* ═══════════════════════════════════════════════════════════
   ACTIVITÉ (host-dashboard)
═══════════════════════════════════════════════════════════ */
.activity-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
}
.activity-row:last-child { border-bottom: none; }
.activity-name { font-weight: 600; min-width: 90px; color: var(--text-primary); }
.activity-file { flex: 1; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-size { color: var(--text-muted); white-space: nowrap; }
.activity-time { color: var(--text-muted); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   TRANSFERS FEED
═══════════════════════════════════════════════════════════ */
.transfers-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.transfers-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

.transfer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.12s;
}
.transfer-card:hover   { box-shadow: var(--shadow-sm); }
.transfer-card.uploading { border-left-color: #3B82F6; }
.transfer-card.encoding  { border-left-color: #F59E0B; }
.transfer-card.done      { border-left-color: var(--success-color); }
.transfer-card.error     { border-left-color: var(--error-color); }
.transfer-card.paused    { border-left-color: #94A3B8; }

.transfer-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.transfer-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.transfer-info     { flex: 1; min-width: 0; }

.transfer-filename {
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.transfer-meta {
    display: flex;
    gap: 0.625rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    align-items: center;
}

.transfer-user  { font-weight: 600; color: var(--primary-color); }
.transfer-speed { color: #3B82F6; font-weight: 600; }

.transfer-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.transfer-expiry {
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Progress bar */
.progress-bar-track {
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Boutons de mode de groupement */
.btn-group-mode { color: var(--text-secondary); }
.btn-group-mode.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Groupes batch */
.batch-group {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.batch-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-color);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.batch-group-header:hover { background: #E2E8F0; }

.batch-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.batch-chevron.open { transform: rotate(90deg); }

.batch-date   { font-weight: 600; font-size: 0.8rem; color: var(--text-primary); white-space: nowrap; }
.batch-user   { font-size: 0.8rem; color: var(--primary-color); font-weight: 500; white-space: nowrap; }
.batch-count  { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }
.batch-sep    { color: var(--border-color); font-size: 0.75rem; }

.batch-status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.batch-status-badge.done      { background: #DCFCE7; color: #16A34A; }
.batch-status-badge.uploading { background: #DBEAFE; color: #2563EB; }
.batch-status-badge.error     { background: #FEE2E2; color: #DC2626; }

.btn-batch-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-batch-action:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}
.btn-batch-action.btn-batch-delete:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FECACA;
}

.batch-notes-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    background: #FFFBEB;
    border-bottom: 1px solid #FDE68A;
}
.batch-notes-header svg { opacity: 0.6; flex-shrink: 0; }

.batch-events .transfer-card {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}
.batch-events .transfer-card:last-child { border-bottom: none; }

.transfer-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}
.transfer-notes svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.6;
}

.transfer-group-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0 0.35rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}
.transfer-group-header:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
        z-index: 100;
    }
    .sidebar.open     { transform: translateX(0); }
    .main-content     { margin-left: 0; padding: 1rem; }
    .stats-grid       { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING PAGE
═══════════════════════════════════════════════════════════ */

#pricing-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    overflow-y: auto;
}

.pricing-wrapper {
    width: 100%;
    max-width: 900px;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
}

.pricing-subtitle {
    font-size: 1.05rem;
    color: #94A3B8;
    margin: 0 0 1.25rem;
}

.pricing-user-bar {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
}

.pricing-user-bar span {
    font-size: 0.85rem;
    color: #94A3B8;
}

.pricing-logout-btn {
    font-size: 0.8rem;
    color: #CBD5E1;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pricing-logout-btn:hover { background: rgba(255,255,255,0.14); }

/* Cards grid */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Card */
.pricing-card {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pricing-card-group {
    border-color: rgba(13,148,136,0.4);
    box-shadow: 0 0 0 1px rgba(13,148,136,0.15);
}

.pricing-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #0D9488, #0F766E);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-card-header { margin-bottom: 1.5rem; }

.pricing-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pricing-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 0.35rem;
}

.pricing-card-desc {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

/* Price */
.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1;
}

.pricing-period {
    font-size: 0.95rem;
    color: #64748B;
}

/* Seat selector */
.pricing-seat-selector {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seat-label {
    font-size: 0.8rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seat-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seat-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #F8FAFC;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.seat-btn:hover { background: rgba(255,255,255,0.12); }

.seat-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
    min-width: 2rem;
    text-align: center;
}

.seat-price-detail {
    font-size: 0.8rem;
    color: #0D9488;
    font-weight: 500;
}

/* Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #CBD5E1;
}

.pricing-check {
    color: #0D9488;
    font-weight: 700;
    flex-shrink: 0;
}

/* Input */
.pricing-group-fields { margin-bottom: 1rem; }

.pricing-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #F8FAFC;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pricing-input::placeholder { color: #475569; }
.pricing-input:focus { border-color: #0D9488; }

/* Buttons */
.pricing-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 0.75rem;
}
.pricing-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.pricing-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pricing-btn-primary {
    background: linear-gradient(135deg, #0D9488, #0F766E);
    color: white;
    box-shadow: 0 4px 20px rgba(13,148,136,0.35);
}

.pricing-btn-group {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.pricing-note {
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    margin: 0;
}

/* Footer */
.pricing-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #475569;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 680px) {
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-title { font-size: 1.5rem; }
    .pricing-amount { font-size: 2.25rem; }
}
