/* ============================================================
   PASARLSP AGGREGATOR - Design System
   Premium Dark Theme with Glass Morphism
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

   /* ============================================================
      CSS VARIABLES
      ============================================================ */
   :root {
       /* Primary Palette */
       --primary: #6C5CE7;
       --primary-light: #A29BFE;
       --primary-dark: #4A3FBF;
       --primary-glow: rgba(108, 92, 231, 0.3);
   
       /* Accent */
       --accent: #00CEC9;
       --accent-light: #81ECEC;
       --accent-dark: #00B5B0;
       --accent-glow: rgba(0, 206, 201, 0.3);
   
       /* Status Colors */
       --success: #00B894;
       --success-bg: rgba(0, 184, 148, 0.15);
       --warning: #FDCB6E;
       --warning-bg: rgba(253, 203, 110, 0.15);
       --danger: #E17055;
       --danger-bg: rgba(225, 112, 85, 0.15);
       --info: #74B9FF;
       --info-bg: rgba(116, 185, 255, 0.15);
   
       /* Neutrals - Dark Mode */
       --bg-primary: #0F0F1A;
       --bg-secondary: #161625;
       --bg-card: #1E1E30;
       --bg-card-hover: #252540;
       --bg-input: #1A1A2E;
       --bg-sidebar: #12121F;
   
       /* Glass */
       --glass-bg: rgba(30, 30, 48, 0.7);
       --glass-border: rgba(108, 92, 231, 0.2);
       --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
   
       /* Text */
       --text-primary: #F0F0F5;
       --text-secondary: #9B9BB5;
       --text-muted: #6B6B85;
       --text-light: #FFFFFF;
   
       /* Border */
       --border-color: rgba(255, 255, 255, 0.06);
       --border-active: rgba(108, 92, 231, 0.5);
   
       /* Spacing */
       --radius-sm: 8px;
       --radius-md: 12px;
       --radius-lg: 16px;
       --radius-xl: 24px;
       --radius-full: 50px;
   
       /* Typography */
       --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
       --font-display: 'Space Grotesk', sans-serif;
   
       /* Sidebar */
       --sidebar-width: 280px;
       --sidebar-collapsed: 80px;
   }
   
   /* ============================================================
      LIGHT MODE  – CSS Custom Property Overrides
      Applied on <html> and <body> for maximum compatibility.
      ============================================================ */
   html.light-mode,
   body.light-mode {
       /* Backgrounds */
       --bg-primary: #F4F6FB;
       --bg-secondary: #FFFFFF;
       --bg-card: #FFFFFF;
       --bg-card-hover: #F0F2F9;
       --bg-input: #F8F9FD;
       --bg-sidebar: #FFFFFF;
   
       /* Glass */
       --glass-bg: rgba(255, 255, 255, 0.85);
       --glass-border: rgba(108, 92, 231, 0.12);
       --glass-shadow: 0 8px 32px rgba(108, 92, 231, 0.08);
   
       /* Text */
       --text-primary: #1A1A2E;
       --text-secondary: #555570;
       --text-muted: #8E8EA8;
       --text-light: #1A1A2E;
   
       /* Border */
       --border-color: rgba(0, 0, 0, 0.07);
       --border-active: rgba(108, 92, 231, 0.35);
   
       /* Status */
       --success-bg: rgba(0, 184, 148, 0.09);
       --warning-bg: rgba(253, 203, 110, 0.12);
       --danger-bg: rgba(225, 112, 85, 0.09);
       --info-bg: rgba(116, 185, 255, 0.09);
   
       /* Glows (subtler on light background) */
       --primary-glow: rgba(108, 92, 231, 0.10);
       --accent-glow: rgba(0, 206, 201, 0.10);
   }
   
   /* ── Smooth theme transition (color-related only) ─────────── */
   body,
   .sidebar,
   .topbar,
   .main-content,
   .content-area,
   .stat-card,
   .data-card,
   .data-card-header,
   .glass-card,
   .flow-content,
   .login-card,
   .login-wrapper,
   .hero-section,
   .hero-badge,
   .section,
   .landing-nav,
   .landing-footer,
   .form-control,
   .alert,
   .badge,
   .chart-container,
   .sidebar-header,
   .sidebar-footer,
   .sidebar-nav a,
   .nav-section-label,
   .notif-btn,
   .btn-ghost,
   .btn-outline,
   .empty-state,
   .user-meta .user-name,
   .user-meta .user-role,
   .sidebar-header .role-badge,
   .topbar-left h2 {
       transition: background-color 0.35s ease,
                   color 0.35s ease,
                   border-color 0.35s ease,
                   box-shadow 0.35s ease;
   }
   
   /* ============================================================
      LIGHT MODE – Component-Level Overrides
      Elements with hardcoded rgba() that don't use variables.
      ============================================================ */
   
   /* ── Landing Navbar ───────────────────────────────────────── */
   body.light-mode .landing-nav {
       background: rgba(255, 255, 255, 0.92);
       border-bottom-color: rgba(0, 0, 0, 0.06);
   }
   
   /* ── Hero ──────────────────────────────────────────────────── */
   body.light-mode .hero-section::before {
       background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
   }
   body.light-mode .hero-section::after {
       background: radial-gradient(circle, rgba(0, 206, 201, 0.08) 0%, transparent 70%);
   }
   body.light-mode .hero-badge {
       background: rgba(108, 92, 231, 0.06);
       border-color: rgba(108, 92, 231, 0.15);
       color: var(--primary);
   }
   body.light-mode .price-tag {
       color: var(--accent-dark);
   }
   
   /* ── Buttons ──────────────────────────────────────────────── */
   body.light-mode .btn-ghost {
       background: rgba(108, 92, 231, 0.04);
       border-color: rgba(0, 0, 0, 0.08);
       color: var(--text-secondary);
   }
   body.light-mode .btn-ghost:hover {
       background: rgba(108, 92, 231, 0.08);
       color: var(--primary);
   }
   body.light-mode .btn-outline {
       border-color: var(--primary);
       color: var(--primary);
   }
   
   /* ── Sidebar ──────────────────────────────────────────────── */
   body.light-mode .sidebar {
       border-right-color: rgba(0, 0, 0, 0.06);
       box-shadow: 2px 0 20px rgba(0, 0, 0, 0.04);
   }
   body.light-mode .sidebar-header {
       border-bottom-color: rgba(0, 0, 0, 0.06);
   }
   body.light-mode .sidebar-header .role-badge {
       background: rgba(108, 92, 231, 0.07);
       border-color: rgba(108, 92, 231, 0.12);
       color: var(--primary);
   }
   body.light-mode .sidebar-nav a {
       color: var(--text-secondary);
   }
   body.light-mode .sidebar-nav a:hover {
       background: rgba(108, 92, 231, 0.05);
       color: var(--primary);
   }
   body.light-mode .sidebar-nav a.active {
       background: rgba(108, 92, 231, 0.08);
       border: 1px solid rgba(108, 92, 231, 0.12);
       color: var(--primary);
   }
   body.light-mode .sidebar-footer {
       border-top-color: rgba(0, 0, 0, 0.06);
   }
   
   /* ── Top Bar ──────────────────────────────────────────────── */
   body.light-mode .topbar {
       background: rgba(255, 255, 255, 0.88);
       backdrop-filter: blur(20px);
       border-bottom-color: rgba(0, 0, 0, 0.05);
   }
   body.light-mode .notif-btn {
       background: var(--bg-input);
   }
   
   /* ── Stat Cards ───────────────────────────────────────────── */
   body.light-mode .stat-card {
       box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
   }
   body.light-mode .stat-card:hover {
       box-shadow: 0 6px 20px rgba(108, 92, 231, 0.10);
   }
   
   /* ── Data Cards / Tables ──────────────────────────────────── */
   body.light-mode .data-card {
       box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
   }
   body.light-mode .data-card-header {
       border-bottom-color: rgba(0, 0, 0, 0.06);
   }
   body.light-mode .data-table th {
       background: rgba(108, 92, 231, 0.03);
       color: var(--primary);
       border-bottom-color: rgba(0, 0, 0, 0.06);
   }
   body.light-mode .data-table td {
       border-bottom-color: rgba(0, 0, 0, 0.04);
   }
   body.light-mode .data-table tbody tr:hover {
       background: rgba(108, 92, 231, 0.02);
   }
   
   /* ── Glass Cards ──────────────────────────────────────────── */
   body.light-mode .glass-card {
       background: rgba(255, 255, 255, 0.9);
       box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
   }
   body.light-mode .glass-card:hover {
       box-shadow: 0 8px 30px rgba(108, 92, 231, 0.10);
   }
   
   /* ── Flow Content ─────────────────────────────────────────── */
   body.light-mode .flow-content {
       background: rgba(255, 255, 255, 0.9);
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
   }
   
   /* ── Login / Register ─────────────────────────────────────── */
   body.light-mode .login-wrapper::before {
       background: radial-gradient(circle, rgba(108, 92, 231, 0.07), transparent 70%);
   }
   body.light-mode .login-wrapper::after {
       background: radial-gradient(circle, rgba(0, 206, 201, 0.07), transparent 70%);
   }
   body.light-mode .login-card {
       background: rgba(255, 255, 255, 0.92);
       box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
   }
   
   /* ── Form Controls ────────────────────────────────────────── */
   body.light-mode .form-control {
       border-color: rgba(0, 0, 0, 0.10);
   }
   body.light-mode .form-control:focus {
       border-color: var(--primary);
       box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.10);
   }
   
   /* ── Badges ───────────────────────────────────────────────── */
   body.light-mode .badge-primary {
       background: rgba(108, 92, 231, 0.08);
       color: var(--primary);
       border-color: rgba(108, 92, 231, 0.2);
   }
   
   /* ── Chart Container ──────────────────────────────────────── */
   body.light-mode .chart-container {
       box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
   }
   
   /* ── Scrollbar ────────────────────────────────────────────── */
   body.light-mode ::-webkit-scrollbar-track {
       background: #F0F0F5;
   }
   
   /* ── Empty State ──────────────────────────────────────────── */
   body.light-mode .empty-state i {
       opacity: 0.15;
   }
   
   /* ── Footer ───────────────────────────────────────────────── */
   body.light-mode .landing-footer {
       background: #FFFFFF;
       border-top-color: rgba(0, 0, 0, 0.06);
   }
   
   /* ── Overlay ──────────────────────────────────────────────── */
   body.light-mode .sidebar-overlay.active {
       background: rgba(0, 0, 0, 0.25);
   }
   
   /* ── [NEW] Landing Nav Active — Light Mode ────────────────── */
   body.light-mode .nav-links a.active {
       color: var(--primary);
   }
   body.light-mode .nav-links a.active::after {
       background: linear-gradient(90deg, var(--primary), var(--accent-dark));
   }
   
   
   /* ============================================================
      RESET & BASE
      ============================================================ */
   *,
   *::before,
   *::after {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
   }
   
   html {
       scroll-behavior: smooth;
       font-size: 16px;
   }
   
   body {
       font-family: var(--font-primary);
       background: var(--bg-primary);
       color: var(--text-primary);
       line-height: 1.6;
       overflow-x: hidden;
       -webkit-font-smoothing: antialiased;
       -moz-osx-font-smoothing: grayscale;
   }
   
   a {
       text-decoration: none;
       color: inherit;
       transition: all 0.3s ease;
   }
   
   img {
       max-width: 100%;
       height: auto;
   }
   
   /* ============================================================
      SCROLLBAR
      ============================================================ */
   ::-webkit-scrollbar {
       width: 6px;
   }
   ::-webkit-scrollbar-track {
       background: var(--bg-secondary);
   }
   ::-webkit-scrollbar-thumb {
       background: var(--primary);
       border-radius: 3px;
   }
   
   /* ── Theme Toggle Button Styles ────────────────────────────── */
   .theme-toggle i, #themeToggle i {
       display: inline-block;
       transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   }
   
   .theme-toggle:hover i, #themeToggle:hover i {
       transform: scale(1.15) rotate(15deg);
   }
   
   /* ============================================================
      LANDING PAGE
      ============================================================ */
   .landing-nav {
       position: fixed;
       top: 0;
       left: 0;
       right: 0;
       z-index: 1000;
       padding: 16px 40px;
       display: flex;
       align-items: center;
       justify-content: space-between;
       backdrop-filter: blur(20px);
       background: var(--glass-bg);
       border-bottom: 1px solid var(--border-color);
       transition: all 0.3s ease;
   }
   
   .landing-nav.scrolled {
       background: rgba(15, 15, 26, 0.95);
       border-bottom-color: var(--glass-border);
   }
   
   body.light-mode .landing-nav.scrolled {
       background: rgba(255, 255, 255, 0.97);
       border-bottom-color: rgba(0, 0, 0, 0.08);
   }
   
   .landing-nav .logo {
       font-family: var(--font-display);
       font-size: 1.8rem;
       font-weight: 700;
       background: linear-gradient(135deg, var(--primary-light), var(--accent));
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
   }
   
   .landing-nav .logo span {
       font-weight: 400;
       opacity: 0.7;
   }
   
   .nav-links {
       display: flex;
       align-items: center;
       gap: 32px;
       list-style: none;
   }
   
   .nav-links a {
       color: var(--text-secondary);
       font-weight: 500;
       font-size: 0.95rem;
       position: relative;
       padding: 8px 0;
   }
   
   .nav-links a::after {
       content: '';
       position: absolute;
       bottom: 0;
       left: 0;
       width: 0;
       height: 2px;
       background: linear-gradient(90deg, var(--primary), var(--accent));
       transition: width 0.3s ease;
   }
   
   .nav-links a:hover {
       color: var(--text-light);
   }
   
   .nav-links a:hover::after {
       width: 100%;
   }
   
   /* ── [NEW] Navbar Landing — Active State (Dark Mode) ─────────
      Membuat garis bawah aktif muncul permanen berdasarkan
      halaman saat ini (class .active ditambahkan via PHP/CI4).
      Tidak mengganggu hover effect yang sudah ada.
      ──────────────────────────────────────────────────────────── */
   .nav-links a.active {
       color: var(--text-light);
   }
   
   .nav-links a.active::after {
       width: 100%;
       background: linear-gradient(90deg, var(--primary), var(--accent));
   }
   
   
   /* ============================================================
      BUTTONS
      ============================================================ */
   .btn {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       padding: 10px 24px;
       border-radius: var(--radius-full);
       font-weight: 600;
       font-size: 0.9rem;
       border: none;
       cursor: pointer;
       transition: all 0.3s ease;
       font-family: var(--font-primary);
   }
   
   .btn-primary {
       background: linear-gradient(135deg, var(--primary), var(--primary-dark));
       color: white;
       box-shadow: 0 4px 15px var(--primary-glow);
   }
   
   .btn-primary:hover {
       transform: translateY(-2px);
       box-shadow: 0 8px 25px var(--primary-glow);
   }
   
   .btn-accent {
       background: linear-gradient(135deg, var(--accent), var(--accent-dark));
       color: white;
       box-shadow: 0 4px 15px var(--accent-glow);
   }
   
   .btn-accent:hover {
       transform: translateY(-2px);
       box-shadow: 0 8px 25px var(--accent-glow);
   }
   
   .btn-outline {
       background: transparent;
       border: 2px solid var(--primary);
       color: var(--primary-light);
   }
   
   .btn-outline:hover {
       background: var(--primary);
       color: white;
       transform: translateY(-2px);
   }
   
   .btn-ghost {
       background: rgba(255,255,255,0.05);
       color: var(--text-secondary);
       border: 1px solid var(--border-color);
   }
   
   .btn-ghost:hover {
       background: rgba(255,255,255,0.1);
       color: var(--text-light);
   }
   
   .btn-sm {
       padding: 6px 16px;
       font-size: 0.82rem;
   }
   
   .btn-lg {
       padding: 14px 36px;
       font-size: 1rem;
   }
   
   .btn-danger {
       background: linear-gradient(135deg, var(--danger), #c0392b);
       color: white;
   }
   
   .btn-success {
       background: linear-gradient(135deg, var(--success), #00a884);
       color: white;
   }
   
   .btn-warning {
       background: linear-gradient(135deg, var(--warning), #e7b549);
       color: #1a1a1a;
   }
   
   /* HERO */
   .hero-section {
       min-height: 100vh;
       display: flex;
       align-items: center;
       padding: 120px 40px 80px;
       position: relative;
       overflow: hidden;
   }
   
   .hero-section::before {
       content: '';
       position: absolute;
       top: -50%;
       right: -20%;
       width: 800px;
       height: 800px;
       background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
       animation: float 8s ease-in-out infinite;
   }
   
   .hero-section::after {
       content: '';
       position: absolute;
       bottom: -30%;
       left: -10%;
       width: 600px;
       height: 600px;
       background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
       animation: float 6s ease-in-out infinite reverse;
   }
   
   @keyframes float {
       0%, 100% { transform: translate(0, 0); }
       50% { transform: translate(30px, -30px); }
   }
   
   .hero-content {
       position: relative;
       z-index: 1;
       max-width: 700px;
   }
   
   .hero-badge {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       background: var(--glass-bg);
       border: 1px solid var(--glass-border);
       padding: 8px 20px;
       border-radius: var(--radius-full);
       font-size: 0.85rem;
       color: var(--accent-light);
       margin-bottom: 24px;
       backdrop-filter: blur(10px);
   }
   
   .hero-badge i {
       font-size: 1rem;
   }
   
   .hero-title {
       font-family: var(--font-display);
       font-size: clamp(2.5rem, 5vw, 4rem);
       font-weight: 800;
       line-height: 1.15;
       margin-bottom: 24px;
   }
   
   .hero-title .gradient-text {
       background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--primary-light) 100%);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
       background-size: 200% auto;
       animation: shimmer 3s ease-in-out infinite;
   }
   
   @keyframes shimmer {
       0% { background-position: 0% center; }
       50% { background-position: 100% center; }
       100% { background-position: 0% center; }
   }
   
   .hero-desc {
       font-size: 1.15rem;
       color: var(--text-secondary);
       line-height: 1.8;
       margin-bottom: 40px;
   }
   
   .hero-actions {
       display: flex;
       gap: 16px;
       flex-wrap: wrap;
   }
   
   /* SECTIONS */
   .section {
       padding: 100px 40px;
       position: relative;
   }
   
   .section-title {
       font-family: var(--font-display);
       font-size: 2.2rem;
       font-weight: 700;
       text-align: center;
       margin-bottom: 16px;
   }
   
   .section-subtitle {
       color: var(--text-secondary);
       text-align: center;
       max-width: 600px;
       margin: 0 auto 60px;
       font-size: 1.05rem;
   }
   
   /* CARDS */
   .card-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
       gap: 24px;
       max-width: 1200px;
       margin: 0 auto;
   }
   
   .glass {
       background: var(--glass-bg);
       border: 1px solid var(--glass-border);
       backdrop-filter: blur(20px);
       -webkit-backdrop-filter: blur(20px);
       box-shadow: var(--glass-shadow);
       transition: all 0.3s ease;
   }
   .glass:hover {
       border-color: var(--border-active);
       box-shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
   }
   
   .glass-card {
       background: var(--glass-bg);
       border: 1px solid var(--glass-border);
       border-radius: var(--radius-lg);
       padding: 32px;
       backdrop-filter: blur(20px);
       transition: all 0.4s ease;
       position: relative;
       overflow: hidden;
   }
   
   .glass-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       height: 3px;
       background: linear-gradient(90deg, var(--primary), var(--accent));
       opacity: 0;
       transition: opacity 0.3s ease;
   }
   
   .glass-card:hover {
       transform: translateY(-4px);
       border-color: var(--border-active);
       box-shadow: var(--glass-shadow);
   }
   
   .glass-card:hover::before {
       opacity: 1;
   }
   
   .card-icon {
       width: 56px;
       height: 56px;
       border-radius: var(--radius-md);
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 1.5rem;
       margin-bottom: 20px;
       background: linear-gradient(135deg, var(--primary), var(--primary-dark));
       color: white;
       box-shadow: 0 4px 15px var(--primary-glow);
   }
   
   .card-icon.accent {
       background: linear-gradient(135deg, var(--accent), var(--accent-dark));
       box-shadow: 0 4px 15px var(--accent-glow);
   }
   
   .glass-card h3 {
       font-size: 1.2rem;
       font-weight: 600;
       margin-bottom: 12px;
   }
   
   .glass-card p {
       color: var(--text-secondary);
       font-size: 0.93rem;
       line-height: 1.7;
   }
   
   .price-tag {
       font-family: var(--font-display);
       font-size: 1.5rem;
       font-weight: 700;
       color: var(--accent-light);
       margin-top: 16px;
   }
   
   /* FLOW SECTION */
   .flow-steps {
       max-width: 800px;
       margin: 0 auto;
       position: relative;
   }
   
   .flow-steps::before {
       content: '';
       position: absolute;
       left: 30px;
       top: 0;
       bottom: 0;
       width: 2px;
       background: linear-gradient(180deg, var(--primary), var(--accent));
   }
   
   .flow-step {
       display: flex;
       gap: 24px;
       margin-bottom: 40px;
       position: relative;
   }
   
   .flow-number {
       width: 60px;
       height: 60px;
       border-radius: 50%;
       background: linear-gradient(135deg, var(--primary), var(--accent));
       display: flex;
       align-items: center;
       justify-content: center;
       font-family: var(--font-display);
       font-weight: 700;
       font-size: 1.3rem;
       color: white;
       flex-shrink: 0;
       z-index: 1;
   }
   
   .flow-content {
       background: var(--glass-bg);
       border: 1px solid var(--glass-border);
       border-radius: var(--radius-md);
       padding: 24px;
       flex: 1;
       backdrop-filter: blur(10px);
   }
   
   .flow-content h4 {
       font-size: 1.1rem;
       font-weight: 600;
       margin-bottom: 8px;
   }
   
   .flow-content p {
       color: var(--text-secondary);
       font-size: 0.9rem;
   }
   
   /* FOOTER */
   .landing-footer {
       background: var(--bg-secondary);
       border-top: 1px solid var(--border-color);
       padding: 40px;
       text-align: center;
       color: var(--text-muted);
       font-size: 0.9rem;
   }
   
   /* ============================================================
      LOGIN PAGE
      ============================================================ */
   .login-wrapper {
       min-height: 100vh;
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 40px;
       position: relative;
       overflow: hidden;
   }
   
   .login-wrapper::before {
       content: '';
       position: absolute;
       width: 500px;
       height: 500px;
       background: radial-gradient(circle, var(--primary-glow), transparent 70%);
       top: -100px;
       right: -100px;
       animation: float 8s ease-in-out infinite;
   }
   
   .login-wrapper::after {
       content: '';
       position: absolute;
       width: 400px;
       height: 400px;
       background: radial-gradient(circle, var(--accent-glow), transparent 70%);
       bottom: -100px;
       left: -100px;
       animation: float 6s ease-in-out infinite reverse;
   }
   
   .login-card {
       background: var(--glass-bg);
       border: 1px solid var(--glass-border);
       border-radius: var(--radius-xl);
       padding: 48px;
       width: 100%;
       max-width: 440px;
       backdrop-filter: blur(30px);
       position: relative;
       z-index: 1;
       box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
   }
   
   .login-card .logo-area {
       text-align: center;
       margin-bottom: 36px;
   }
   
   .login-card .logo-area h1 {
       font-family: var(--font-display);
       font-size: 2rem;
       background: linear-gradient(135deg, var(--primary-light), var(--accent));
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
   }
   
   .login-card .logo-area p {
       color: var(--text-muted);
       font-size: 0.9rem;
       margin-top: 8px;
   }
   
   /* ============================================================
      FORM ELEMENTS
      ============================================================ */
   .form-group {
       margin-bottom: 20px;
   }
   
   .form-group label {
       display: block;
       font-size: 0.85rem;
       font-weight: 500;
       color: var(--text-secondary);
       margin-bottom: 8px;
   }
   
   .form-control {
       width: 100%;
       padding: 12px 16px;
       background: var(--bg-input);
       border: 1px solid var(--border-color);
       border-radius: var(--radius-sm);
       color: var(--text-primary);
       font-size: 0.95rem;
       font-family: var(--font-primary);
       transition: all 0.3s ease;
       outline: none;
   }
   
   .form-control:focus {
       border-color: var(--primary);
       box-shadow: 0 0 0 3px var(--primary-glow);
   }
   
   .form-control::placeholder {
       color: var(--text-muted);
   }
   
   select.form-control {
       appearance: none;
       background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239B9BB5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
       background-repeat: no-repeat;
       background-position: right 16px center;
       padding-right: 40px;
   }
   
   textarea.form-control {
       resize: vertical;
       min-height: 100px;
   }
   
   /* ============================================================
      ALERTS
      ============================================================ */
   .alert {
       padding: 14px 20px;
       border-radius: var(--radius-sm);
       font-size: 0.9rem;
       margin-bottom: 20px;
       display: flex;
       align-items: center;
       gap: 12px;
       animation: slideDown 0.3s ease;
   }
   
   @keyframes slideDown {
       from { opacity: 0; transform: translateY(-10px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   .alert-success {
       background: var(--success-bg);
       border: 1px solid rgba(0, 184, 148, 0.3);
       color: var(--success);
   }
   
   .alert-danger {
       background: var(--danger-bg);
       border: 1px solid rgba(225, 112, 85, 0.3);
       color: var(--danger);
   }
   
   .alert-warning {
       background: var(--warning-bg);
       border: 1px solid rgba(253, 203, 110, 0.3);
       color: var(--warning);
   }
   
   .alert-info {
       background: var(--info-bg);
       border: 1px solid rgba(116, 185, 255, 0.3);
       color: var(--info);
   }
   
   /* ============================================================
      DASHBOARD LAYOUT
      ============================================================ */
   .dashboard-layout {
       display: flex;
       min-height: 100vh;
   }
   
   /* SIDEBAR */
   .sidebar {
       width: var(--sidebar-width);
       background: var(--bg-sidebar);
       border-right: 1px solid var(--border-color);
       position: fixed;
       top: 0;
       left: 0;
       bottom: 0;
       z-index: 100;
       display: flex;
       flex-direction: column;
       transition: all 0.3s ease;
       overflow-y: auto;
   }
   
   .sidebar-header {
       padding: 24px 20px;
       border-bottom: 1px solid var(--border-color);
   }
   
   .sidebar-header .logo {
       font-family: var(--font-display);
       font-size: 1.5rem;
       font-weight: 700;
       background: linear-gradient(135deg, var(--primary-light), var(--accent));
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
   }
   
   .sidebar-header .role-badge {
       display: inline-block;
       margin-top: 8px;
       padding: 4px 12px;
       background: var(--primary-glow);
       border: 1px solid var(--glass-border);
       border-radius: var(--radius-full);
       font-size: 0.75rem;
       color: var(--primary-light);
       font-weight: 500;
   }
   
   .sidebar-nav {
       flex: 1;
       padding: 16px 12px;
   }
   
   .nav-section-label {
       font-size: 0.7rem;
       text-transform: uppercase;
       letter-spacing: 1.5px;
       color: var(--text-muted);
       padding: 12px 12px 8px;
       font-weight: 600;
   }
   
   .sidebar-nav a {
       display: flex;
       align-items: center;
       gap: 12px;
       padding: 11px 16px;
       border-radius: var(--radius-sm);
       color: var(--text-secondary);
       font-size: 0.9rem;
       font-weight: 500;
       transition: all 0.2s ease;
       margin-bottom: 2px;
   }
   
   .sidebar-nav a i {
       font-size: 1.1rem;
       width: 22px;
       text-align: center;
   }
   
   .sidebar-nav a:hover {
       color: var(--text-light);
       background: rgba(108, 92, 231, 0.1);
   }
   
   .sidebar-nav a.active {
       color: var(--text-light);
       background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1));
       border: 1px solid var(--glass-border);
   }
   
   .sidebar-footer {
       padding: 16px 20px;
       border-top: 1px solid var(--border-color);
   }
   
   .user-info {
       display: flex;
       align-items: center;
       gap: 12px;
   }
   
   .user-avatar {
       width: 40px;
       height: 40px;
       border-radius: 50%;
       background: linear-gradient(135deg, var(--primary), var(--accent));
       display: flex;
       align-items: center;
       justify-content: center;
       font-weight: 700;
       font-size: 1rem;
       color: white;
       flex-shrink: 0;
   }
   
   .user-meta .user-name {
       font-size: 0.88rem;
       font-weight: 600;
       color: var(--text-primary);
   }
   
   .user-meta .user-role {
       font-size: 0.75rem;
       color: var(--text-muted);
   }
   
   /* MAIN CONTENT */
   .main-content {
       flex: 1;
       margin-left: var(--sidebar-width);
       min-height: 100vh;
   }
   
   /* TOP BAR */
   .topbar {
       position: sticky;
       top: 0;
       z-index: 50;
       background: var(--glass-bg);
       backdrop-filter: blur(20px);
       border-bottom: 1px solid var(--border-color);
       padding: 12px 32px;
       display: flex;
       align-items: center;
       justify-content: space-between;
   }
   
   .topbar-left {
       display: flex;
       align-items: center;
       gap: 16px;
   }
   
   .topbar-left h2 {
       font-size: 1.2rem;
       font-weight: 600;
   }
   
   .topbar-right {
       display: flex;
       align-items: center;
       gap: 16px;
   }
   
   .notif-btn {
       position: relative;
       width: 40px;
       height: 40px;
       border-radius: 50%;
       background: var(--bg-card);
       border: 1px solid var(--border-color);
       display: flex;
       align-items: center;
       justify-content: center;
       color: var(--text-secondary);
       cursor: pointer;
       transition: all 0.2s ease;
   }
   
   .notif-btn:hover {
       border-color: var(--primary);
       color: var(--primary-light);
   }
   
   .notif-badge {
       position: absolute;
       top: -2px;
       right: -2px;
       width: 18px;
       height: 18px;
       background: var(--danger);
       border-radius: 50%;
       font-size: 0.65rem;
       font-weight: 700;
       display: flex;
       align-items: center;
       justify-content: center;
       color: white;
   }
   
   .hamburger {
       display: none;
       background: none;
       border: none;
       color: var(--text-secondary);
       font-size: 1.3rem;
       cursor: pointer;
       padding: 8px;
   }
   
   /* CONTENT AREA */
   .content-area {
       padding: 32px;
   }
   
   /* STAT CARDS */
   .stat-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
       gap: 20px;
       margin-bottom: 32px;
   }
   
   .stat-card {
       background: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: var(--radius-md);
       padding: 24px;
       position: relative;
       overflow: hidden;
       transition: all 0.3s ease;
   }
   
   .stat-card:hover {
       border-color: var(--border-active);
       transform: translateY(-2px);
   }
   
   .stat-card::after {
       content: '';
       position: absolute;
       top: 0;
       right: 0;
       width: 80px;
       height: 80px;
       border-radius: 0 0 0 80px;
       opacity: 0.1;
   }
   
   .stat-card.purple::after { background: var(--primary); }
   .stat-card.teal::after { background: var(--accent); }
   .stat-card.green::after { background: var(--success); }
   .stat-card.orange::after { background: var(--warning); }
   .stat-card.red::after { background: var(--danger); }
   .stat-card.blue::after { background: var(--info); }
   
   .stat-icon {
       width: 48px;
       height: 48px;
       border-radius: var(--radius-sm);
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 1.3rem;
       margin-bottom: 16px;
   }
   
   .stat-icon.purple { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); }
   .stat-icon.teal { background: rgba(0, 206, 201, 0.15); color: var(--accent-light); }
   .stat-icon.green { background: rgba(0, 184, 148, 0.15); color: var(--success); }
   .stat-icon.orange { background: rgba(253, 203, 110, 0.15); color: var(--warning); }
   .stat-icon.red { background: rgba(225, 112, 85, 0.15); color: var(--danger); }
   .stat-icon.blue { background: rgba(116, 185, 255, 0.15); color: var(--info); }
   
   .stat-number {
       font-family: var(--font-display);
       font-size: 2rem;
       font-weight: 700;
       margin-bottom: 4px;
   }
   
   .stat-label {
       font-size: 0.85rem;
       color: var(--text-secondary);
   }
   
   /* ── [NEW] stat-value alias (dipakai di beberapa view) ────── */
   .stat-value {
       font-family: var(--font-display);
       font-size: 2rem;
       font-weight: 700;
       margin-bottom: 4px;
       color: var(--text-primary);
   }
   
   .stat-info {
       display: flex;
       flex-direction: column;
   }
   
   /* DATA TABLE */
   .data-card {
       background: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: var(--radius-md);
       overflow: hidden;
       margin-bottom: 24px;
   }
   
   .data-card-header {
       padding: 20px 24px;
       border-bottom: 1px solid var(--border-color);
       display: flex;
       align-items: center;
       justify-content: space-between;
   }
   
   .data-card-header h3 {
       font-size: 1.05rem;
       font-weight: 600;
   }
   
   .data-card-body {
       padding: 0;
   }
   
   .data-card-body.padded {
       padding: 24px;
   }
   
   .data-table {
       width: 100%;
       border-collapse: collapse;
   }
   
   .data-table th {
       background: rgba(108, 92, 231, 0.05);
       padding: 14px 16px;
       text-align: left;
       font-size: 0.8rem;
       font-weight: 600;
       text-transform: uppercase;
       letter-spacing: 0.5px;
       color: var(--text-secondary);
       border-bottom: 1px solid var(--border-color);
   }
   
   .data-table td {
       padding: 14px 16px;
       font-size: 0.9rem;
       border-bottom: 1px solid var(--border-color);
       vertical-align: middle;
   }
   
   .data-table tbody tr {
       transition: background 0.2s ease;
   }
   
   .data-table tbody tr:hover {
       background: rgba(108, 92, 231, 0.03);
   }
   
   .data-table tbody tr:last-child td {
       border-bottom: none;
   }
   
   .table-responsive {
       overflow-x: auto;
   }
   
   /* BADGES */
   .badge {
       display: inline-flex;
       align-items: center;
       padding: 4px 12px;
       border-radius: var(--radius-full);
       font-size: 0.75rem;
       font-weight: 600;
       white-space: nowrap;
   }
   
   .badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0, 184, 148, 0.3); }
   .badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(253, 203, 110, 0.3); }
   .badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(225, 112, 85, 0.3); }
   .badge-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(116, 185, 255, 0.3); }
   .badge-primary { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); border: 1px solid rgba(108, 92, 231, 0.3); }
   .badge-secondary { background: rgba(155, 155, 181, 0.15); color: var(--text-secondary); border: 1px solid rgba(155, 155, 181, 0.3); }
   .badge-accent { background: rgba(0, 206, 201, 0.15); color: var(--accent-light); border: 1px solid rgba(0, 206, 201, 0.3); }
   
   /* CHART CONTAINER */
   .chart-container {
       background: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: var(--radius-md);
       padding: 24px;
       margin-bottom: 24px;
   }
   
   .chart-container h3 {
       font-size: 1.05rem;
       font-weight: 600;
       margin-bottom: 20px;
   }
   
   /* ============================================================
      RESPONSIVE
      ============================================================ */
   @media (max-width: 768px) {
       .landing-nav {
           padding: 12px 20px;
       }
   
       .nav-links {
           display: none;
       }
   
       .hero-section {
           padding: 100px 20px 60px;
       }
   
       .section {
           padding: 60px 20px;
       }
   
       .card-grid {
           grid-template-columns: 1fr;
       }
   
       .sidebar {
           transform: translateX(-100%);
       }
   
       .sidebar.active {
           transform: translateX(0);
       }
   
       .main-content {
           margin-left: 0;
       }
   
       .hamburger {
           display: block;
       }
   
       .topbar {
           padding: 12px 16px;
       }
   
       .content-area {
           padding: 20px 16px;
       }
   
       .stat-grid {
           grid-template-columns: repeat(2, 1fr);
       }
   
       .hero-actions {
           flex-direction: column;
       }
   }
   
   @media (max-width: 480px) {
       .stat-grid {
           grid-template-columns: 1fr;
       }
   
       .login-card {
           padding: 32px 24px;
       }
   }
   
   /* ============================================================
      EMPTY STATE
      ============================================================ */
   .empty-state {
       text-align: center;
       padding: 60px 20px;
       color: var(--text-muted);
   }
   
   .empty-state i {
       font-size: 3rem;
       margin-bottom: 16px;
       opacity: 0.3;
   }
   
   .empty-state h4 {
       font-size: 1.1rem;
       color: var(--text-secondary);
       margin-bottom: 8px;
   }
   
   .empty-state p {
       font-size: 0.9rem;
   }
   
   /* ============================================================
      ANIMATIONS
      ============================================================ */
   .fade-in {
       animation: fadeIn 0.5s ease forwards;
   }
   
   @keyframes fadeIn {
       from { opacity: 0; transform: translateY(20px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   .slide-up {
       animation: slideUp 0.4s ease forwards;
   }
   
   @keyframes slideUp {
       from { opacity: 0; transform: translateY(30px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   /* Stagger Animation */
   .stagger > * {
       opacity: 0;
       animation: fadeIn 0.5s ease forwards;
   }
   
   .stagger > *:nth-child(1) { animation-delay: 0.05s; }
   .stagger > *:nth-child(2) { animation-delay: 0.1s; }
   .stagger > *:nth-child(3) { animation-delay: 0.15s; }
   .stagger > *:nth-child(4) { animation-delay: 0.2s; }
   .stagger > *:nth-child(5) { animation-delay: 0.25s; }
   .stagger > *:nth-child(6) { animation-delay: 0.3s; }
   
   /* ============================================================
      UTILITY
      ============================================================ */
   .text-center { text-align: center; }
   .text-right { text-align: right; }
   .mt-1 { margin-top: 8px; }
   .mt-2 { margin-top: 16px; }
   .mt-3 { margin-top: 24px; }
   .mt-4 { margin-top: 32px; }
   .mb-1 { margin-bottom: 8px; }
   .mb-2 { margin-bottom: 16px; }
   .mb-3 { margin-bottom: 24px; }
   .mb-4 { margin-bottom: 32px; }
   .gap-2 { gap: 8px; }
   .gap-3 { gap: 16px; }
   .d-flex { display: flex; }
   .align-center { align-items: center; }
   .justify-between { justify-content: space-between; }
   .justify-center { justify-content: center; }
   .flex-wrap { flex-wrap: wrap; }
   .flex-col { flex-direction: column; }
   .w-100 { width: 100%; }
   
   /* Overlay for mobile sidebar */
   .sidebar-overlay {
       display: none;
       position: fixed;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       background: rgba(0, 0, 0, 0.5);
       z-index: 99;
   }
   
   .sidebar-overlay.active {
       display: block;
   }
   
   /* Two column grid */
   .grid-2 {
       display: grid;
       grid-template-columns: repeat(2, 1fr);
       gap: 24px;
   }
   
   .grid-3 {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 16px;
   }
   
   @media (max-width: 768px) {
       .grid-2 {
           grid-template-columns: 1fr;
       }
       .grid-3 {
           grid-template-columns: repeat(2, 1fr);
       }
   }
   
   @media (max-width: 480px) {
       .grid-3 {
           grid-template-columns: 1fr;
       }
   }
   
   /* ── stat-mini (dipakai di detail pendaftaran asesi) ─────── */
   .stat-mini {
       background: var(--bg-secondary);
       border: 1px solid var(--border-color);
       border-radius: var(--radius-sm);
       padding: 12px 16px;
       text-align: center;
   }
   
   .stat-mini label {
       display: block;
       font-size: 0.75rem;
       color: var(--text-muted);
       margin-bottom: 4px;
       font-weight: 500;
   }
   
   .stat-mini .val {
       font-family: var(--font-display);
       font-size: 1.4rem;
       font-weight: 700;
       color: var(--primary-light);
   }

/* ============================================================
   RESPONSIVE — MOBILE BREAKPOINTS
   ============================================================ */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
    z-index: 1001;
}
.hamburger-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { display: block; opacity: 1; }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed; top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 1200;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    padding: 20px; overflow-y: auto;
}
.mobile-nav-drawer.active { right: 0; }

.mobile-nav-close {
    align-self: flex-end; width: 36px; height: 36px;
    border-radius: 50%; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; margin-bottom: 20px;
}

.mobile-nav-links {
    list-style: none; display: flex;
    flex-direction: column; gap: 4px;
}
.mobile-nav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    color: var(--text-secondary); font-weight: 500; font-size: 1rem;
    text-decoration: none; transition: background 0.2s, color 0.2s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(108,92,231,0.08); color: var(--text-primary);
}

.mobile-nav-actions {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 10px;
}
.mobile-nav-actions a {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 20px; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
}

/* Tablet */
@media (max-width: 992px) {
    .hamburger-btn { display: flex; }
    .nav-links, .nav-menu { display: none !important; }
    .nav-actions .nav-btn-outline,
    .nav-actions .nav-btn-primary { display: none; }

    .landing-nav { padding: 12px 24px; }
    .landing-nav .logo { font-size: 1.4rem; }

    .hero-section { padding: 100px 24px 60px; }
    .section { padding: 60px 24px; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
    .landing-footer { padding: 32px 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    .landing-nav { padding: 12px 16px; }

    .hero-section { min-height: auto; padding: 90px 16px 50px; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-desc { font-size: 1rem; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .section { padding: 50px 16px; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 32px; }

    .card-grid { grid-template-columns: 1fr; gap: 16px; }
    .glass-card { padding: 20px; }

    .flow-steps::before { left: 22px; }
    .flow-step { gap: 14px; margin-bottom: 24px; }
    .flow-number { width: 44px; height: 44px; font-size: 1rem; }
    .flow-content { padding: 16px; }
    .flow-content h4 { font-size: 0.95rem; }
    .flow-content p { font-size: 0.82rem; }

    .landing-footer { padding: 28px 16px; }
    .login-wrapper { padding: 20px 16px; }
    .login-card { padding: 28px 20px; }
    .price-tag { font-size: 1.2rem; }
    .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .landing-nav .logo { font-size: 1.2rem; }
    .hero-section { padding: 80px 12px 40px; }
    .hero-title { font-size: 1.6rem; }
    .section { padding: 40px 12px; }
    .section-title { font-size: 1.3rem; }
    .glass-card { padding: 16px; border-radius: var(--radius-md); }
    .card-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .flow-number { width: 36px; height: 36px; font-size: 0.85rem; }
    .flow-steps::before { left: 18px; }
}

/* ============================================================
   RESPONSIVE EXTRAS — FOOTER GRID & LAYOUT FIXES
   ============================================================ */

/* Reusable footer grid class used in landing pages */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    /* First column (brand) spans full width on mobile */
    .footer-grid > *:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid > *:first-child {
        grid-column: auto;
    }
}

/* ============================================================
   DASHBOARD — MOBILE & TABLET OVERLAY
   ============================================================ */

/* Mobile overlay for dashboard sidebar */
.sidebar-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-mobile-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    /* Dashboard sidebar becomes a drawer on tablet */
    .dashboard-layout .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 200;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .dashboard-layout .sidebar.active,
    .dashboard-layout .sidebar.open {
        transform: translateX(0);
    }
    .dashboard-layout .main-content {
        margin-left: 0 !important;
    }
    .hamburger {
        display: block !important;
    }
}

@media (max-width: 640px) {
    .content-area {
        padding: 16px 12px;
    }
    .topbar {
        padding: 10px 14px;
    }
    .topbar-left h2 {
        font-size: 1rem;
    }
    .data-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .data-card-header .btn {
        width: 100%;
        justify-content: center;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-number, .stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================================
   LANDING PAGE — EXTRA RESPONSIVE FIXES
   ============================================================ */

/* Prevent hero visual card overflow */
@media (max-width: 768px) {
    .hero-visual-card {
        max-width: 100% !important;
        padding: 18px !important;
    }
    .hv-stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Section inner full width on mobile */
    .section-inner {
        padding: 0 16px !important;
    }

    /* Landing footer padding */
    .landing-footer {
        padding: 32px 16px 20px !important;
    }

    /* Prevent card-grid overflow */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Filter bar in landing */
    .landing-filter-bar {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* Hero actions full-width on mobile */
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hv-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
    }
    .hv-stat-num {
        font-size: 1rem !important;
    }
    .hv-stat-label {
        font-size: 0.6rem !important;
    }
    .landing-filter-bar {
        padding: 12px !important;
    }
}

/* ============================================================
   ALUR PAGE — FLOW STEPS RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .flow-steps {
        max-width: 100%;
        padding: 0 4px;
    }
}

/* ============================================================
   TABLE RESPONSIVE — ALL PAGES
   ============================================================ */
@media (max-width: 640px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
    }

    .data-table {
        min-width: 540px;
    }

    /* Hide less important columns on mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================================
   BUTTONS — RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .btn-lg {
        padding: 11px 20px;
        font-size: 0.88rem;
    }
    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   SHOP — EXTRA FIXES
   ============================================================ */
@media (max-width: 480px) {
    .skema-grid {
        grid-template-columns: 1fr !important;
    }
    .trending-grid {
        grid-template-columns: 1fr !important;
    }
    .providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 10px !important;
    }
    .provider-card {
        padding: 14px 12px !important;
    }
    .provider-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.75rem !important;
    }
    .provider-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .tag-verified {
        width: fit-content !important;
        white-space: nowrap !important;
    }
}

/* ============================================================
   GENERAL — OVERFLOW & SPACING SAFEGUARDS
   ============================================================ */
* {
    max-width: 100%;
    word-break: break-word;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Container padding on small screens */
@media (max-width: 576px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Login card on very small screens */
@media (max-width: 360px) {
    .login-wrapper {
        padding: 16px 12px;
    }
    .login-card {
        padding: 24px 16px;
    }
    .landing-nav {
        padding: 10px 12px;
    }
    .landing-nav .logo {
        font-size: 1.1rem;
    }
}