        :root {
            --primary-50: #f0f9ff;
            --primary-100: #e0f2fe;
            --primary-200: #bae6fd;
            --primary-300: #7dd3fc;
            --primary-400: #38bdf8;
            --primary-500: #0ea5e9;
            --primary-600: #0284c7;
            --primary-700: #0369a1;
            --primary-800: #075985;
            --primary-900: #0c4a6e;
            --accent-300: #fcd34d;
            --accent-400: #fbbf24;
            --accent-500: #f59e0b;
            --accent-600: #d97706;
            --slate-50: #f8fafc;
            --slate-100: #f1f5f9;
            --slate-200: #e2e8f0;
            --slate-300: #cbd5e1;
            --slate-400: #94a3b8;
            --slate-500: #64748b;
            --slate-600: #475569;
            --slate-700: #334155;
            --slate-800: #1e293b;
            --slate-900: #0f172a;
            --radius-sm: 6px;
            --radius-base: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
            --shadow-base: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
            --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
            --shadow-xl: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
            --transition-fast: 0.15s ease;
            --transition-base: 0.25s ease;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: var(--slate-50);
            color: var(--slate-800);
            line-height: 1.5;
        }

        /* ===== LAYOUT ===== */
        .admin-layout {
            display: flex;
            min-height: 100vh;
        }

        /* ===== SIDEBAR ===== */
        .admin-sidebar {
            width: 260px;
            background: var(--slate-900);
            color: white;
            display: flex;
            flex-direction: column;
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            z-index: 1000;
            z-index: 100;
            transition: transform var(--transition-base);
        }

        .sidebar-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: white;
        }

        .sidebar-brand img {
            width: auto;
            height: 48px;
            max-width: 56px;
            object-fit: contain;
            border-radius: var(--radius-base);
        }

        .sidebar-brand span {
            font-size: 1.125rem;
            font-weight: 700;
        }

        .sidebar-nav {
            flex: 1;
            padding: 1rem 0.75rem;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }

        .nav-section {
            margin-bottom: 1.5rem;
        }

        .nav-section-title {
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--slate-500);
            padding: 0 0.75rem;
            margin-bottom: 0.5rem;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.625rem 0.875rem;
            border-radius: var(--radius-base);
            color: var(--slate-400);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast);
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .nav-item:hover {
            background: rgba(255,255,255,0.06);
            color: white;
        }

        .nav-item.active {
            background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
            color: white;
            box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
        }

        .nav-item i {
            width: 20px;
            text-align: center;
            font-size: 0.9375rem;
        }

        .sidebar-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        .sidebar-user {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .sidebar-user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.875rem;
        }

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

        .sidebar-user-name {
            font-size: 0.875rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-user-role {
            font-size: 0.75rem;
            color: var(--slate-500);
        }

        /* ===== MAIN ===== */
        .admin-main {
            flex: 1;
            margin-left: 260px;
            display: flex;
            flex-direction: column;
        }
        body.sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }
        body.sidebar-collapsed .admin-main { margin-left: 0; }

        .admin-header {
            background: white;
            border-bottom: 1px solid var(--slate-200);
            padding: 0.875rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--slate-600);
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem;
        }
        .desktop-toggle { display: inline-flex; }

        .header-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--slate-800);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .header-btn {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-base);
            border: 1px solid var(--slate-200);
            background: white;
            color: var(--slate-500);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            position: relative;
        }

        .header-btn:hover {
            background: var(--slate-50);
            border-color: var(--slate-300);
            color: var(--slate-700);
        }

        .header-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent-500);
            color: white;
            font-size: 0.625rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
        }

        .admin-content {
            flex: 1;
            padding: 1.5rem;
            max-width: 1400px;
            background: linear-gradient(180deg, var(--slate-50) 0%, #fff9f0 40%, var(--slate-50) 100%);
            min-height: 100vh;
        }

        /* ===== CARDS ===== */
        .card {
            background: white;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            position: relative;
        }

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

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

        .card-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--slate-800);
        }

        .card-body {
            padding: 1.5rem;
        }

        .card-body.p0 {
            padding: 0;
        }

        /* ===== STAT CARDS ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: white;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-lg);
            padding: 1.25rem;
            box-shadow: var(--shadow-sm);
            transition: all var(--transition-fast);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
            opacity: 0;
            transition: opacity var(--transition-fast);
        }

        .stat-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
            border-color: var(--accent-300);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

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

        .stat-label {
            font-size: 0.875rem;
            color: var(--slate-500);
            font-weight: 500;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-base);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
        }

        .stat-icon.blue { background: var(--primary-50); color: var(--primary-600); }
        .stat-icon.green { background: #f0fdf4; color: #16a34a; }
        .stat-icon.yellow { background: #fffbeb; color: var(--accent-600); }
        .stat-icon.orange { background: #fff7ed; color: #ea580c; }

        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--slate-800);
            margin-bottom: 0.25rem;
        }

        .stat-change {
            font-size: 0.8125rem;
            font-weight: 500;
        }

        .stat-change.up { color: #16a34a; }
        .stat-change.down { color: #ea580c; }

        /* ===== QUICK ACTIONS ===== */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .quick-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1.25rem;
            background: white;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-lg);
            color: var(--slate-600);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast);
            text-decoration: none;
        }

        .quick-action-btn:hover {
            border-color: var(--accent-400);
            color: var(--accent-600);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
            transform: translateY(-2px);
        }

        .quick-action-btn:hover i {
            color: var(--accent-500);
        }

        .quick-action-btn i {
            font-size: 1.25rem;
        }

        /* ===== TABLES ===== */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.875rem;
        }

        .data-table th {
            text-align: left;
            padding: 0.875rem 1.25rem;
            font-weight: 600;
            color: var(--slate-500);
            background: var(--slate-50);
            border-bottom: 1px solid var(--slate-200);
            white-space: nowrap;
        }

        .data-table td {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--slate-100);
            vertical-align: middle;
        }

        .data-table tr:hover td {
            background: var(--slate-50);
        }

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

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

        .table-top-scrollbar {
            display: none;
            overflow-x: auto;
            overflow-y: hidden;
            border-bottom: 1px solid var(--slate-100);
            background: var(--slate-50);
        }

        .table-top-scrollbar-inner {
            height: 1px;
        }

        /* ===== BADGES ===== */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.25rem 0.625rem;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 600;
        }

        .badge-green { background: #dcfce7; color: #166534; }
        .badge-yellow { background: #fef9c3; color: #854d0e; }
        .badge-red { background: #fee2e2; color: #991b1b; }
        .badge-gray { background: var(--slate-100); color: var(--slate-600); }
        .badge-blue { background: var(--primary-50); color: var(--primary-700); }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-base);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast);
            border: none;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
        }

        .btn-primary:hover {
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
            transform: translateY(-1px);
        }

        .btn-outline {
            background: white;
            border: 1px solid var(--slate-200);
            color: var(--slate-600);
        }

        .btn-outline:hover {
            border-color: var(--slate-300);
            background: var(--slate-50);
        }

        .btn-ghost {
            background: transparent;
            color: var(--slate-500);
        }

        .btn-ghost:hover {
            background: var(--slate-100);
            color: var(--slate-700);
        }

        .btn-sm {
            padding: 0.375rem 0.75rem;
            font-size: 0.8125rem;
        }

        .btn-icon {
            width: 32px;
            height: 32px;
            padding: 0;
            justify-content: center;
        }

        /* ===== EMPTY STATE ===== */
        .empty-state {
            text-align: center;
            padding: 3rem 1.5rem;
            color: var(--slate-400);
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.4;
        }

        /* ===== SECTIONS ===== */
        .section-header {
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--slate-200);
            position: relative;
        }

        .section-header::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 80px;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
            border-radius: 2px;
        }

        .section-header h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--slate-800);
        }

        .section-header p {
            color: var(--slate-500);
            margin-top: 0.25rem;
        }

        .demo-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.25rem 0.625rem;
            background: var(--primary-50);
            color: var(--primary-700);
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-base);
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 0.75rem;
        }

        /* ===== PAGE TRANSITIONS ===== */
        .page-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .page-section.active {
            display: block;
        }

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

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .quick-actions { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .admin-sidebar {
                transform: translateX(-100%);
            }
            .admin-sidebar.open {
                transform: translateX(0);
            }
            .admin-main {
                margin-left: 0;
            }
            .mobile-toggle {
                display: block;
            }
            .desktop-toggle {
                display: none;
            }
            .stats-grid { grid-template-columns: 1fr; }
            .quick-actions { grid-template-columns: repeat(2, 1fr); }
            .admin-content { padding: 1rem; }
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 200;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .modal-container {
            background: white;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            width: 100%;
            max-width: 560px;
            max-height: 90vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: scale(0.95);
            transition: transform 0.2s ease;
        }

        .modal-overlay.show .modal-container {
            transform: scale(1);
        }

        .modal-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--slate-100);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-header h3 {
            font-size: 1.125rem;
            font-weight: 600;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-base);
            border: none;
            background: var(--slate-100);
            color: var(--slate-500);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }

        .modal-close:hover {
            background: var(--slate-200);
            color: var(--slate-700);
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex: 1;
        }

        .modal-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--slate-100);
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        /* ===== Batch Upload Editor ===== */
        .batch-modal {
            max-width: 1220px;
            width: calc(100vw - 64px);
        }
        .batch-editor-wrap {
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-base);
            overflow: auto;
            max-height: 420px;
            background: #fff;
        }
        .batch-editor-table {
            width: 100%;
            min-width: 1120px;
            border-collapse: collapse;
            font-size: 0.8125rem;
        }
        .batch-editor-table th,
        .batch-editor-table td {
            border-bottom: 1px solid var(--slate-100);
            padding: 0.5rem;
            white-space: nowrap;
        }
        .batch-editor-table th {
            position: sticky;
            top: 0;
            background: var(--slate-50);
            z-index: 1;
        }
        .batch-editor-table input,
        .batch-editor-table select {
            min-width: 84px;
            padding: 0.375rem 0.5rem;
            border: 1px solid var(--slate-200);
            border-radius: 6px;
            font-size: 0.8125rem;
        }
        .batch-editor-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin: 0.75rem 0;
        }
        .batch-editor-toolbar-right {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

                .rate-hub-filters {
            display: grid;
            grid-template-columns: 1fr 140px 140px 140px auto;
            gap: 0.5rem;
            align-items: center;
            width: 100%;
        }
        .rate-hub-layout {
            display: flex;
            flex-direction: column;
            gap: 0.875rem;
            min-height: 700px;
        }
        .rate-hub-top-row {
            display: grid;
            grid-template-columns: minmax(220px, 28%) minmax(360px, 72%);
            gap: 0.875rem;
            align-items: stretch;
        }
        .rate-hub-panel {
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-lg);
            background: #fff;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .rate-hub-top-panel {
            min-height: 320px;
            max-height: 360px;
        }
        .rate-hub-detail-panel {
            min-height: 520px;
        }
        .rate-hub-panel-header {
            padding: 0.75rem 0.875rem;
            border-bottom: 1px solid var(--slate-100);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
        }
        .rate-hub-panel-title {
            font-weight: 600;
            color: var(--slate-700);
            font-size: 0.875rem;
        }
        .rate-hub-list {
            overflow: auto;
            padding: 0.5rem;
            flex: 1;
        }
        .rate-hub-list-item {
            border: 1px solid var(--slate-200);
            border-radius: 10px;
            padding: 0.625rem 0.75rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: all var(--transition-fast);
            background: #fff;
        }
        .rate-hub-list-item:hover {
            border-color: var(--primary-300);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        }
        .rate-hub-list-item.active {
            border-color: var(--primary-500);
            background: #eff6ff;
        }
        .rate-hub-file-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #ecfdf5;
            color: #047857;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.625rem;
            flex-shrink: 0;
        }
        .rate-detail-wrap {
            overflow: auto;
            flex: 1;
        }
        .sync-top-scrollbar {
            display: none;
            overflow-x: auto;
            overflow-y: hidden;
            border-bottom: 1px solid var(--slate-100);
            background: #f8fafc;
        }
        .sync-top-scrollbar-inner {
            height: 1px;
        }
        .rate-detail-table {
            width: 100%;
            min-width: 860px;
            border-collapse: collapse;
            font-size: 0.8125rem;
        }
        .rate-detail-table th,
        .rate-detail-table td {
            border-bottom: 1px solid var(--slate-100);
            padding: 0.4rem 0.45rem;
            white-space: nowrap;
        }
        .rate-detail-table th {
            position: sticky;
            top: 0;
            background: #f8fafc;
            z-index: 2;
        }
        .rate-detail-table input,
        .rate-detail-table select {
            min-width: 72px;
            padding: 0.3125rem 0.4rem;
            border: 1px solid var(--slate-200);
            border-radius: 6px;
            font-size: 0.8125rem;
        }
        .rate-check-col {
            width: 44px;
            text-align: center;
        }
        .rate-row-pending-delete {
            background: #f8fafc;
            opacity: 0.66;
        }
        .rate-pending-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.1rem 0.4rem;
            border-radius: 9999px;
            font-size: 0.6875rem;
            color: #9a3412;
            background: #ffedd5;
            border: 1px solid #fed7aa;
        }
        .rate-detail-toolbar {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            align-items: center;
        }
        @media (max-width: 1240px) {
            .rate-hub-top-row { grid-template-columns: 1fr; }
            .rate-hub-top-panel { max-height: none; min-height: 260px; }
            .rate-hub-detail-panel { min-height: 460px; }
            .rate-hub-filters { grid-template-columns: 1fr 1fr; }
        }

/* ===== FORM ELEMENTS ===== */
        .form-group {
            margin-bottom: 1rem;
        }

        .form-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--slate-600);
            margin-bottom: 0.375rem;
        }

        .form-input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-base);
            font-size: 0.875rem;
            font-family: inherit;
            transition: all var(--transition-fast);
            background: white;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-400);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .form-select {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-base);
            font-size: 0.875rem;
            font-family: inherit;
            background: white;
            cursor: pointer;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        @media (max-width: 640px) {
            .form-grid { grid-template-columns: 1fr; }
        }

        /* ===== TABS ===== */
        .tabs {
            display: flex;
            gap: 0.25rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--slate-200);
            padding-bottom: 0;
        }

        .tab-btn {
            padding: 0.625rem 1rem;
            border: none;
            background: transparent;
            color: var(--slate-500);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            transition: all var(--transition-fast);
        }

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

        .tab-btn.active {
            color: var(--primary-600);
            border-bottom-color: var(--primary-500);
        }

        /* ===== TOAST ===== */
        .toast-container {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 300;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .toast {
            padding: 0.875rem 1.25rem;
            border-radius: var(--radius-lg);
            font-size: 0.875rem;
            font-weight: 500;
            box-shadow: var(--shadow-xl);
            animation: slideIn 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .toast-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
        .toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

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

        /* Sidebar Overlay */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 999;
            transition: opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
        }
        .sidebar-overlay.active {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }