/* =========================================
   NEXUS DASHBOARD - Premium Light Theme
   ========================================= */

   @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

   :root {
     --primary: #21fe73;
     --primary-light: #EEF1FF;
     --primary-dark: #0ea345;
     --accent: #06C167;
     --accent-light: #E6FAF1;
     --danger: #F04E4E;
     --danger-light: #FEF0F0;
     --warning: #F59E0B;
     --warning-light: #FFFBEB;
     --info: #0EA5E9;
     --info-light: #E0F5FF;
     --purple: #8B5CF6;
     --purple-light: #F3EFFE;
   
     --bg-main: #F5F7FB;
     --bg-white: #FFFFFF;
     --bg-card: #FFFFFF;
     --sidebar-bg: #FFFFFF;
     --navbar-bg: #FFFFFF;
   
     --text-primary: #1A1D2E;
     --text-secondary: #6B7280;
     --text-muted: #9CA3AF;
   
     --border: #E8ECF2;
     --border-light: #F3F4F6;
   
     --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
     --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
     --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
     --shadow-card: 0 2px 12px rgba(79,110,247,0.08);
   
     --sidebar-width: 260px;
     --sidebar-collapsed: 70px;
     --navbar-height: 64px;
     --radius: 14px;
     --radius-sm: 8px;
     --radius-lg: 20px;
     --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
   }
   
   * { box-sizing: border-box; margin: 0; padding: 0; }
   
   body {
     font-family: 'Poppins', sans-serif;
     background: var(--bg-main);
     color: var(--text-primary);
     font-size: 14px;
     min-height: 100vh;
     overflow-x: hidden;
   }
   
   /* ─── SCROLLBAR ─── */
   ::-webkit-scrollbar { width: 5px; height: 5px; }
   ::-webkit-scrollbar-track { background: transparent; }
   ::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 99px; }
   
   /* ─── MARQUEE NEWS TICKER ─── */
   .news-ticker {
     background: var(--bg-white);
     border-bottom: 1px solid var(--border);
     height: 36px;
     display: flex;
     align-items: center;
     overflow: hidden;
     position: fixed;
     top: 0; left: 0; right: 0;
     z-index: 1060;
     box-shadow: var(--shadow-sm);
   }
   .ticker-label {
     background: var(--primary);
     color: #fff;
     font-size: 11px;
     font-weight: 600;
     padding: 0 14px;
     height: 100%;
     display: flex;
     align-items: center;
     white-space: nowrap;
     letter-spacing: 0.5px;
     flex-shrink: 0;
     gap: 6px;
   }
   .ticker-wrap {
     flex: 1;
     overflow: hidden;
     position: relative;
   }
   .ticker-content {
     display: flex;
     gap: 48px;
     white-space: nowrap;
     animation: tickerScroll 40s linear infinite;
     align-items: center;
     height: 36px;
   }
   .ticker-content:hover { animation-play-state: paused; }
   .ticker-item {
     color: var(--text-secondary);
     font-size: 12.5px;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     cursor: pointer;
     transition: var(--transition);
   }
   .ticker-item:hover { color: var(--primary); }
   .ticker-dot {
     width: 5px; height: 5px;
     border-radius: 50%;
     background: var(--primary);
     flex-shrink: 0;
   }
   @keyframes tickerScroll {
     0% { transform: translateX(0); }
     100% { transform: translateX(-50%); }
   }
   
   /* ─── NAVBAR ─── */
   .top-navbar {
     position: fixed;
     top: 36px; left: 0; right: 0;
     height: var(--navbar-height);
     background: var(--navbar-bg);
     border-bottom: 1px solid var(--border);
     z-index: 1050;
     display: flex;
     align-items: center;
     padding: 0 20px 0 0;
     box-shadow: var(--shadow-sm);
     transition: var(--transition);
   }
   .navbar-brand-area {
     width: var(--sidebar-width);
     display: flex;
     align-items: center;
     padding: 0 20px;
     gap: 10px;
     flex-shrink: 0;
     transition: var(--transition);
   }
   .brand-logo {
     width: 36px; height: 36px;
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #fff;
     font-size: 16px;
     font-weight: 700;
     flex-shrink: 0;
     box-shadow: 0 4px 12px rgba(79,110,247,0.3);
   }
   .brand-name {
     font-size: 16px;
     font-weight: 700;
     color: var(--text-primary);
     letter-spacing: -0.3px;
     transition: var(--transition);
   }
   .brand-name span { color: var(--primary); }
   .navbar-right {
     flex: 1;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
   }
   .sidebar-toggle-btn {
     background: none;
     border: none;
     cursor: pointer;
     color: var(--text-secondary);
     padding: 8px;
     border-radius: var(--radius-sm);
     transition: var(--transition);
     font-size: 18px;
     display: flex;
     align-items: center;
   }
   .sidebar-toggle-btn:hover {
     background: var(--primary-light);
     color: var(--primary);
   }
   .navbar-search {
     flex: 1;
     max-width: 340px;
     position: relative;
   }
   .navbar-search input {
     width: 100%;
     height: 38px;
     border: 1.5px solid var(--border);
     border-radius: 99px;
     padding: 0 16px 0 38px;
     font-size: 13px;
     font-family: 'Poppins', sans-serif;
     background: var(--bg-main);
     color: var(--text-primary);
     outline: none;
     transition: var(--transition);
   }
   .navbar-search input:focus {
     border-color: var(--primary);
     background: #fff;
     box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
   }
   .navbar-search .search-icon {
     position: absolute;
     left: 13px; top: 50%;
     transform: translateY(-50%);
     color: var(--text-muted);
     font-size: 13px;
   }
   .navbar-actions {
     display: flex;
     align-items: center;
     gap: 4px;
   }
   .nav-action-btn {
     width: 38px; height: 38px;
     border-radius: 10px;
     border: none;
     background: none;
     color: var(--text-secondary);
     cursor: pointer;
     font-size: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     transition: var(--transition);
   }
   .nav-action-btn:hover {
     background: var(--primary-light);
     color: var(--primary);
   }
   .nav-badge {
     position: absolute;
     top: 4px; right: 4px;
     width: 16px; height: 16px;
     background: var(--danger);
     border-radius: 50%;
     font-size: 9px;
     color: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 600;
     border: 2px solid #fff;
   }
   .navbar-user {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 6px 10px;
     border-radius: var(--radius);
     cursor: pointer;
     transition: var(--transition);
     border: 1.5px solid var(--border);
   }
   .navbar-user:hover { background: var(--bg-main); }
   .navbar-avatar {
     width: 32px; height: 32px;
     border-radius: 50%;
     object-fit: cover;
     background: linear-gradient(135deg, var(--primary), var(--purple));
     display: flex;
     align-items: center;
     justify-content: center;
     color: #fff;
     font-size: 13px;
     font-weight: 600;
     flex-shrink: 0;
   }
   .navbar-user-info { line-height: 1.2; }
   .navbar-user-name { font-size: 13px; font-weight: 600; }
   .navbar-user-role { font-size: 11px; color: var(--text-muted); }
   
   /* ─── SIDEBAR ─── */
   .sidebar {
     position: fixed;
     top: calc(36px + var(--navbar-height));
     left: 0;
     bottom: 0;
     width: var(--sidebar-width);
     background: var(--sidebar-bg);
     border-right: 1px solid var(--border);
     overflow-y: auto;
     overflow-x: hidden;
     z-index: 1040;
     transition: var(--transition);
     display: flex;
     flex-direction: column;
     padding-bottom: 20px;
   }
   .sidebar.collapsed {
     width: var(--sidebar-collapsed);
   }
   .sidebar-section-title {
     font-size: 10px;
     font-weight: 700;
     color: var(--text-muted);
     letter-spacing: 1.2px;
     text-transform: uppercase;
     padding: 20px 18px 6px;
     white-space: nowrap;
     overflow: hidden;
     transition: var(--transition);
   }
   .sidebar.collapsed .sidebar-section-title {
     opacity: 0;
     height: 0;
     padding: 0;
   }
   .nav-item-wrap { padding: 2px 10px; }
   .sidebar-link {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 10px 12px;
     border-radius: var(--radius-sm);
     color: var(--text-secondary);
     text-decoration: none;
     font-size: 13.5px;
     font-weight: 500;
     transition: var(--transition);
     cursor: pointer;
     white-space: nowrap;
     overflow: hidden;
     position: relative;
     user-select: none;
   }
   .sidebar-link:hover {
     background: var(--primary-light);
     color: var(--primary);
   }
   .sidebar-link.active {
     background: var(--primary-light);
     color: var(--primary);
     font-weight: 600;
   }
   .sidebar-link.active::before {
     content: '';
     position: absolute;
     left: 0; top: 4px; bottom: 4px;
     width: 3px;
     background: var(--primary);
     border-radius: 0 4px 4px 0;
     left: -2px;
   }
   .sidebar-icon {
     font-size: 17px;
     flex-shrink: 0;
     width: 20px;
     text-align: center;
   }
   .sidebar-label {
     flex: 1;
     transition: var(--transition);
     overflow: hidden;
   }
   .sidebar.collapsed .sidebar-label,
   .sidebar.collapsed .sidebar-chevron,
   .sidebar.collapsed .sidebar-badge {
     opacity: 0;
     width: 0;
     overflow: hidden;
   }
   .sidebar-chevron {
     font-size: 11px;
     color: var(--text-muted);
     transition: var(--transition);
     flex-shrink: 0;
   }
   .sidebar-link[aria-expanded="true"] .sidebar-chevron {
     transform: rotate(90deg);
     color: var(--primary);
   }
   .sidebar-badge {
     background: var(--primary);
     color: #fff;
     font-size: 10px;
     font-weight: 600;
     padding: 2px 7px;
     border-radius: 99px;
     flex-shrink: 0;
   }
   .sidebar-submenu {
     padding-left: 10px;
     overflow: hidden;
   }
   .sidebar-submenu .sidebar-link {
     font-size: 13px;
     padding: 8px 12px;
     color: var(--text-secondary);
   }
   .sidebar-submenu .sidebar-link .sidebar-icon {
     font-size: 13px;
   }
   .sidebar-footer {
     margin-top: auto;
     padding: 10px;
     border-top: 1px solid var(--border);
   }
   
   /* ─── MAIN CONTENT ─── */
   .main-content {
     margin-left: var(--sidebar-width);
     margin-top: calc(36px + var(--navbar-height));
     padding: 28px;
     min-height: calc(100vh - 36px - var(--navbar-height));
     transition: var(--transition);
   }
   .main-content.expanded {
     margin-left: var(--sidebar-collapsed);
   }
   
   /* ─── PAGE HEADER ─── */
   .page-header {
     margin-bottom: 24px;
   }
   .page-title {
     font-size: 22px;
     font-weight: 700;
     color: var(--text-primary);
     letter-spacing: -0.3px;
   }
   .page-subtitle {
     color: var(--text-secondary);
     font-size: 13px;
     margin-top: 2px;
   }
   .breadcrumb {
     background: none;
     padding: 0;
     margin: 0;
     font-size: 12px;
   }
   .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
   .breadcrumb-item a { color: var(--primary); text-decoration: none; }
   .breadcrumb-item.active { color: var(--text-muted); }
   
   /* ─── CARDS ─── */
   .card {
     background: var(--bg-card);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     box-shadow: var(--shadow-card);
     transition: var(--transition);
     overflow: hidden;
   }
   .card:hover {
     box-shadow: var(--shadow-md);
     transform: translateY(-2px);
   }
   .card-header {
     background: none;
     border-bottom: 1px solid var(--border-light);
     padding: 16px 20px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
   }
   .card-title {
     font-size: 15px;
     font-weight: 600;
     color: var(--text-primary);
     margin: 0;
   }
   .card-body { padding: 20px; }
   
   /* ─── STAT CARDS ─── */
   .stat-card {
     border-radius: var(--radius);
     padding: 22px;
     position: relative;
     overflow: hidden;
     cursor: default;
     border: 1px solid var(--border);
     background: var(--bg-white);
     box-shadow: var(--shadow-card);
     transition: var(--transition);
   }
   .stat-card:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-lg);
   }
   .stat-card .stat-icon {
     width: 48px; height: 48px;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 20px;
     margin-bottom: 14px;
   }
   .stat-card .stat-label {
     font-size: 12px;
     font-weight: 600;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.6px;
     margin-bottom: 6px;
   }
   .stat-card .stat-value {
     font-size: 24px;
     font-weight: 700;
     color: var(--text-primary);
     letter-spacing: -0.5px;
     line-height: 1;
     margin-bottom: 10px;
   }
   .stat-card .stat-trend {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     font-size: 12px;
     font-weight: 600;
     padding: 3px 8px;
     border-radius: 99px;
   }
   .stat-card .stat-trend.up { background: var(--accent-light); color: var(--accent); }
   .stat-card .stat-trend.down { background: var(--danger-light); color: var(--danger); }
   .stat-card .stat-deco {
     position: absolute;
     right: -10px; bottom: -10px;
     font-size: 80px;
     opacity: 0.04;
   }
   
   /* Color variants */
   .stat-card.blue .stat-icon { background: var(--primary-light); color: var(--primary); }
   .stat-card.green .stat-icon { background: var(--accent-light); color: var(--accent); }
   .stat-card.purple .stat-icon { background: var(--purple-light); color: var(--purple); }
   .stat-card.orange .stat-icon { background: var(--warning-light); color: var(--warning); }
   .stat-card.cyan .stat-icon { background: var(--info-light); color: var(--info); }
   .stat-card.red .stat-icon { background: var(--danger-light); color: var(--danger); }
   
   /* ─── USER CARD ─── */
   .user-profile-card {
     background: linear-gradient(135deg, var(--primary) 0%, #6C4EF6 100%);
     border-radius: var(--radius);
     padding: 28px 24px;
     color: #fff;
     position: relative;
     overflow: hidden;
     box-shadow: 0 8px 28px rgba(79,110,247,0.28);
     transition: var(--transition);
   }
   .user-profile-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(79,110,247,0.35); }
   .user-profile-card::before {
     content: '';
     position: absolute;
     top: -40px; right: -40px;
     width: 180px; height: 180px;
     border-radius: 50%;
     background: rgba(255,255,255,0.07);
   }
   .user-profile-card::after {
     content: '';
     position: absolute;
     bottom: -60px; left: -20px;
     width: 200px; height: 200px;
     border-radius: 50%;
     background: rgba(255,255,255,0.05);
   }
   .user-avatar-lg {
     width: 68px; height: 68px;
     border-radius: 50%;
     border: 3px solid rgba(255,255,255,0.35);
     background: rgba(255,255,255,0.2);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 26px;
     font-weight: 700;
     color: #fff;
     flex-shrink: 0;
     position: relative;
     z-index: 1;
   }
   .user-card-info { position: relative; z-index: 1; }
   .user-card-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
   .user-card-id { font-size: 12px; opacity: 0.75; margin-bottom: 12px; }
   .user-card-badges { display: flex; gap: 8px; flex-wrap: wrap; }
   .badge-pill {
     padding: 4px 12px;
     border-radius: 99px;
     font-size: 11px;
     font-weight: 600;
   }
   .badge-package {
     background: rgba(255,255,255,0.2);
     color: #fff;
     border: 1px solid rgba(255,255,255,0.3);
   }
   .badge-active {
     background: #22c55e;
     color: #fff;
   }
   .badge-inactive {
     background: #ef4444;
     color: #fff;
   }
   
   /* ─── REFERRAL CARD ─── */
   .referral-card {
     background: var(--bg-white);
     border-radius: var(--radius);
     padding: 22px;
     border: 1px solid var(--border);
     box-shadow: var(--shadow-card);
   }
   .referral-input-wrap {
     display: flex;
     gap: 8px;
     align-items: center;
   }
   .referral-input {
     flex: 1;
     height: 44px;
     border: 1.5px solid var(--border);
     border-radius: 10px;
     padding: 0 14px;
     font-size: 13px;
     font-family: 'Poppins', sans-serif;
     color: var(--text-primary);
     background: var(--bg-main);
     outline: none;
     transition: var(--transition);
   }
   .referral-input:focus { border-color: var(--primary); background: #fff; }
   
   /* ─── BUTTONS ─── */
   .btn-primary-custom {
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     color: #fff;
     border: none;
     border-radius: var(--radius-sm);
     padding: 10px 20px;
     font-size: 13px;
     font-weight: 600;
     font-family: 'Poppins', sans-serif;
     cursor: pointer;
     transition: var(--transition);
     display: inline-flex;
     align-items: center;
     gap: 7px;
     box-shadow: 0 4px 14px rgba(79,110,247,0.28);
   }
   .btn-primary-custom:hover {
     transform: translateY(-1px);
     box-shadow: 0 6px 20px rgba(79,110,247,0.38);
   }
   .btn-outline-custom {
     background: none;
     color: var(--primary);
     border: 1.5px solid var(--primary);
     border-radius: var(--radius-sm);
     padding: 9px 18px;
     font-size: 13px;
     font-weight: 600;
     font-family: 'Poppins', sans-serif;
     cursor: pointer;
     transition: var(--transition);
     display: inline-flex;
     align-items: center;
     gap: 7px;
   }
   .btn-outline-custom:hover {
     background: var(--primary-light);
   }
   .btn-icon {
     width: 38px; height: 38px;
     border-radius: var(--radius-sm);
     border: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 15px;
     transition: var(--transition);
   }
   .btn-icon.primary { background: var(--primary-light); color: var(--primary); }
   .btn-icon.primary:hover { background: var(--primary); color: #fff; }
   .btn-icon.success { background: var(--accent-light); color: var(--accent); }
   .btn-icon.success:hover { background: var(--accent); color: #fff; }
   .btn-icon.danger { background: var(--danger-light); color: var(--danger); }
   .btn-icon.danger:hover { background: var(--danger); color: #fff; }
   
   /* ─── TABLES ─── */
   .table-custom {
     width: 100%;
     border-collapse: collapse;
   }
   .table-custom thead th {
     background: var(--bg-main);
     color: var(--text-muted);
     font-size: 11px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.7px;
     padding: 12px 16px;
     border-bottom: 1px solid var(--border);
     white-space: nowrap;
   }
   .table-custom tbody td {
     padding: 14px 16px;
     border-bottom: 1px solid var(--border-light);
     color: var(--text-primary);
     font-size: 13px;
     vertical-align: middle;
   }
   .table-custom tbody tr:last-child td { border-bottom: none; }
   .table-custom tbody tr:hover td { background: var(--bg-main); }
   
   /* ─── STATUS BADGES ─── */
   .status-badge {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     padding: 4px 10px;
     border-radius: 99px;
     font-size: 11.5px;
     font-weight: 600;
   }
   .status-badge .dot {
     width: 6px; height: 6px;
     border-radius: 50%;
     flex-shrink: 0;
   }
   .status-badge.active { background: var(--accent-light); color: var(--accent); }
   .status-badge.active .dot { background: var(--accent); }
   .status-badge.inactive { background: var(--danger-light); color: var(--danger); }
   .status-badge.inactive .dot { background: var(--danger); }
   .status-badge.pending { background: var(--warning-light); color: var(--warning); }
   .status-badge.pending .dot { background: var(--warning); }
   
   /* ─── FORM STYLES ─── */
   .form-label-custom {
     font-size: 12.5px;
     font-weight: 600;
     color: var(--text-secondary);
     margin-bottom: 6px;
     display: block;
   }
   .form-control-custom {
     width: 100%;
     height: 44px;
     border: 1.5px solid var(--border);
     border-radius: 10px;
     padding: 0 14px;
     font-size: 13.5px;
     font-family: 'Poppins', sans-serif;
     color: var(--text-primary);
     background: var(--bg-white);
     outline: none;
     transition: var(--transition);
   }
   .form-control-custom:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
   }
   .form-control-custom::placeholder { color: var(--text-muted); }
   textarea.form-control-custom { height: auto; padding: 12px 14px; resize: vertical; }
   select.form-control-custom { cursor: pointer; }
   
   /* ─── AUTH PAGES ─── */
   .auth-wrapper {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     background: linear-gradient(135deg, #EEF1FF 0%, #F8F9FF 60%, #E8F5FF 100%);
     padding: 24px;
     position: relative;
     overflow: hidden;
   }
   .auth-wrapper::before {
     content: '';
     position: absolute;
     top: -100px; right: -100px;
     width: 400px; height: 400px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(79,110,247,0.08) 0%, transparent 70%);
   }
   .auth-wrapper::after {
     content: '';
     position: absolute;
     bottom: -80px; left: -80px;
     width: 300px; height: 300px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
   }
   .auth-card {
     background: #fff;
     border-radius: var(--radius-lg);
     box-shadow: 0 20px 60px rgba(79,110,247,0.12);
     padding: 40px;
     width: 100%;
     max-width: 440px;
     position: relative;
     z-index: 1;
     border: 1px solid rgba(79,110,247,0.1);
   }
   .auth-logo {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     margin-bottom: 28px;
   }
   .auth-logo-icon {
     width: 44px; height: 44px;
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #fff;
     font-size: 20px;
     box-shadow: 0 4px 14px rgba(79,110,247,0.35);
   }
   .auth-logo-text { font-size: 20px; font-weight: 700; color: var(--text-primary); }
   .auth-logo-text span { color: var(--primary); }
   .auth-title {
     font-size: 22px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 6px;
     text-align: center;
   }
   .auth-subtitle {
     font-size: 13.5px;
     color: var(--text-secondary);
     text-align: center;
     margin-bottom: 28px;
   }
   .auth-divider {
     text-align: center;
     position: relative;
     margin: 20px 0;
     color: var(--text-muted);
     font-size: 12px;
   }
   .auth-divider::before, .auth-divider::after {
     content: '';
     position: absolute;
     top: 50%;
     width: calc(50% - 30px);
     height: 1px;
     background: var(--border);
   }
   .auth-divider::before { left: 0; }
   .auth-divider::after { right: 0; }
   
   /* ─── PAGINATION ─── */
   .pagination-custom {
     display: flex;
     gap: 4px;
     align-items: center;
   }
   .page-btn {
     min-width: 34px;
     height: 34px;
     border-radius: 8px;
     border: 1.5px solid var(--border);
     background: var(--bg-white);
     color: var(--text-secondary);
     font-size: 13px;
     font-weight: 500;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0 8px;
     transition: var(--transition);
     font-family: 'Poppins', sans-serif;
   }
   .page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
   .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
   .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
   
   /* ─── OVERLAY ─── */
   .sidebar-overlay {
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(0,0,0,0.4);
     z-index: 1039;
     backdrop-filter: blur(2px);
   }
   .sidebar-overlay.show { display: block; }
   
   /* ─── TOAST ─── */
   .toast-container {
     position: fixed;
     top: 110px;
     right: 20px;
     z-index: 9999;
     display: flex;
     flex-direction: column;
     gap: 10px;
   }
   .toast-item {
     background: var(--bg-white);
     border-radius: 12px;
     box-shadow: var(--shadow-lg);
     padding: 14px 18px;
     display: flex;
     align-items: center;
     gap: 12px;
     min-width: 280px;
     border-left: 4px solid var(--accent);
     animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
   }
   @keyframes slideIn {
     from { transform: translateX(100%); opacity: 0; }
     to { transform: translateX(0); opacity: 1; }
   }
   @keyframes fadeOut {
     to { opacity: 0; transform: translateX(100%); }
   }
   
   /* ─── RESPONSIVE ─── */
   @media (max-width: 991px) {
     .sidebar {
       transform: translateX(-100%);
       width: var(--sidebar-width) !important;
       box-shadow: var(--shadow-lg);
     }
     .sidebar.mobile-open {
       transform: translateX(0);
     }
     .main-content {
       margin-left: 0 !important;
     }
     .navbar-brand-area {
       width: auto;
     }
     .navbar-search {
       max-width: 200px;
     }
   }
   @media (max-width: 576px) {
     .main-content { padding: 16px; }
     .stat-card { padding: 16px; }
     .stat-card .stat-value { font-size: 20px; }
     .navbar-search { display: none; }
     .auth-card { padding: 28px 20px; }
   }
   
   /* ─── MISC ─── */
   .section-title {
     font-size: 13px;
     font-weight: 700;
     color: var(--text-muted);
     letter-spacing: 0.8px;
     text-transform: uppercase;
     margin-bottom: 14px;
   }
   .divider { height: 1px; background: var(--border-light); margin: 24px 0; }
   .text-primary-custom { color: var(--primary) !important; }
   .text-accent { color: var(--accent) !important; }
   .text-muted-custom { color: var(--text-muted); }
   .fw-600 { font-weight: 600; }
   .fw-700 { font-weight: 700; }
   .gap-10 { gap: 10px; }
   
   .input-group-custom {
     position: relative;
     display: flex;
     align-items: center;
   }
   .input-group-custom .input-icon {
     position: absolute;
     left: 13px;
     color: var(--text-muted);
     font-size: 14px;
     z-index: 1;
   }
   .input-group-custom .form-control-custom {
     padding-left: 38px;
   }
   .input-group-custom .input-icon-right {
     position: absolute;
     right: 13px;
     color: var(--text-muted);
     font-size: 14px;
     cursor: pointer;
     z-index: 1;
   }
   
   .progress-bar-custom {
     height: 6px;
     border-radius: 99px;
     background: var(--border);
     overflow: hidden;
   }
   .progress-bar-custom .bar {
     height: 100%;
     border-radius: 99px;
     background: linear-gradient(90deg, var(--primary), var(--purple));
     transition: width 1s ease;
   }
   
   .table-container {
     border-radius: var(--radius);
     border: 1px solid var(--border);
     overflow: hidden;
     background: var(--bg-white);
     box-shadow: var(--shadow-card);
   }
   
   /* Success page */
   .success-icon-wrap {
     width: 90px; height: 90px;
     border-radius: 50%;
     background: var(--accent-light);
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 20px;
     font-size: 42px;
     color: var(--accent);
     animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   }
   @keyframes popIn {
     0% { transform: scale(0); opacity: 0; }
     100% { transform: scale(1); opacity: 1; }
   }
   
   /* Tabs */
   .tab-nav {
     display: flex;
     gap: 4px;
     background: var(--bg-main);
     padding: 4px;
     border-radius: 10px;
     width: fit-content;
     margin-bottom: 20px;
   }
   .tab-btn {
     padding: 8px 18px;
     border-radius: 8px;
     border: none;
     background: none;
     color: var(--text-secondary);
     font-size: 13px;
     font-weight: 500;
     cursor: pointer;
     transition: var(--transition);
     font-family: 'Poppins', sans-serif;
   }
   .tab-btn.active {
     background: var(--bg-white);
     color: var(--primary);
     font-weight: 600;
     box-shadow: var(--shadow-sm);
   }
   
   /* Profile avatar upload */
   .avatar-upload-wrap {
     position: relative;
     width: fit-content;
   }
   .avatar-upload-btn {
     position: absolute;
     bottom: 2px; right: 2px;
     width: 28px; height: 28px;
     border-radius: 50%;
     background: var(--primary);
     color: #fff;
     border: 2px solid #fff;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 12px;
     transition: var(--transition);
   }
   .avatar-upload-btn:hover { background: var(--primary-dark); }