@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --bg-sidebar: #080808;
    --primary: #7c5cfc;
    --primary-hover: #9b7eff;
    --primary-bg: rgba(124,92,252,.12);
    --danger: #ff4d4d;
    --danger-bg: rgba(255,77,77,.1);
    --success: #22c55e;
    --success-bg: rgba(34,197,94,.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245,158,11,.1);
    --text: #ffffff;
    --text-muted: #888888;
    --border: rgba(255,255,255,.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

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

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% -20%, #1a1030, var(--bg));
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(17,17,17,.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 36px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: .6;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.auth-brand h1 span { color: var(--primary); }

.auth-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all .2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,92,252,.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-sm { padding: 8px 16px; font-size: 12px; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #d97706; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255,77,77,.2);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34,197,94,.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245,158,11,.2);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

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

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-header h2 span { color: var(--primary); }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin: 12px 12px 6px;
    letter-spacing: .05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}

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

.nav-item.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-details .name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details .role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.top-bar h1 {
    font-size: 20px;
    font-weight: 600;
}

.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,92,252,.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .3s ease; }

/* ===== SUB-TABS ===== */
.sub-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

.sub-tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sub-tab-btn:hover { color: var(--text); }

.sub-tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,92,252,.3);
}

.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; animation: fadeIn .3s ease; }

/* ===== OPTION GROUP ===== */
.option-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-btn:hover {
    background: rgba(255,255,255,.05);
    color: var(--text);
}

.option-btn:has(input:checked) {
    background: var(--primary-bg);
    border-color: rgba(124,92,252,.4);
    color: var(--primary);
    font-weight: 600;
}

.option-btn input[type="radio"] {
    display: none;
}

/* ===== VIDEO RESULT ===== */
.result-card video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
    max-height: 240px;
    object-fit: contain;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== GENERATOR PANEL ===== */
.gen-panel {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.gen-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 0;
}

.gen-controls h3 {
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gen-controls textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color .2s;
    outline: none;
}

.gen-controls textarea:focus {
    border-color: var(--primary);
}

.aspect-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.aspect-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.aspect-btn:hover {
    background: rgba(255,255,255,.05);
    color: var(--text);
}

.aspect-btn.active {
    background: var(--primary-bg);
    border-color: rgba(124,92,252,.4);
    color: var(--primary);
    font-weight: 600;
}

.gen-results {
    min-height: 300px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,.4);
}

.result-card img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.result-card .card-info {
    padding: 12px;
}

.result-card .card-prompt {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.result-card .card-download {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* ===== LOADING ===== */
.gen-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.gen-loading.active { display: block; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 12px;
}

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

.gen-loading p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: .3;
}

.empty-state h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }

/* ===== ADMIN STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

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

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: rgba(255,255,255,.02);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .05em;
}

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

.data-table tr:hover td { background: rgba(255,255,255,.02); }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-blocked { background: var(--danger-bg); color: var(--danger); }
.badge-admin { background: var(--primary-bg); color: var(--primary); }

.actions {
    display: flex;
    gap: 6px;
}

/* ===== HISTORY GRID ===== */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    transition: color .2s;
}

.lightbox-close:hover { color: var(--primary); }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 13px;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    animation: slideIn .3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== FORM SECTION ===== */
.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

/* ===== SETTINGS CARD ===== */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 2px; top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all .2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gen-panel {
        grid-template-columns: 1fr;
    }

    .gen-controls {
        position: static;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .sidebar.open { transform: translateX(0); }

    .mobile-toggle {
        display: flex !important;
    }

    .top-bar {
        padding-left: 52px;
    }

    .results-grid,
    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .auth-card { padding: 32px 24px; }
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 90;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 50;
}

.mobile-overlay.active { display: block; }

/* ===== API SETTINGS GRID ===== */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.inline-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== CREDIT BAR ===== */
.credit-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.credit-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .05em;
}

.credit-value {
    color: var(--success);
    font-weight: 700;
    font-size: 15px;
}

/* ===== MODEL SELECTOR ===== */
.model-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.model-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    font-weight: 500;
}

.model-btn:hover {
    background: rgba(255,255,255,.05);
    color: var(--text);
}

.model-btn.active {
    background: var(--primary-bg);
    border-color: rgba(124,92,252,.4);
    color: var(--primary);
    font-weight: 600;
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    position: relative;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(124,92,252,.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.upload-placeholder svg { opacity: .4; }
.upload-placeholder p { font-size: 12px; }

.upload-preview {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    object-fit: contain;
}

.multi-upload-area {
    position: relative;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    min-height: 100px;
}

.multi-upload-area:hover {
    border-color: var(--primary);
}

.multi-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ===== QUEUE INFO ===== */
.queue-info {
    color: var(--primary);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* ===== SUB-TABS OVERFLOW ===== */
.sub-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.sub-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
}
