/* Auth modal: rich dark theme background */
.auth-card.auth-card--minimal {
    background: linear-gradient(145deg, #0f1419 0%, #1a1f2e 100%);
    border: 1px solid rgba(79, 124, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  
  /* Auth modal integrated header: dark gradient and subtle border */
  .auth-header-integrated {
    background: linear-gradient(135deg, #1e2a3a 0%, #0f1419 100%);
    border-bottom: 1px solid rgba(79, 124, 255, 0.08);
  }
  
  /* Smooth app-wide fade-in once ready */
  html.app-loading body {
    opacity: 0;
  }
  body {
    transition: opacity .22s ease;
  }
  /* Ensure auth buttons are tabbable and visible to keyboard users */
  .auth-submit-btn { outline: none; }
  .auth-submit-btn:focus { outline: 2px solid #4361EE; outline-offset: 2px; }
  .login-btn:focus, .register-btn:focus, #profile-btn:focus { outline: 2px solid #4361EE; outline-offset: 2px; }
  /* --- Global Dashboard Styles (non-invasive additions) --- */
  :root {
    --primary: #111827;
    --primary-dark: #0b1220;
  }
  
  body {
    color: #222;
    background: #f7f8fa;
    box-sizing: border-box;
  }
  *, *::before, *::after { box-sizing: inherit; }
  
  /* Top navigation */
  .topbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e6e8eb; z-index: 1000; }
  .topbar .nav-left, .topbar .nav-right { display: flex; align-items: center; gap: 12px; }
  .topbar a { text-decoration: none; color: #222; padding: 8px 10px; border-radius: 8px; }
  .topbar a.active, .topbar a:hover { background: #f0f2f5; }
  
  /* Layout */
  .container.narrow { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
  .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .span-12 { grid-column: span 12; }
  .span-8 { grid-column: span 8; }
  .span-6 { grid-column: span 6; }
  .span-4 { grid-column: span 4; }
  .span-3 { grid-column: span 3; }
  .span-2 { grid-column: span 2; }
  .messages-grid { display: grid; grid-template-columns: 280px 1fr 320px; gap: 16px; }
  .card { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 16px; }
  .card h3 { margin: 0 0 8px 0; font-size: 18px; }
  
  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: #111827; cursor: pointer; }
  .btn.primary { background: #111827; color: #fff; border-color: #111827; }
  .btn.ghost { background: transparent; border-color: #e5e7eb; }
  .btn:disabled { opacity: 0.6; cursor: not-allowed; }
  
  /* Tables */
  table.data-table { width: 100%; border-collapse: collapse; }
  table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f2; text-align: left; }
  table.data-table th { font-weight: 600; background: #fafbfc; }
  
  /* Empty states */
  .empty-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px dashed #d1d5db; border-radius: 10px; background: #fcfcfd; }
  .empty-state p { margin: 0; }
  
  /* Skeletons */
  .skeleton { background: linear-gradient(90deg, #f2f4f7 25%, #e9ecf1 37%, #f2f4f7 63%); border-radius: 8px; background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
  @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
  
  /* Utilities */
  .muted { color: #6b7280; }
  .row { display: flex; align-items: center; gap: 10px; }
  .col { display: flex; flex-direction: column; gap: 8px; }
  .hidden { display: none !important; }
  
  /* Responsive */
  @media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .messages-grid { grid-template-columns: 1fr; }
    .span-12, .span-8, .span-6, .span-4, .span-3, .span-2 { grid-column: span 1; }
  }
  
  /* Modal */
  /* Lightweight modal (dashboard pages only) - prefixed to avoid conflicts with site modals */
  .simple-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; z-index: 2000; }
  .simple-card { background: #fff; border-radius: 12px; border: 1px solid #e6e8eb; max-width: 520px; width: 92vw; padding: 16px; }
  .simple-card h3 { margin-top: 0; }
  .simple-body { display: grid; gap: 10px; }
  .simple-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
  .input, .select { padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; width: 100%; }
  .label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
  
  
  
  /* Profile header card - elegant and spacious */
  .profile-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }
  
  /* Profile avatar styling */
  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .profile-avatar i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Profile info in header */
  .profile-header-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .profile-header-info p {
    font-size: 16px;
    margin: 0 0 16px 0;
    opacity: 0.9;
  }
  
  /* Role badge styling */
  .badge-role {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 12px;
  }
  
  /* Profile sections - modern cards */
  .profile-section-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .profile-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .profile-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
  }
  
  .profile-section-card:hover::before {
    opacity: 1;
  }
  
  .profile-section-card h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .profile-section-card h4 i {
    color: #667eea;
    font-size: 20px;
  }
  
  /* Form inputs - modern and elegant */
  .profile-section-card input[type="text"],
  .profile-section-card input[type="email"],
  .profile-section-card select,
  .profile-section-card textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #1e293b;
  }
  
  .profile-section-card input[type="text"]:focus,
  .profile-section-card input[type="email"]:focus,
  .profile-section-card select:focus,
  .profile-section-card textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  }
  
  .profile-section-card textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
  }
  
  /* Language chips - modern tag design */
  .language-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  
  .language-chip {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .language-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
  }
  
  .language-chip.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
  }
  
  .language-chip .remove {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .language-chip .remove:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Notification toggles - modern switch design */
  .notification-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .notification-toggle:last-child {
    border-bottom: none;
  }
  
  .notification-toggle label {
    font-weight: 500;
    color: #475569;
    cursor: pointer;
  }
  
  /* Toggle switch styling */
  .toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .toggle-switch.active {
    background: #667eea;
  }
  
  .toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .toggle-switch.active::after {
    transform: translateX(24px);
  }
  
  /* Security section styling */
  .security-section .profile-action-btn {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    margin-bottom: 12px;
  }
  
  .security-section .profile-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .security-section .profile-action-btn i {
    font-size: 16px;
    color: #667eea;
  }
  
  /* Danger zone styling */
  .danger-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
  }
  
  .danger-zone h4 {
    color: #dc2626;
    margin-bottom: 16px;
  }
  
  .danger-zone .profile-action-btn {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
  }
  
  .danger-zone .profile-action-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
  }
  
  /* Sticky save bar - modern floating design */
  .sticky-actions {
    position: sticky;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    z-index: 100;
  }
  
  .sticky-actions button {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }
  
  .sticky-actions .save-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  
  .sticky-actions .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  .sticky-actions .cancel-btn {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
  }
  
  .sticky-actions .cancel-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
  }
  
  /* Profile grid layout */
  .profile-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .profile-header-card {
      padding: 24px;
      border-radius: 16px;
    }
    
    .profile-avatar {
      width: 100px;
      height: 100px;
    }
    
    .profile-header-info h2 {
      font-size: 24px;
    }
    
    .profile-section-card {
      padding: 20px;
      border-radius: 12px;
    }
    
    .profile-grid-2 {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .sticky-actions {
      bottom: 16px;
      padding: 16px;
      border-radius: 16px;
    }
    
    .sticky-actions button {
      padding: 10px 20px;
      font-size: 14px;
    }
  }
  
  /* Loading states and animations */
  .profile-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 8px;
  }
  
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  /* Success/error states */
  .profile-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
  }
  
  .profile-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
  }
  
  /* Smooth transitions for all interactive elements */
  .profile-section-card *,
  .profile-action-btn,
  .language-chip,
  .toggle-switch {
    transition: all 0.2s ease;
  }
  
  /* Role badges */
  .badge-role-tutor { background:#1d4ed8; }
  .badge-role-student { background:#059669; }
  .badge-role-guardian { background:#7c3aed; }
  .badge-role-admin { background:#111827; }
  
  /* Skeleton helpers for profile */
  .skel { display:inline-block; height:1em; background: linear-gradient(90deg, #f2f4f7 25%, #e9ecf1 37%, #f2f4f7 63%); border-radius:6px; background-size:400% 100%; animation: shimmer 1.4s ease infinite; }
  .skel.w120 { width:120px; }
  .skel.w180 { width:180px; }
  .skel.w80 { width:80px; }
  /* Extra skeleton utility for header */
  .skeleton-text { color: transparent !important; position: relative; background: linear-gradient(90deg, #f2f4f7 25%, #e9ecf1 37%, #f2f4f7 63%); border-radius:6px; }
  
  /* Toasts */
  .toast-container { position: fixed; top: 16px; right: 16px; display: grid; gap: 8px; z-index: 99999; }
  .toast { background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2); opacity: 0; transform: translateY(-6px); animation: toast-in .2s ease-out forwards; }
  .toast.success { background: #065f46; }
  .toast.error { background: #7f1d1d; }
  @keyframes toast-in { to { opacity: 1; transform: translateY(0); } }
  
  /* Reset & Base Styles */
  :root {
      --primary: #4361ee;
      --primary-dark: #3a0ca3;
      --secondary: #4cc9f0;
      --accent: #f72585;
      --light: #f8f9fa;
      --dark: #212529;
      --gray: #6c757d;
      --light-gray: #e9ecef;
      --success: #4bb543;
      
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
      --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
      --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
      --transition: all 0.3s ease;
  }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
  }
  
  body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      color: var(--dark);
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      overflow-x: hidden;
      margin: 0;
      padding: 0;
  }
  
  h1, h2, h3, h4 {
      font-family: 'Montserrat', sans-serif;
      font-weight: 600;
      line-height: 1.2;
      text-align: left;
  }
  
  .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
  }
  
  section {
      padding: 80px 0;
  }
  
  /* Hero section should not have top padding to land immediately on content */
  .hero {
      padding-top: 0;
  }
  
  /* Ethical Banner */
  .ethical-banner {
      background: var(--primary-dark);
      color: white;
      padding: 8px 0;
      text-align: center;
      font-size: 0.9rem;
      position: fixed;
      top: -40px;
      left: 0;
      right: 0;
      z-index: 1000;
      transition: top 0.3s ease;
  }
  
  .ethical-banner.show {
      top: 0;
  }
  
  .ethical-banner i {
      margin-right: 8px;
  }
  
  .ethical-banner a {
      color: white;
      font-weight: 600;
      margin-left: 10px;
      text-decoration: underline;
  }
  
  /* Header Styles */
  header {
      background: white;
      padding: 15px 0;
      position: sticky;
      top: 0;
      z-index: 1001;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      transition: top 0.3s ease;
  }
  
  .ethical-banner.show + header {
      top: 32px;
  }
  
  header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
  }
  
  .logo {
      font-size: 24px;
      font-weight: 700;
      color: #4361EE;
      text-decoration: none;
      z-index: 10;
      flex-shrink: 0;
      font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  }
  
  .logo span {
      color: #FF69B4;
  }
  
  nav {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
      justify-content: center;
  }
  
  nav a {
      color: var(--dark);
      text-decoration: none;
      font-weight: 500;
      font-size: 15px;
      white-space: nowrap;
      position: relative;
  }
  
  nav a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: var(--transition);
  }
  
  nav a:hover::after {
      width: 100%;
  }
  
  .auth-actions {
      display: flex;
      gap: 12px;
      margin-left: auto;
      z-index: 10;
      align-items: center;
  }
  
  .login-btn, .register-btn {
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 500;
      font-size: 14px;
      cursor: pointer;
      transition: var(--transition);
  }
  
  .login-btn {
      background: transparent;
      border: 1px solid #4264F6;
      color: #4264F6;
  }
  
  .login-btn:hover {
      background: transparent; /* keep base background */
  }
  
  .register-btn {
      background: #4264F6;
      border: 1px solid #4264F6;
      color: white;
  }
  
  .register-btn:hover {
      background: #4264F6;
      transform: translateY(-1px);
  }
  
  .admin-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(135deg, #d97706, #f59e0b);
      color: white;
      padding: 8px 16px;
      border-radius: 8px;
      border: none;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s ease;
      margin-left: 12px;
      cursor: pointer;
  }
  
  .admin-link:hover {
      background: linear-gradient(135deg, #d97706, #f59e0b);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  }
  
  .admin-link i {
      font-size: 12px;
  }
  
  .profile-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 500;
      font-size: 14px;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .profile-btn:hover {
      background: var(--primary);
      transform: translateY(-1px);
  }
  
  /* Buttons */
  .cta-button {
      display: inline-block;
      background: var(--primary);
      color: white;
      padding: 12px 24px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
      border: none;
      cursor: pointer;
      font-size: 1rem;
      text-align: center;
  }
  
  .cta-button:hover {
      transform: translateY(-1px);
      background: #2d4bb5;
      color: white;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }
  
  .cta-button.secondary {
      background: white;
      color: var(--primary);
      border: 2px solid var(--primary);
  }
  
  .cta-button.secondary:hover {
      background: white;
      color: var(--primary);
  }
  
  .cta-button.small {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero {
      position: relative;
      height: auto;
      min-height: 100vh;
      background: transparent;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      margin-bottom: 0;
      border: none;
      outline: none;
      padding: 0;
      box-shadow: none;
      overflow: visible;
  }
  
  .hero .container {
      position: relative;
      z-index: 2;
      padding-top: 40px;
      padding-bottom: 60px;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
  }
  
  .hero-content {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  
  .hero h1 {
      font-size: clamp(2.2rem, 4.5vw, 4rem);
      font-weight: 400;
      line-height: 1.3;
      margin: 0 auto 2rem;
      font-family: 'Montserrat', sans-serif;
      max-width: 1000px;
      width: 100%;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
      box-sizing: border-box;
  }
  
  .hero-line {
      display: block;
      color: white;
      opacity: 1;
      line-height: 1.3;
      white-space: nowrap;
      text-align: center;
      width: auto;
      margin: 0;
      padding: 0;
      text-align: center;
  }
  
  .hero .highlight {
      font-style: normal;
      color: #7dd3fc; /* Light blue for understanding */
      font-weight: 500;
  }
  
  .hero h1 em {
      font-style: normal;
      color: white; /* White for memorising */
      font-weight: 400;
  }
  
  .hero-subtitle {
      font-size: 1.25rem;
      max-width: 500px;
      margin: 0 auto 3rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 300;
      opacity: 1;
      /* Removed animations for performance */
  }
  
  .hero-buttons {
      display: flex;
      gap: 1rem;
      margin-bottom: 4rem;
      justify-content: center;
      opacity: 1;
      /* Removed animations for performance */
  }
  
  .hero-buttons .cta-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      background: rgba(125, 211, 252, 0.1);
      color: white;
      padding: 0.75rem 2rem;
      border-radius: 100px;
      text-decoration: none;
      font-weight: 400;
      transition: all 0.4s ease;
      border: 1px solid rgba(125, 211, 252, 0.3);
      /* backdrop-filter: blur(10px); Removed for performance */
      min-width: 180px;
      text-align: center;
  }
  
  .hero-buttons .cta-button:hover {
      background: var(--primary); /* keep base background */
      transform: translateY(-1px);
  }
  
  .hero-price {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 300;
      opacity: 1;
      /* Removed animations for performance */
  }
  
  /* About Section */
  .about {
      background: transparent;
      color: white;
      padding: 0;
      width: 100%;
      position: relative;
      overflow: hidden;
      margin-top: -10px; /* Even more aggressive gap removal */
      border: none;
      outline: none;
      box-shadow: none;
  }
  
  .about-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
      padding: 120px 0 180px 0; /* Extended bottom padding for more grey area */
      min-height: 700px;
  }
  
  .about-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100%;
      padding-top: 0;
      padding-bottom: 0;
      margin-top: 0;
      min-height: 100%;
      gap: 2rem;
  }
  
  .about-text .subtitle {
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 0;
      font-size: 1.1rem;
      text-align: left;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
  }
  
  .about-text .subtitle h3 {
      font-size: 3rem;
      color: #7dd3fc;
      margin-bottom: 5px;
      text-align: left;
      margin-top: 0;
  }
  
  .about-text .subtitle span {
      margin-bottom: 10px;
      text-align: left;
      font-size: 1.3rem;
  }
  
  .about-text p {
      margin-bottom: 0;
      line-height: 1.8;
      color: rgba(255, 255, 255, 0.8);
      text-align: left;
      font-size: 1.4rem;
  }
  
  .about-points {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      margin-top: 0;
      justify-content: flex-start;
  }
  
  .point {
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(255, 255, 255, 0.8);
      justify-content: flex-start;
      font-size: 1.3rem;
      font-weight: 500;
  }
  
  .point i {
      color: #7dd3fc;
      font-size: 1.5rem;
  }
  
  .about-image {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      max-width: 500px;
      margin: 0 auto;
      position: relative;
      margin-top: 0;
      margin-bottom: 0;
      overflow: hidden;
  }
  
  /* Professional Photo Display */
  .photo-container {
      border-radius: 12px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(67, 97, 238, 0.1);
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%; /* Fill the shortened container */
      max-width: 450px; /* Increased for better image quality */
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      position: relative;
      /* backdrop-filter: blur(10px); Removed for performance */
      transition: all 0.3s ease;
      aspect-ratio: 3/4;
      max-height: 100%;
      min-height: 100%;
      overflow: visible; /* Allow natural expansion */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Image quality preservation */
      image-rendering: high-quality;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
  }
  
  .photo-container:hover {
      transform: scale(1.02);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
      border: none;
      border-radius: 0;
  }
  
  /* Photo link and overlay styles */
  .photo-link {
      display: block;
      position: relative;
      text-decoration: none;
      color: inherit;
      width: 100%;
      height: 100%;
  }
  
  .photo-inner {
      width: 100%;
      height: 100%;
      background: var(--dark);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 3/4;
      max-height: 100%;
      overflow: visible; /* Allow natural expansion */
      margin: 0;
      padding: 0;
      border-radius: 0;
  }
  
  .tutor-photo {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Maintain aspect ratio */
      object-position: center 30%; /* Position to show face better */
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      transform: none;
      border-radius: 8px;
      filter: brightness(1.03) contrast(1.08) saturate(1.05);
      aspect-ratio: 3/4;
      max-height: 100%;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* HD Image Quality Optimizations */
      image-rendering: -webkit-optimize-contrast;
      image-rendering: -moz-crisp-edges;
      image-rendering: crisp-edges;
      image-rendering: high-quality;
      image-rendering: -webkit-crisp-edges;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-perspective: 1000px;
      perspective: 1000px;
      -webkit-transform-style: preserve-3d;
      transform-style: preserve-3d;
  }
  
  .tutor-photo:hover {
      filter: brightness(1.1) contrast(1.05) saturate(1.1);
      transform: scale(1.02);
      transform-origin: center center;
  }
  
  .photo-icon {
      position: absolute;
      top: 50%;
      right: -70px; /* Adjusted for larger photo */
      transform: translateY(-50%);
      color: var(--primary);
      font-size: 1.4rem; /* Slightly larger icon */
      opacity: 0;
      transition: all 0.3s ease;
  }
  
  .photo-link:hover .photo-icon {
      opacity: 1;
      right: -65px; /* Adjusted for larger photo */
  }
  
  
  
  /* Responsive Design for Photo */
  @media (max-width: 768px) {
      .about-content {
          grid-template-columns: 1fr;
          gap: 40px;
          align-items: center;
          min-height: auto;
      }
      
      .about-text {
          text-align: center;
          height: auto;
          padding-top: 0;
          padding-bottom: 0;
          min-height: auto;
      }
      
      .about-text .subtitle {
          text-align: center;
          align-items: center;
      }
      
      .about-text .subtitle h3 {
          text-align: center;
      }
      
      .about-text .subtitle span {
          text-align: center;
      }
      
      .about-text p {
          text-align: center;
      }
      
      .about-points {
          align-items: center;
          flex-grow: 0;
      }
      
      .point {
          justify-content: center;
      }
      
      .about-image {
          max-width: 350px;
          height: auto; /* Allow natural height on mobile */
          min-height: 400px;
          margin-bottom: 0;
          align-items: center;
          overflow: visible; /* Allow natural height on mobile */
      }
      
      .photo-container {
          max-width: 300px;
          aspect-ratio: 3/4;
          height: auto; /* Allow natural height on mobile */
          min-height: auto;
          overflow: visible; /* Allow natural height on mobile */
      }
  }
  
  @media (max-width: 480px) {
      .about-content {
          gap: 30px;
      }
      
      .about-image {
          max-width: 280px;
          min-height: 350px;
      }
      
      .photo-container {
          max-width: 240px;
          aspect-ratio: 3/4;
      }
  }
  
  /* Central Learning Hub */
  .learning-hub {
      position: relative;
      width: 200px;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
  }
  
  .hub-core {
      width: 120px;
      height: 120px;
      background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
      border-radius: 50%;
      position: relative;
      box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
      /* Removed animations for performance */
  }
  
  .hub-core::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #a8e6cf, #dcedc1);
      border-radius: 50%;
      /* Removed animations for performance */
  }
  
  /* Orbiting Elements */
  .orbit-ring {
      position: absolute;
      width: 160px;
      height: 160px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      /* Removed animations for performance */
  }
  
  .orbit-element {
      position: absolute;
      width: 20px;
      height: 20px;
      background: linear-gradient(45deg, #ffd93d, #ff6b6b);
      border-radius: 50%;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
      /* Removed animations for performance */
  }
  
  /* Data Flow Lines */
  .data-flow {
      position: absolute;
      width: 100%;
      height: 100%;
      pointer-events: none;
  }
  
  .flow-line {
      position: absolute;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
      /* Removed animations for performance */
  }
  
  .flow-line:nth-child(1) {
      width: 150px;
      top: 30%;
      left: 10%;
  }
  
  .flow-line:nth-child(2) {
      width: 120px;
      top: 60%;
      right: 15%;
  }
  
  .flow-line:nth-child(3) {
      width: 180px;
      bottom: 25%;
      left: 20%;
  }
  
  /* Particle System */
  .particles {
      position: absolute;
      width: 100%;
      height: 100%;
  }
  
  .particle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      /* Removed animations for performance */
  }
  
  .particle:nth-child(1) {
      top: 20%;
      left: 10%;
  }
  
  .particle:nth-child(2) {
      top: 40%;
      right: 15%;
  }
  
  .particle:nth-child(3) {
      bottom: 30%;
      left: 25%;
  }
  
  .particle:nth-child(4) {
      top: 70%;
      right: 25%;
  }
  
  .particle:nth-child(5) {
      bottom: 20%;
      right: 10%;
  }
  
  /* Central Icon */
  .central-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 20;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      /* Removed animations for performance */
  }
  
  .central-icon::before {
      content: '🧠';
      font-size: 20px;
      /* Removed animations for performance */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
      .photo-container {
          height: 300px;
      }
      
      .hub-core {
          width: 80px;
          height: 80px;
      }
      
      .hub-core::before {
          width: 50px;
          height: 50px;
      }
      
      .orbit-ring {
          width: 120px;
          height: 120px;
      }
      
      .shape:nth-child(1) { width: 60px; height: 60px; }
      .shape:nth-child(2) { width: 40px; height: 40px; }
      .shape:nth-child(3) { width: 70px; height: 70px; }
      .shape:nth-child(4) { width: 30px; height: 30px; }
  }
  
  /* Hero Background Elements */
  .hero-bg-elements {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 200vh; /* Cover hero and to the white section */
      overflow: hidden;
      pointer-events: none;
      z-index: 1;
      /* Fade out near the bottom so symbols disappear before the white section */
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 99%, rgba(0,0,0,0) 100%);
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 99%, rgba(0,0,0,0) 100%);
  }
  
  /* Math symbols with dynamic positioning */
  .math-symbol {
      position: absolute;
      font-size: 3.2rem;
      color: rgba(67, 97, 238, 0.12);
      opacity: 1;
      font-weight: 300;
      user-select: none;
      will-change: transform, opacity;
      pointer-events: none;
      transform-origin: center center;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      backface-visibility: hidden;
      perspective: 1000px;
  }
  
  @keyframes fallDown {
      0% {
          transform: translateY(-120px) rotate(0deg);
          opacity: 0;
      }
      5% { opacity: 0.6; }
      15% { opacity: 0.8; }
      85% { opacity: 0.7; }
      95% { opacity: 0.3; }
      100% {
          /* End within the last 1% fade band */
          transform: translateY(calc(198vh)) rotate(360deg);
          opacity: 0;
      }
  }
  
  @keyframes rotate {
      0% {
          transform: rotate(0deg);
      }
      100% {
          transform: rotate(360deg);
      }
  }
  
  /* Apply single combined animation so transform does not conflict */
  .math-symbol { animation: fallDown 14s ease-in-out infinite; }
  
  /* Deterministic spacing to avoid clumping while keeping a natural look */
  .hero-bg-elements .math-symbol:nth-child(1)  { left: 2% !important;  animation-delay: 0.2s;  animation-duration: 16s; }
  .hero-bg-elements .math-symbol:nth-child(2)  { left: 6% !important;  animation-delay: 0.8s;  animation-duration: 15s; }
  .hero-bg-elements .math-symbol:nth-child(3)  { left: 9% !important;  animation-delay: 1.4s;  animation-duration: 18s; }
  .hero-bg-elements .math-symbol:nth-child(4)  { left: 13% !important; animation-delay: 2.1s;  animation-duration: 14s; }
  .hero-bg-elements .math-symbol:nth-child(5)  { left: 17% !important; animation-delay: 2.9s;  animation-duration: 17s; }
  .hero-bg-elements .math-symbol:nth-child(6)  { left: 21% !important; animation-delay: 3.6s;  animation-duration: 15.5s; }
  .hero-bg-elements .math-symbol:nth-child(7)  { left: 24% !important; animation-delay: 4.3s;  animation-duration: 19s; }
  .hero-bg-elements .math-symbol:nth-child(8)  { left: 28% !important; animation-delay: 5.0s;  animation-duration: 14.5s; }
  .hero-bg-elements .math-symbol:nth-child(9)  { left: 32% !important; animation-delay: 5.7s;  animation-duration: 17.5s; }
  .hero-bg-elements .math-symbol:nth-child(10) { left: 36% !important; animation-delay: 6.3s;  animation-duration: 16.5s; }
  .hero-bg-elements .math-symbol:nth-child(11) { left: 39% !important; animation-delay: 7.0s;  animation-duration: 18.5s; }
  .hero-bg-elements .math-symbol:nth-child(12) { left: 43% !important; animation-delay: 7.6s;  animation-duration: 15.2s; }
  .hero-bg-elements .math-symbol:nth-child(13) { left: 47% !important; animation-delay: 8.2s;  animation-duration: 17.2s; }
  .hero-bg-elements .math-symbol:nth-child(14) { left: 51% !important; animation-delay: 8.8s;  animation-duration: 14.8s; }
  .hero-bg-elements .math-symbol:nth-child(15) { left: 54% !important; animation-delay: 9.4s;  animation-duration: 18s; }
  .hero-bg-elements .math-symbol:nth-child(16) { left: 58% !important; animation-delay: 10.0s; animation-duration: 16s; }
  .hero-bg-elements .math-symbol:nth-child(17) { left: 62% !important; animation-delay: 10.6s; animation-duration: 19s; }
  .hero-bg-elements .math-symbol:nth-child(18) { left: 65% !important; animation-delay: 11.2s; animation-duration: 15.7s; }
  .hero-bg-elements .math-symbol:nth-child(19) { left: 69% !important; animation-delay: 11.8s; animation-duration: 17.7s; }
  .hero-bg-elements .math-symbol:nth-child(20) { left: 73% !important; animation-delay: 12.4s; animation-duration: 14.3s; }
  .hero-bg-elements .math-symbol:nth-child(21) { left: 76% !important; animation-delay: 0.4s;  animation-duration: 18.3s; }
  .hero-bg-elements .math-symbol:nth-child(22) { left: 80% !important; animation-delay: 1.1s;  animation-duration: 16.8s; }
  .hero-bg-elements .math-symbol:nth-child(23) { left: 84% !important; animation-delay: 1.7s;  animation-duration: 14.9s; }
  .hero-bg-elements .math-symbol:nth-child(24) { left: 88% !important; animation-delay: 2.5s;  animation-duration: 17.1s; }
  .hero-bg-elements .math-symbol:nth-child(25) { left: 10% !important; animation-delay: 3.2s;  animation-duration: 15.3s; }
  .hero-bg-elements .math-symbol:nth-child(26) { left: 15% !important; animation-delay: 3.9s;  animation-duration: 18.7s; }
  .hero-bg-elements .math-symbol:nth-child(27) { left: 20% !important; animation-delay: 4.6s;  animation-duration: 16.1s; }
  .hero-bg-elements .math-symbol:nth-child(28) { left: 27% !important; animation-delay: 5.3s;  animation-duration: 19.1s; }
  .hero-bg-elements .math-symbol:nth-child(29) { left: 33% !important; animation-delay: 6.0s;  animation-duration: 14.6s; }
  .hero-bg-elements .math-symbol:nth-child(30) { left: 41% !important; animation-delay: 6.7s;  animation-duration: 17.8s; }
  .hero-bg-elements .math-symbol:nth-child(31) { left: 49% !important; animation-delay: 7.4s;  animation-duration: 15.9s; }
  .hero-bg-elements .math-symbol:nth-child(32) { left: 57% !important; animation-delay: 8.1s;  animation-duration: 18.9s; }
  .hero-bg-elements .math-symbol:nth-child(33) { left: 64% !important; animation-delay: 8.8s;  animation-duration: 16.4s; }
  .hero-bg-elements .math-symbol:nth-child(34) { left: 72% !important; animation-delay: 9.5s;  animation-duration: 19.3s; }
  .hero-bg-elements .math-symbol:nth-child(35) { left: 79% !important; animation-delay: 10.2s; animation-duration: 15.1s; }
  .hero-bg-elements .math-symbol:nth-child(36) { left: 92% !important; animation-delay: 10.9s; animation-duration: 18.1s; }
  
  /* Reduce motion for accessibility and anxiety reduction */
  @media (prefers-reduced-motion: reduce) {
      .math-symbol {
          animation: fadeInOut 8s ease-in-out infinite;
          animation-duration: 8s !important;
      }
      
      @keyframes fadeInOut {
          0%, 100% { opacity: 0; }
          50% { opacity: 0.3; }
      }
  }
  
  /* Scroll cue */
  .scroll-cue {
      position: absolute;
      bottom: 6rem; /* Moved up a bit more for better positioning */
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      color: rgba(255, 255, 255, 0.5);
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.8rem;
      font-weight: 300;
      animation: fadeInOut 2s infinite ease-in-out;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 1;
  }
  
  .scroll-cue:hover {
      color: rgba(255, 255, 255, 0.8);
      transform: translateX(-50%) translateY(-2px);
      cursor: pointer;
  }
  
  /* Scroll cue for about section */
  .scroll-cue-about {
      position: absolute;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      color: rgba(255, 255, 255, 0.5);
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.8rem;
      font-weight: 300;
      animation: fadeInOut 2s infinite ease-in-out;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 1;
  }
  
  .scroll-cue-about:hover {
      color: rgba(255, 255, 255, 0.8);
      transform: translateX(-50%) translateY(-2px);
      cursor: pointer;
  }
  
  .scroll-line {
      width: 1px;
      height: 40px;
      background: rgba(255, 255, 255, 0.3);
      margin-top: 0.5rem;
      position: relative;
  }
  
  .scroll-line::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.6);
      animation: scrollLine 2s infinite ease-in-out;
  }
  
  @keyframes fadeInOut {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 0.7; }
  }
  
  @keyframes scrollLine {
      0% { top: 0; opacity: 0; }
      30% { opacity: 1; }
      100% { top: 100%; opacity: 0; }
  }
  
  /* Activate animations when loaded */
  .loaded .hero-line,
  .loaded .hero-subtitle,
  .loaded .hero-buttons,
  .loaded .hero-price {
      opacity: 1;
      transform: translateY(0);
  }
  
  .loaded .math-symbol {
      /* Allow animation to control transform, only set initial opacity */
      animation-play-state: running;
  }
  
  /* Subjects Section */
  .subjects {
      background: #f6f8ff;
  }
  
  .section-subtitle {
      color: var(--gray);
      margin-bottom: 15px;
      margin-top: 15px;
      text-align: center;
      max-width: 100%;
  }
  
  .subject-tabs {
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      margin-bottom: 30px;
  }
  
  .tab-btn {
      padding: 10px 20px;
      border-radius: 50px;
      border: none;
      background: var(--light-gray);
      color: var(--dark);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
  }
  
  .tab-btn.active {
      background: var(--primary);
      color: white;
  }
  
  .subject-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
  }
  
  .subject-card {
      background: white;
      border-radius: 10px;
      padding: 25px;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      border-top: 4px solid var(--primary);
      position: relative;
      overflow: hidden;
  }
  
  .subject-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
  }
  
  .subject-icon {
      width: 60px;
      height: 60px;
      background: rgba(67, 97, 238, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      color: var(--primary);
      font-size: 1.5rem;
  }
  
  .subject-card h3 {
      margin-bottom: 10px;
      font-size: 1.2rem;
  }
  
  .subject-card p {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 15px;
  }
  
  /* Details Button */
  .details-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      justify-content: center;
  }
  
  .details-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
  }
  
  .details-btn i {
      font-size: 0.8rem;
  }
  
  .subject-card.coming-soon {
      opacity: 0.8;
  }
  
  /* Coming Soon Subtle Style (Integrated into main grid) */
  .subject-card.coming-soon-subtle {
      opacity: 0.85;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border: 1px solid var(--light-gray);
      position: relative;
  }
  
  .subject-card.coming-soon-subtle::before {
      content: "Coming Soon";
      position: absolute;
      top: -8px;
      right: -8px;
      background: var(--gray);
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 0.7rem;
      font-weight: 500;
      z-index: 1;
  }
  
  .subject-card.coming-soon-subtle:hover {
      opacity: 0.95;
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
  }
  
  .subject-card.coming-soon-subtle .subject-icon {
      opacity: 0.7;
  }
  
  .subject-card.coming-soon-subtle h3 {
      color: var(--gray);
  }
  
  .subject-card.coming-soon-subtle p {
      color: var(--gray);
      font-style: italic;
  }
  
  .waitlist-btn.small {
      padding: 6px 12px;
      font-size: 0.8rem;
      border-radius: 4px;
      white-space: nowrap;
  }
  
  /* Coming Soon Subject Cards (Legacy - keeping for reference) */
  .subject-card.coming-soon {
      opacity: 0.7;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border: 2px dashed var(--light-gray);
  }
  
  .subject-card.coming-soon:hover {
      opacity: 0.9;
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
  }
  
  .subject-card.coming-soon .subject-icon {
      opacity: 0.6;
  }
  
  .subject-card.coming-soon h3 {
      color: var(--gray);
  }
  
  .subject-card.coming-soon p {
      color: var(--gray);
      font-style: italic;
  }
  
  /* Waitlist Button */
  .waitlist-btn {
      background: var(--gray);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
      width: 100%;
      margin-top: 10px;
  }
  
  .waitlist-btn:hover {
      background: #5a6268;
      transform: translateY(-2px);
  }
  
  /* Modal */
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: var(--transition);
      /* backdrop-filter: blur(5px); Removed for performance */
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
      overscroll-behavior: contain;
  }
  
  .modal.active {
      opacity: 1;
      pointer-events: all;
  }
  
  .modal-content {
      background: white;
      border-radius: 10px;
      width: 100%;
      max-width: 800px;
      max-height: 90vh;
      padding: 30px;
      position: relative;
      transform: translateY(-20px) scale(0.95);
      transition: var(--transition);
      overflow-y: auto; /* scroll inside modal */
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      margin: 0 auto;
      padding-top: 60px; /* Make room for close button */
  }
  
  /* Profile Modal Specific Styling - Override all other modal styles */
  #profile-modal {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      background: rgba(0, 0, 0, 0.5) !important;
      display: flex !important;
      align-items: flex-start !important;
      justify-content: center !important;
      z-index: 1000 !important;
      padding: 20px !important;
      padding-top: 100px !important;
      opacity: 0 !important;
      pointer-events: none !important;
      transition: opacity 0.3s ease !important;
      margin: 0 !important;
      transform: none !important;
      box-sizing: border-box !important;
  }
  
  #profile-modal.active {
      opacity: 1 !important;
      pointer-events: all !important;
  }
  
  #profile-modal .modal-content {
      background: white !important;
      border-radius: 12px !important;
      width: 100% !important;
      max-width: 720px !important;
      max-height: 80vh !important;
      overflow-y: auto !important;
      position: relative !important;
      transform: translateY(-30px) scale(0.98) !important;
      transition: transform 0.3s ease !important;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
      margin: 0 !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
  }
  
  
  
  /* Custom scrollbar for profile modal */
  #profile-modal .modal-content::-webkit-scrollbar {
      width: 12px;
  }
  
  #profile-modal .modal-content::-webkit-scrollbar-track {
      background: #e5e5e5;
      border-radius: 6px;
  }
  
  #profile-modal .modal-content::-webkit-scrollbar-thumb {
      background: #9ca3af;
      border-radius: 6px;
      border: 2px solid #e5e5e5;
  }
  
  #profile-modal .modal-content::-webkit-scrollbar-thumb:hover {
      background: #6b7280;
  }
  
  /* Force scrollbar to always show */
  #profile-modal .modal-content {
      scrollbar-width: thin;
      scrollbar-color: #9ca3af #e5e5e5;
  }
  
  /* Notification Groups Styling */
  .notification-groups {
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-top: 16px;
  }
  
  .notification-category {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 16px;
      background: #f9fafb;
  }
  
  .notification-category-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      margin: 0 0 12px 0;
      padding-bottom: 8px;
      border-bottom: 1px solid #e5e7eb;
  }
  
  .notification-category-title i {
      color: #6366f1;
      font-size: 16px;
  }
  
  .notification-options {
      display: flex;
      flex-direction: column;
      gap: 12px;
  }
  
  /* Enhanced Notification Switch Styling */
  .notification-switch {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      margin-bottom: 8px;
  }
  
  .notification-switch:hover {
      border-color: #d1d5db;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
  }
  
  .notification-switch input[type="checkbox"] {
      display: none;
  }
  
  .notification-switch .switch-slider {
      width: 44px;
      height: 24px;
      background: #e5e7eb;
      border-radius: 12px;
      position: relative;
      transition: background 0.3s ease;
      flex-shrink: 0;
      margin-top: 2px;
  }
  
  .notification-switch .switch-slider::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: white;
      top: 2px;
      left: 2px;
      transition: transform 0.3s ease;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .notification-switch input[type="checkbox"]:checked + .switch-slider {
      background: #6366f1;
  }
  
  .notification-switch input[type="checkbox"]:checked + .switch-slider::before {
      transform: translateX(20px);
  }
  
  .switch-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
  }
  
  .switch-label {
      font-weight: 500;
      color: #111827;
      font-size: 14px;
      line-height: 1.3;
      display: block;
  }
  
  .switch-description {
      color: #6b7280;
      font-size: 12px;
      line-height: 1.4;
      display: block;
  }
  
  /* Responsive profile modal */
  @media (max-width: 768px) {
      #profile-modal {
          padding: 10px !important;
          align-items: flex-start !important;
          padding-top: 80px !important;
      }
      
      #profile-modal .modal-content {
          max-height: 85vh !important;
          max-width: 100% !important;
          border-radius: 8px !important;
      }
  }
  
  @media (max-width: 480px) {
      #profile-modal {
          padding: 5px !important;
          padding-top: 70px !important;
      }
      
      #profile-modal .modal-content {
          max-height: 90vh !important;
      }
      
      /* Mobile notification adjustments */
      .notification-groups {
          gap: 16px;
      }
      
      .notification-category {
          padding: 12px;
      }
      
      .notification-category-title {
          font-size: 13px;
      }
      
      .notification-switch {
          padding: 12px;
          gap: 10px;
      }
      
      .notification-switch .switch-slider {
          width: 38px;
          height: 20px;
      }
      
      .notification-switch .switch-slider::before {
          width: 16px;
          height: 16px;
      }
      
      .notification-switch input[type="checkbox"]:checked + .switch-slider::before {
          transform: translateX(18px);
      }
      
      .switch-label {
          font-size: 13px;
      }
      
      .switch-description {
          font-size: 11px;
      }
  }
  
  
  
  .close-modal {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--gray);
  }
  
  .modal-header {
      text-align: center;
      margin-bottom: 30px;
  }
  
  .modal-header .subject-icon {
      margin: 0 auto 15px;
  }
  
  .modal-header h3 {
      font-size: 1.5rem;
      color: var(--primary);
  }
  
  .modal-header p {
      color: var(--gray);
      font-size: 0.9rem;
  }
  
  .modal-body {
      margin-top: 20px;
  }
  
  .modal-section {
      margin-bottom: 20px;
  }
  
  .modal-section h4 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      color: var(--dark);
  }
  
  .modal-section ul {
      list-style: none;
  }
  
  .modal-section li {
      margin-bottom: 8px;
      padding-left: 20px;
      position: relative;
  }
  
  .modal-section li::before {
      content: "•";
      color: var(--primary);
      position: absolute;
      left: 0;
  }
  
  .modal-buttons {
      display: flex;
      justify-content: center;
      margin-top: 30px;
  }
  
  /* Pricing Section */
  .pricing {
      background: #f6f8ff;
  }
  
  .pricing-cards {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
      margin-top: 40px;
  }
  
  .price-card {
      background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.08) 100%);
      border-radius: 10px;
      padding: 30px;
      box-shadow: var(--shadow-sm);
      flex: 1;
      min-width: 280px;
      max-width: 350px;
      position: relative;
      transition: var(--transition);
      padding-bottom: 80px;
      border: 2px solid rgba(30, 64, 175, 0.2);
  }
  
  .price-card:hover {
      border-color: #1e40af;
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
  }
  
  .price-card.highlighted {
      border: 2px solid var(--accent);
  }
  
  .price-card .badge {
      position: absolute;
      top: -10px;
      right: 20px;
      background: var(--accent);
      color: white;
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .price-card h3 {
      font-size: 1.3rem;
      margin-bottom: 15px;
      color: var(--primary);
  }
  
  .price-card .price {
      font-size: 2rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 20px;
  }
  
  .price-card ul {
      list-style: none;
      margin-bottom: 30px;
  }
  
  .price-card li {
      margin-bottom: 10px;
      padding-left: 25px;
      position: relative;
  }
  
  .price-card li::before {
      content: "✓";
      color: var(--primary);
      position: absolute;
      left: 0;
  }
  
  .price-card .small {
      font-size: 0.9rem;
      color: var(--gray);
      margin-bottom: 20px;
  }
  
  /* Discount Notice */
  .discount-notice {
      text-align: center;
      font-size: 1rem;
      margin: 0 0 45px 0;
  }
  
  .discount-link {
      color: #1e40af !important;
      text-decoration: none;
      outline: none !important;
      background: none !important;
      border: none !important;
      box-shadow: none !important;
  }
  
  .discount-link:hover,
  .discount-link:focus,
  .discount-link:active,
  .discount-link:visited {
      color: #1e3a8a !important;
      outline: none !important;
      background: none !important;
      border: none !important;
      box-shadow: none !important;
  }
  
  /* Pricing Subtitle */
  .pricing-subtitle {
      text-align: center;
      margin: 120px 0 50px 0;
  }
  
  #discounted-pricing.pricing-subtitle {
      margin: 120px 0 50px 0 !important;
  }
  
  .pricing-subtitle h3 {
      font-size: 2rem;
      color: var(--dark);
      margin-bottom: 25px;
      font-weight: 600;
  }
  
  .pricing-subtitle p {
      font-size: 1.1rem;
      color: var(--gray);
      max-width: 600px;
      margin: 0 auto 60px auto;
  }
  
  /* Discounted Pricing Cards */
  .discounted-cards {
      margin-top: 0;
  }
  
  .price-card.discounted {
      background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.08) 100%);
      border: 2px solid rgba(30, 64, 175, 0.2);
      position: relative;
  }
  
  .price-card.discounted:hover {
      border-color: #1e40af;
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
  }
  
  .price-card.discounted.highlighted {
      background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(30, 64, 175, 0.12) 100%);
      border-color: #1e40af;
  }
  
  .discount-badge {
      background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
      color: white;
  }
  
  .price-card.discounted .price .amount {
      color: var(--dark);
  }
  
  .price-card.discounted .price .period {
      color: var(--dark);
  }
  
  .eligibility-info {
      text-align: center;
      font-size: 0.9rem;
      color: var(--gray);
      font-style: italic;
      margin-top: 20px;
      padding: 10px;
      background: rgba(30, 64, 175, 0.05);
      border-radius: 8px;
  }
  
  /* Booking Section */
  .booking {
      background: white;
  }
  
  .booking-container {
      background: white;
      border-radius: 10px;
      padding: 30px;
      box-shadow: var(--shadow-sm);
      width: 100%;
      margin: 0 auto;
  }
  
  .calendly-inline-widget {
      min-height: 700px;
      width: 100%;
      background: transparent !important;
      margin-top: 20px;
  }
  
  /* Contact Section */
  .contact {
      background: #f6f8ff;
      padding: 80px 0;
  }
  
  .contact h2 {
      text-align: center;
      margin-bottom: 15px;
      font-size: 2.5rem;
      color: var(--dark);
  }
  
  .contact .section-subtitle {
      text-align: center;
      color: var(--gray);
      margin-bottom: 60px;
      font-size: 1.2rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
  }
  
  .contact-options {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 0;
  }
  
  .contact-card {
      background: white;
      border-radius: 15px;
      padding: 40px 30px;
      text-align: center;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      text-decoration: none;
      color: var(--dark);
      border: 2px solid transparent;
  }
  
  .contact-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
  }
  
  .contact-card i {
      font-size: 3rem;
      color: var(--primary);
      margin-bottom: 20px;
      display: block;
  }
  
  .contact-card h3 {
      margin-bottom: 15px;
      font-size: 1.4rem;
      color: var(--dark);
      text-align: center;
  }
  
  .contact-card p {
      color: var(--gray);
      margin-bottom: 25px;
      line-height: 1.6;
      font-size: 1rem;
      text-align: center;
  }
  
  .contact-card .cta-button {
      margin-top: 10px;
  }
  
  /* ======================
     Footer Styles
     ====================== */
  footer {
      background: var(--dark);
      color: white;
      padding: 60px 0 30px;
      font-size: 0.95rem;
  }
  
  .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 40px;
      max-width: 1200px;
      margin: 0 auto 40px;
      padding: 0 20px;
  }
  
  .footer-brand h3 {
      font-size: 1.8rem;
      margin-bottom: 15px;
      line-height: 1.2;
      /* Force the word 'Yuli' to render white in the footer */
      color: #ffffff;
  }
  
  .footer-brand h3 span {
      color: var(--accent);
  }
  
  .footer-brand .tagline {
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 8px;
  }
  
  .footer-brand .pronunciation {
      font-style: italic;
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
  }
  
  .footer-heading {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 20px;
      color: white;
      position: relative;
      padding-bottom: 8px;
  }
  
  .footer-heading::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: var(--accent);
  }
  
  .footer-links {
      list-style: none;
  }
  
  .footer-links li {
      margin-bottom: 12px;
  }
  
  .footer-links a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
  }
  
  .footer-links a:hover {
      color: white;
      transform: translateX(5px);
  }
  
  .footer-bottom {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .footer-bottom p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
  }
  
  .footer-email {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 0.9rem;
  }
  
  .footer-email:hover {
      color: white;
      text-decoration: underline;
  }
  
  /* Responsive Footer */
  @media (max-width: 768px) {
      .footer-grid {
          grid-template-columns: 1fr;
          gap: 30px;
      }
      
      .footer-brand {
          text-align: center;
      }
      
      .footer-heading {
          text-align: center;
      }
      
      .footer-heading::after {
          left: 50%;
          transform: translateX(-50%);
      }
      
      .footer-links {
          text-align: center;
      }
      
      .footer-links a:hover {
          transform: none;
      }
  }
  
  @media (min-width: 1600px) {
      .footer-grid {
          max-width: 1400px;
      }
  }
  
  
  
  /* Subject Details Modal Specific Styles */
  .subject-details-content {
      max-width: 700px;
      max-height: 90vh;
      overflow-y: auto;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
  }
  
  .subject-details-content .modal-header {
      text-align: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--light-gray);
  }
  
  .subject-details-content .modal-header h3 {
      color: var(--dark);
      margin-bottom: 8px;
      font-size: 1.5rem;
      font-weight: 600;
  }
  
  .subject-details-content .modal-header p {
      color: var(--gray);
      margin: 0;
      font-size: 0.95rem;
  }
  
  /* Booking Steps */
  .booking-steps {
      margin-bottom: 30px;
  }
  
  .step {
      display: none;
  }
  
  .step.active {
      display: block;
  }
  
  .step-header {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      gap: 12px;
  }
  
  .step-number {
      background: var(--primary);
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.9rem;
  }
  
  .step-header h4 {
      color: var(--dark);
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0;
  }
  
  /* Exam Board Options */
  .exam-board-options {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
  }
  
  .exam-board-option {
      background: white;
      border: 2px solid var(--light-gray);
      border-radius: 8px;
      padding: 16px;
      cursor: pointer;
      transition: var(--transition);
      text-align: center;
  }
  
  .exam-board-option:hover {
      border-color: var(--primary);
      transform: translateY(-1px);
      box-shadow: var(--shadow-sm);
  }
  
  .exam-board-option.selected {
      border-color: var(--primary);
      background: rgba(67, 97, 238, 0.08);
  }
  
  .exam-board-option h5 {
      color: var(--primary);
      margin-bottom: 6px;
      font-size: 0.95rem;
      font-weight: 600;
  }
  
  .exam-board-option p {
      color: var(--gray);
      font-size: 0.8rem;
      margin: 0;
      line-height: 1.3;
  }
  
  /* Topics Selection */
  .topics-selection {
      max-height: 400px;
      overflow-y: auto;
  }
  
  .topic-category {
      background: white;
      border: 1px solid var(--light-gray);
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
  }
  
  .topic-category h5 {
      color: var(--primary);
      margin-bottom: 12px;
      font-size: 1rem;
      font-weight: 600;
  }
  
  .topic-items {
      display: grid;
      gap: 8px;
  }
  
  .topic-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: var(--transition);
  }
  
  .topic-item:hover {
      background: rgba(67, 97, 238, 0.05);
  }
  
  .topic-item.selected {
      background: rgba(67, 97, 238, 0.1);
      border: 1px solid var(--primary);
  }
  
  .topic-checkbox {
      width: 18px;
      height: 18px;
      border: 2px solid var(--light-gray);
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
  }
  
  .topic-item.selected .topic-checkbox {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
      font-size: 0.7rem;
  }
  
  .topic-info {
      flex: 1;
  }
  
  .topic-info h6 {
      color: var(--dark);
      margin-bottom: 2px;
      font-size: 0.9rem;
      font-weight: 500;
  }
  
  .topic-info p {
      color: var(--gray);
      font-size: 0.8rem;
      margin: 0;
      line-height: 1.3;
  }
  
  /* Booking Summary */
  .booking-summary {
      background: var(--light);
      border-radius: 8px;
      padding: 20px;
  }
  
  .summary-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--light-gray);
  }
  
  .summary-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
  }
  
  .summary-label {
      font-weight: 500;
      color: var(--dark);
  }
  
  .summary-value {
      color: var(--primary);
      font-weight: 600;
  }
  
  .summary-item.discount-applied .summary-value {
      color: var(--success);
  }
  
  .summary-item.discount-pending .summary-value {
      color: #f39c12;
  }
  
  
  
  /* Step Navigation */
  .step-navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 20px;
      border-top: 1px solid var(--light-gray);
  }
  
  .btn-primary, .btn-secondary {
      padding: 10px 24px;
      border-radius: 6px;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      border: none;
      font-size: 0.9rem;
  }
  
  .btn-primary {
      background: var(--primary);
      color: white;
  }
  
  .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
  }
  
  .btn-secondary {
      background: white;
      color: var(--primary);
      border: 1px solid var(--primary);
  }
  
  .btn-secondary:hover {
      background: rgba(67, 97, 238, 0.05);
  }
  
  /* Topics Display */
  .topics-display {
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid var(--light-gray);
  }
  
  .topics-display h4 {
      margin-bottom: 15px;
      color: var(--dark);
  }
  
  .topics-list {
      display: grid;
      gap: 15px;
  }
  
  .topic-category {
      background: var(--light);
      border-radius: 8px;
      padding: 20px;
      border-left: 4px solid var(--primary);
  }
  
  .topic-category h5 {
      color: var(--primary-dark);
      margin-bottom: 15px;
      font-size: 1.1rem;
  }
  
  .topic-items {
      display: grid;
      gap: 10px;
  }
  
  .topic-item {
      background: white;
      padding: 12px 15px;
      border-radius: 6px;
      border: 1px solid var(--light-gray);
      transition: var(--transition);
  }
  
  .topic-item:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
  }
  
  .topic-item h6 {
      color: var(--dark);
      margin-bottom: 5px;
      font-size: 0.95rem;
  }
  
  .topic-item p {
      color: var(--gray);
      font-size: 0.85rem;
      margin: 0;
      line-height: 1.4;
  }
  
  /* Ensure modal is properly centered on all screen sizes */
  @media (max-width: 768px) {
      .modal {
          padding: 10px;
          align-items: center;
          justify-content: center;
      }
      
      .modal-content {
          max-height: 95vh;
          padding: 20px;
          width: 100%;
          margin: 0 auto;
      }
      
      .subject-details-content {
          max-width: 100%;
          margin: 0 auto;
      }
      
      .exam-board-options {
          grid-template-columns: 1fr;
      }
  }
  
  /* Force centering with absolute positioning as backup */
  .modal.active .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(1);
  }
  
  /* Override the above rule specifically for profile modal with higher specificity */
  #profile-modal.modal.active .modal-content {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      transform: translateY(0) scale(1) !important;
      margin: 0 !important;
  }
  
  /* Form Help Text */
  .form-help {
      font-size: 0.8rem;
      color: var(--gray);
      margin-top: 5px;
      display: block;
  }
  
  /* Discount Status */
  .discount-status {
      background: var(--light-gray);
      padding: 15px;
      border-radius: 8px;
      margin-top: 10px;
  }
  
  .status-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
  }
  
  .status-item:last-child {
      margin-bottom: 0;
  }
  
  .status-label {
      font-weight: 500;
      color: var(--dark);
  }
  
  .status-value {
      font-weight: 600;
  }
  
  .status-value.pending {
      color: #f39c12;
  }
  
  .status-value.approved {
      color: var(--success);
  }
  
  .status-value.not-requested {
      color: var(--gray);
  }
  
  #discount-proof-link {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
  }
  
  #discount-proof-link:hover {
      text-decoration: underline;
  }
  
  /* Admin Dashboard */
  .admin-content {
      max-width: 800px;
      max-height: 80vh;
      overflow-y: auto;
  }
  
  .admin-header {
      text-align: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--light-gray);
  }
  
  .admin-header h3 {
      color: var(--primary);
      margin-bottom: 10px;
  }
  
  .admin-header i {
      margin-right: 10px;
  }
  
  .admin-section {
      margin-bottom: 30px;
  }
  
  .admin-section h4 {
      margin-bottom: 15px;
      color: var(--dark);
  }
  
  .discount-requests {
      max-height: 400px;
      overflow-y: auto;
  }
  
  .discount-request-item {
      background: white;
      border: 1px solid var(--light-gray);
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 10px;
      transition: var(--transition);
  }
  
  .discount-request-item:hover {
      box-shadow: var(--shadow-sm);
  }
  
  .request-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
  }
  
  .request-user {
      font-weight: 600;
      color: var(--dark);
  }
  
  .request-date {
      font-size: 0.9rem;
      color: var(--gray);
  }
  
  .request-actions {
      display: flex;
      gap: 10px;
      margin-top: 10px;
  }
  
  .request-actions button {
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
  }
  
  .approve-btn {
      background: var(--success);
      color: white;
  }
  
  .approve-btn:hover {
      background: #3a9d3a;
  }
  
  .reject-btn {
      background: #e74c3c;
      color: white;
  }
  
  .reject-btn:hover {
      background: #c0392b;
  }
  
  .view-proof-btn {
      background: var(--primary);
      color: white;
  }
  
  .view-proof-btn:hover {
      background: var(--primary-dark);
  }
  
  .loading {
      text-align: center;
      color: var(--gray);
      padding: 20px;
  }
  
  /* Auth Modal Styles - Clean Professional SaaS Design */
  .auth-modal-content {
      max-width: 480px;
      width: 90%;
      height: 80vh;
      max-height: 80vh;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
      overflow-y: scroll !important;
      position: relative;
      border: 1px solid #e5e7eb;
      margin: 20px auto;
      scrollbar-width: thin;
      scrollbar-color: #c1c1c1 #f1f1f1;
  }
  
  /* Custom scrollbar styling - Force visible */
  .auth-modal-content::-webkit-scrollbar {
      width: 12px !important;
      display: block !important;
  }
  
  .auth-modal-content::-webkit-scrollbar-track {
      background: #e5e7eb !important;
      border-radius: 6px;
      margin: 8px 0;
  }
  
  .auth-modal-content::-webkit-scrollbar-thumb {
      background: #9ca3af !important;
      border-radius: 6px;
      border: 2px solid #ffffff;
  }
  
  .auth-modal-content::-webkit-scrollbar-thumb:hover {
      background: #6b7280 !important;
  }
  
  .auth-modal-content::-webkit-scrollbar-corner {
      background: #ffffff;
  }
  
  .auth-container {
      position: relative;
      background: #ffffff;
  }
  
  .auth-form {
      position: relative;
      width: 100%;
      padding: 32px;
      display: none;
  }
  
  .auth-form.active {
      display: block;
  }
  
  /* Account Type Selector */
  .account-type-selector {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
      margin-bottom: 32px;
  }
  
  .account-option {
      position: relative;
  }
  
  .account-option input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
  }
  
  .account-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 28px 24px;
      min-height: 140px;
      height: 140px;
      border: 1px solid #E0E0E0;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: white;
      position: relative;
      box-sizing: border-box;
  }
  
  .account-card:hover {
      border-color: #4264F6;
      background: #F8F9FF;
      box-shadow: 0 2px 8px rgba(66, 100, 246, 0.1);
  }
  
  .account-option input[type="radio"]:checked + .account-card {
      border-color: #4264F6;
      background: #F0F4FF;
      color: #1e293b;
  }
  
  .account-icon {
      font-size: 20px;
      margin-bottom: 12px;
      color: #6b7280;
      transition: color 0.2s ease;
  }
  
  .account-option input[type="radio"]:checked + .account-card .account-icon {
      color: #4264F6;
  }
  
  .account-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      width: 100%;
  }
  
  .account-content h4 {
      margin: 0;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.3;
      color: #1e293b;
      text-align: center;
      width: 100%;
  }
  
  .approval-note {
      margin: 6px 0 0 0;
      font-size: 12px;
      color: #64748b;
      line-height: 1.3;
      font-weight: 400;
      text-align: center;
      width: 100%;
  }
  
  /* Create Account Button */
  .create-account-btn {
      width: 100%;
      background: #4264F6;
      border: none;
      padding: 16px 24px;
      border-radius: 8px;
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 32px;
  }
  
  .create-account-btn:hover {
      background: #3451E5;
      box-shadow: 0 4px 12px rgba(66, 100, 246, 0.2);
  }
  
  @media (max-width: 768px) {
      .account-type-selector {
          grid-template-columns: 1fr;
          gap: 12px;
          margin-bottom: 28px;
      }
      
      .account-card {
          min-height: 120px;
          height: 120px;
          padding: 24px 20px;
      }
  }
  
  /* Tutor Approval Banner */
  .tutor-approval-banner {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: #4264F6;
      color: white;
      z-index: 10000;
      box-shadow: 0 4px 12px rgba(66, 100, 246, 0.2);
      animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
      from {
          transform: translateY(-100%);
      }
      to {
          transform: translateY(0);
      }
  }
  
  .banner-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 20px;
  }
  
  .banner-content .banner-icon {
      font-size: 24px;
      margin-right: 16px;
  }
  
  .banner-text {
      flex: 1;
  }
  
  .banner-text h3 {
      margin: 0 0 4px 0;
      font-size: 18px;
      font-weight: 600;
  }
  
  .banner-text p {
      margin: 0;
      font-size: 14px;
      opacity: 0.9;
  }
  
  .banner-close {
      background: none;
      border: none;
      color: white;
      font-size: 18px;
      cursor: pointer;
      padding: 8px;
      border-radius: 4px;
      transition: background 0.2s ease;
  }
  
  .banner-close:hover {
      background: rgba(255, 255, 255, 0.1);
  }
  
  @media (max-width: 768px) {
      .banner-content {
          padding: 12px 16px;
      }
      
      .banner-text h3 {
          font-size: 16px;
      }
      
      .banner-text p {
          font-size: 13px;
      }
  }
  
  .auth-header {
      text-align: center;
      margin-bottom: 32px;
  }
  
  /* Logo Container */
  .auth-logo-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 24px;
      min-height: 56px;
  }
  
  /* Yuli Text Logo */
  .yuli-text-logo {
      font-family: 'Montserrat', sans-serif;
      font-size: 32px;
      font-weight: 700;
      color: #5865F2;
      letter-spacing: -0.5px;
      text-align: center;
      line-height: 1;
      user-select: none;
      position: relative;
  }
  
  .yuli-text-logo::after {
      content: '';
      position: absolute;
      bottom: -2px;
      right: 24px;
      width: 6px;
      height: 6px;
      background: #F2469C;
      border-radius: 50%;
  }
  
  /* Text Content - Perfect Centering */
  .auth-text-content {
      text-align: center;
      margin-bottom: 0;
      padding-top: 20px;
  }
  
  .auth-header h2 {
      font-size: 28px;
      font-weight: 600;
      color: #111827;
      margin: 0 0 16px 0;
      letter-spacing: -0.025em;
      text-align: center;
      line-height: 1.2;
  }
  
  .auth-subtitle {
      color: #6b7280;
      font-size: 15px;
      line-height: 1.5;
      font-weight: 400;
      max-width: 320px;
      margin: 0 auto;
      text-align: center;
      padding: 0 16px;
  }
  
  .auth-form-content {
      margin-bottom: 24px;
  }
  
  /* Form Group Spacing */
  .auth-form .form-group {
      margin-bottom: 24px;
  }
  
  /* Terms and Conditions Checkbox */
  .form-options {
      margin-bottom: 32px;
      margin-top: 32px;
  }
  
  /* Links with Pink Accent */
  .switch-link {
      color: #EC4899;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
  }
  
  .switch-link:hover {
      color: #DB2777;
      text-decoration: underline;
  }
  
  .terms-link {
      color: #EC4899;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
  }
  
  .terms-link:hover {
      color: #DB2777;
      text-decoration: underline;
  }
  
  /* Normalized Auth Inputs */
  .auth-input {
      width: 100%;
      height: 48px;
      padding: 12px 16px;
      font-size: 16px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: white;
      color: #1f2937;
      transition: all 0.2s ease;
      box-sizing: border-box;
      font-family: inherit;
  }
  
  .auth-input::placeholder {
      color: #9ca3af;
  }
  
  .auth-input:focus {
      outline: none;
      border-color: #4264F6;
      box-shadow: 0 0 0 3px rgba(66, 100, 246, 0.1);
  }
  
  .auth-input:disabled {
      background-color: #f9fafb;
      color: #6b7280;
      cursor: not-allowed;
  }
  
  /* Input Container */
  .input-container {
      position: relative;
      width: 100%;
  }
  
  /* Password Container with Toggle */
  .password-container {
      position: relative;
  }
  
  .password-input {
      padding-right: 56px; /* Space for toggle button */
  }
  
  /* Password Toggle Button */
  .toggle-password {
      position: absolute;
      top: 50%;
      right: 16px;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 8px;
      cursor: pointer;
      color: #6b7280;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      width: 32px;
      height: 32px;
  }
  
  .toggle-password:hover {
      color: #4264F6;
      background-color: rgba(66, 100, 246, 0.1);
  }
  
  .toggle-password:focus {
      outline: 2px solid #4264F6;
      outline-offset: 2px;
      background-color: rgba(66, 100, 246, 0.1);
  }
  
  .toggle-password.is-visible {
      color: #4264F6;
  }
  
  .toggle-password .icon-eye {
      font-size: 16px;
      transition: all 0.2s ease;
  }
  
  /* Form Group Spacing */
  .auth-form .form-group {
      margin-bottom: 20px;
  }
  
  /* Field Labels */
  .field-label {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      color: #374151;
      font-size: 14px;
      font-weight: 500;
  }
  
  .field-label .field-icon {
      margin-right: 8px;
      color: #6b7280;
      font-size: 14px;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
      .auth-input {
          height: 44px;
          padding: 10px 14px;
          font-size: 16px; /* Prevent zoom on iOS */
      }
      
      .password-input {
          padding-right: 52px;
      }
      
      .toggle-password {
          right: 14px;
          width: 28px;
          height: 28px;
          padding: 6px;
      }
      
      .toggle-password .icon-eye {
          font-size: 14px;
      }
  }
  
  .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
  }
  
  .form-group {
      margin-bottom: 24px;
  }
  
  /* Field Label with Icon */
  .field-label {
      display: flex;
      align-items: baseline;
      margin-bottom: 6px;
      gap: 8px;
  }
  
  .field-icon {
      font-size: 14px;
      color: #5865F2;
      width: 16px;
      flex-shrink: 0;
      display: inline-block;
      text-align: center;
      line-height: 14px;
      margin-top: 1px;
  }
  
  .form-group label {
      display: block;
      font-weight: 500;
      color: #374151;
      font-size: 14px;
      letter-spacing: 0;
      margin: 0;
      line-height: 14px;
  }
  
  .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      max-width: 350px;
      margin: 0 auto;
  }
  
  .input-wrapper input,
  .input-wrapper select {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      font-size: 15px;
      transition: all 0.2s ease;
      background: #ffffff;
      color: #111827;
      font-weight: 400;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .input-wrapper input:focus,
  .input-wrapper select:focus {
      outline: none;
      border-color: #5865F2;
      box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .input-wrapper input::placeholder {
      color: #9ca3af;
  }
  
  .password-toggle {
      position: absolute;
      right: 16px;
      background: none;
      border: none;
      color: #9ca3af;
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .password-toggle:hover {
      color: #5865F2;
      background: rgba(88, 101, 242, 0.05);
  }
  
  .form-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      max-width: 350px;
      margin-left: auto;
      margin-right: auto;
  }
  
  /* Make inline policy links read like a sentence */
  .checkbox-wrapper .terms-link { margin: 0 4px; }
  
  /* Inline field error under inputs (subtle, accessible) */
  .field-error {
      color: #dc2626;
      font-size: 12px;
      line-height: 1.4;
      margin-top: 6px;
  }
  
  .checkbox-wrapper {
      display: flex;
      align-items: center;
      cursor: pointer;
      font-size: 13px;
      color: #374151;
      line-height: 1;
  }
  
  .checkbox-wrapper input[type="checkbox"] {
      display: none;
  }
  
  .checkmark {
      width: 16px;
      height: 16px;
      border: 1px solid #d1d5db;
      border-radius: 3px;
      margin-right: 8px;
      position: relative;
      transition: all 0.2s ease;
      background: white;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
      background: #5865F2;
      border-color: #5865F2;
  }
  
  .checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
      content: '✓';
      color: white;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
  }
  
  .forgot-link {
      color: #5865F2;
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      transition: color 0.2s ease;
  }
  
  .forgot-link:hover {
      color: #4c63d2;
      text-decoration: underline;
  }
  
  .auth-submit-btn {
      width: 100%;
      max-width: 350px;
      margin: 12px auto 0;
      padding: 16px 24px;
      background: #4264F6;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 12px rgba(66, 100, 246, 0.2);
      letter-spacing: -0.025em;
      position: relative;
      overflow: hidden;
  }
  
  .auth-submit-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
      opacity: 0;
      transition: opacity 0.2s ease;
  }
  
  .auth-submit-btn:hover {
      background: #3451E5;
      box-shadow: 0 6px 20px rgba(66, 100, 246, 0.3);
  }
  
  .auth-submit-btn:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(66, 100, 246, 0.25);
  }
  
  .auth-footer {
      text-align: center;
      padding-top: 24px;
      border-top: 1px solid #e5e7eb;
      margin-top: 16px;
  }
  
  .auth-footer p {
      color: #6b7280;
      font-size: 14px;
      margin: 0;
  }
  
  .switch-link {
      color: #5865F2;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
  }
  
  .switch-link:hover {
      color: #4c63d2;
      text-decoration: underline;
  }
  
  /* Duplicates removed - styling consolidated above */
  
  /* Eligibility Information */
  .eligibility-info {
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 16px;
  }
  
  .eligibility-info p {
      margin: 0 0 8px 0;
      color: #374151;
  }
  
  .eligibility-info ul {
      margin: 8px 0 12px 20px;
      color: #6b7280;
  }
  
  .eligibility-info li {
      margin-bottom: 2px;
      font-size: 14px;
  }
  
  .eligibility-info small {
      color: #9ca3af;
      font-style: italic;
  }
  
  /* File Upload Styles */
  .file-upload-wrapper {
      margin-top: 8px;
  }
  
  .file-upload-area {
      border: 1px dashed #d1d5db;
      border-radius: 8px;
      padding: 24px 16px;
      text-align: center;
      transition: all 0.2s ease;
      cursor: pointer;
      background: #f9fafb;
  }
  
  .file-upload-area:hover {
      border-color: #5865F2;
      background: rgba(88, 101, 242, 0.02);
  }
  
  .file-upload-area i {
      font-size: 24px;
      color: #9ca3af;
      margin-bottom: 8px;
      display: block;
  }
  
  .file-upload-area p {
      margin: 0 0 4px 0;
      color: #374151;
      font-weight: 500;
      font-size: 14px;
  }
  
  .browse-link {
      color: #5865F2;
      text-decoration: underline;
      font-weight: 500;
  }
  
  .file-upload-area small {
      color: #6b7280;
      font-size: 11px;
  }
  
  /* File upload states */
  .file-upload-area.dragover {
      border-color: #667eea !important;
      background-color: #f8faff !important;
  }
  
  .file-upload-area.file-selected {
      border-color: #16a34a !important;
      background-color: #f0fdf4 !important;
  }
  
  .file-upload-area.file-selected i {
      color: #16a34a !important;
  }
  
  /* Terms Links */
  .terms-link {
      color: #5865F2;
      text-decoration: none;
      font-weight: 500;
  }
  
  .terms-link:hover {
      color: #4c63d2;
      text-decoration: underline;
  }
  
  /* Role Selector Styles */
  .role-selector {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 8px;
      align-items: stretch;
  }
  
  .role-option {
      position: relative;
  }
  
  .role-option input[type="radio"] {
      display: none;
  }
  
  /* Make the entire card clickable reliably */
  .role-option label.role-card {
      cursor: pointer;
  }
  .role-option label.role-card:focus {
      outline: 2px solid #5865F2;
      outline-offset: 2px;
  }
  
  .role-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 100%;
      padding: 18px 16px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: white;
      text-align: center;
      position: relative;
  }
  
  .role-card:hover {
      border-color: #5865F2;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .role-option input[type="radio"]:checked + .role-card {
      border-color: #5865F2;
      background: rgba(88, 101, 242, 0.04);
      box-shadow: 0 2px 8px rgba(88, 101, 242, 0.1);
  }
  
  .role-option input[type="radio"]:checked + .role-card::before {
      content: '✓';
      position: absolute;
      top: 6px;
      right: 6px;
      width: 16px;
      height: 16px;
      background: #5865F2;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 600;
  }
  
  .role-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
      transition: all 0.2s ease;
  }
  
  .tutor-icon {
      background: rgba(88, 101, 242, 0.08);
      color: #5865F2;
  }
  
  .student-icon {
      background: rgba(242, 70, 156, 0.08);
      color: #F2469C;
  }
  
  .role-icon i {
      font-size: 16px;
  }
  
  .role-content { 
      display:flex; 
      flex-direction:column; 
      align-items:center; 
      text-align:center; 
      max-width: 220px; 
      margin: 0 auto; 
  }
  .role-content h4 {
      font-size: 14px;
      font-weight: 600;
      color: #111827;
      margin: 6px 0 2px 0;
      line-height: 1.3;
  }
  
  .role-content p {
      font-size: 12.5px;
      color: #6b7280;
      margin: 0;
      line-height: 1.45;
  }
  
  /* Responsive Design */
  @media (max-width: 480px) {
      .auth-modal-content {
          width: 95%;
          margin: 10px auto;
          height: 85vh;
          max-height: 85vh;
      }
      
      
      .auth-form {
          padding: 24px 20px;
      }
      
      .form-row {
          grid-template-columns: 1fr;
          gap: 0;
      }
      
      .auth-logo-container {
          margin-bottom: 24px;
          min-height: 48px;
      }
      
      .yuli-text-logo {
          font-size: 28px;
      }
      
      .yuli-text-logo::after {
          right: 20px;
          width: 5px;
          height: 5px;
      }
      
      .auth-header {
          margin-bottom: 28px;
      }
      
      .auth-text-content {
          padding-top: 16px;
      }
      
      .auth-header h2 {
          font-size: 24px;
          margin-bottom: 8px;
      }
      
      .auth-subtitle {
          font-size: 14px;
          max-width: 280px;
          padding: 0 12px;
      }
      
      .input-wrapper {
          max-width: 100%;
      }
      
      .form-options {
          max-width: 100%;
      }
      
      .auth-submit-btn {
          max-width: 100%;
      }
      
      .role-selector {
          grid-template-columns: 1fr;
          gap: 12px;
      }
      
      .role-card {
          display: grid;
          grid-template-columns: 44px 1fr;
          column-gap: 12px;
          align-items: center;
          text-align: left;
          padding: 12px 16px;
          height: auto;
      }
      
      .role-icon {
          width: 36px;
          height: 36px;
          margin-bottom: 0;
          flex-shrink: 0;
      }
      
      .role-icon i {
          font-size: 14px;
      }
  }
  
  /* Profile Modal */
  .profile-content {
      max-width: 720px;
  }
  
  .profile-header {
      text-align: center;
      margin-bottom: 24px;
  }
  
  .profile-header.enhanced {
      background: linear-gradient(135deg, #2b3a8a 0%, #1f2a60 100%);
      color: white;
      border-radius: 12px;
      padding: 32px 24px;
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 18px;
      align-items: center;
  }
  
  .profile-avatar {
      font-size: 2.5rem;
      color: white;
  }
  
  .profile-avatar.ring {
      width: 64px;
      height: 64px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
  }
  
  .profile-name {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 5px;
  }
  
  .profile-email {
      color: var(--gray);
      margin-bottom: 5px;
  }
  
  .profile-role {
      color: var(--primary);
      font-weight: 500;
  }
  
  .profile-badges { display: flex; gap: 10px; margin-top: 8px; }
  .role-badge { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight:500; }
  .status-verified { background: rgba(255,255,255,0.12); color: #d1fae5; border: 1px solid rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight:500; }
  .status-pending { background: rgba(255,255,255,0.12); color: #ffe8b3; border: 1px solid rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight:500; }
  
  .profile-content.refined { margin-top: 16px; }
  .profile-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .profile-card { background: white; border: 1px solid var(--light-gray); border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .profile-card h3 { display:flex; align-items:center; gap:10px; color: var(--primary-dark); margin-bottom:14px; font-weight:600; }
  .profile-info .info-item { display:flex; justify-content: space-between; align-items:center; padding:8px 0; border-bottom:1px dashed var(--light-gray); }
  .profile-info .info-item:last-child { border-bottom: 0; }
  
  .profile-actions.inline { display:flex; flex-wrap:wrap; gap:12px; }
  .profile-actions.inline.end { justify-content: flex-end; }
  .profile-action-btn { background:#fff; color:#111827; border:1px solid #e5e7eb; padding:10px 14px; border-radius:8px; cursor:pointer; transition:.2s ease; display:inline-flex; align-items:center; gap:8px; }
  .profile-action-btn:hover { background:#f8fafc; border-color:#d1d5db; }
  .profile-action-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
  .profile-action-btn.secondary { background:#fff; }
  .profile-action-btn.danger { background:#fff; color:#b91c1c; border-color:#fecaca; }
  
  .profile-messages { display:grid; gap:12px; }
  .conversation-list { display:flex; gap:8px; flex-wrap:wrap; }
  .message-thread { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:12px; max-height:300px; overflow:auto; }
  .message-compose { display:flex; gap:8px; }
  .message-compose input { flex:1; padding:10px; border:1px solid #e5e7eb; border-radius:8px; }
  
  @media (min-width: 768px) {
    .profile-grid { grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
  }
  
  .profile-section {
      margin-bottom: 25px;
  }
  
  .profile-section h4 {
      margin-bottom: 15px;
      color: var(--dark);
  }
  
  .profile-info {
      background: var(--light-gray);
      padding: 15px;
      border-radius: 8px;
  }
  
  .info-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
  }
  
  .info-item:last-child {
      margin-bottom: 0;
  }
  
  .info-label {
      font-weight: 500;
      color: var(--dark);
  }
  
  .info-value {
      font-weight: 600;
  }
  
  .subjects-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
  }
  
  .subject-tag {
      background: var(--primary);
      color: white;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .delete-subject {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      font-size: 1.2rem;
      padding: 0;
      line-height: 1;
  }
  
  .delete-subject:hover {
      opacity: 0.8;
  }
  
  .no-subjects {
      color: var(--gray);
      font-style: italic;
  }
  
  .profile-actions {
      display: flex;
      gap: 15px;
      margin-top: 30px;
  }
  
  .profile-actions .cta-button {
      flex: 1;
  }
  
  /* Auth Messages */
  .auth-message {
      padding: 10px 15px;
      border-radius: 6px;
      margin-bottom: 15px;
      font-size: 0.9rem;
  }
  
  .error-message {
      background: #fee;
      color: #c53030;
      border: 1px solid #feb2b2;
  }
  
  .success-message {
      background: #f0fff4;
      color: #2f855a;
      border: 1px solid #9ae6b4;
  }
  
  /* Pricing Apply Buttons */
  .apply-button {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 60px);
      margin-top: 20px;
      transition: var(--transition);
  }
  
  /* Dashboard Styles */
  .dashboard-content {
      max-width: 800px;
      max-height: 90vh;
      overflow-y: auto;
  }
  
  .dashboard-header {
      text-align: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 2px solid var(--light-gray);
  }
  
  .dashboard-header h3 {
      color: var(--primary);
      margin-bottom: 10px;
  }
  
  .dashboard-header i {
      margin-right: 10px;
      color: var(--accent);
  }
  
  .dashboard-body {
      display: grid;
      gap: 30px;
  }
  
  .dashboard-section {
      background: white;
      padding: 25px;
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--light-gray);
  }
  
  .dashboard-section h4 {
      color: var(--primary-dark);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
  }
  
  .dashboard-section h4::before {
      content: '';
      width: 4px;
      height: 20px;
      background: var(--accent);
      margin-right: 12px;
      border-radius: 2px;
  }
  
  /* Session Types */
  .session-types {
      display: grid;
      gap: 20px;
      margin-top: 15px;
  }
  
  .session-type {
      background: var(--light);
      padding: 20px;
      border-radius: 8px;
      border-left: 4px solid var(--primary);
  }
  
  .session-type h5 {
      color: var(--primary-dark);
      margin-bottom: 8px;
  }
  
  .session-type p {
      color: var(--gray);
      font-size: 0.9rem;
  }
  
  /* Booking Form Styles */
  .booking-pricing {
      background: var(--light);
      padding: 20px;
      border-radius: 8px;
      margin: 20px 0;
      border: 1px solid var(--light-gray);
  }
  
  .price-display {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
  }
  
  .price-label {
      font-weight: 500;
      color: var(--dark);
  }
  
  .price-amount {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--primary);
  }
  
  /* Sessions List */
  .sessions-list, .progress-reports, .children-sessions, .pending-bookings {
      display: grid;
      gap: 15px;
  }
  
  .session-item, .report-item, .booking-item {
      background: white;
      padding: 20px;
      border-radius: 8px;
      border: 1px solid var(--light-gray);
      transition: var(--transition);
  }
  
  .session-item:hover, .report-item:hover, .booking-item:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
  }
  
  .session-header, .report-header, .booking-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 15px;
  }
  
  .session-info, .report-info, .booking-info {
      flex: 1;
  }
  
  .session-title, .report-title, .booking-title {
      font-weight: 600;
      color: var(--primary-dark);
      margin-bottom: 5px;
  }
  
  .session-details, .report-details, .booking-details {
      font-size: 0.9rem;
      color: var(--gray);
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
  }
  
  .session-status, .booking-status {
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 500;
  }
  
  .session-status.pending, .booking-status.pending {
      background: #fff3cd;
      color: #856404;
  }
  
  .session-status.approved, .booking-status.approved {
      background: #d4edda;
      color: #155724;
  }
  
  .session-status.completed {
      background: #d1ecf1;
      color: #0c5460;
  }
  
  .session-status.cancelled, .booking-status.rejected {
      background: #f8d7da;
      color: #721c24;
  }
  
  .session-actions, .booking-actions {
      display: flex;
      gap: 10px;
      margin-top: 15px;
  }
  
  .session-actions button, .booking-actions button {
      padding: 8px 16px;
      border: none;
      border-radius: 6px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
  }
  
  .approve-btn {
      background: var(--success);
      color: white;
  }
  
  .approve-btn:hover {
      background: #3d8b40;
  }
  
  .reject-btn {
      background: #dc3545;
      color: white;
  }
  
  .reject-btn:hover {
      background: #c82333;
  }
  
  .cancel-btn {
      background: var(--gray);
      color: white;
  }
  
  .cancel-btn:hover {
      background: #5a6268;
  }
  
  .view-btn {
      background: var(--primary);
      color: white;
  }
  
  .view-btn:hover {
      background: var(--primary-dark);
  }
  
  /* Progress Reports */
  .report-content {
      background: var(--light);
      padding: 15px;
      border-radius: 6px;
      margin-top: 10px;
  }
  
  .report-rating {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-top: 10px;
  }
  
  .rating-stars {
      color: #ffc107;
  }
  
  /* No Content States */
  .no-sessions, .no-reports, .no-children, .no-bookings {
      text-align: center;
      color: var(--gray);
      padding: 40px 20px;
      font-style: italic;
  }
  
  /* Form Groups for Booking */
  .form-group {
      margin-bottom: 20px;
  }
  
  .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: var(--dark);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--light-gray);
      border-radius: 6px;
      font-size: 1rem;
      transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
  }
  
  .form-group textarea {
      resize: vertical;
      min-height: 80px;
  }
  
  /* Modal Buttons */
  .modal-buttons {
      display: flex;
      gap: 15px;
      margin-top: 30px;
      justify-content: flex-end;
  }
  
  .modal-buttons .cta-button {
      min-width: 120px;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
      .dashboard-content {
          margin: 20px;
          max-height: 85vh;
      }
      
      .session-header, .report-header, .booking-header {
          flex-direction: column;
          gap: 10px;
      }
      
      .session-details, .report-details, .booking-details {
          flex-direction: column;
          gap: 5px;
      }
      
      .session-actions, .booking-actions {
          flex-wrap: wrap;
      }
      
      .modal-buttons {
          flex-direction: column;
      }
      
      .modal-buttons .cta-button {
          width: 100%;
      }
  }
  
  /* Coming Soon Link */
  .coming-soon-link-container {
      text-align: center;
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid var(--light-gray);
  }
  
  .coming-soon-link {
      background: none;
      border: 2px solid var(--primary);
      color: var(--primary);
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .coming-soon-link:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
  }
  
  .coming-soon-link i {
      font-size: 0.8rem;
  }
  
  /* Admin Dashboard Styles */
  .admin-header {
      background: #1f2937;
      color: white;
      padding: 20px 0;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .admin-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .admin-nav h1 {
      font-size: 24px;
      font-weight: 700;
      margin: 0;
  }
  
  .admin-actions {
      display: flex;
      align-items: center;
      gap: 16px;
  }
  
  .admin-email {
      background: rgba(255,255,255,0.1);
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 14px;
  }
  
  .logout-btn {
      background: #ef4444;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      transition: background 0.2s ease;
  }
  
  .logout-btn:hover {
      background: #dc2626;
  }
  
  .admin-main {
      padding: 40px 0;
      min-height: calc(100vh - 80px);
      background: #f8f9fa;
  }
  
  .admin-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 24px;
      margin-bottom: 40px;
  }
  
  .stat-card {
      background: white;
      padding: 24px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      display: flex;
      align-items: center;
      gap: 16px;
  }
  
  .stat-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #5865F2, #4c63d2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 24px;
  }
  
  .stat-content h3 {
      font-size: 32px;
      font-weight: 700;
      margin: 0 0 4px 0;
      color: #1f2937;
  }
  
  .stat-content p {
      margin: 0;
      color: #6b7280;
      font-size: 14px;
  }
  
  .admin-section {
      background: white;
      border-radius: 12px;
      padding: 32px;
      margin-bottom: 32px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .admin-section h2 {
      margin: 0 0 24px 0;
      color: #1f2937;
      font-size: 24px;
      font-weight: 600;
  }
  
  .applications-grid {
      display: grid;
      gap: 20px;
  }
  
  .tutor-card {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s ease;
  }
  
  .tutor-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      border-color: #5865F2;
  }
  
  .tutor-info h3 {
      margin: 0 0 8px 0;
      color: #1f2937;
      font-size: 18px;
  }
  
  .tutor-email {
      color: #6b7280;
      margin: 0 0 12px 0;
      font-size: 14px;
  }
  
  .tutor-details {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
  }
  
  .tutor-details span {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      color: #6b7280;
  }
  
  .discount-badge {
      background: #fef3c7;
      color: #d97706;
      padding: 4px 8px;
      border-radius: 4px;
      font-weight: 500;
  }
  
  .tutor-actions {
      display: flex;
      gap: 12px;
  }
  
  .approve-btn, .reject-btn {
      padding: 10px 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
  }
  
  .approve-btn {
      background: #10b981;
      color: white;
  }
  
  .approve-btn:hover {
      background: #059669;
  }
  
  .reject-btn {
      background: #ef4444;
      color: white;
  }
  
  .reject-btn:hover {
      background: #dc2626;
  }
  
  .no-data {
      text-align: center;
      padding: 40px;
      color: #6b7280;
  }
  
  .no-data i {
      font-size: 48px;
      color: #10b981;
      margin-bottom: 16px;
  }
  
  .users-table {
      width: 100%;
      border-collapse: collapse;
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .users-table th,
  .users-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid #e5e7eb;
  }
  
  .users-table th {
      background: #f8f9fa;
      font-weight: 600;
      color: #374151;
  }
  
  .role-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
  }
  
  .role-badge.tutor {
      background: #dbeafe;
      color: #1d4ed8;
  }
  
  .role-badge.student {
      background: #d1fae5;
      color: #059669;
  }
  
  .admin-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #fde68a;
      color: #d97706;
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 10px;
      font-weight: 600;
      margin-left: 8px;
  }
  
  .status-badge {
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
  }
  
  .status-badge.active {
      background: #d1fae5;
      color: #059669;
  }
  
  .status-badge.pending {
      background: #fef3c7;
      color: #d97706;
  }
  
  .status-badge.rejected {
      background: #fee2e2;
      color: #dc2626;
  }
  
  @media (max-width: 768px) {
      .admin-nav {
          flex-direction: column;
          gap: 16px;
          text-align: center;
      }
      
      .tutor-card {
          flex-direction: column;
          gap: 16px;
          align-items: flex-start;
      }
      
      .tutor-actions {
          width: 100%;
          justify-content: center;
      }
  }
  
  
  
  
  
  .profile-header {
      background: linear-gradient(135deg, #5865F2, #4c63d2);
      color: white;
      padding: 32px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      border-radius: 16px 16px 0 0;
  }
  
  .profile-avatar {
      margin-bottom: 16px;
  }
  
  .profile-avatar i {
      font-size: 64px;
      opacity: 0.9;
  }
  
  /* Inline edit profile inputs */
  .profile-info input[type="text"],
  .profile-info input[type="number"],
  .profile-info textarea {
      background: #fff;
      color: #111827;
  }
  
  .profile-welcome {
      text-align: center;
  }
  
  .profile-welcome h2 {
      margin: 0 0 8px 0;
      font-size: 24px;
      font-weight: 600;
  }
  
  .profile-welcome p {
      margin: 0;
      opacity: 0.9;
      font-size: 16px;
  }
  
  
  
  .profile-content {
      padding: 32px 24px;
  }
  
  .profile-section {
      margin-bottom: 32px;
  }
  
  .profile-section h3 {
      margin: 0 0 20px 0;
      color: #1f2937;
      font-size: 18px;
      font-weight: 600;
      border-bottom: 2px solid #f3f4f6;
      padding-bottom: 8px;
  }
  
  .profile-info {
      display: flex;
      flex-direction: column;
      gap: 16px;
  }
  
  .info-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
  }
  
  .info-item span:first-child {
      color: #6b7280;
      font-weight: 500;
      font-size: 14px;
  }
  
  .info-item span:last-child {
      font-weight: 600;
      color: #1f2937;
  }
  
  .role-badge {
      background: #dbeafe;
      color: #1d4ed8;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: capitalize;
  }
  
  .role-badge.tutor {
      background: #fef3c7;
      color: #d97706;
  }
  
  .role-badge.admin {
      background: #fde68a;
      color: #d97706;
  }
  
  .status-verified {
      color: #10b981;
      font-weight: 600;
  }
  
  .status-pending {
      color: #f59e0b;
      font-weight: 600;
  }
  
  .profile-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
  }
  
  .profile-action-btn {
      flex: 1;
      min-width: 140px;
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.3s ease;
      font-size: 14px;
  }
  
  .profile-action-btn.secondary {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
  }
  
  .profile-action-btn.secondary:hover {
      background: #e5e7eb;
      transform: translateY(-1px);
  }
  
  .profile-action-btn.logout {
      background: #ef4444;
      color: white;
  }
  
  .profile-action-btn.logout:hover {
      background: #dc2626;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
  
  @media (max-width: 480px) {
      .profile-header {
          padding: 24px 16px;
      }
      
      .profile-content {
          padding: 24px 16px;
      }
      
      .profile-actions {
          flex-direction: column;
      }
      
      .profile-action-btn {
          min-width: auto;
      }
  }
  
  
  
  /* Enhanced Admin Dashboard Styles */
  
  /* Detailed Tutor Cards */
  .tutor-card.detailed {
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .tutor-header {
      border-bottom: 1px solid #f3f4f6;
      padding-bottom: 16px;
      margin-bottom: 20px;
  }
  
  .tutor-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 8px;
  }
  
  .date-badge {
      background: #f3f4f6;
      color: #6b7280;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
  }
  
  .detail-section {
      margin-bottom: 20px;
      padding: 16px;
      background: #f9fafb;
      border-radius: 8px;
  }
  
  .detail-section h4 {
      margin: 0 0 12px 0;
      color: #374151;
      font-size: 16px;
      font-weight: 600;
  }
  
  .detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 12px;
  }
  
  .detail-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
  }
  
  .detail-item label {
      font-weight: 500;
      color: #6b7280;
      margin-right: 12px;
  }
  
  .detail-item span {
      color: #1f2937;
      font-weight: 600;
  }
  
  .code {
      font-family: 'Courier New', monospace;
      background: #f3f4f6;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 12px;
  }
  
  .file-link {
      background: #3b82f6;
      color: white;
      padding: 6px 12px;
      border-radius: 6px;
      text-decoration: none;
      font-size: 12px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: background 0.2s ease;
  }
  
  .file-link:hover {
      background: #2563eb;
  }
  
  .error {
      color: #ef4444;
      font-weight: 600;
  }
  
  .discount-section {
      background: #fef3c7;
      border-left: 4px solid #f59e0b;
  }
  
  .additional-info {
      background: #f0f9ff;
      border-left: 4px solid #3b82f6;
  }
  
  .view-btn {
      background: #6b7280;
      color: white;
      padding: 10px 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
  }
  
  .view-btn:hover {
      background: #4b5563;
  }
  
  /* Enhanced Users Grid */
  .users-detailed-view h3 {
      margin: 0 0 24px 0;
      color: #1f2937;
      font-size: 20px;
      font-weight: 600;
  }
  
  .users-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 20px;
  }
  
  .user-detail-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      border: 1px solid #e5e7eb;
      transition: all 0.3s ease;
  }
  
  .user-detail-card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      transform: translateY(-2px);
  }
  
  .user-detail-card.tutor {
      border-left: 4px solid #f59e0b;
  }
  
  .user-detail-card.student {
      border-left: 4px solid #10b981;
  }
  
  .user-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #f3f4f6;
  }
  
  .user-avatar {
      width: 48px;
      height: 48px;
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 20px;
  }
  
  .user-basic h4 {
      margin: 0 0 4px 0;
      color: #1f2937;
      font-size: 16px;
      font-weight: 600;
  }
  
  .user-email {
      margin: 0 0 8px 0;
      color: #6b7280;
      font-size: 14px;
  }
  
  .user-badges {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
  }
  
  .user-badges .role-badge {
      font-size: 11px;
      padding: 3px 8px;
  }
  
  .user-badges .status-badge {
      font-size: 11px;
      padding: 3px 8px;
  }
  
  .user-badges .admin-badge {
      font-size: 10px;
      padding: 2px 6px;
  }
  
  .user-details {
      margin-bottom: 16px;
  }
  
  .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      border-bottom: 1px solid #f9fafb;
  }
  
  .detail-row:last-child {
      border-bottom: none;
  }
  
  .detail-row .label {
      font-weight: 500;
      color: #6b7280;
      font-size: 13px;
  }
  
  .detail-row .value {
      color: #1f2937;
      font-weight: 600;
      font-size: 13px;
  }
  
  .detail-row.discount {
      background: #fef3c7;
      padding: 8px 12px;
      border-radius: 6px;
      margin: 8px 0;
  }
  
  .detail-row.tutor-pending {
      background: #dbeafe;
      padding: 8px 12px;
      border-radius: 6px;
      margin: 8px 0;
  }
  
  .user-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
  }
  
  .view-full-btn, .quick-approve-btn {
      flex: 1;
      min-width: 120px;
      padding: 8px 12px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: all 0.2s ease;
  }
  
  .view-full-btn {
      background: #6b7280;
      color: white;
  }
  
  .view-full-btn:hover {
      background: #4b5563;
  }
  
  .quick-approve-btn {
      background: #10b981;
      color: white;
  }
  
  .quick-approve-btn:hover {
      background: #059669;
  }
  
  /* User Details Popup */
  .user-details-popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .popup-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
  }
  
  .popup-content {
      background: white;
      border-radius: 16px;
      width: 90%;
      max-width: 600px;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  
  .popup-header {
      padding: 24px 24px 16px 24px;
      border-bottom: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .popup-header h2 {
      margin: 0;
      color: #1f2937;
      font-size: 20px;
      font-weight: 600;
  }
  
  .close-btn {
      background: none;
      border: none;
      color: #6b7280;
      cursor: pointer;
      font-size: 18px;
      padding: 4px;
      border-radius: 4px;
      transition: all 0.2s ease;
  }
  
  .close-btn:hover {
      background: #f3f4f6;
      color: #374151;
  }
  
  .popup-body {
      padding: 24px;
  }
  
  .info-section {
      margin-bottom: 24px;
      padding: 16px;
      background: #f9fafb;
      border-radius: 8px;
  }
  
  .info-section h3 {
      margin: 0 0 16px 0;
      color: #374151;
      font-size: 16px;
      font-weight: 600;
  }
  
  .info-grid {
      display: grid;
      gap: 8px;
  }
  
  .info-item {
      padding: 8px 0;
      border-bottom: 1px solid #f3f4f6;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .info-item:last-child {
      border-bottom: none;
  }
  
  .file-download {
      background: #3b82f6;
      color: white;
      padding: 6px 12px;
      border-radius: 6px;
      text-decoration: none;
      font-size: 12px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
  }
  
  .file-download:hover {
      background: #2563eb;
  }
  
  .popup-actions {
      padding: 16px 24px 24px 24px;
      border-top: 1px solid #e5e7eb;
      display: flex;
      gap: 12px;
      justify-content: flex-end;
  }
  
  .close-btn-alt {
      background: #6b7280;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
  }
  
  .close-btn-alt:hover {
      background: #4b5563;
  }
  
  @media (max-width: 768px) {
      .users-grid {
          grid-template-columns: 1fr;
      }
      
      .detail-grid {
          grid-template-columns: 1fr;
      }
      
      .popup-content {
          width: 95%;
          margin: 20px;
      }
      
      .user-actions {
          flex-direction: column;
      }
      
      .view-full-btn, .quick-approve-btn {
          min-width: auto;
      }
  }
  
  /* Coming Soon Modal */
  .coming-soon-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      /* backdrop-filter: blur(5px); Removed for performance */
  }
  
  .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      border-radius: 15px;
      box-shadow: var(--shadow-lg);
      max-width: 500px;
      width: 90%;
      max-height: 80vh;
      overflow: hidden;
  }
  
  
  .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem;
      border-bottom: 1px solid var(--light-gray);
      background: var(--primary);
      color: white;
  }
  
  .modal-header h3 {
      margin: 0;
      font-size: 1.3rem;
      font-weight: 600;
  }
  
  .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      color: #6b7280;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 50%;
      transition: all 0.3s ease;
      z-index: 1000;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .modal-close:hover {
      background: #f3f4f6;
      color: #374151;
      transform: scale(1.1);
  }
  
  .modal-body {
      padding: 1.5rem;
      max-height: 60vh;
      overflow-y: auto;
  }
  
  .coming-soon-subjects {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .coming-soon-subject {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      background: var(--light-bg);
      border-radius: 10px;
      border: 1px solid var(--light-gray);
      transition: all 0.3s ease;
  }
  
  .coming-soon-subject:hover {
      background: white;
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
  }
  
  .coming-soon-subject span {
      font-weight: 500;
      color: var(--dark);
  }
  
  /* Subject Button Styles */
  .subject-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 1rem;
  }
  
  .subject-btn:hover {
      background: #1e3a8a;
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
  }
  
  /* =====================================================
     LAYOUT OPTION 1: Enhanced Card Grid Styles
     ===================================================== */
  
  /* Section Header Enhancement */
  .layout-option-1 .section-header {
      text-align: center;
      margin-bottom: 50px;
  }
  
  .layout-option-1 .section-header h2 {
      font-size: 2.5rem;
      margin-bottom: 15px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .layout-option-1 .section-subtitle {
      font-size: 1.2rem;
      color: var(--gray);
      margin-bottom: 30px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
  }
  
  .section-stats {
      display: flex;
      justify-content: center;
      gap: 30px;
      margin-top: 20px;
  }
  
  .stat-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(67, 97, 238, 0.1);
      padding: 12px 20px;
      border-radius: 25px;
      color: var(--primary);
      font-weight: 600;
  }
  
  .stat-badge i {
      font-size: 1.2rem;
  }
  
  /* Enhanced Tabs */
  .subject-tabs.enhanced {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-bottom: 40px;
      background: var(--light);
      padding: 8px;
      border-radius: 50px;
      box-shadow: var(--shadow-sm);
      width: fit-content;
      margin-left: auto;
      margin-right: auto;
  }
  
  .subject-tabs.enhanced .tab-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 25px;
      border-radius: 25px;
      border: none;
      background: transparent;
      color: var(--dark);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
  }
  
  .subject-tabs.enhanced .tab-btn.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  }
  
  .tab-badge {
      background: rgba(255, 255, 255, 0.2);
      color: inherit;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 700;
      min-width: 20px;
      text-align: center;
  }
  
  .subject-tabs.enhanced .tab-btn.active .tab-badge {
      background: rgba(255, 255, 255, 0.3);
      color: white;
  }
  
  /* Enhanced Grid Layout */
  .enhanced-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
      margin-top: 30px;
  }
  
  /* Featured Card Styles */
  .subject-card.featured {
      grid-column: span 2;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      border-radius: 20px;
      padding: 30px;
      position: relative;
      overflow: hidden;
      border: none;
      min-height: 280px;
      display: flex;
      flex-direction: column;
  }
  
  .subject-card.featured::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 100px;
      height: 100px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      transform: translate(30px, -30px);
  }
  
  .subject-card.featured .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
  }
  
  .featured-icon {
      width: 80px !important;
      height: 80px !important;
      background: rgba(255, 255, 255, 0.2) !important;
      border-radius: 20px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: white !important;
      font-size: 2rem !important;
      margin-bottom: 0 !important;
  }
  
  .popularity-badge {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      backdrop-filter: blur(10px);
  }
  
  .subject-card.featured .card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
  }
  
  .subject-card.featured h3 {
      font-size: 2rem;
      margin-bottom: 15px;
      color: white;
  }
  
  .subject-card.featured p {
      font-size: 1.1rem;
      opacity: 0.9;
      margin-bottom: 20px;
      line-height: 1.6;
  }
  
  .subject-features {
      display: flex;
      gap: 10px;
      margin-bottom: 25px;
      flex-wrap: wrap;
  }
  
  .feature-tag {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      backdrop-filter: blur(10px);
  }
  
  .details-btn.enhanced {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.3);
      padding: 15px 25px;
      border-radius: 50px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      margin-top: auto;
      width: 100%;
  }
  
  .details-btn.enhanced:hover {
      background: white;
      color: var(--primary);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  /* Standard Card Enhancements */
  .subject-card.standard {
      background: white;
      border-radius: 16px;
      padding: 25px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      border: 1px solid var(--light-gray);
      position: relative;
      min-height: 240px;
      display: flex;
      flex-direction: column;
  }
  
  .subject-card.standard:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
      border-color: var(--primary);
  }
  
  .subject-card.standard .subject-icon {
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin-bottom: 20px;
  }
  
  .subject-card.standard .subject-icon.science {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }
  
  .subject-card.standard h3 {
      font-size: 1.4rem;
      margin-bottom: 12px;
      color: var(--dark);
  }
  
  .subject-card.standard p {
      color: var(--gray);
      line-height: 1.6;
      margin-bottom: 20px;
      flex: 1;
  }
  
  .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 15px;
      border-top: 1px solid var(--light-gray);
  }
  
  .difficulty-indicator {
      display: flex;
      align-items: center;
  }
  
  .difficulty-label {
      background: var(--light-gray);
      color: var(--gray);
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 500;
  }
  
  .difficulty-indicator.advanced .difficulty-label {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: white;
  }
  
  .subject-card.standard .card-footer .details-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 10px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .subject-card.standard .card-footer .details-btn:hover {
      background: var(--primary-dark);
      transform: scale(1.1);
  }
  
  /* Premium A-Level Cards */
  .subject-card.premium {
      background: linear-gradient(135deg, white 0%, #f8fafc 100%);
      border: 2px solid var(--primary);
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 8px 32px rgba(67, 97, 238, 0.15);
      transition: all 0.3s ease;
      position: relative;
      min-height: 320px;
      display: flex;
      flex-direction: column;
  }
  
  .subject-card.premium::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
      border-radius: 20px 20px 0 0;
  }
  
  .subject-card.premium:hover {
      transform: translateY(-10px);
      box-shadow: 0 16px 48px rgba(67, 97, 238, 0.25);
  }
  
  .subject-card.premium .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
  }
  
  .premium-icon {
      width: 80px !important;
      height: 80px !important;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
      border-radius: 20px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: white !important;
      font-size: 2rem !important;
      margin-bottom: 0 !important;
      box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
  }
  
  .premium-icon.science {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
      box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
  }
  
  .level-badge {
      background: linear-gradient(135deg, var(--accent) 0%, #e91e63 100%);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
  }
  
  .subject-card.premium .card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
  }
  
  .subject-card.premium h3 {
      font-size: 1.6rem;
      margin-bottom: 15px;
      color: var(--dark);
  }
  
  .subject-card.premium p {
      color: var(--gray);
      line-height: 1.6;
      margin-bottom: 20px;
  }
  
  .subject-card.premium .subject-features {
      margin-bottom: 25px;
  }
  
  .subject-card.premium .feature-tag {
      background: rgba(67, 97, 238, 0.1);
      color: var(--primary);
      border: 1px solid rgba(67, 97, 238, 0.2);
  }
  
  .subject-card.premium .details-btn.enhanced {
      background: var(--primary);
      color: white;
      border: none;
      margin-top: auto;
  }
  
  .subject-card.premium .details-btn.enhanced:hover {
      background: var(--primary-dark);
      color: white;
  }
  
  /* Responsive Design for Enhanced Layout */
  @media (max-width: 1024px) {
      .subject-card.featured {
          grid-column: span 1;
          min-height: 260px;
      }
      
      .enhanced-grid {
          grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
          gap: 20px;
      }
  }
  
  @media (max-width: 768px) {
      .layout-option-1 .section-header h2 {
          font-size: 2rem;
      }
      
      .section-stats {
          flex-direction: column;
          gap: 15px;
          align-items: center;
      }
      
      .subject-tabs.enhanced {
          width: 100%;
          padding: 6px;
      }
      
      .subject-tabs.enhanced .tab-btn {
          flex: 1;
          justify-content: center;
          padding: 10px 20px;
      }
      
      .enhanced-grid {
          grid-template-columns: 1fr;
          gap: 15px;
      }
      
      .subject-card.featured {
          grid-column: span 1;
          min-height: 240px;
          padding: 25px;
      }
      
      .subject-card.featured h3 {
          font-size: 1.6rem;
      }
      
      .subject-card.featured .featured-icon {
          width: 60px !important;
          height: 60px !important;
          font-size: 1.5rem !important;
      }
  }
  
  /* =====================================================
     LAYOUT OPTION 2: Horizontal Scroll with Categories
     ===================================================== */
  
  /* Header Layout for Scroll Design */
  .layout-option-2 .section-header-scroll {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
      padding-bottom: 25px;
      border-bottom: 2px solid var(--light-gray);
  }
  
  .layout-option-2 .header-content h2 {
      font-size: 2.2rem;
      margin-bottom: 8px;
      color: var(--dark);
      text-align: left;
  }
  
  .layout-option-2 .section-subtitle {
      color: var(--gray);
      font-size: 1.1rem;
      margin: 0;
      text-align: left;
  }
  
  /* Level Selector */
  .level-selector {
      display: flex;
      gap: 4px;
      background: var(--light);
      padding: 4px;
      border-radius: 12px;
      border: 1px solid rgba(30, 64, 175, 0.1);
  }
  
  .level-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: transparent;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      color: var(--gray);
      position: relative;
      font-size: 0.95rem;
      min-width: 120px;
      justify-content: space-between;
  }
  
  .level-btn:hover {
      background: transparent; /* keep base background */
      color: var(--gray); /* keep base text color */
  }
  
  .level-btn.active {
      background: white;
      color: var(--dark);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      font-weight: 600;
  }
  
  .level-count {
      background: rgba(67, 97, 238, 0.1);
      color: #4361EE;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      min-width: 20px;
      text-align: center;
      line-height: 1;
  }
  
  /* A-Level specific styles */
  [data-level="alevel"] .level-count {
      background: rgba(54, 79, 199, 0.1);
      color: #364FC7;
  }
  
  .level-btn[data-level="alevel"].active .level-count {
      background: #364FC7;
      color: white;
  }
  
  /* GCSE specific styles */
  [data-level="gcse"] .level-count {
      background: rgba(67, 97, 238, 0.1);
      color: #4361EE;
  }
  
  .level-btn[data-level="gcse"].active .level-count {
      background: #4361EE;
      color: white;
  }
  
  /* Category Sections */
  .subjects-by-category {
  display: flex;
  flex-direction: column;
   gap: 24px;
  }
  
  .subjects-by-category > .category-section { margin: 0; }
  .subjects-by-category > .category-section + .category-section { margin-top: 24px; }
  
  .category-section {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--light-gray);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--light-gray);
  }
  
  .category-header {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 25px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--light-gray);
  }
  
  /* Category Icon Styling with Better Color Harmony */
  .category-icon {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      color: white;
  }
  
  /* Category header icons - GCSE blue */
  .category-icon.maths {
      background: #4361EE;
  }
  
  .category-icon.sciences {
      background: #4361EE;
  }
  
  .category-icon.humanities {
      background: #4361EE;
  }
  
  .category-icon.creative {
      background: #4361EE;
  }
  
  /* A-Level category icon */
  .category-icon.advanced {
      background: #364FC7;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
  }
  
  /* A-Level card icons - darker blue */
  .subject-card-scroll.alevel-card .icon-container {
      background: #364FC7;
  }
  
  .category-info {
      flex: 1;
  }
  
  .category-info h3 {
      font-size: 1.5rem;
      margin-bottom: 5px;
      color: var(--dark);
  }
  
  .category-info p {
      color: var(--gray);
      font-size: 1rem;
      margin: 0;
  }
  
  .category-count {
      background: var(--light);
      color: var(--gray);
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
  }
  
  /* Horizontal Scroll Container */
  .subjects-scroll {
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: thin;
      scrollbar-color: rgba(30, 64, 175, 0.3) transparent;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
  }
  
  .subjects-scroll::-webkit-scrollbar {
      height: 8px;
  }
  
  .subjects-scroll::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05);
      border-radius: 4px;
  }
  
  .subjects-scroll::-webkit-scrollbar-thumb {
      background: rgba(30, 64, 175, 0.3);
      border-radius: 4px;
  }
  
  .subjects-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(30, 64, 175, 0.5);
  }
  
  .scroll-container {
      display: flex;
      gap: 20px;
      padding: 10px 0 20px 0;
      min-width: fit-content;
      width: max-content;
  }
  
  /* Scroll Cards */
  .subject-card-scroll {
      min-width: 280px;
      max-width: 280px;
      flex-shrink: 0;
      background: white;
      border-radius: 12px;
      padding: 20px;
      border: 2px solid var(--light-gray);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      position: relative;
  }
  
  .subject-card-scroll:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
      border-color: #1e40af;
  }
  
  /* Featured Scroll Card */
  .subject-card-scroll.featured-scroll {
      background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.1) 100%);
      border-color: #1e40af;
      position: relative;
  }
  
  .subject-card-scroll.featured-scroll::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
      border-radius: 12px 12px 0 0;
  }
  
  /* A-Level Cards - Matched to GCSE style */
  .subject-card-scroll.alevel-card {
      background: white;
      border: 2px solid #e5e7eb;
  }
  
  .subject-card-scroll.alevel-card .icon-container {
      background: #364FC7;
  }
  
  .subject-card-scroll.alevel-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
      border-color: #1e40af;
  }
  
  /* Scroll Card Header */
  .scroll-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 15px;
  }
  
  /* Scroll Icons with Consistent Color Palette */
  .scroll-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      color: white;
  }
  
  .scroll-icon.maths {
      background: #4361EE;
  }
  
  .scroll-icon.sciences {
      background: #4361EE;
  }
  
  .scroll-icon.humanities {
      background: #4361EE;
  }
  
  .scroll-icon.advanced {
      background: #364FC7;
  }
  
  /* Keep the hover effect for advanced icons */
  .scroll-icon.advanced:hover {
      background: #2e42a9;
  }
  
  .scroll-icon.creative {
      background: #4361EE;
  }
  
  /* Indicators and Badges */
  .popularity-indicator {
      background: #1e40af;
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
  }
  
  .advanced-indicator {
      background: #92400e;
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
  }
  
  .alevel-badge {
      background: #4c1d95;
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
  }
  
  /* Scroll Content */
  .scroll-content {
    flex: 1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
  }
  
  .scroll-content h4 {
      font-size: 1.2rem;
      margin-bottom: 8px;
      color: var(--dark);
  }
  
  .scroll-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: auto;
    flex: 1;
  }
  
  /* Quick Features */
  .quick-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
  }
  
  .quick-tag {
      background: var(--light);
      color: var(--gray);
      padding: 3px 8px;
      border-radius: 8px;
      font-size: 0.75rem;
      font-weight: 500;
  }
  
  .featured-scroll .quick-tag {
      background: rgba(30, 64, 175, 0.15);
      color: #1e40af;
  }
  
  .alevel-card .quick-tag {
      background: var(--light);
      color: var(--gray);
  }
  
  /* Scroll Buttons */
  .scroll-btn {
      background: #4361EE;
      color: white;
      border: none;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 0.9rem;
  }
  
  .scroll-btn:hover {
      background: #4361EE; /* keep base background */
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  }
  
  /* A-Level buttons */
  .alevel-btn {
      background: #364FC7;
      color: white;
  }
  
  .alevel-btn:hover {
      background: #364FC7;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  }
  
  /* Coming Soon Cards */
  .subject-card-scroll.coming-soon {
      opacity: 0.8;
      position: relative;
  }
  
  .subject-card-scroll.coming-soon::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(156, 163, 175, 0.05) 100%);
      border-radius: 12px;
      pointer-events: none;
  }
  
  .coming-soon-icon {
      background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
      opacity: 0.7;
  }
  
  .coming-soon-badge {
      background: #64748b;
      color: white;
      padding: 4px 8px;
      border-radius: 8px;
      font-size: 0.7rem;
      font-weight: 600;
  }
  
  .coming-soon-btn {
      background: #64748b !important;
      cursor: not-allowed;
  }
  
  .coming-soon-btn:hover {
      background: #64748b !important;
      transform: none !important;
      box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2) !important;
  }
  
  .subject-card-scroll.coming-soon .quick-features .quick-tag {
      background: rgba(100, 116, 139, 0.1);
      color: #64748b;
  }
  
  /* Responsive Design for Scroll Layout */
  @media (max-width: 768px) {
      .layout-option-2 .section-header-scroll {
          flex-direction: column;
          gap: 20px;
          align-items: flex-start;
      }
      
      .layout-option-2 .header-content h2 {
          font-size: 1.8rem;
          text-align: center;
      }
      
      .layout-option-2 .section-subtitle {
          text-align: center;
      }
      
      .level-selector {
          width: 100%;
          justify-content: center;
      }
      
      .level-btn {
          flex: 1;
          justify-content: center;
      }
      
      .category-header {
          flex-direction: column;
          gap: 15px;
          text-align: center;
      }
      
      .category-icon {
          width: 50px;
          height: 50px;
          font-size: 1.5rem;
      }
      
      .subjects-by-category {
          gap: 30px;
      }
      
      .category-section {
          padding: 20px;
      }
      
      .subject-card-scroll {
          min-width: 250px;
          max-width: 250px;
      }
  }
  
  /* =====================================================
     LAYOUT OPTION 3: Masonry/Pinterest Style Layout
     ===================================================== */
  
  /* Masonry Header */
  .layout-option-3 .masonry-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 40px;
      gap: 30px;
  }
  
  .layout-option-3 .header-main h2 {
      font-size: 2.3rem;
      margin-bottom: 10px;
      color: var(--dark);
      text-align: left;
  }
  
  .layout-option-3 .section-subtitle {
      color: var(--gray);
      font-size: 1.1rem;
      margin: 0;
      text-align: left;
  }
  
  /* Masonry Controls */
  .masonry-controls {
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: flex-end;
  }
  
  .filter-tabs {
      display: flex;
      gap: 8px;
      background: white;
      padding: 6px;
      border-radius: 25px;
      box-shadow: var(--shadow-sm);
      border: 2px solid var(--light-gray);
  }
  
  .filter-btn {
      background: transparent;
      border: none;
      padding: 8px 18px;
      border-radius: 20px;
      font-weight: 600;
      color: var(--gray);
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.9rem;
  }
  
  .filter-btn.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
  }
  
  .view-options {
      display: flex;
      gap: 6px;
      background: var(--light);
      padding: 4px;
      border-radius: 20px;
  }
  
  .view-btn {
      background: transparent;
      border: none;
      padding: 8px 12px;
      border-radius: 16px;
      color: var(--gray);
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .view-btn.active {
      background: white;
      color: var(--primary);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Masonry Container */
  .masonry-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      grid-auto-rows: minmax(180px, auto);
      gap: 20px;
      margin-top: 30px;
  }
  
  /* Base Masonry Card */
  .masonry-card {
      background: white;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid var(--light-gray);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      position: relative;
  }
  
  .masonry-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
      border-color: var(--primary);
  }
  
  /* Hero Card (Large Featured) */
  .hero-card {
      grid-column: span 2;
      grid-row: span 2;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      padding: 35px;
      position: relative;
      overflow: hidden;
      min-height: 400px;
  }
  
  .hero-card::before {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 150px;
      height: 150px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
  }
  
  .hero-background {
      display: flex;
      flex-direction: column;
      height: 100%;
      z-index: 2;
      position: relative;
  }
  
  .hero-content {
      flex: 1;
  }
  
  .hero-badge {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      display: inline-block;
      margin-bottom: 20px;
      backdrop-filter: blur(10px);
  }
  
  .hero-icon {
      width: 80px;
      height: 80px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      color: white;
      margin-bottom: 25px;
      backdrop-filter: blur(10px);
  }
  
  .hero-card h3 {
      font-size: 2.2rem;
      margin-bottom: 15px;
      color: white;
  }
  
  .hero-card p {
      font-size: 1.1rem;
      opacity: 0.9;
      margin-bottom: 25px;
      line-height: 1.6;
  }
  
  .hero-stats {
      display: flex;
      gap: 30px;
      margin-bottom: 25px;
  }
  
  .stat-item {
      text-align: center;
  }
  
  .stat-number {
      display: block;
      font-size: 1.8rem;
      font-weight: 700;
      color: white;
  }
  
  .stat-label {
      font-size: 0.9rem;
      opacity: 0.8;
  }
  
  .hero-features {
      display: flex;
      gap: 10px;
      margin-bottom: 30px;
      flex-wrap: wrap;
  }
  
  .hero-tag {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      backdrop-filter: blur(10px);
  }
  
  .hero-btn {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.3);
      padding: 16px 28px;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      backdrop-filter: blur(10px);
      margin-top: auto;
  }
  
  .hero-btn:hover {
      background: white;
      color: var(--primary);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  /* Wide Card (Science Trio) */
  .wide-card {
      grid-column: span 2;
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border: 2px solid #e2e8f0;
  }
  
  .wide-header {
      text-align: center;
      margin-bottom: 25px;
  }
  
  .wide-header h4 {
      font-size: 1.6rem;
      color: var(--dark);
      margin-bottom: 8px;
  }
  
  .wide-header p {
      color: var(--gray);
      font-size: 1rem;
  }
  
  .science-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
  }
  
  .science-item {
      text-align: center;
      padding: 20px;
      background: white;
      border-radius: 12px;
      border: 1px solid var(--light-gray);
      transition: all 0.3s ease;
  }
  
  .science-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .science-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      margin: 0 auto 15px;
  }
  
  .science-icon.biology {
      background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  }
  
  .science-icon.chemistry {
      background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  }
  
  .science-icon.physics {
      background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  }
  
  .science-item h5 {
      font-size: 1.1rem;
      margin-bottom: 8px;
      color: var(--dark);
  }
  
  .science-item p {
      font-size: 0.9rem;
      color: var(--gray);
      margin-bottom: 15px;
  }
  
  .mini-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 6px 16px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .mini-btn:hover {
      background: var(--primary-dark);
      transform: scale(1.05);
  }
  
  /* Tall Card (Advanced Subjects) */
  .tall-card {
      grid-row: span 2;
  }
  
  .advanced-card {
      background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
      border: 2px solid #f59e0b;
      color: #92400e;
  }
  
  .advanced-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
  }
  
  .subject-icon.advanced-maths {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: white;
  }
  
  .advanced-badge {
      background: #92400e;
      color: #fef3c7;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .advanced-card h4 {
      color: #92400e;
      margin-bottom: 15px;
  }
  
  .advanced-card p {
      color: #b45309;
      margin-bottom: 20px;
  }
  
  .advanced-features {
      margin-bottom: 20px;
  }
  
  .feature-item {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      color: #92400e;
  }
  
  .feature-item i {
      width: 20px;
      text-align: center;
  }
  
  .difficulty-indicator.advanced {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #92400e;
      color: #fef3c7;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 20px;
      width: fit-content;
  }
  
  .advanced-btn {
      background: #92400e;
      color: #fef3c7;
      border: none;
  }
  
  .advanced-btn:hover {
      background: #78350f;
      color: white;
  }
  
  /* Standard Cards */
  .standard-card {
      min-height: 280px;
  }
  
  .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
  }
  
  .subject-icon {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: white;
  }
  
  .subject-icon.literature {
      background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  }
  
  .subject-icon.humanities {
      background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  }
  
  .level-tag {
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .level-tag.gcse {
      background: #4361EE;
      color: white;
  }
  
  .level-tag.alevel {
      background: #364FC7;
      color: white;
  }
  
  .standard-card h4 {
      font-size: 1.3rem;
      margin-bottom: 12px;
      color: var(--dark);
  }
  
  .standard-card p {
      color: var(--gray);
      margin-bottom: 20px;
      line-height: 1.6;
      flex: 1;
  }
  
  .subject-topics {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      flex-wrap: wrap;
  }
  
  .topic-chip {
      background: var(--light);
      color: var(--gray);
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 500;
  }
  
  .card-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: auto;
  }
  
  .card-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  }
  
  /* Premium A-Level Cards */
  .premium-card {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border: 2px solid var(--dark);
      position: relative;
  }
  
  .premium-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--dark) 0%, #374151 100%);
      border-radius: 16px 16px 0 0;
  }
  
  .premium-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 10px;
  }
  
  .subject-icon.premium-maths {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  }
  
  .subject-icon.premium-science {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  }
  
  .premium-badge {
      background: var(--dark);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .premium-modules {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 15px;
  }
  
  .module-item {
      background: rgba(0, 0, 0, 0.05);
      color: var(--dark);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
  }
  
  .premium-stats {
      margin-bottom: 20px;
  }
  
  .premium-stat {
      background: var(--dark);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .premium-topics .topic-chip {
      background: rgba(0, 0, 0, 0.1);
      color: var(--dark);
  }
  
  .premium-btn {
      background: var(--dark);
      color: white;
  }
  
  .premium-btn:hover {
      background: #374151;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Responsive Design for Masonry */
  @media (max-width: 1024px) {
      .hero-card {
          grid-column: span 2;
          grid-row: span 2;
      }
      
      .wide-card {
          grid-column: span 2;
      }
      
      .science-grid {
          grid-template-columns: 1fr;
          gap: 15px;
      }
  }
  
  @media (max-width: 768px) {
      .layout-option-3 .masonry-header {
          flex-direction: column;
          gap: 20px;
          align-items: stretch;
      }
      
      .layout-option-3 .header-main h2 {
          font-size: 1.9rem;
          text-align: center;
      }
      
      .layout-option-3 .section-subtitle {
          text-align: center;
      }
      
      .masonry-controls {
          align-items: center;
      }
      
      .filter-tabs {
          width: 100%;
          justify-content: center;
      }
      
      .masonry-container {
          grid-template-columns: 1fr;
          gap: 15px;
      }
      
      .hero-card,
      .wide-card {
          grid-column: span 1;
          grid-row: span 1;
          min-height: 350px;
      }
      
      .tall-card {
          grid-row: span 1;
      }
      
      .hero-stats {
          gap: 20px;
      }
      
      .stat-number {
          font-size: 1.5rem;
      }
      
      .premium-header {
          flex-direction: row;
          justify-content: space-between;
      }
  }
  
  /* =====================================================
     LAYOUT OPTION 4: Clean, Calming List View
     ===================================================== */
  
  /* List Header */
  .layout-option-4 .list-header {
      text-align: center;
      margin-bottom: 50px;
  }
  
  .layout-option-4 .list-header h2 {
      font-size: 2.2rem;
      margin-bottom: 12px;
      color: var(--dark);
  }
  
  .layout-option-4 .section-subtitle {
      color: var(--gray);
      font-size: 1.1rem;
      margin-bottom: 30px;
  }
  
  /* Simple Tabs */
  .simple-tabs {
      display: flex;
      justify-content: center;
      gap: 0;
      background: var(--light);
      padding: 6px;
      border-radius: 30px;
      width: fit-content;
      margin: 0 auto;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .simple-tab {
      background: transparent;
      border: none;
      padding: 12px 24px;
      border-radius: 25px;
      color: var(--gray);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
  }
  
  .simple-tab.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
  }
  
  /* Subjects List Container */
  .subjects-list {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 20px;
  }
  
  /* List Items */
  .list-item {
      background: white;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
      border: 1px solid var(--light-gray);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 25px;
      position: relative;
  }
  
  .list-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
      border-color: rgba(67, 97, 238, 0.3);
  }
  
  /* Featured Item (GCSE Maths) */
  .list-item.featured-item {
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, rgba(67, 97, 238, 0.08) 100%);
      border: 2px solid rgba(67, 97, 238, 0.2);
      padding: 35px;
  }
  
  .list-item.featured-item:hover {
      border-color: var(--primary);
      box-shadow: 0 12px 40px rgba(67, 97, 238, 0.15);
  }
  
  /* Advanced Item */
  .list-item.advanced {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.03) 0%, rgba(251, 191, 36, 0.08) 100%);
      border: 2px solid rgba(251, 191, 36, 0.2);
  }
  
  .list-item.advanced:hover {
      border-color: #fbbf24;
      box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
  }
  
  /* Premium Items (A-Level) */
  .list-item.premium {
      background: linear-gradient(135deg, rgba(31, 41, 55, 0.03) 0%, rgba(31, 41, 55, 0.08) 100%);
      border: 2px solid rgba(31, 41, 55, 0.2);
  }
  
  .list-item.premium:hover {
      border-color: var(--dark);
      box-shadow: 0 8px 30px rgba(31, 41, 55, 0.15);
  }
  
  /* List Icons */
  .list-icon {
      width: 80px;
      height: 80px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: white;
      flex-shrink: 0;
      background: linear-gradient(135deg, var(--gray) 0%, #4b5563 100%);
  }
  
  .list-icon.featured-icon {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
  }
  
  .list-icon.science {
      background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  }
  
  .list-icon.advanced {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  
  .list-icon.premium {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  }
  
  .list-icon.premium.science {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  }
  
  /* List Content */
  .list-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 15px;
  }
  
  .list-header {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;
  }
  
  .list-item h3 {
      font-size: 1.6rem;
      color: var(--dark);
      margin: 0;
  }
  
  .list-item h4 {
      font-size: 1.4rem;
      color: var(--dark);
      margin: 0;
  }
  
  .list-item p {
      color: var(--gray);
      font-size: 1.05rem;
      line-height: 1.6;
      margin: 0;
  }
  
  /* Tags and Badges */
  .popularity-tag {
      background: var(--primary);
      color: white;
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .level-badge {
      background: var(--dark);
      color: white;
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
  }
  
  .subject-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
  }
  
  .subject-tag {
      background: var(--light);
      color: var(--gray);
      padding: 6px 12px;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 500;
  }
  
  .advanced-tags .subject-tag {
      background: rgba(251, 191, 36, 0.1);
      color: #92400e;
  }
  
  .premium-tags .subject-tag {
      background: rgba(31, 41, 55, 0.1);
      color: var(--dark);
  }
  
  /* Subject Details */
  .subject-details {
      display: flex;
      gap: 25px;
      flex-wrap: wrap;
  }
  
  .detail-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--gray);
      font-size: 0.95rem;
  }
  
  .detail-item i {
      color: var(--primary);
  }
  
  /* Advanced Note */
  .advanced-note {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(251, 191, 36, 0.1);
      color: #92400e;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
  }
  
  .advanced-note i {
      color: #f59e0b;
  }
  
  /* Modules List */
  .modules-list {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
  }
  
  .module {
      background: rgba(31, 41, 55, 0.1);
      color: var(--dark);
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
  }
  
  /* Success Rate */
  .success-rate {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      font-weight: 600;
      font-size: 0.95rem;
  }
  
  .success-rate i {
      color: #fbbf24;
  }
  
  /* List Buttons */
  .list-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      flex-shrink: 0;
      min-width: 140px;
      justify-content: center;
  }
  
  .list-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  }
  
  .list-btn.primary {
      background: var(--primary);
      font-size: 1rem;
      padding: 14px 24px;
      min-width: 160px;
  }
  
  .list-btn.advanced-btn {
      background: #f59e0b;
      color: white;
  }
  
  .list-btn.advanced-btn:hover {
      background: #d97706;
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }
  
  .list-btn.premium-btn {
      background: var(--dark);
      color: white;
  }
  
  .list-btn.premium-btn:hover {
      background: #374151;
      box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
  }
  
  /* Responsive Design for List View */
  @media (max-width: 768px) {
      .layout-option-4 .list-header h2 {
          font-size: 1.8rem;
      }
      
      .simple-tabs {
          width: 100%;
      }
      
      .simple-tab {
          flex: 1;
          text-align: center;
          padding: 10px 16px;
      }
      
      .list-item {
          flex-direction: column;
          gap: 20px;
          padding: 25px;
          text-align: center;
      }
      
      .list-item.featured-item {
          padding: 30px 25px;
      }
      
      .list-icon {
          width: 70px;
          height: 70px;
          font-size: 1.8rem;
      }
      
      .list-content {
          gap: 12px;
          text-align: center;
      }
      
      .list-header {
          justify-content: center;
          gap: 12px;
      }
      
      .subject-details {
          justify-content: center;
          gap: 15px;
      }
      
      .subject-tags,
      .modules-list {
          justify-content: center;
      }
      
      .list-btn {
          width: 100%;
          min-width: auto;
      }
  }
  
  @media (max-width: 480px) {
      .list-item {
          padding: 20px;
      }
      
      .list-item.featured-item {
          padding: 25px 20px;
      }
      
      .list-icon {
          width: 60px;
          height: 60px;
          font-size: 1.6rem;
      }
      
      .list-item h3 {
          font-size: 1.4rem;
      }
      
      .list-item h4 {
          font-size: 1.2rem;
      }
      
      .subject-details {
          flex-direction: column;
          gap: 10px;
      }
      
      .detail-item {
          justify-content: center;
      }
  }
  
  /* =====================================================
     LAYOUT OPTION 5: Split Screen with Featured Subjects
     ===================================================== */
  
  /* Split Header */
  .layout-option-5 .split-header {
      text-align: center;
      margin-bottom: 40px;
  }
  
  .layout-option-5 .split-header h2 {
      font-size: 2.2rem;
      margin-bottom: 12px;
      color: var(--dark);
  }
  
  .layout-option-5 .section-subtitle {
      color: var(--gray);
      font-size: 1.1rem;
  }
  
  /* Split Screen Container */
  .split-screen-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      margin-top: 40px;
  }
  
  /* Featured Side (Left) */
  .featured-side {
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.02) 0%, rgba(67, 97, 238, 0.05) 100%);
      border-radius: 20px;
      padding: 30px;
      border: 1px solid rgba(67, 97, 238, 0.1);
  }
  
  .featured-header {
      text-align: center;
      margin-bottom: 30px;
  }
  
  .featured-header h3 {
      font-size: 1.6rem;
      color: var(--dark);
      margin-bottom: 8px;
  }
  
  .featured-header p {
      color: var(--gray);
      font-size: 1rem;
  }
  
  /* Featured Subjects */
  .featured-subjects {
      display: flex;
      flex-direction: column;
      gap: 25px;
  }
  
  /* Featured Cards */
  .featured-card {
      background: white;
      border-radius: 16px;
      padding: 25px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid var(--light-gray);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
  }
  
  .featured-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Primary Featured (GCSE Maths) */
  .featured-card.primary-featured {
      border: 2px solid rgba(67, 97, 238, 0.3);
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, white 100%);
  }
  
  .featured-card.primary-featured:hover {
      border-color: var(--primary);
      box-shadow: 0 12px 40px rgba(67, 97, 238, 0.2);
  }
  
  /* Secondary Featured (A-Level Maths) */
  .featured-card.secondary-featured {
      border: 2px solid rgba(31, 41, 55, 0.3);
      background: linear-gradient(135deg, rgba(31, 41, 55, 0.03) 0%, white 100%);
  }
  
  .featured-card.secondary-featured:hover {
      border-color: var(--dark);
      box-shadow: 0 12px 40px rgba(31, 41, 55, 0.2);
  }
  
  /* Science Featured */
  .featured-card.science-featured {
      border: 2px solid rgba(107, 114, 128, 0.3);
      background: linear-gradient(135deg, rgba(107, 114, 128, 0.03) 0%, white 100%);
  }
  
  .featured-card.science-featured:hover {
      border-color: #6b7280;
      box-shadow: 0 12px 40px rgba(107, 114, 128, 0.2);
  }
  
  /* Featured Badges */
  .featured-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      background: var(--primary);
      color: white;
      padding: 6px 12px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
  }
  
  .featured-badge.advanced {
      background: var(--dark);
  }
  
  .featured-badge.science {
      background: #6b7280;
  }
  
  /* Featured Icons */
  .featured-icon-large {
      width: 70px;
      height: 70px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: white;
      margin-bottom: 20px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
  }
  
  .featured-icon-large.advanced {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
      box-shadow: 0 8px 20px rgba(31, 41, 55, 0.3);
  }
  
  /* Science Icons Group */
  .science-icons-group {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
  }
  
  .science-mini-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: white;
  }
  
  .science-mini-icon.biology {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }
  
  .science-mini-icon.chemistry {
      background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  }
  
  .science-mini-icon.physics {
      background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  }
  
  /* Featured Content */
  .featured-content h4 {
      font-size: 1.4rem;
      color: var(--dark);
      margin-bottom: 8px;
  }
  
  .featured-content p {
      color: var(--gray);
      font-size: 1rem;
      line-height: 1.5;
      margin-bottom: 15px;
  }
  
  /* Featured Stats */
  .featured-stats {
      display: flex;
      gap: 20px;
      margin-bottom: 15px;
  }
  
  .featured-stat {
      text-align: center;
  }
  
  .stat-value {
      display: block;
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--primary);
      line-height: 1;
  }
  
  .stat-label {
      font-size: 0.8rem;
      color: var(--gray);
      font-weight: 500;
  }
  
  /* Featured Highlights */
  .featured-highlights {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 20px;
  }
  
  .highlight-tag {
      background: rgba(67, 97, 238, 0.1);
      color: var(--primary);
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 500;
  }
  
  /* Featured Modules */
  .featured-modules {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 20px;
  }
  
  .module-tag {
      background: rgba(31, 41, 55, 0.1);
      color: var(--dark);
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 500;
  }
  
  /* Featured Buttons */
  .featured-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 0.95rem;
      width: 100%;
  }
  
  .featured-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
  }
  
  .featured-btn.advanced {
      background: var(--dark);
  }
  
  .featured-btn.advanced:hover {
      background: #374151;
      box-shadow: 0 6px 16px rgba(31, 41, 55, 0.3);
  }
  
  .featured-btn.science {
      background: #6b7280;
  }
  
  .featured-btn.science:hover {
      background: #4b5563;
      box-shadow: 0 6px 16px rgba(107, 114, 128, 0.3);
  }
  
  /* Subjects Grid Side (Right) */
  .subjects-grid-side {
      background: white;
      border-radius: 20px;
      padding: 30px;
      border: 1px solid var(--light-gray);
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  }
  
  .grid-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
  }
  
  .grid-header h3 {
      font-size: 1.6rem;
      color: var(--dark);
  }
  
  /* Level Switcher */
  .level-switcher {
      display: flex;
      background: var(--light);
      padding: 4px;
      border-radius: 20px;
      gap: 0;
  }
  
  .level-switch {
      background: transparent;
      border: none;
      padding: 8px 16px;
      border-radius: 16px;
      color: var(--gray);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.9rem;
  }
  
  .level-switch.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
  }
  
  /* Compact Grid */
  .compact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 15px;
  }
  
  /* Compact Cards */
  .compact-card {
      background: white;
      border: 1px solid var(--light-gray);
      border-radius: 12px;
      padding: 20px 15px;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
  }
  
  .compact-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
      border-color: rgba(67, 97, 238, 0.3);
  }
  
  .compact-card.advanced {
      border-color: rgba(251, 191, 36, 0.3);
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.02) 0%, white 100%);
  }
  
  .compact-card.advanced:hover {
      border-color: #fbbf24;
      box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
  }
  
  .compact-card.premium {
      border-color: rgba(31, 41, 55, 0.3);
      background: linear-gradient(135deg, rgba(31, 41, 55, 0.02) 0%, white 100%);
  }
  
  .compact-card.premium:hover {
      border-color: var(--dark);
      box-shadow: 0 6px 20px rgba(31, 41, 55, 0.15);
  }
  
  /* Compact Icons */
  .compact-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      margin: 0 auto 12px;
      background: #364FC7;
  }
  
  .compact-icon.primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  }
  
  .compact-icon.science {
      background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  }
  
  .compact-icon.advanced {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  
  .compact-icon.premium {
      background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  }
  
  /* Compact Content */
  .compact-card h5 {
      font-size: 1rem;
      color: var(--dark);
      margin-bottom: 6px;
      font-weight: 600;
  }
  
  .compact-card p {
      color: var(--gray);
      font-size: 0.85rem;
      margin-bottom: 12px;
      line-height: 1.4;
  }
  
  /* Compact Buttons */
  .compact-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.85rem;
      width: 100%;
  }
  
  .compact-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
  }
  
  .compact-btn.advanced {
      background: #f59e0b;
  }
  
  .compact-btn.advanced:hover {
      background: #d97706;
  }
  
  .compact-btn.premium {
      background: var(--dark);
  }
  
  .compact-btn.premium:hover {
      background: #374151;
  }
  
  /* Responsive Design for Split Screen */
  @media (max-width: 1024px) {
      .split-screen-container {
          grid-template-columns: 1fr;
          gap: 30px;
      }
      
      .featured-side {
          order: 2;
      }
      
      .subjects-grid-side {
          order: 1;
      }
      
      .compact-grid {
          grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
          gap: 12px;
      }
  }
  
  @media (max-width: 768px) {
      .layout-option-5 .split-header h2 {
          font-size: 1.8rem;
      }
      
      .split-screen-container {
          gap: 25px;
      }
      
      .featured-side,
      .subjects-grid-side {
          padding: 25px;
      }
      
      .featured-card {
          padding: 20px;
      }
      
      .featured-icon-large {
          width: 60px;
          height: 60px;
          font-size: 1.8rem;
      }
      
      .featured-stats {
          gap: 15px;
      }
      
      .stat-value {
          font-size: 1.2rem;
      }
      
      .grid-header {
          flex-direction: column;
          gap: 15px;
          text-align: center;
      }
      
      .compact-grid {
          grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
          gap: 10px;
      }
      
      .compact-card {
          padding: 15px 10px;
      }
      
      .compact-icon {
          width: 45px;
          height: 45px;
          font-size: 1.3rem;
      }
  }
  
  @media (max-width: 480px) {
      .featured-side,
      .subjects-grid-side {
          padding: 20px;
      }
      
      .featured-card {
          padding: 18px;
      }
      
      .featured-icon-large {
          width: 55px;
          height: 55px;
          font-size: 1.6rem;
      }
      
      .featured-stats {
          flex-direction: column;
          gap: 10px;
      }
      
      .science-icons-group {
          justify-content: center;
      }
      
      .compact-grid {
          grid-template-columns: repeat(2, 1fr);
      }
      
      .compact-card h5 {
          font-size: 0.9rem;
      }
      
      .compact-card p {
          font-size: 0.8rem;
      }
  }
  
  /* Student Dashboard Profile Styles */
  .dashboard-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding-top: 0;
  }
  
  .dashboard-header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  .nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
  }
  
  .welcome-section {
    text-align: center;
    margin-bottom: 32px;
  }
  
  .welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .welcome-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }
  
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
  }
  
  .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
  }
  
  .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
  }
  
  .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
  }
  
  .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
  }
  
  .card-content {
    margin-bottom: 20px;
  }
  
  .metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
  }
  
  .metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .card-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .card-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .quick-actions {
    margin-bottom: 32px;
  }
  
  .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
  }
  
  .action-btn i {
    font-size: 24px;
    color: #60a5fa;
  }
  
  .recent-activity {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
  }
  
  .activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .activity-item:last-child {
    border-bottom: none;
  }
  
  .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  
  .activity-content {
    flex: 1;
  }
  
  .activity-title {
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
  }
  
  .progress-ring {
    width: 60px;
    height: 60px;
    position: relative;
  }
  
  .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
  }
  
  /* Profile Section Specific Styles */
  #profile-section .dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  #profile-section .dashboard-card:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  #profile-overview-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  #profile-section input,
  #profile-section select,
  #profile-section textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
  }
  
  #profile-section input:focus,
  #profile-section select:focus,
  #profile-section textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.15);
  }
  
  #profile-section input:disabled,
  #profile-section select:disabled,
  #profile-section textarea:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
  }
  
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
  }
  
  .chip .remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  
  .chip .remove:hover {
    opacity: 1;
  }
  
  .helper {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 4px;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
  }
  
  #save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  
  
  #save-bar.show {
    transform: translateY(0);
  }
  
  /* Languages container styling */
  .languages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    max-height: 200px;
    overflow-y: auto;
  }
  
  .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    user-select: none;
  }
  
  .language-option:hover {
    background: #e2e8f0;
  }
  
  .language-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
  }
  
  .language-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
  }
  
  /* Special styling for "Other" language option */
  .language-other {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
  }
  
  .language-other label {
    flex: 0 0 auto;
    min-width: 50px;
  }
  
  .other-language-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: all 0.2s ease;
  }
  
  .other-language-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
  }
  
  .other-language-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
  }
  
  /* Role selection styling */
  .role-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .role-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-width: 110px;
    user-select: none;
  }
  
  .role-option:hover:not(.disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
  }
  
  .role-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
  }
  
  .role-option input[type="radio"]:checked + .role-label {
    color: #6366f1;
    font-weight: 600;
  }
  
  .role-option:has(input[type="radio"]:checked) {
    border-color: #6366f1;
    background: #f0f4ff;
  }
  
  .role-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .role-label i {
    font-size: 16px;
  }
  
  /* Disabled state for role options */
  .role-container.disabled .role-option {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
  }
  
  .role-container.disabled .role-option input {
    cursor: not-allowed;
  }
  
  .role-container.disabled .role-option:hover {
    border-color: #e2e8f0;
    background: #f9fafb;
  }
  
  /* Responsive role selection */
  @media (max-width: 768px) {
    .role-container {
      gap: 8px;
    }
    
    .role-option {
      padding: 8px 12px;
      min-width: 100px;
    }
    
    .role-label {
      font-size: 13px;
    }
    
    .role-label i {
      font-size: 14px;
    }
  }
  
  /* Role badge styling in profile header */
  .yl-chip-student {
    background: #ddd6fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
  }
  
  .yl-chip-parent {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #f9a8d4;
  }
  
  /* Profile Picture System */
  .profile-picture-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .profile-picture-container:hover {
    transform: scale(1.02);
  }
  
  .profile-picture {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    background: #f8fafc;
    transition: all 0.2s ease;
  }
  
  .profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
  }
  
  .profile-picture-container:hover .profile-picture-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Keyboard focus should also reveal the overlay */
  .profile-picture-container:focus .profile-picture-overlay,
  .profile-picture-container:focus-visible .profile-picture-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  
  .profile-picture-overlay i {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .profile-picture-overlay span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }
  
  /* Loading state for profile picture */
  .profile-picture.loading {
    opacity: 0.7;
  }
  
  /* Profile modal: ensure the uploaded profile photo displays at a clear, proportionate size */
  #profile-modal .profile-picture-container {
    width: 120px !important;
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  
  #profile-modal .profile-picture,
  #profile-modal .profile-picture-container img,
  #profile-modal img[id="profile-picture"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 1;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
  }
  
  @media (max-width: 768px) {
    #profile-modal .profile-picture-container {
      width: 100px !important;
      height: 100px !important;
    }
    
    #profile-modal .profile-picture,
    #profile-modal .profile-picture-container img,
    #profile-modal img[id="profile-picture"] {
      width: 100% !important;
      height: 100% !important;
    }
  }
  
  @media (max-width: 480px) {
    #profile-modal .profile-picture-container {
      width: 90px !important;
      height: 90px !important;
    }
    
    #profile-modal .profile-picture,
    #profile-modal .profile-picture-container img,
    #profile-modal img[id="profile-picture"] {
      width: 100% !important;
      height: 100% !important;
    }
  }
  
  .profile-picture.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Avatar container specific styles for dashboard */
  #avatar {
    transition: all 0.2s ease;
    position: relative;
  }
  
  /* Ensure avatar containers work with profile-picture-container class */
  .profile-picture-container #avatar {
    pointer-events: auto;
  }
  
  /* Avatar hover effect support */
  .profile-picture-container:hover #avatar {
    transform: scale(1.02);
  }
  
  /* Mobile stack stays the same via existing @media rules */
  
  /* === Performance overrides: reduce scroll-to-top jank === */
  /* Disable global smooth scroll (can cause long-frame jank on large pages) */
  html { scroll-behavior: auto !important; }
  
  /* Avoid animating 'top' on sticky header; keep a simple shadow transition */
  header { transition: box-shadow 0.2s ease !important; will-change: box-shadow; }
  
  /* Mobile responsive profile picture */
  @media (max-width: 768px) {
    .profile-picture {
      width: 56px;
      height: 56px;
    }
    
    .profile-picture-overlay i {
      font-size: 14px;
    }
    
    .profile-picture-overlay span {
      font-size: 9px;
    }
  }
  
  
  
  .auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .auth-overlay.active .auth-card {
    transform: scale(1);
  }
  
  .auth-card.auth-card--minimal {
    transform: scale(0.95);
    transition: transform 0.3s ease;
  }
  
  /* Integrated auth header */
  .auth-header-integrated {
    background: linear-gradient(135deg, #1a2332 0%, #0d1220 100%);
    margin: -24px -24px 32px -24px;
    padding: 32px 24px 24px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(79, 124, 255, 0.1);
  }
  
  .auth-brand-section { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  
  .auth-logo {
    font-size: 32px;
    font-weight: 700;
    color: #4361EE; /* match header .logo */
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; /* match header .logo */
  }
  .auth-logo .logo-accent { color: #ff69b4; /* match header .logo span */ }
  @media (max-width: 480px) { .auth-logo { font-size: 26px; } }
  
  /* Auth modal title styling inside integrated header */
  #auth-title { color: rgba(255,255,255,0.9); font-weight: 400; font-size: 18px; margin: 0; text-align: center; opacity: 0.8; }
  
  .languages-container:disabled {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .languages-container.disabled {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .languages-container.disabled .language-option {
    cursor: not-allowed;
  }
  
  .languages-container.disabled .language-option input {
    cursor: not-allowed;
  }
  
  /* Responsive languages grid */
  @media (max-width: 768px) {
    .languages-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 6px;
    }
    
    .language-option {
      font-size: 13px;
      padding: 5px 6px;
    }
  }
  
  #save-bar button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #save-profile-btn {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
  }
  
  #save-profile-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
  }
  
  #cancel-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
  }
  
  #cancel-edit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
    
    .action-grid {
      grid-template-columns: 1fr;
    }
    
    .welcome-section h1 {
      font-size: 2rem;
    }
    
    .nav-actions {
      gap: 8px;
    }
    
    .nav-btn {
      padding: 6px 12px;
      font-size: 0.9rem;
    }
    
    #profile-section .dashboard-card {
      padding: 20px;
    }
    
    #profile-overview-card {
      padding: 20px;
    }
    
    #profile-overview-card > div > div:first-child {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    
    #profile-overview-card > div > div:last-child {
      justify-content: flex-start;
    }
  }
  
  @media (max-width: 480px) {
    .dashboard-content {
      padding: 16px;
    }
    
    .welcome-section h1 {
      font-size: 1.75rem;
    }
    
    .welcome-section p {
      font-size: 1rem;
    }
    
    .dashboard-card {
      padding: 16px;
    }
    
    .card-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    
    .card-icon {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
  }
  
  /* Auth Modal Styles */
  .auth-overlay {
    display: none; /* JS toggles to flex */
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55); /* dark slate w/ opacity */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  /* Option 1: Glass Glow overlay accent using Yuli brand colors */
  .auth-overlay-soft {
    background:
      radial-gradient(1200px 500px at 20% -10%, rgba(67,97,238,0.25), transparent 60%),
      radial-gradient(1000px 420px at 110% 0%, rgba(255,105,180,0.18), transparent 70%),
      rgba(2,6,23,0.6);
  }
  
  .auth-card {
    width: 100%;
    max-width: 440px;
    background: #0f172a; /* matches site dark gradient range */
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    padding: 22px 22px 18px;
    position: relative;
  }
  
  /* Option 1: Glass Glow card variant */
  .auth-card--glass {
    background: linear-gradient(180deg, rgba(10,15,30,0.72), rgba(10,15,30,0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
  }
  .auth-card--glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #4264F6, #FF69B4 60%, #7c3aed);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.35;
  }
  .auth-card--glass::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(67,97,238,0.25), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
  }
  
  .auth-card--glass .auth-input {
    background: rgba(8,13,26,0.8);
    border-color: rgba(148,163,184,0.28);
  }
  .auth-card--glass .auth-input:focus {
    border-color: #4264F6;
    box-shadow: 0 0 0 4px rgba(67,97,238,0.18), 0 0 0 1px rgba(255,105,180,0.2) inset;
  }
  
  .auth-card--glass .auth-btn {
    background: linear-gradient(90deg, #4264F6, #5271FF);
    border-color: #4264F6;
  }
  .auth-card--glass .auth-btn:hover {
    background: linear-gradient(90deg, #3451E5, #4264F6);
  }
  .auth-card--glass .google-btn {
    background: rgba(8,13,26,0.75);
  }
  
  .auth-card--neo {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow:
      0 12px 30px rgba(2, 6, 23, 0.6),
      0 1px 0 rgba(255,255,255,0.03) inset;
  }
  .auth-card--neo::before { content: none; }
  .auth-card--neo::after { content: none; }
  .auth-card--neo .auth-input {
    background: #0b1220;
    border-color: rgba(148,163,184,0.28);
  }
  .auth-card--neo .auth-input:focus {
    border-color: #4361EE;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.18);
  }
  .auth-card--neo .auth-btn {
    background: #4264F6;
    border-color: #4264F6;
  }
  .auth-card--neo .auth-btn:hover {
    background: #3451E5;
  }
  .auth-card--neo .google-btn {
    background: #0b1220;
  }
  
  .auth-card--beam {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow: 0 20px 50px rgba(2,6,23,0.6);
    padding-top: 36px; /* extra to clear the beam */
    position: relative;
    overflow: hidden;
  }
  .auth-card--beam::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(135deg, #4264F6 0%, #7c3aed 55%, #FF69B4 100%);
    opacity: 0.2;
  }
  .auth-card--beam::after {
    content: '';
    position: absolute;
    top: 70px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(148,163,184,0), rgba(148,163,184,0.35), rgba(148,163,184,0));
  }
  .auth-card--beam h2 { margin-top: 4px; letter-spacing: 0.2px; }
  .auth-card--beam .auth-input { background: #0b1220; }
  .auth-card--beam .auth-input:focus { box-shadow: 0 0 0 3px rgba(67,97,238,0.18); }
  .auth-card--beam .auth-btn { background: #4264F6; border-color: #4264F6; }
  .auth-card--beam .auth-btn:hover { background: #3451E5; }
  .auth-card--beam .google-btn { background: #0b1220; }
  
  .auth-card--minimal {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.45);
  }
  .auth-card--minimal::before, .auth-card--minimal::after { content: none; }
  .auth-card--minimal h2 { font-weight: 600; letter-spacing: 0.1px; }
  .auth-card--minimal .auth-input {
    background: #0b1220;
    border-color: rgba(148,163,184,0.25);
  }
  .auth-card--minimal .auth-input:focus {
    border-color: #4361EE;
    box-shadow: 0 0 0 2px rgba(67,97,238,0.18);
  }
  .auth-card--minimal .auth-btn { background: #4264F6; border-color: #4264F6; }
  .auth-card--minimal .auth-btn:hover { background: #3451E5; }
  .auth-card--minimal .google-btn { background: #0b1220; }
  
  .auth-card h2 {
    margin: 0 0 14px 0;
    font-size: 22px;
    font-weight: 600;
  }
  
  .auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 6px;
  }
  .auth-close:hover { color: #cbd5e1; background: rgba(148,163,184,0.08); }
  .auth-close:focus { outline: 2px solid #4361EE; outline-offset: 2px; }
  
  .auth-card form { display: grid; gap: 8px; }
  .auth-card label { font-size: 12px; color: #94a3b8; }
  
  .auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.25);
    background: #0b1220;
    color: #e2e8f0;
  }
  .auth-input::placeholder { color: #94a3b8; }
  .auth-input:focus {
    outline: none;
    border-color: #4361EE;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
    background: #0b1220;
  }
  
  .auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .auth-row a.link { color: #93c5fd; cursor: pointer; font-size: 13px; text-decoration: underline; }
  .auth-row a.link:hover { color: #bfdbfe; }
  
  .auth-role {
    margin: 6px 0 12px;
    padding: 10px;
    border: 1px dashed rgba(148,163,184,0.25);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.35);
  }
  .auth-role .label { margin-bottom: 8px; color: #94a3b8; font-size: 12px; }
  .auth-role .options { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .auth-role label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
  .auth-role input[type="radio"] { accent-color: #4361EE; }
  
  .auth-actions-modal { display: grid; gap: 4px; margin-top: 0; }
  .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #4264F6;
    background: #4264F6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  .auth-btn:hover { background: #3451E5; transform: translateY(-1px); }
  .auth-btn:disabled { opacity: 0.7; cursor: not-allowed; }
  
  .google-btn {
    background: #0b1220;
    color: #e2e8f0;
    border: 1px solid rgba(148,163,184,0.25);
  }
  .google-btn:hover { background: #111827; border-color: rgba(148,163,184,0.4); }
  
  #auth-submit { margin-bottom: 0; }
  #auth-msg { min-height: 0; font-size: 13px; margin-top: 0; }
  #auth-msg.error { color: #fecaca; }
  #auth-msg.success { color: #bbf7d0; }
  
  /* Small entrance animation */
  .auth-card { transform: translateY(4px); animation: auth-in .18s ease-out forwards; }
  @keyframes auth-in { to { transform: translateY(0); } }
  
  /* Profile Modal Redesign Styles */
  #profile-section .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  
  #profile-section .form-field {
    display: flex;
    flex-direction: column;
  }
  
  #profile-section .form-field.full-width {
    grid-column: 1 / -1;
  }
  
  #profile-section .form-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  #profile-section .form-input,
  #profile-section .form-select,
  #profile-section .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  #profile-section .form-input:focus,
  #profile-section .form-select:focus,
  #profile-section .form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
  
  #profile-section .form-input:disabled,
  #profile-section .form-select:disabled,
  #profile-section .form-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  #profile-section .form-textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  #profile-section .languages-container,
  #profile-section .subjects-container,
  #profile-section .availability-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }
  
  #profile-section .notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  
  #profile-section .notification-group {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
  }
  
  #profile-section .notification-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  #profile-section .notification-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
  }
  
  #profile-section .notification-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin-bottom: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  
  #profile-section .notification-toggle:last-child {
    margin-bottom: 0;
  }
  
  #profile-section .notification-toggle:hover {
    opacity: 0.8;
  }
  
  #profile-section .toggle-label {
    font-size: 14px;
  }
  
  #profile-section .security-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  #profile-section .provider-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  #profile-section .security-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  #profile-section .learner-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #profile-section .danger-content {
    padding: 0;
  }
  
  #profile-section .danger-details {
    border: none;
  }
  
  #profile-section .danger-summary {
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    transition: opacity 0.2s ease;
  }
  
  #profile-section .danger-summary:hover {
    opacity: 0.8;
  }
  
  #profile-section .danger-options {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #profile-section .danger-warning {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  #profile-section .card-icon.danger {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
  }
  
  #profile-section .nav-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
  }
  
  #profile-section .nav-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
  }
  
  /* Responsive Profile Modal */
  @media (max-width: 768px) {
    #profile-section .profile-form-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    #profile-section .notifications-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    #profile-section .security-actions {
      flex-direction: column;
    }
    
    #profile-section .security-actions .nav-btn {
      width: 100%;
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    #profile-section .form-input,
    #profile-section .form-select,
    #profile-section .form-textarea {
      padding: 10px 12px;
      font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #profile-section .notification-group {
      padding: 12px;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-form-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .notifications-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .security-actions {
      flex-direction: column;
    }
    
    .security-actions .nav-btn {
      width: 100%;
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .form-input,
    .form-select,
    .form-textarea {
      padding: 10px 12px;
      font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .notification-group {
      padding: 12px;
    }
  }
  
  /* A-Level Card Icons - Darker Blue Background */
  .subjects-by-category[data-level="alevel"] .subject-card-scroll .scroll-icon {
      background-color: #364FC7 !important;  /* Darker blue background */
  }
  
  /* Ensure white icons for A-Level cards */
  .subjects-by-category[data-level="alevel"] .subject-card-scroll .scroll-icon i {
      color: white !important;
  }
<<<<<<< HEAD

 /* iPad nuclear fix for Lukas image */
@media (min-width: 768px) and (max-width: 1024px) {
    .tutor-photo {
      aspect-ratio: auto !important;
      height: 400px !important;
      width: 300px !important;
      max-height: none !important;
      min-height: auto !important;
      object-fit: cover !important;
      transform: none !important;
    }
    
    .photo-container,
    .photo-inner {
      aspect-ratio: auto !important;
      height: 400px !important;
      width: 300px !important;
      max-height: none !important;
      min-height: auto !important;
    }
  }

/* Comprehensive iPad fix - covers all iPad variants and Safari modes */
@media screen and (min-width: 768px) and (max-width: 1024px),
       screen and (min-device-width: 768px) and (max-device-width: 1024px),
       screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 1),
       screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape),
       screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  
  /* Force high CSS specificity to override any Safari optimizations */
  html body .about .about-content .about-image .photo-container {
    aspect-ratio: unset !important;
    width: 350px !important;
    height: 480px !important;
    max-width: 350px !important;
    max-height: 480px !important;
    min-height: 480px !important;
    transform: none !important;
  }
  
  html body .about .about-content .about-image .photo-container .photo-inner {
    aspect-ratio: unset !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }
  
  html body .about .about-content .about-image .photo-container .tutor-photo {
    aspect-ratio: unset !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    filter: none !important;
  }
}
