/* IndiaExamsHub – Clean, warm saffron-meets-indigo theme */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --primary:       #4A5568;   /* slate grey */
  --primary-light: #718096;
  --primary-dark:  #2D3748;
  --accent:        #14B8A6;   /* teal */
  --accent-light:  #99F6E4;
  --success:       #059669;
  --danger:        #dc2626;
  --light-bg:      #faf9ff;
  --card-bg:       #ffffff;
  --muted-purple:  #EDF2F7;
  --muted-orange:  #F0FDFA;
  --dark:          #1a202c;
  --text:          #2d3748;
  --gray:          #6b7280;
  --border:        #E2E8F0;
  --border-color:  #E2E8F0;
  --shadow-sm:     0 2px 8px rgba(74, 85, 104,0.08);
  --shadow-md:     0 6px 24px rgba(74, 85, 104,0.12);
  --shadow-lg:     0 16px 48px rgba(74, 85, 104,0.18);
  --radius:        14px;
  --navbar-h:      68px;
  --banner-h:      0px;
}

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

/* ── Copyright protection: disable text selection and right-click ── */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable], .quiz-option, .search-input {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

html { scroll-behavior: smooth; background: #faf9ff; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* Ensure form elements inherit Nunito instead of falling back to OS system font (Arial) */
button, input, select, textarea {
  font-family: inherit;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ──────────── NAVBAR ──────────── */
.navbar {
  background: white;
  border-bottom: 2px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  overflow: visible;
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 20px;
  position: relative;
  overflow: visible;
}

.navbar .nav-container {
  padding-left: 0;
  padding-right: 0;
}

.logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
  position: relative;
  overflow: visible;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--border);
  text-decoration: none;
}

/* Premium member – golden ring */
.profile-avatar.avatar-premium {
  border: 2.5px solid #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.35);
}

/* Premium Pro member – gradient purple/gold ring */
.profile-avatar.avatar-pro {
  border: 2.5px solid transparent;
  box-shadow: 0 0 0 2px rgba(113, 128, 150,0.5);
  background-image: linear-gradient(135deg, #4A5568 0%, #14B8A6 100%);
  outline: 2.5px solid #f6d365;
  outline-offset: 1px;
}

.profile-avatar:hover {
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
  transform: scale(1.05);
}

/* Dropdown badge chips - suppressed during free launch */
.premium-badge {
  display: none !important;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #7a3e00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.premium-pro-badge {
  display: none !important;
  background: linear-gradient(135deg, #4A5568, #14B8A6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--muted-purple); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: white; }

/* ──────────── NAVBAR DROPDOWN (MOCK EXAM) ──────────── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.open .nav-dropdown-btn {
  background: var(--muted-purple);
  color: var(--primary);
}

.nav-dropdown.active .nav-dropdown-btn {
  background: var(--primary);
  color: white;
}

.nav-dropdown-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
  color: inherit;
  opacity: 0.75;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(74, 85, 104, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  min-width: 250px;
  padding: 8px;
  display: none;
  z-index: 1020;
  animation: dropFade 0.18s ease;
}

/* Invisible hover bridge: eliminates the gap so moving cursor to dropdown never loses hover */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
  display: block;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text) !important;
  background: transparent !important;
  transition: background 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-item:hover {
  background: var(--muted-purple) !important;
  color: var(--primary) !important;
  transform: translateX(2px);
}

.dropdown-exam-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.dropdown-exam-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-exam-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.nav-dropdown-item:hover .dropdown-exam-name {
  color: var(--primary);
}

.dropdown-exam-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mobile responsive for dropdown */
@media (max-width: 1024px) {
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(74, 85, 104, 0.06);
    border-radius: 10px;
    padding: 6px;
    margin: 4px 8px 10px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-item {
    padding: 10px 14px !important;
  }
}

/* Pill badge on results link */
.nav-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

/* ──────────── HAMBURGER ──────────── */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
  position: relative;
  z-index: 210;
  grid-column: 2;
  justify-self: start;
}
.menu-toggle:hover { background: var(--muted-purple); }

.bar {
  position: absolute;
  left: 8px;
  width: 28px; height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.top    { top: 11px; }
.middle { top: 20px; }
.bottom { top: 29px; }
.menu-toggle.active .top    { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .middle { opacity: 0; transform: scaleX(0.1); }
.menu-toggle.active .bottom { transform: translateY(-9px) rotate(-45deg); }

/* Mobile responsive navbar */
@media (max-width: 1024px) {
  /* Fix 1: add breathing room so the logo doesn't touch the screen edge */
  .navbar .nav-container {
    padding-left: 20px;
    padding-right: 8px;
  }

  /* Fix 3: switch to flex so the hamburger sits on the far right */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  /* nav-links is hidden until the hamburger is clicked.
     Reset ALL desktop-positioning values so .active can apply cleanly. */
  .nav-links {
    display: none;
    position: static;   /* reset: desktop uses position:absolute */
    left: auto;         /* reset: desktop uses left:50% */
    transform: none;    /* ← KEY FIX: desktop uses translateX(-50%); without this
                           the opened menu slides 50vw off-screen to the left */
    width: auto;        /* reset: desktop uses width:max-content */
  }

  /* Fix 2: use position:fixed so the dropdown is never clipped by a parent
     and always spans the full viewport width below the sticky navbar */
  .nav-links.active {
    display: flex;
    position: fixed;
    top: calc(var(--navbar-h) + var(--banner-h));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    gap: 2px;
    z-index: 9999;
    justify-content: flex-start;
    max-height: calc(100vh - (var(--navbar-h) + var(--banner-h)));
    overflow-y: auto;
  }

  .nav-links.active a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.97rem;
    text-align: left;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Fix 3: hide the desktop profile avatar/sign-in on mobile —
     the user's info is shown inside the dropdown instead */
  .profile-container {
    display: none !important;
  }
}

/* Mobile-only profile section injected via script.js into the dropdown */
.mobile-nav-sep { display: none; }
.mobile-nav-profile-section { display: none; }

@media (max-width: 1024px) {
  .mobile-nav-sep {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 8px 0;
  }

  .mobile-nav-profile-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 4px;
  }

  .mobile-nav-pheader {
    padding: 10px 14px 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-nav-pitem {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Nunito', sans-serif;
  }
  .mobile-nav-pitem:hover { background: var(--muted-purple, #EDF2F7); }

  .mobile-nav-psignout {
    color: #e53935;
    font-weight: 700;
  }
  .mobile-nav-psignout:hover { background: #fff0f0; }

  .mobile-nav-signin {
    color: var(--primary);
    background: var(--muted-purple, #EDF2F7);
    border: 2px solid var(--border);
    font-weight: 700;
    text-align: center;
  }
  .mobile-nav-signin:hover { opacity: 0.85; }
}

/* ──────────── HERO ──────────── */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F172A 100%);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.hero::after { content: none; }

/* ── Static orange orb, centred ── */
.hero-orb-orange {
  position: absolute;
  width: 560px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 184, 166,0.2) 0%, rgba(20, 184, 166,0.06) 55%, transparent 75%);
  filter: blur(20px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}


.hero-content { position: relative; z-index: 3; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 184, 166,0.2);
  border: 1px solid rgba(20, 184, 166,0.4);
  color: #5EEAD4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(90deg, #5EEAD4, #14B8A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btns .btn {
  height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-pill-stacked {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 22px;
  line-height: 1.1;
}

.btn-pill-stacked .btn-main-text {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
}

.btn-pill-stacked .btn-sub-label {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-light, #99F6E4);
  line-height: 1;
  margin-top: 1px;
}

/* Stats strip */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: min(100%, 1200px);
  margin: 56px auto 0;
  padding: 0 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.stat-item { text-align: center; }
.stat-num {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(74, 85, 104,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 85, 104,0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0D9488);
  color: white;
  box-shadow: 0 4px 16px rgba(20, 184, 166,0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166,0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: white; }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ──────────── SECTION HEADERS ──────────── */
.section-head { text-align: center; margin: 70px 0 40px; }
.section-head .overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h1,
.section-head h2 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.section-head p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ──────────── SEARCH BAR ──────────── */
.search-wrap {
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(74, 85, 104,0.1); }
.search-wrap .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1.1rem;
  pointer-events: none;
}

/* ──────────── FILTER TABS ──────────── */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: white;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Secondary level/upcoming filters */
.secondary-filters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
}
.level-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Nunito', sans-serif;
}
.level-btn:hover { border-color: var(--primary); color: var(--primary); }
.level-btn.active { background: var(--primary-light); border-color: var(--primary-light); color: white; }

/* ──────────── CARDS GRID ──────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}
.card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.08;
}

.card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.card-header-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.card-category-badge {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.25);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.3);
}

.card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.card-subtitle { color: var(--gray); font-size: 0.88rem; margin-bottom: 14px; }

.card-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.87rem;
}
.card-detail-label {
  color: var(--gray);
  min-width: 90px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 1px;
}
.card-detail-value { color: var(--text); flex: 1; }

.card-note {
  background: var(--muted-purple);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.83rem;
  color: var(--primary-dark);
  margin-top: 12px;
  line-height: 1.45;
}

.card-actions { margin-top: 16px; display: flex; gap: 10px; }

/* Color themes for card headers */
.theme-blue   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.theme-green  { background: linear-gradient(135deg, #065f46, #10b981); }
.theme-orange { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.theme-purple { background: linear-gradient(135deg, #334155, #4A5568); }
.theme-rose   { background: linear-gradient(135deg, #9f1239, #e11d48); }
.theme-teal   { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.theme-amber  { background: linear-gradient(135deg, #92400e, #d97706); }
.theme-indigo { background: linear-gradient(135deg, #3730a3, #6366f1); }

/* ──────────── CATEGORY SECTION LABELS ──────────── */
.category-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 24px;
}
.category-section-label h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
.category-section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--border), transparent);
}
.category-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ──────────── JOBS SPECIFIC ──────────── */
.jobs-view-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(74, 85, 104, 0.08), rgba(20, 184, 166, 0.08));
  border: 1.5px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.jobs-view-info { display: flex; flex-direction: column; gap: 3px; }
.jobs-view-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.jobs-view-sub { font-size: 0.85rem; color: var(--gray); }
.jobs-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary, #4A5568);
  color: white;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.2);
}
.jobs-portal-link:hover {
  background: var(--secondary, #14B8A6);
  transform: translateY(-1px);
  color: white;
}

#examsGrid.jobs-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
}

#examsGrid.jobs-mode > .jobs-view-banner,
#examsGrid.jobs-mode > .home-section-header,
#examsGrid.jobs-mode > .jobs-subgrid,
#examsGrid.jobs-mode > .empty-state,
#examsGrid.jobs-mode > .expand-btn-wrap {
  width: 100% !important;
  grid-column: 1 / -1 !important;
  box-sizing: border-box !important;
}

.job-card {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary, #14B8A6);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.job-org-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.job-org-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.job-org-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary, #4A5568);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-urgency-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.urgency-open { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.urgency-month { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
.urgency-week { background: #F0FDFA; color: #0D9488; border: 1px solid #99F6E4; }
.urgency-soon { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.urgency-today { background: #fef2f2; color: #dc2626; border: 1px solid #f87171; font-weight: 800; animation: pulse-red 1.4s infinite; }
.urgency-closed { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }

.job-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.job-card-title {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #1E293B);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-exam-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(74, 85, 104, 0.07);
  border-left: 3px solid var(--primary, #4A5568);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text);
}
.job-exam-strip strong { color: var(--primary); }

.job-meta-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.job-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}
.job-chip.posts { background: rgba(20, 184, 166, 0.12); color: #0D9488; font-weight: 700; border: 1px solid rgba(20, 184, 166, 0.25); }
.job-chip.loc { background: rgba(59, 130, 246, 0.08); color: #2563EB; }
.job-chip.sector { background: rgba(74, 85, 104, 0.08); color: var(--primary, #4A5568); }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.job-deadline-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.job-deadline-lbl {
  font-size: 0.68rem;
  color: var(--gray, #718096);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.job-deadline-val {
  font-size: 0.8rem;
  font-weight: 700;
}
.job-deadline-val.closed { color: var(--gray, #94a3b8); }

.btn-job-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--secondary, #14B8A6);
  color: white;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}
.btn-job-apply:hover {
  background: #0D9488;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}
.btn-job-apply.disabled {
  background: var(--border, #E2E8F0);
  color: var(--gray, #94A3B8);
  pointer-events: none;
  box-shadow: none;
}

.jobs-grid { display: grid; gap: 16px; margin-bottom: 40px; }

/* ──────────── RESULTS TABLE ──────────── */
.results-table-wrap {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
}
.results-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}
.results-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.results-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: var(--muted-purple); }
.result-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-live { background: #dcfce7; color: #166534; }
.status-expected { background: #fef3c7; color: #92400e; }
.status-announced { background: #e0f2fe; color: #0c4a6e; }

/* ──────────── PAPERS ──────────── */
.paper-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.25s;
}
.paper-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.paper-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--muted-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
}
.paper-info { flex: 1; }
.paper-title {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--dark);
  margin-bottom: 3px;
}
.paper-meta { font-size: 0.83rem; color: var(--gray); }
.paper-actions { display: flex; gap: 8px; flex-shrink: 0; }
.papers-list { display: grid; gap: 12px; margin-bottom: 40px; }

/* ──────────── LOGIN PAGE ──────────── */
.auth-container {
  max-width: 960px;
  margin: 50px auto 60px;
  padding: 0 24px;
  perspective: 1400px;
}
.flip-card {
  width: 100%;
  height: 560px;
  position: relative;
  transition: transform 0.75s cubic-bezier(0.68, -0.4, 0.265, 1.4);
  transform-style: preserve-3d;
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.flip-card-back { transform: rotateY(180deg); }

.auth-split { display: flex; height: 100%; }
.auth-left {
  width: 42%;
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 60%, #0F172A 100%);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(20, 184, 166,0.18), transparent 60%);
}
.auth-left-content { position: relative; z-index: 1; }
.auth-left h2 {
  font-family: 'Baloo 2', cursive;
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.auth-left p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 28px; line-height: 1.5; }

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: 'Nunito', sans-serif;
}
.social-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); transform: translateX(3px); }
.social-btn:active { transform: scale(0.98); }


.auth-right {
  flex: 1;
  background: white;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth-right h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.auth-right .subtext { color: var(--gray); font-size: 0.92rem; margin-bottom: 26px; }

.form-group { margin-bottom: 14px; position: relative; }

/* ── Generic form primitives (used by tools: AKA, Timetable, Scholarships…) ── */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: auto;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 85, 104,0.12); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; line-height: 1.6; }

.form-group input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(74, 85, 104,0.1); }
.form-group .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
}
.form-group input[type="password"],
.form-group input.has-toggle { padding-right: 44px; }
.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s;
}
.pwd-toggle:hover { color: var(--primary); }
.pwd-toggle .eye-icon { width: 18px; height: 18px; display: block; }

/* ── Social Login Buttons (placed in .auth-left dark panel) ──── */
.social-login-row { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; width: 100%; }

.switch-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--gray);
}
.switch-link span {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}
.switch-link span:hover { text-decoration: underline; }

/* ──────────── PROFILE PAGE ──────────── */
body.profile-page {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(74, 85, 104, 0.12), transparent 22%),
    linear-gradient(180deg, #fcfbff 0%, #f6f1ff 100%);
}

.profile-shell {
  padding-top: 18px;
  padding-bottom: 56px;
}

.profile-header {
  background: linear-gradient(135deg, #0F172A, #1E293B 58%, #0F172A 100%);
  border-radius: 28px;
  padding: 42px 38px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(74, 85, 104, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(20, 184, 166,0.22), transparent 45%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 100%);
}
.profile-avatar-large {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 3px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}
.profile-header-info { position: relative; z-index: 1; }
.profile-header-info h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}
.profile-header-info p { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

.profile-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -6px 0 34px;
}

.profile-spotlight-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(74, 85, 104, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(74, 85, 104, 0.08);
  backdrop-filter: blur(12px);
}

.profile-spotlight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-spotlight-value {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.profile-spotlight-note {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
}

.library-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 255, 0.92));
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(74, 85, 104, 0.12);
  box-shadow: 0 12px 30px rgba(74, 85, 104, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.library-item:hover { border-color: var(--primary); box-shadow: 0 18px 38px rgba(74, 85, 104, 0.14); }
.library-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--muted-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  flex-shrink: 0;
}
.library-item-info { flex: 1; }
.library-item-title { font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.library-item-meta { font-size: 0.82rem; color: var(--gray); }

.section-head-compact {
  margin: 0 0 16px 0;
  text-align: left;
}

.settings-card .section-head,
.settings-card .section-head-compact {
  margin-top: 0 !important;
}

.profile-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.settings-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(74, 85, 104, 0.12);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(74, 85, 104, 0.08);
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-block label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group-block input,
.form-group-block select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(74, 85, 104, 0.14);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-group-block input:focus,
.form-group-block select:focus {
  outline: none;
  border-color: rgba(74, 85, 104, 0.42);
  box-shadow: 0 0 0 4px rgba(74, 85, 104, 0.08);
}

.checkbox-block {
  justify-content: flex-end;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 100%;
  font-size: 0.92rem;
  color: var(--text);
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tracked-exam-card {
  border: 1px solid rgba(74, 85, 104, 0.12);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ff 100%);
  box-shadow: 0 10px 24px rgba(74, 85, 104, 0.06);
  margin-bottom: 12px;
}

.profile-library-head {
  margin-top: 56px;
}

:root[data-theme="dark"] body.profile-page {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 20%),
    linear-gradient(180deg, #081121 0%, #0f172a 100%);
}

:root[data-theme="dark"] .profile-spotlight-card,
:root[data-theme="dark"] .settings-card,
:root[data-theme="dark"] .library-item,
:root[data-theme="dark"] .tracked-exam-card {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .profile-header {
  background: linear-gradient(135deg, #0f172a, #24124f 58%, #1e1b4b 100%);
}

:root[data-theme="dark"] .profile-spotlight-value {
  color: var(--primary-light);
}

:root[data-theme="dark"] .profile-spotlight-label {
  color: rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .profile-spotlight-note {
  color: rgba(226, 232, 240, 0.72);
}

.tracked-exam-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.tracked-exam-title {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.tracked-exam-meta,
.tracked-exam-dates,
.tracked-exam-footer {
  font-size: 0.84rem;
  color: var(--gray);
}

.tracked-exam-dates,
.tracked-exam-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.recommendation-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recommendation-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.recommendation-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-purple);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.recommendation-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--primary);
}

.recommendation-head h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.1;
}

.recommendation-head p,
.recommendation-note {
  color: var(--gray);
  font-size: 0.9rem;
}

.recommendation-meta {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text);
}

.recommendation-footer,
.card-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(5, 150, 105, 0.1);
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}

.trust-link:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* Countdown pill inside card date row */
.countdown-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

:root[data-theme="dark"] .countdown-pill {
  background: rgba(146, 64, 14, 0.35);
  color: #fcd34d;
}

/* ──────────── PROFILE AVATAR NAVBAR ──────────── */
.profile-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.profile-avatar.avatar-premium {
  border: 2.5px solid #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.35);
}
.profile-avatar.avatar-pro {
  border: 2.5px solid transparent;
  background-image: linear-gradient(135deg, #4A5568 0%, #14B8A6 100%);
  outline: 2.5px solid #f6d365;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(113, 128, 150,0.4);
}
.profile-avatar:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(74, 85, 104,0.3); }

/* Dropdown – hover-triggered wrapper */
#profileDropdownWrap {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

#profileDropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999;
  /* Hidden by default, shown on hover via JS-managed class */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

#profileDropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
#profileDropdown > div {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: dropFade 0.2s ease;
}
@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #EDF2F7, #ede9fe);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.97rem;
}
.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s;
  color: var(--text);
}
.dropdown-item:hover { background: var(--muted-purple); color: var(--primary); }
.dropdown-signout {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--danger);
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.dropdown-signout:hover { background: #fee2e2; }

/* ──────────── TIPS CARD ──────────── */
.tips-card {
  background: linear-gradient(135deg, var(--muted-purple), #ede9fe);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
}
.tips-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.tips-card ul { list-style: none; display: grid; gap: 8px; }
.tips-card li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #4c1d95;
  line-height: 1.5;
}
.tips-card li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ──────────── EMPTY STATES ──────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state .empty-icon.hd-empty-target {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(113, 128, 150, 0.06));
  border: 1.5px dashed rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}
.empty-state .empty-icon.hd-empty-target svg {
  display: block;
}
:root[data-theme="dark"] .empty-state .empty-icon.hd-empty-target {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(113, 128, 150, 0.1));
  border-color: rgba(129, 140, 248, 0.4);
  color: #818cf8;
}
.empty-state p { font-size: 0.95rem; }

/* ──────────── AD SLOTS (Disabled - ready to re-enable when ads are available) ──────────── */
.ad-slot {
  display: none !important;
}

/* Full-width clean container (no empty 160px ad sidebars) */
.exam-layout-wrapper,
.page-layout-wrapper {
  display: block;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.exam-main-col,
.page-main-col {
  width: 100%;
  min-width: 0;
}

/* Collapse sidebars on narrow viewports */
@media (max-width: 1200px) {
  .exam-layout-wrapper,
  .page-layout-wrapper {
    grid-template-columns: 1fr;
    max-width: 1200px;
  }
  .ad-slot[data-pos="sidebar-left"],
  .ad-slot[data-pos="sidebar-right"] {
    display: none;
  }
}

/* Premium/Pro users: ads.js hides both sidebars via display:none, which removes
   them from grid flow and shifts main content into column 1. Collapse to 1fr. */
html[data-ad-tier="premium"] .exam-layout-wrapper,
html[data-ad-tier="premium"] .page-layout-wrapper {
  grid-template-columns: 1fr;
}

/* Footer banner – sits above the footer, full width, 90px tall */
.ad-slot[data-pos="footer-banner"] {
  height: 90px;
  max-width: 100%;
  margin: 80px 0 0;
  border-radius: 0;
}

/* ──────────── FREE TOOLS QUICK NAV ──────────── */
.free-tools-nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: calc(var(--navbar-h) + var(--banner-h));
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.free-tools-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.free-tools-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
}
.free-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.free-tool-pill svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}
.free-tool-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.free-tool-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  pointer-events: none;
}
@media (max-width: 600px) {
  .free-tools-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* ──────────── FOOTER ──────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
  margin-top: 80px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand .logo { font-size: 1.6rem; -webkit-text-fill-color: #5EEAD4; background: none; color: #5EEAD4; }
.footer-brand p { margin-top: 10px; font-size: 0.88rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: white; font-family: 'Baloo 2', cursive; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #5EEAD4; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-subscribe {
  display: flex;
  gap: 0;
  margin-top: 14px;
}
.footer-subscribe input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,0.4); }
.footer-subscribe button {
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s;
}
.footer-subscribe button:hover { background: #0D9488; }

/* ──────────── NOTICE BANNER ──────────── */
.notice-banner {
  background: linear-gradient(90deg, #fef3c7, #F0FDFA);
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  color: #92400e;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flip-card { height: auto; }
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; padding: 32px 28px; }
  .auth-right { padding: 32px 28px; }
  .flip-card-front, .flip-card-back { position: static; backface-visibility: visible; height: auto; transform: none !important; }
  .flip-card { transform: none !important; }
  #registerPanel { display: none; }
  #registerPanel.show { display: block; }
  #loginPanel.hide { display: none; }
}

/* Prevent horizontal overflow on phones without disabling sticky header */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .hero { padding: 48px 0 36px; }
  .hero-tag { font-size: 0.78rem; padding: 4px 12px; margin-bottom: 12px; }
  .hero h1 { font-size: 2.1rem; line-height: 1.25; }
  .hero p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; }
  .hero-btns { flex-direction: column; gap: 10px; width: 100%; }
  .hero-btns .btn { width: 100%; text-align: center; justify-content: center; min-height: 44px; }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 10px;
    border-radius: 14px;
    margin-top: 24px;
  }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }

  /* Filters & Search */
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 10px;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 38px;
  }
  .secondary-filters {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }
  .search-wrap {
    width: 100%;
    margin-bottom: 14px;
  }
  #searchInput {
    font-size: 0.94rem;
    padding: 12px 14px 12px 42px;
    min-height: 44px;
    width: 100%;
  }

  /* Cards Grid */
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .job-card {
    flex-direction: column;
    padding: 16px 14px;
    border-radius: 14px;
    gap: 12px;
  }
  .job-card h3 { font-size: 1.05rem; }
  .jobs-view-banner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .jobs-portal-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 40px;
  }
  .home-section-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .job-sector-filter-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .job-sector-filter-pills::-webkit-scrollbar { display: none; }
  .sector-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Paper Cards */
  .paper-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
  }
  .paper-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .paper-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-height: 40px;
  }

  /* Profile page */
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    margin: 18px 0;
    border-radius: 18px;
    gap: 14px;
  }
  .profile-spotlight-grid { grid-template-columns: 1fr; gap: 12px; }
  .profile-two-column,
  .form-row.two-up { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Tables */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 1.35rem; }
  .hero h1 { font-size: 1.72rem; }
  .btn { padding: 10px 18px; font-size: 0.88rem; min-height: 42px; }
  .container { padding: 0 14px; }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-stats .stat-item:last-child {
    grid-column: 1 / -1;
  }
  
  .section-head { text-align: left; margin-bottom: 20px; }
  .section-head h1,
  .section-head h2 { font-size: 1.45rem; }
  .countdown-pill { display: block; margin-left: 0; margin-top: 4px; }
}

/* ──────────── RESULTS SECTION TITLES ──────────── */
.results-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ──────────── CARD COMMUNITY ROW ──────────── */
.card-community-row {
  display: flex;
  gap: 8px;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--border);
}
.community-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s;
  border: 2px solid transparent;
}
.community-link:hover { opacity: 0.82; }
.reddit-link  { background: #fff1ea; color: #c05c1a; border-color: #fcd9b7; }
.telegram-link{ background: #e8f4fd; color: #0088cc; border-color: #bee3f8; }
:root[data-theme="dark"] .reddit-link   { background: rgba(20, 184, 166,0.15); color: #2DD4BF; border-color: rgba(20, 184, 166,0.3); }
:root[data-theme="dark"] .telegram-link { background: rgba(0,136,204,0.15);  color: #38bdf8; border-color: rgba(0,136,204,0.3); }

/* ──────────── MINI CALENDAR (dashboard) ──────────── */
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 8px;
  font-size: 0.8rem;
}
.cal-header-cell {
  text-align: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--gray);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 5px 2px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
  min-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.cal-day:hover { background: var(--muted-purple); }
.cal-day.today { background: var(--primary); color: #fff; font-weight: 800; }
.cal-day.other-month { color: var(--gray); opacity: 0.45; }
.cal-day.has-entry::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day.today.has-entry::after { background: #fff; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav-btn { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--primary); font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.cal-nav-btn:hover { background: var(--muted-purple); }
.cal-month-label { font-weight: 800; font-size: 0.9rem; color: var(--dark); }
.empty-cal-state { color: var(--gray); font-size: 0.85rem; text-align: center; padding: 24px 0; }

/* ──────────── TOAST NOTIFICATIONS ──────────── */
#toastContainer {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 12px; min-width: 240px; max-width: 340px;
  font-weight: 600; font-size: 0.93rem; font-family: 'Nunito', sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(16px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: all;
}
.toast.toast-show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.toast-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.toast-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.toast-info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
@media (max-width: 600px) { #toastContainer { left: 16px; right: 16px; bottom: 16px; } }

/* ──────────── SKELETON LOADERS ──────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(200,200,255,0.12) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 8px;
}
.skeleton-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; height: 300px;
}
.skeleton-card .sk-header { height: 80px; }
.skeleton-card .sk-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-card .sk-line { height: 13px; border-radius: 8px; }
.skeleton-card .sk-line.w80 { width: 80%; }
.skeleton-card .sk-line.w60 { width: 60%; }
.skeleton-card .sk-line.w40 { width: 40%; }
.skeleton-card .sk-btn  { height: 32px; border-radius: 8px; width: 110px; margin-top: 4px; }

/* ──────────── EXAM STATUS BADGES ──────────── */
.exam-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.status-open     { background: #dcfce7; color: #14532d; }
.status-ongoing  { background: #fef9c3; color: #78350f; }
.status-results  { background: #fee2e2; color: #7f1d1d; }
.status-upcoming { background: var(--border); color: #374151; }

/* ──────────── LIVE UPDATES FEED ──────────── */
.updates-feed { display: flex; flex-direction: column; gap: 0; }
.update-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.update-item:last-child { border-bottom: none; }
.update-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }
.update-dot.dot-new { background: var(--danger); animation: pulse 1.4s infinite; }
.update-dot.dot-result { background: var(--success); }
.update-meta { font-size: 0.8rem; color: var(--gray); margin-top: 3px; }
.update-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.update-link { font-size: 0.82rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.update-link:hover { text-decoration: underline; }

/* ──────────── FEATURE PAGE SHARED ──────────── */
.feature-page-header { text-align: center; padding: 56px 0 32px; }
.feature-page-header h1 { font-size: 2.2rem; font-weight: 800; }
.feature-page-header p  { color: var(--gray); max-width: 560px; margin: 12px auto 0; font-size: 1.02rem; }

/* ──────────── DAILY PRACTICE ──────────── */
.streak-bar { display: flex; align-items: center; gap: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 28px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.streak-stat { text-align: center; }
.streak-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.streak-label { font-size: 0.78rem; color: var(--gray); font-weight: 600; text-transform: uppercase; }
.streak-graph { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.streak-cell { width: 14px; height: 14px; border-radius: 3px; background: var(--border); }
.streak-cell.done { background: var(--primary); }
.streak-cell.today { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ──────────── FLASHCARDS ──────────── */
.flashcard-scene { perspective: 800px; width: 100%; max-width: 600px; margin: 0 auto; height: 260px; cursor: pointer; }
.flashcard { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.5s ease; }
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0; border-radius: var(--radius); backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 28px 32px; font-size: 1.1rem; font-weight: 700; border: 2px solid var(--border);
  background: var(--card-bg); box-shadow: var(--shadow-sm); line-height: 1.6;
}
.flashcard-front { justify-content: space-between; }
.flashcard-back { transform: rotateY(180deg); background: var(--muted-purple); color: var(--primary); justify-content: flex-start; }
.flashcard-hint { text-align: center; color: var(--gray); font-size: 0.82rem; margin-top: 8px; }
.flashcard-nav { display: flex; gap: 12px; justify-content: center; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.fc-counter { color: var(--gray); font-size: 0.88rem; font-weight: 600; }

/* ──────────── SCHOLARSHIP FINDER ──────────── */
.scholarship-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.2s;
}
.scholarship-card:hover { box-shadow: var(--shadow); }
.scholarship-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 0; }
.scholarship-badge { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.sc-pill { font-size: 0.72rem; padding: 2px 9px; border-radius: 20px; font-weight: 700; background: var(--muted-purple); color: var(--primary); }
.sc-amount { font-size: 0.92rem; font-weight: 700; color: var(--success); }
.sc-deadline { font-size: 0.82rem; color: var(--gray); }

/* ──────────── TIMETABLE GENERATOR ──────────── */
.timetable-grid { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tt-header-row { display: grid; background: var(--primary); color: white; font-weight: 700; font-size: 0.82rem; }
.tt-row { display: grid; border-bottom: 1px solid var(--border); }
.tt-row:last-child { border-bottom: none; }
.tt-cell { padding: 10px 12px; font-size: 0.85rem; border-right: 1px solid var(--border); }
.tt-cell:last-child { border-right: none; }
.tt-cell.done { background: rgba(5,150,105,0.1); color: var(--success); font-weight: 700; }
.tt-cell.day-label { font-weight: 700; color: var(--primary); }

/* ──────────── DOUBT FORUM ──────────── */
.doubt-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px; transition: box-shadow 0.2s;
}
.doubt-card:hover { box-shadow: var(--shadow-sm); }
.doubt-question { font-weight: 700; font-size: 1rem; color: var(--text); }
.doubt-meta     { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.doubt-body     { margin-top: 10px; font-size: 0.93rem; color: var(--text); line-height: 1.6; }
.doubt-actions  { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.doubt-vote     { background: none; border: 1px solid var(--border); padding: 4px 12px; border-radius: 8px; cursor: pointer; font-size: 0.82rem; font-family: 'Nunito',sans-serif; font-weight: 600; color: var(--text); transition: background 0.15s; }
.doubt-vote:hover { background: var(--muted-purple); }
.doubt-vote.upvoted { background: var(--muted-purple); color: var(--primary); border-color: var(--primary); }
.doubt-answers  { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.answer-item    { background: #f8f9fb; border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; line-height: 1.5; }

/* ──────────── ANSWER KEY ANALYSER ──────────── */
.aka-grid { display: grid; gap: 8px; }
.aka-row  { display: grid; grid-template-columns: 40px 1fr 120px auto; gap: 8px; align-items: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 0.9rem; }
.aka-qnum { font-weight: 700; color: var(--primary); }
.aka-correct { color: var(--success); font-weight: 700; }
.aka-wrong   { color: var(--danger); font-weight: 700; }
.aka-skip    { color: var(--gray); font-weight: 700; }
.aka-score-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; margin: 24px 0; }
.aka-score-big { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }

/* ──────────── AI DOUBT SOLVER ──────────── */
.ai-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; }
.ai-panel h3 { margin: 0 0 12px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ai-messages { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.ai-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; line-height: 1.6; max-width: 90%; }
.ai-msg.user { background: var(--primary); color: white; align-self: flex-end; }
.ai-msg.bot  { background: var(--muted-purple); color: var(--text); align-self: flex-start; }
.ai-msg.typing { color: var(--gray); font-style: italic; }
.ai-input-row { display: flex; gap: 8px; }
.ai-input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-family: 'Nunito',sans-serif; font-size: 0.93rem; }
.ai-input:focus { outline: none; border-color: var(--primary); }

/* ──────────── PERFORMANCE ANALYTICS ──────────── */
.analytics-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 28px; }
.analytics-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.analytics-stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.analytics-stat-label { font-size: 0.78rem; color: var(--gray); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.analytics-history-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; align-items: center; }
.analytics-history-row:last-child { border-bottom: none; }
.analytics-bar-wrap { background: var(--border); border-radius: 999px; height: 8px; flex: 1; margin: 0 12px; }
.analytics-bar { background: var(--primary); height: 8px; border-radius: 999px; transition: width 0.6s ease; }

/* ──────────── QUIZ EXPLANATION ──────────── */
.quiz-explanation {
  margin-top: 14px; background: #eff6ff; border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 11px 14px; font-size: 0.9rem; line-height: 1.6;
  color: var(--text);
}
:root[data-theme="dark"] .quiz-explanation { background: rgba(74, 85, 104,0.12); }
.quiz-review-item { margin-bottom: 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.quiz-review-q { font-weight: 700; font-size: 0.97rem; margin-bottom: 8px; }
.quiz-review-answer { font-size: 0.9rem; margin-top: 6px; }

/* Dark mode toasts */
:root[data-theme="dark"] .toast-success { background: #064e3b; color: #6ee7b7; border-color: #065f46; }
:root[data-theme="dark"] .toast-error   { background: #4c0519; color: #fca5a5; border-color: #991b1b; }
:root[data-theme="dark"] .toast-warning { background: #451a03; color: #fcd34d; border-color: #78350f; }
:root[data-theme="dark"] .toast-info    { background: #0c1a6e; color: #93c5fd; border-color: #1e40af; }

/* ──────────── ANSWER KEY ANALYSER (extended) ──────────── */

/* "What is…" trigger button */
.aka-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--muted-purple);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: inherit;
}
.aka-learn-btn:hover { background: var(--border); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.aka-learn-icon  { font-size: 1.1rem; }
.aka-learn-chevron { font-size: 1.2rem; font-weight: 400; opacity: 0.6; }
:root[data-theme="dark"] .aka-learn-btn { background: rgba(74, 85, 104,0.18); border-color: rgba(74, 85, 104,0.35); }

/* Explainer modal overlay */
.aka-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.aka-modal-overlay.is-open {
  display: flex;
  animation: akaFadeIn 0.2s ease;
}
@keyframes akaFadeIn { from { opacity: 0; } to { opacity: 1; } }

.aka-modal-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
  animation: akaSlideUp 0.25s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.aka-modal-card::-webkit-scrollbar {
  width: 6px;
}
.aka-modal-card::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.aka-modal-card::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
.aka-modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
@keyframes akaSlideUp { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.aka-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.aka-modal-close:hover { background: var(--danger); color: white; }

.aka-modal-header {
  text-align: center;
  padding: 8px 36px 24px;
  clear: both;
}
.aka-modal-emoji { font-size: 3rem; margin-bottom: 10px; }
.aka-modal-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.aka-modal-header p  { color: var(--gray); font-size: 0.95rem; }

.aka-modal-intro {
  padding: 0 36px 24px;
  border-bottom: 1.5px solid var(--border-color);
}
.aka-modal-intro p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 10px;
}
.aka-modal-intro p:last-child { margin-bottom: 0; }
.aka-modal-intro strong { color: var(--text); }

.aka-modal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
}
.aka-modal-info-card {
  background: var(--card-bg);
  padding: 24px 28px;
}
.aka-modal-info-card .aka-exp-icon { font-size: 1.8rem; margin-bottom: 10px; }
.aka-modal-info-card h3 { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.aka-modal-info-card p  { font-size: 0.86rem; color: var(--gray); line-height: 1.7; }
.aka-modal-info-card code { background: var(--muted-purple); color: var(--primary); padding: 1px 5px; border-radius: 5px; font-size: 0.83rem; white-space: nowrap; }

.aka-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 18px 36px 22px;
  background: var(--muted-purple);
  border-top: 1.5px solid var(--border-color);
  border-radius: 0 0 24px 24px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.aka-modal-note span { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.aka-modal-note a { color: var(--primary); font-weight: 700; text-decoration: none; }
.aka-modal-note a:hover { text-decoration: underline; }
:root[data-theme="dark"] .aka-modal-note { background: rgba(74, 85, 104,0.12); }

@media (max-width: 560px) {
  .aka-modal-cards { grid-template-columns: 1fr; }
  .aka-modal-header, .aka-modal-intro, .aka-modal-note { padding-left: 20px; padding-right: 20px; }
  .aka-modal-info-card { padding: 18px 20px; }
}

/* Explainer section (legacy — kept for safety, no longer rendered) */
.aka-explainer { margin-bottom: 40px; }
.aka-explainer-lead { max-width: 800px; margin: 0 auto 36px; text-align: center; }
.aka-exp-card { background: var(--card-bg); border: 1.5px solid var(--border-color); border-radius: 16px; padding: 24px 22px; transition: box-shadow 0.2s, transform 0.2s; }
.aka-exp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.aka-exp-icon { font-size: 2rem; margin-bottom: 12px; line-height: 1; }
.aka-exp-card h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.aka-exp-card p  { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
.aka-explainer-note { display: flex; align-items: flex-start; gap: 14px; background: var(--muted-purple); border: 1.5px solid var(--border-color); border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 20px; font-size: 0.92rem; color: var(--text); line-height: 1.6; }
.aka-note-icon { font-size: 1.3rem; margin-top: 1px; flex-shrink: 0; }
:root[data-theme="dark"] .aka-explainer-note { background: rgba(74, 85, 104,0.1); }

.aka-setup-box {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.aka-form-section { padding: 28px 32px; }
.aka-section-divider { height: 1px; background: var(--border-color); margin: 0; }
.aka-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.aka-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; min-width: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(74, 85, 104,0.3);
}
.aka-section-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.aka-section-sub   { font-size: 0.84rem; color: var(--gray); margin-top: 2px; }
.aka-fields-row    { display: flex; flex-wrap: wrap; gap: 16px; }
.aka-field-block   { flex: 1; min-width: 140px; }
.aka-field-grow    { flex: 2; min-width: 200px; }

/* Answer entry two-column layout */
.aka-answers-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.aka-answer-panel  { display: flex; flex-direction: column; gap: 6px; }
.aka-panel-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 2px; width: fit-content;
}
.aka-badge-green  { background: #d1fae5; color: #065f46; }
.dark .aka-badge-green  { background: #064e3b; color: #6ee7b7; }
.aka-badge-purple { background: var(--muted-purple); color: var(--primary-dark); }
.dark .aka-badge-purple { background: #1e1b4b; color: #a5b4fc; }
.aka-hint-pill {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  background: var(--muted-purple); color: var(--primary);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}
.aka-textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  min-height: 148px;
}
.aka-panel-key .form-input:focus  { border-color: var(--success); box-shadow: 0 0 0 3px rgba(5,150,105,0.12); }
.aka-panel-mine .form-input:focus { border-color: var(--primary);  box-shadow: 0 0 0 3px rgba(74, 85, 104,0.12); }

/* VS separator */
.aka-answers-vs { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 36px; }
.aka-vs-line    { width: 1px; height: 42px; background: var(--border-color); }
.aka-vs-circle  {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--muted-purple);
  color: var(--primary);
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-color);
}

/* CTA row */
.aka-cta-row { padding: 0 32px 28px; }
.aka-cta-btn { width: 100%; padding: 15px; font-size: 1rem; border-radius: 12px; letter-spacing: 0.03em; }
.aka-error-msg { color: var(--danger); margin-top: 10px; display: none; font-size: 0.9rem; }

/* Results: score box */
.aka-score-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
  box-shadow: var(--shadow-md);
}
.aka-big-num   { font-size: 4rem; font-weight: 800; color: white; line-height: 1; }
.aka-sub-label { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-left: 4px; }
.aka-score-row { margin-top: 10px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.aka-score-row strong { color: white; }

/* Results: subject bars */
.aka-grid {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card-bg); border-radius: 16px;
  padding: 24px; border: 1.5px solid var(--border-color);
  margin-bottom: 20px;
}
.aka-row     { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.aka-subject { font-weight: 700; min-width: 110px; font-size: 0.9rem; }
.aka-bar-wrap { flex: 1; background: var(--border-color); border-radius: 999px; height: 12px; }
.aka-bar     { background: linear-gradient(90deg, var(--primary), var(--primary-light)); height: 12px; border-radius: 999px; transition: width 0.7s cubic-bezier(.4,0,.2,1); min-width: 4px; }
.aka-stats   { min-width: 150px; text-align: right; font-size: 0.82rem; color: var(--gray); font-weight: 600; }

/* Responsive */
@media (max-width: 640px) {
  .aka-form-section { padding: 20px 18px; }
  .aka-answers-layout { grid-template-columns: 1fr; }
  .aka-answers-vs { flex-direction: row; padding-top: 0; }
  .aka-vs-line { width: 42px; height: 1px; }
  .aka-cta-row { padding: 0 18px 22px; }
}

/* ──────────── FLASHCARDS (extended) ──────────── */
.fc-hint     { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); }
.fc-hint-top { margin-bottom: 0; }
.fc-hint-bottom { margin-top: auto; }
.fc-question { font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.55; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 0; }
.fc-answer   { font-size: 1rem; color: var(--text); line-height: 1.65; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 0; }


/* ──────────── SCHOLARSHIP GRID ──────────── */
.scholarship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.scholarship-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.2s; }
.scholarship-card:hover { box-shadow: var(--shadow-md); }
.sc-header  { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sc-name    { font-weight: 700; font-size: 0.97rem; color: var(--text); flex: 1; }
.sc-amount  { background: var(--muted-purple); color: var(--primary); font-weight: 700; font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.sc-desc    { font-size: 0.88rem; color: var(--gray); line-height: 1.55; flex: 1; }
.sc-pills   { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pill    { background: #f0fdf4; color: #166534; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid #bbf7d0; }
.sc-pill-alt { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
:root[data-theme="dark"] .sc-pill { background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
:root[data-theme="dark"] .sc-pill-alt { background: rgba(59,130,246,0.12); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.sc-footer  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-deadline { font-size: 0.82rem; color: var(--gray); }
.sc-apply-btn { font-size: 0.82rem; padding: 6px 14px; }

/* ──────────── TIMETABLE (extended) ──────────── */
.timetable-grid  { display: flex; flex-direction: column; gap: 12px; }
.tt-day         { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px 20px; }
.tt-day-revision { border-left: 4px solid #27ae60; }
.tt-day-study   { border-left: 4px solid var(--primary); }
.tt-date        { font-weight: 800; font-size: 0.88rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.tt-sessions    { display: flex; flex-direction: column; gap: 8px; }
.tt-session     { padding: 8px 12px; border-radius: 8px; background: var(--bg-color); display: flex; flex-direction: column; gap: 2px; }
.tt-subj        { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); }
.tt-topic       { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tt-weak-flag   { font-size: 0.75rem; color: var(--danger); font-weight: 700; }

/* ──────────── DOUBT FORUM (extended) ──────────── */
.doubt-ask-box  { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.doubt-card     { display: flex; gap: 16px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; transition: box-shadow 0.2s; }
.doubt-card:hover { box-shadow: var(--shadow-sm); }
.doubt-vote     { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.doubt-vote-btn { background: none; border: 1px solid var(--border-color); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 0.9rem; color: var(--text); transition: background 0.15s; }
.doubt-vote-btn:hover { background: var(--muted-purple); color: var(--primary); }
.doubt-vote-count { font-weight: 800; font-size: 1rem; color: var(--text); }
.doubt-content  { flex: 1; min-width: 0; }
.doubt-meta     { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.doubt-tag      { background: var(--muted-purple); color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.doubt-title    { font-weight: 700; font-size: 1rem; color: var(--text); margin: 0 0 6px; }
.doubt-body     { font-size: 0.9rem; color: var(--gray); line-height: 1.55; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doubt-footer   { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--gray); }
.doubt-answer-btn { background: none; border: 1px solid var(--border-color); border-radius: 8px; padding: 4px 14px; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--primary); font-family: 'Nunito',sans-serif; transition: background 0.15s; }
.doubt-answer-btn:hover { background: var(--muted-purple); }

/* ──────────── QUICK TOOLS ROW ──────────── */
.quick-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 32px 0; }
.quick-tool-card  { background: var(--card-bg); border: 1.5px solid var(--border-color); border-radius: var(--radius); padding: 20px 16px; text-align: center; text-decoration: none; color: var(--text); transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quick-tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.quick-tool-icon  { font-size: 1.8rem; }
.quick-tool-label { font-weight: 700; font-size: 0.9rem; }

/* ─── PAYWALL MODAL ─────────────────────────────────────── */
#paywallModal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.paywall-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.paywall-card { position: relative; background: var(--card-bg); border-radius: 18px; padding: 40px 36px 32px; max-width: 440px; width: calc(100% - 40px); box-shadow: 0 24px 60px rgba(0,0,0,.22); text-align: center; z-index: 1; }
.paywall-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.paywall-close:hover { color: var(--text); }
.paywall-icon { font-size: 2.6rem; color: var(--primary); margin-bottom: 8px; }
.paywall-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; color: var(--text); }
.paywall-desc { color: var(--text-muted); margin: 0 0 18px; font-size: 0.97rem; }
.paywall-perks { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: inline-block; }
.paywall-perks li { padding: 5px 0; color: var(--text); font-size: 0.92rem; }
.paywall-perks li::before { content: attr(data-y); }
.paywall-btn { display: inline-block; background: var(--primary); color: #fff; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.paywall-btn:hover { background: var(--primary-dark, #2a5bd7); transform: translateY(-2px); }
.paywall-plans { margin: 14px 0 0; font-size: 0.85rem; color: var(--text-muted); }

/* ─── PREMIUM BADGE (suppressed for free launch) ─────────────────── */
.premium-badge { display: none !important; }
.nav-premium-link {
  font-weight: 700;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 16px !important;
}
.nav-premium-link:hover {
  background: var(--primary-dark, #2a5bd7) !important;
  color: #fff !important;
}
.nav-premium-link.active {
  background: var(--primary-dark, #2a5bd7) !important;
  color: #fff !important;
}


/* ─── Page Title Badges & Explainer Icons ─── */
.page-title-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 85, 104, 0.1);
  color: var(--primary);
  margin-right: 10px;
  vertical-align: -6px;
}
.page-title-badge svg {
  width: 20px;
  height: 20px;
  display: block;
}
:root[data-theme="dark"] .page-title-badge {
  background: rgba(148, 163, 184, 0.15);
  color: #CBD5E1;
}

.aka-learn-icon svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
}

.aka-modal-emoji {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 85, 104, 0.1);
  color: var(--primary);
  margin: 0 auto 16px;
}
.aka-modal-emoji svg {
  width: 30px;
  height: 30px;
  display: block;
}

.aka-exp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 85, 104, 0.08);
  color: var(--primary);
  margin-bottom: 12px;
}
.aka-exp-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fc-done-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  margin: 0 auto 16px;
}
.fc-done-badge svg {
  width: 36px;
  height: 36px;
  display: block;
}


/* ─── 100x100 Study Arsenal Tiles ─── */
.arsenal-tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.arsenal-tool-tile {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.arsenal-tool-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(20, 184, 166, 0.18);
  border-color: var(--secondary, #14B8A6);
}
.arsenal-tool-tile .arsenal-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0;
  padding: 0;
}
.arsenal-tool-tile .arsenal-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}
.arsenal-tile-title {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text, #1E293B);
  text-align: center;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ─── Home Page Dual Section Headers & Sector Filters ─── */
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1;
}
.home-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-section-icon {
  font-size: 1.25rem;
}
.home-section-title {
  margin: 0;
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text, #1E293B);
}
.home-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 50px;
  background: rgba(74, 85, 104, 0.1);
  color: var(--primary, #4A5568);
  font-size: 0.74rem;
  font-weight: 700;
}
.job-sector-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.9);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--border, #e2e8f0);
}
:root[data-theme="dark"] .job-sector-filter-pills {
  background: rgba(30, 41, 59, 0.7);
}
.sector-pill {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray, #64748b);
  cursor: pointer;
  transition: all 0.18s ease;
}
.sector-pill:hover {
  color: var(--text);
}
.sector-pill.active {
  background: #ffffff;
  color: var(--primary, #4A5568);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
:root[data-theme="dark"] .sector-pill.active {
  background: var(--primary, #4A5568);
  color: #ffffff;
}

/* ─── Expand / Collapse List Buttons ─── */
.expand-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 28px;
}
.btn-expand-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary, #4A5568);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-expand-list:hover {
  border-color: var(--secondary, #14B8A6);
  color: var(--secondary, #14B8A6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

/* ─── Sector Chips on Job Cards ─── */
.job-chip.sector-govt {
  background: rgba(20, 184, 166, 0.12) !important;
  color: #0D9488 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(20, 184, 166, 0.28) !important;
}
.job-chip.sector-pvt {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #4F46E5 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
}

/* Subgrids */
.exams-subgrid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.jobs-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
