/* backend/portal/assets/css/portal.css — GKToday Exact Replica + CurrentIQ App Features */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   1. DESIGN TOKENS (LIGHT & DARK THEMES)
========================================================= */
:root {
  --gkt-blue: #0d6efd;
  --gkt-navy: #133b5c;
  --gkt-navy-dark: #0f294a;
  --gkt-accent: #f59e0b;
  --section-color: #0d6efd;
  --section-rgb: 13, 110, 253;

  /* Light Theme (GKToday Authentic) */
  --site-width: 1420px;
  --header-height: 104px;
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #f0f7ff;
  --border: #dce5ef;
  --border-soft: #edf1f5;
  --text-main: #172033;
  --text-muted: #5a6679;
  --text-dim: #5f6e83;
  --link: #0d6efd;

  --emerald: #10b981;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --danger: #ef4444;
  --indigo: #6366f1;

  --shadow-sm: 0 1px 3px rgba(20, 38, 63, .07);
  --shadow-md: 0 4px 16px rgba(20, 38, 63, .09);
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --gkt-blue: #38bdf8;
  --gkt-navy: #0f172a;
  --gkt-navy-dark: #090d16;
  --section-color: #0284c7;
  --section-rgb: 2, 132, 199;

  --page-bg: #090d16;
  --surface: #131b2e;
  --surface-soft: #18223a;
  --surface-blue: #14243d;
  --border: #23314d;
  --border-soft: #1c2840;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #8190a6;
  --link: #38bdf8;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
}

/* =========================================================
   2. BASE RESET & TYPOGRAPHY
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: var(--site-width);
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: 'Roboto', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 35px rgba(0, 0, 0, .06);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: #0284c7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Roboto', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================================
   3. GKToday EXACT HEADER (TOP & NAV BAR)
========================================================= */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: var(--site-width);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(16, 42, 67, .09);
}

.header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  min-height: 58px;
}

.header_column_left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile_icon {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
}

.brand_logo_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand_logo_img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(13, 110, 253, .25);
  flex-shrink: 0;
  display: block;
}

.brand_logo_icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6efd, #06b6d4);
  color: #fff;
  font-weight: 900;
  font-family: 'Outfit';
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(13, 110, 253, .3);
}

.brand_text_box {
  display: flex;
  flex-direction: column;
}

.brand_title {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit';
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand_title span {
  color: #0d6efd;
}

.brand_subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.header_column_right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.gkt_guest_text {
  font-size: 13px;
}

.gkt_guest_text strong {
  color: var(--text-main);
}

.gkt_guest_text a {
  color: #0d6efd;
  font-weight: 600;
}

/* Exam Selector */
.header_exam_select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Language Switcher */
.lang-toggle {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 9px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s ease;
}

.lang-btn.active {
  background: #0d6efd;
  color: #fff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── NAV BAR (header_bottom) ── */
.header_bottom {
  background: linear-gradient(90deg, #133b5c 0%, #1a4a75 100%);
  border-top: 1px solid rgba(255, 255, 255, .15);
  overflow-x: auto;
  overflow-y: hidden;
}

[data-theme="dark"] .header_bottom {
  background: linear-gradient(90deg, #091a33 0%, #0e2952 100%);
}

.header_bottom::-webkit-scrollbar {
  display: none;
}

.main_menu {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
  white-space: nowrap;
}

.main_menu li {
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.main_menu li a {
  display: flex;
  align-items: center;
  height: 32px;
  margin: 0 3px;
  padding: 0 12px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.main_menu li a:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.main_menu li.current-menu-item a,
.main_menu li.active a {
  background: #ffffff;
  color: #133b5c;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .main_menu li.current-menu-item a,
[data-theme="dark"] .main_menu li.active a {
  background: #38bdf8;
  color: #08101f;
}

.nav_free_tag {
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* =========================================================
   4. THREE-COLUMN EDITORIAL LAYOUT
========================================================= */
.row {
  width: 100%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.main_content {
  margin-top: var(--header-height);
  padding: 18px 16px 60px;
  min-height: calc(100vh - 120px);
}

.column {
  float: left;
}

.column-left {
  width: 21%;
}

.middle-column {
  width: 55%;
  margin: 0 1.5%;
  min-height: calc(100vh - 150px);
}

.column-right {
  width: 21%;
}

/* =========================================================
   5. LEFT & RIGHT SIDEBARS STYLING
========================================================= */
.side_logo {
  display: none;
  margin: 12px auto;
  max-width: 180px;
}

.side_menu_title {
  margin: 0;
  padding: 9px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #133b5c 0%, #1e4a73 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid #0d6efd;
}

[data-theme="dark"] .side_menu_title {
  background: #0f294a;
  border: 1px solid var(--border);
  border-bottom: 2px solid #38bdf8;
  color: #38bdf8;
}

.side_menu {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#widget-subtitle {
  margin: 0;
  padding: 7px 12px;
  background: var(--surface-soft);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.side_menu li {
  padding: 7px 11px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  line-height: 1.35;
}

.side_menu li:last-child {
  border-bottom: none;
}

.side_menu li a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.side_menu li a:hover {
  color: #0d6efd;
  transform: translateX(3px);
}

/* States PSC 2-Column Grid */
.state-psc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px 6px;
  gap: 2px 6px;
}

.state-psc-grid li {
  padding: 4px 2px;
  border-bottom: 1px dotted var(--border);
  font-size: 12.5px;
}

/* Right Column Widgets */
.gktoday-sidebar-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.gktoday-sidebar-account strong {
  color: var(--text-main);
}

.custom-search-form {
  display: flex;
  margin-bottom: 16px;
  position: relative;
}

.custom-search-input {
  width: 100%;
  padding: 9px 40px 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.custom-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.custom-search-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-dim);
}

.gktoday-sidebar-banner {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #133b5c, #1e4a73);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  text-align: center;
  color: #fff;
}

[data-theme="dark"] .gktoday-sidebar-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.gktoday-sidebar-banner h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.gktoday-sidebar-banner p {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.btn-play-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .3);
  transition: transform .15s ease;
}

.btn-play-store:hover {
  transform: translateY(-1px);
  color: #fff;
}

.gkt-pdf-sidebar-widget {
  margin-bottom: 16px;
}

/* =========================================================
   6. GKToday CENTER POST ITEMS (.home-post-item)
========================================================= */
.portal-tab-content {
  display: none;
}

.portal-tab-content.active {
  display: block;
}

/* Feed Hero / Real Stats Strip */
.gkt-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.gkt-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gkt-stat-num {
  font-family: 'Outfit';
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d6efd;
  line-height: 1.1;
}

.gkt-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Category Filter Chips */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.filter-bar::-webkit-scrollbar {
  height: 4px;
}

.filter-bar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.filter-chip {
  flex-shrink: 0;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s ease;
}

.filter-chip:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.filter-chip.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

/* Post Items Container */
.articles-stream {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.home-post-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  transition: background-color .15s ease;
}

.home-post-item:last-child {
  border-bottom: none;
}

.home-post-item:hover {
  background: var(--surface-soft);
}

.featured-image {
  flex: 0 0 120px;
  width: 120px;
}

.featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.post-data {
  flex: 1 1 auto;
  min-width: 0;
}

.post-data h3 {
  font-size: 16.5px;
  margin-bottom: 5px;
  line-height: 1.35;
}

.post-data h3 a {
  color: var(--text-main);
}

.post-data h3 a:hover {
  color: #0d6efd;
}

.post-data p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-post-data-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.home-post-data-meta i {
  color: var(--text-dim);
}

.btn-read-article {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #0d6efd;
}

/* =========================================================
   7. SOCIAL SHARE BOX (.gktoday-share-box)
========================================================= */
.gktoday-share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gktoday-share-box a,
.gktoday-share-box button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}

.gktoday-share-box a:hover,
.gktoday-share-box button:hover {
  background: var(--surface-blue);
  border-color: #0d6efd;
}

.gkt-share-whatsapp { color: #10b981 !important; }
.gkt-share-telegram { color: #0284c7 !important; }
.gkt-share-x { color: var(--text-main) !important; }
.gkt-share-facebook { color: #1877f2 !important; }

/* =========================================================
   8. TEST SERIES ARENA (10 FREE QUESTIONS + UNLOCK PREVIEW)
========================================================= */
.test-card {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.test-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, .15);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.btn-primary {
  padding: 8px 16px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.btn-primary:hover {
  background: #0b5ed7;
}

.btn-secondary {
  padding: 8px 14px;
  background: var(--surface-soft);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-success {
  padding: 8px 16px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.test-arena-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.test-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  color: #ef4444;
}

.test-workspace {
  display: flex;
  gap: 16px;
  padding: 18px;
}

.test-question-area {
  flex: 1;
  min-width: 0;
}

.q-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.q-number-pill {
  padding: 4px 10px;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.q-marks-pill {
  padding: 4px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 4px;
}

.q-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--text-main);
  padding: 14px;
  background: var(--surface-soft);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: all .15s ease;
}

.option-row:hover {
  background: var(--surface-soft);
  border-color: #0d6efd;
}

.option-row.selected {
  background: rgba(13, 110, 253, .08);
  border-color: #0d6efd;
  font-weight: 600;
}

.opt-prefix {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.option-row.selected .opt-prefix {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.test-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

/* Palette Area */
.test-palette-area {
  width: 200px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.palette-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pal-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pal-btn.current { border-color: #0d6efd; box-shadow: 0 0 0 2px #0d6efd; }
.pal-btn.answered { background: #10b981; color: #fff; border-color: #10b981; }
.pal-btn.locked { background: var(--surface-soft); color: var(--text-dim); opacity: 0.6; }

.palette-legend {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-ans { background: #10b981; }
.dot-unans { background: var(--border); }
.dot-curr { background: #0d6efd; }
.dot-locked { background: #ef4444; }

/* Locked Question Area State */
.locked-q-box {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface-soft);
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* =========================================================
   9. 3D FLASHCARDS & MAINS WRITING & MCQ BANK
========================================================= */
/* Flashcards */
.flashcards-container {
  max-width: 650px;
  margin: 0 auto;
}

.flashcard-stage {
  perspective: 1000px;
  height: 290px;
  cursor: pointer;
  margin-bottom: 18px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard-stage.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-face-back {
  transform: rotateY(180deg);
  background: var(--surface-soft);
  border-color: #10b981;
}

.card-subject-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0d6efd;
}

.card-prompt-text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  text-align: center;
}

.card-answer-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-main);
  text-align: center;
}

.card-hint {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

.flashcard-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Mains Writing */
.mains-card {
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mains-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 14px;
  margin-top: 10px;
}

.mains-model-ans {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-blue);
  border-left: 4px solid #0d6efd;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* MCQ Bank */
.mcq-item-card {
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mcq-explanation-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border-left: 3px solid #10b981;
  border-radius: 4px;
  font-size: 13px;
  display: none;
}

/* =========================================================
   10. MODALS (ARTICLE READER, SCORECARD, UNLOCK)
========================================================= */
.portal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.portal-modal-overlay.active,
.portal-modal-overlay.open {
  display: flex;
}

.portal-modal-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dim);
  cursor: pointer;
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
}

.score-circle-card {
  text-align: center;
  padding: 20px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.score-big-num {
  font-family: 'Outfit';
  font-size: 3rem;
  font-weight: 900;
  color: #0d6efd;
}

.score-breakdown-row {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
}

.score-metric .metric-val {
  font-family: 'Outfit';
  font-size: 1.4rem;
  font-weight: 800;
}

.score-metric .metric-title {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.unlock-perks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.perk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.unlock-price-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* =========================================================
   11. GKToday FOOTER
========================================================= */
.footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 20px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #0d6efd;
}

/* =========================================================
   12. MOBILE RESPONSIVENESS & DRAWER
========================================================= */
.gkt-menu-backdrop {
  display: none;
}

@media (max-width: 992px) {
  .column-left {
    width: 25%;
  }
  .middle-column {
    width: 72%;
    margin-right: 0;
  }
  .column-right {
    float: none;
    clear: both;
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 100px;
  }

  .mobile_icon {
    display: block;
  }

  .side_logo {
    display: block;
  }

  .header_column_right .gkt_guest_text {
    display: none;
  }

  .header_exam_select {
    max-width: 130px;
  }

  #left_column {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 10000;
    background: var(--surface);
    overflow-y: auto;
    padding: 16px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .3);
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  #left_column.open {
    transform: translateX(0);
  }

  .gkt-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .gkt-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .middle-column {
    float: none;
    width: 100%;
    margin: 0;
  }

  .test-workspace {
    flex-direction: column;
  }

  .test-palette-area {
    width: 100%;
  }

  .home-post-item {
    flex-direction: column;
  }

  .featured-image {
    width: 100%;
    flex: unset;
  }
}

/* =========================================================
   13. COMPONENT UTILITIES (MAINS, NOTES, BADGES)
========================================================= */
.mains-question-card {
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mains-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-marks {
  background: rgba(13, 110, 253, .12);
  color: #0d6efd;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-words {
  background: rgba(245, 158, 11, .12);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.mains-stat-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.model-answer-box {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-blue);
  border-left: 4px solid #0d6efd;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
}

.model-answer-box.open {
  display: block;
}

/* Notes & PDF Vault Grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.note-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.note-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(239, 68, 68, .12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   14. GOOGLE ADSENSE COMPLIANT AD UNITS & SAFE PLACEMENTS
========================================================= */
.gkt-ad-container {
  margin: 16px 0;
  text-align: center;
  position: relative;
  clear: both;
}

.gkt-ad-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 5px;
  display: block;
}

.gkt-ad-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all .2s ease;
}

.gkt-ad-box.top-leaderboard {
  max-width: 728px;
  min-height: 90px;
  width: 100%;
}

.gkt-ad-box.in-feed {
  width: 100%;
  min-height: 100px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.gkt-ad-box.sidebar-ad {
  width: 100%;
  min-height: 250px;
  max-width: 300px;
}

.gkt-ad-box.in-article {
  width: 100%;
  min-height: 120px;
  margin: 16px 0;
  background: var(--surface-soft);
}

.gkt-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text-muted);
  width: 100%;
}

.gkt-ad-placeholder i {
  font-size: 1.5rem;
  color: var(--gkt-blue);
  opacity: 0.8;
}

.gkt-ad-placeholder-text {
  text-align: left;
}

.gkt-ad-placeholder-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.gkt-ad-placeholder-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   15. SEO BREADCRUMBS & SECTION HEADINGS
========================================================= */
.portal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.portal-breadcrumb a {
  color: var(--link);
  font-weight: 500;
}

.portal-breadcrumb a:hover {
  text-decoration: underline;
}

.portal-breadcrumb .sep {
  color: var(--text-dim);
}

.portal-breadcrumb .active {
  color: var(--text-main);
  font-weight: 600;
}

.portal-seo-h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gkt-navy);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gkt-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .portal-seo-h1 {
  color: var(--gkt-blue);
  border-bottom-color: var(--border);
}

/* =========================================================
   16. RICH SEO FAQ ACCORDION (AdSense & Google Snippets)
========================================================= */
.faq-section {
  margin: 36px 0 20px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
  transition: border-color .18s ease;
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

.faq-question i {
  color: var(--gkt-blue);
  transition: transform .2s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

.faq-item.active .faq-answer {
  display: block;
}

/* =========================================================
   17. GDPR & CCPA COOKIE CONSENT BANNER
========================================================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--surface);
  border-top: 2px solid var(--gkt-blue);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.16);
  padding: 16px 24px;
  display: none;
  animation: slideUpConsent .25s ease-out;
}

@keyframes slideUpConsent {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-consent-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-main);
}

.cookie-consent-text strong {
  color: var(--gkt-navy);
}

[data-theme="dark"] .cookie-consent-text strong {
  color: var(--gkt-blue);
}

.cookie-consent-text a {
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}

.cookie-btn-accept:hover {
  background: #0b5ed7;
}

.cookie-btn-decline {
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-decline:hover {
  color: var(--text-main);
  background: var(--border-soft);
}

/* =========================================================
   18. MONETIZATION MODEL: CURRENTIQ PASS SYSTEM
========================================================= */
.pass-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(13, 110, 253, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all .18s ease;
}

.pass-pill-status:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.pass-pill-action {
  color: #0d6efd;
  text-decoration: underline;
  margin-left: 2px;
}

.pass-hero-banner {
  background: linear-gradient(135deg, #133b5c 0%, #1e4a73 60%, #0d6efd 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(19, 59, 92, 0.16);
}

[data-theme="dark"] .pass-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%);
  box-shadow: var(--shadow-md);
}

.pass-hero-banner:after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

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

.pass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}

.pass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pass-card.popular {
  border: 2px solid #0d6efd;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
}

.pass-card.elite {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.pass-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pass-badge.elite-badge {
  background: #f59e0b;
  color: #000;
}

.pass-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.pass-plan-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 36px;
}

.pass-price-box {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.pass-price-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.pass-original-price {
  font-size: 13.5px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 6px;
}

.pass-period {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.pass-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  flex: 1;
}

.pass-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-main);
}

.pass-feature-item i.bi-check-circle-fill {
  color: #10b981;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pass-feature-item i.bi-x-circle {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.6;
}

.pass-feature-item.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.7;
}

/* Comparison Table */
.pass-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.pass-comparison-table th {
  background: var(--surface-soft);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-main);
}

.pass-comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
}

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

/* =========================================================
   19. BOOKMARK FOLDERS SYSTEM
========================================================= */
.bookmark-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.folder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.folder-card:hover {
  transform: translateY(-2px);
  border-color: var(--gkt-blue);
  box-shadow: var(--shadow-sm);
}

.folder-card.active {
  border-color: #0d6efd;
  background: var(--surface-blue);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.folder-emoji {
  font-size: 1.5rem;
}

.folder-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.folder-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.folder-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.bookmark-action-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 1.1rem;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bookmark-action-btn:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.bookmark-action-btn.active {
  color: #f59e0b;
}

/* Bookmark Folder Modal Dialog */
.folder-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  max-height: 240px;
  overflow-y: auto;
}

.folder-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s ease;
}

.folder-picker-option:hover {
  border-color: #0d6efd;
  background: var(--surface-blue);
}

.folder-picker-option.selected {
  border-color: #0d6efd;
  background: var(--surface-blue);
}

.toast-feedback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: #1e293b;
  color: #fff;
  border-left: 4px solid #10b981;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: none;
  animation: slideInToast .2s ease-out;
}

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

/* ── Top Announcement Notice Bar ────────────────────────────────────────── */
.top-announcement-bar {
  background: linear-gradient(90deg, #0f294a 0%, #133b5c 50%, #0d6efd 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1000;
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-badge {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.announcement-text {
  font-weight: 500;
  color: #f8fafc;
}
.announcement-link {
  color: #fde047;
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.announcement-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Header CTA Button ─────────────────────────────────────────────────── */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  color: #ffffff !important;
}

/* ── Footer Social Community Icons ─────────────────────────────────────── */
.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.footer-social-btn.whatsapp { background: rgba(37, 211, 102, 0.12); color: #25d366 !important; border: 1px solid rgba(37, 211, 102, 0.3); }
.footer-social-btn.telegram { background: rgba(0, 136, 204, 0.12); color: #0088cc !important; border: 1px solid rgba(0, 136, 204, 0.3); }
.footer-social-btn.youtube  { background: rgba(255, 0, 0, 0.12);   color: #ff3333 !important; border: 1px solid rgba(255, 0, 0, 0.3); }
.footer-social-btn.playstore{ background: rgba(16, 185, 129, 0.12); color: #10b981 !important; border: 1px solid rgba(16, 185, 129, 0.3); }
.footer-social-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}/* ── Header Auth & User Profile ────────────────────────────────────────── */
.btn-gkt-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-gkt-signin:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.btn-gkt-signin i.bi-google {
  color: #ea4335;
  font-size: 14px;
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft, #f1f5f9);
  border: 1px solid var(--border, #cbd5e1);
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.user-profile-badge:hover {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}
.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #0d6efd;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.user-name-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pass-mini-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}
.user-pass-mini-tag.pro { background: #0d6efd; color: #fff; }
.user-pass-mini-tag.elite { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.user-pass-mini-tag.free { background: #64748b; color: #fff; }

/* ── Auth Modal Styling ─────────────────────────────────────────────────── */
.auth-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 16px;
}
.auth-tab-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab-btn.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}
.google-signin-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.auth-divider span {
  padding: 0 10px;
}

/* ── Checkout & Payment Modal ───────────────────────────────────────────── */
.payment-plan-summary {
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}
.payment-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.pay-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-method-tab {
  flex: 1;
  padding: 9px 8px;
  text-align: center;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface, #fff);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  transition: all 0.15s ease;
}
.pay-method-tab.active {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}
.upi-qr-box {
  text-align: center;
  padding: 14px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  margin-bottom: 14px;
}
.upi-qr-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  border-radius: 6px;
}

/* ── 3D Flashcard Flip Animation ────────────────────────────────────────── */
.flashcard-stage {
  perspective: 1000px;
  margin: 20px auto;
  max-width: 600px;
  min-height: 280px;
}
.flashcard-3d-card {
  width: 100%;
  min-height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 16px;
}
.flashcard-3d-card.flipped {
  transform: rotateY(180deg);
}
.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border, #e2e8f0);
}
.flashcard-front {
  background: linear-gradient(135deg, var(--surface, #ffffff), var(--surface-soft, #f8fafc));
  color: var(--text-main, #1e293b);
}
.flashcard-back {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  transform: rotateY(180deg);
}

/* ── Mains Writing Studio ───────────────────────────────────────────────── */
.mains-workspace {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.mains-textarea {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface-soft, #f8fafc);
  color: var(--text-main, #1e293b);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}
.mains-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

/* ── Google Auth & Aspirant Header ──────────────────────────────────────── */
.btn-gkt-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-gkt-signin:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.btn-gkt-signin i {
  color: #ea4335;
  font-size: 14px;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 20px;
  transition: background 0.15s ease;
}
.user-profile-btn:hover {
  background: rgba(0,0,0,0.05);
}
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.user-avatar-circle.pro {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 0 2px #10b981, 0 2px 6px rgba(16,185,129,0.3);
}

.google-signin-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.auth-divider span {
  padding: 0 10px;
}

.user-pass-mini-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-pass-mini-tag.free {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.user-pass-mini-tag.pro {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* ── Checkout & Payment Modal Styles ────────────────────────────────────── */
.payment-plan-summary {
  background: linear-gradient(135deg, rgba(13,110,253,0.06), rgba(16,185,129,0.08));
  border: 1.5px solid rgba(13,110,253,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.payment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-bottom: 16px;
}
.pay-method-tabs {
  display: flex;
  border-bottom: 2px solid var(--border, #e2e8f0);
  margin-bottom: 16px;
  gap: 6px;
}
.pay-method-tab {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.15s ease;
}
.pay-method-tab.active {
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
  background: rgba(13,110,253,0.05);
}
.upi-qr-box {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}
.upi-qr-img {
  width: 170px;
  height: 170px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 6px;
}

/* ── Mains Evaluation Box ───────────────────────────────────────────────── */
.mains-eval-box {
  margin-top: 16px;
  background: var(--surface, #ffffff);
  border: 1.5px solid #0d6efd;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(13,110,253,0.08);
}
.mains-grade-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.mains-grade-badge.excellent {
  background: #dcfce7;
  color: #15803d;
}
.mains-grade-badge.good {
  background: #e0f2fe;
  color: #0369a1;
}
.mains-grade-badge.needs-work {
  background: #fef3c7;
  color: #b45309;
}



/* =========================================================
   11. UTILITIES (Bootstrap CSS is not loaded; only its icons are)
========================================================= */
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.d-block { display: block; }
.text-center { text-align: center; }
.text-warning { color: #f59e0b; }
.text-info { color: #06b6d4; }
.text-primary { color: #0d6efd; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.plus { color: #10b981; font-weight: 700; }
.minus { color: #ef4444; font-weight: 700; }
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-main);
  font: 600 11px 'Roboto', sans-serif;
  text-align: center;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
button:disabled { cursor: not-allowed; opacity: .55; }

/* Loading / empty / error panels */
.portal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
}
.portal-state > i { font-size: 2rem; }
.portal-state.empty > i { font-size: 2.6rem; color: var(--text-dim); }
.portal-state h4 { font-size: 1.1rem; color: var(--text-main); }
.portal-state p { font-size: 13.5px; color: var(--text-muted); max-width: 420px; }
.portal-state .btn-primary { margin-top: 8px; }

.tab-intro { margin-bottom: 14px; }
.tab-intro h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tab-intro p { color: var(--text-muted); font-size: .9rem; }
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  margin: 6px 0 10px;
}
.section-label span { font-size: 12px; font-weight: 500; color: var(--text-dim); }

/* =========================================================
   12. EXAM FILTER (multi-select, optional)
========================================================= */
.header-exam-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.header-exam-btn:hover { border-color: #0d6efd; color: #0d6efd; }
.header-exam-btn i { color: #0d6efd; }
.header-exam-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.exam-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.exam-filter-title {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.exam-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.exam-filter-chips.modal { flex-wrap: wrap; overflow: visible; }
.exam-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.exam-chip:hover { border-color: #0d6efd; color: #0d6efd; }
.exam-chip.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }

/* =========================================================
   13. MOCK TEST SERIES CARDS & SERIES DETAIL
========================================================= */
.exam-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--gkt-blue);
  font-size: 11.5px;
  font-weight: 700;
}
.exam-tag.general { background: var(--surface-soft); color: var(--text-muted); border: 1px dashed var(--border); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.series-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.series-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #0d6efd; }
.series-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.series-card h3 { font-size: 1.08rem; line-height: 1.35; }
.series-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-dim); margin-top: auto; }
.series-stats i { margin-right: 4px; color: #0d6efd; }
.series-cta { width: 100%; text-align: center; padding: 10px; }
.price-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.price-pill.free { background: rgba(16, 185, 129, .13); color: #059669; }
.price-pill.paid { background: rgba(245, 158, 11, .15); color: #b45309; }

.series-hero {
  padding: 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--surface-blue), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.series-hero h2 { font-size: 1.35rem; margin: 10px 0 6px; }
.series-hero p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.series-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 9px 12px;
  background: rgba(245, 158, 11, .1);
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 12.5px;
}
.series-note i { color: #f59e0b; margin-top: 2px; }
.series-section { margin-bottom: 18px; }
.series-section h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.series-section h4 i { color: #0d6efd; }
.series-section h4 span {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
}
.test-rows { display: flex; flex-direction: column; gap: 8px; }
.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.test-row:hover { border-color: #0d6efd; }
.test-row-main strong { font-size: 14.5px; }
.test-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--text-dim); }
.test-row-meta i { margin-right: 4px; }
.coming-soon { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* =========================================================
   14. TEST ARENA
========================================================= */
.arena {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: clip;
}
.arena-top {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.arena-series { font-size: 11.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.arena-title-box h3 { font-size: 1.1rem; }
.arena-top-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.arena-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: 800 1.05rem 'Outfit', sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}
.arena-timer.low { color: #ef4444; border-color: #ef4444; animation: timerPulse 1s ease-in-out infinite; }
@keyframes timerPulse { 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); } }
.arena-progress { height: 4px; background: var(--border-soft); }
.arena-progress div { height: 100%; width: 0; background: linear-gradient(90deg, #0d6efd, #10b981); transition: width .3s ease; }

.arena-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; padding: 20px; align-items: start; }
.arena-main { min-width: 0; }
.q-badge-row { flex-wrap: wrap; }
.q-marks-pill { display: inline-flex; gap: 6px; }
.free-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .13);
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
}
.arena-qtext { font-size: 1.12rem; line-height: 1.65; font-weight: 600; color: var(--text-main); white-space: pre-line; margin-bottom: 14px; }
.arena-qimg { display: block; max-width: 100%; max-height: 320px; margin: 8px 0 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.arena-opt-img { display: block; max-width: 100%; max-height: 150px; margin-top: 6px; border-radius: 6px; }

.arena-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.arena-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  font: 500 15px/1.5 'Roboto', sans-serif;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.arena-opt:hover { border-color: #0d6efd; background: var(--surface-blue); }
.arena-opt:active { transform: scale(.995); }
.arena-opt.selected { border-color: #0d6efd; background: rgba(13, 110, 253, .09); font-weight: 600; }
.arena-opt-letter {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-soft);
  font: 800 14px 'Outfit', sans-serif;
  color: var(--text-muted);
  transition: all .15s ease;
}
.arena-opt.selected .arena-opt-letter { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.arena-opt-body { flex: 1; min-width: 0; }
.arena-opt-key { flex-shrink: 0; font-size: 11px; color: var(--text-dim); opacity: .7; }

.arena-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.arena-actions-left, .arena-actions-right { display: flex; flex-wrap: wrap; gap: 8px; }
.mark-btn.on { background: rgba(139, 92, 246, .14); border-color: #8b5cf6; color: #7c3aed; }
.arena-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-dim); }

.arena-side {
  position: sticky;
  top: calc(var(--header-height) + 74px);
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.arena-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; text-align: center; }
.arena-summary div { padding: 7px 4px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 8px; }
.arena-summary strong { display: block; font: 800 1.1rem 'Outfit', sans-serif; }
.arena-summary span { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; }
.arena-side .palette-grid { grid-template-columns: repeat(5, 1fr); max-height: 300px; overflow-y: auto; padding: 3px; }
.pal-btn { position: relative; transition: transform .1s ease; }
.pal-btn:hover { transform: translateY(-1px); border-color: #0d6efd; }
.pal-btn.seen { border-color: #f59e0b; background: rgba(245, 158, 11, .12); }
.pal-btn.marked::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8b5cf6;
  border: 2px solid var(--surface-soft);
}
.pal-btn.current { box-shadow: 0 0 0 2px #0d6efd; border-color: #0d6efd; }
.pal-lock-icon { position: absolute; bottom: 1px; right: 2px; font-size: 8px; }
.dot-seen { background: #f59e0b; }
.dot-marked { background: #8b5cf6; }
.arena-submit { width: 100%; margin-top: 14px; padding: 11px; }

.arena-locked { text-align: center; padding: 26px 18px; margin-bottom: 14px; background: var(--surface-soft); border: 2px dashed #f59e0b; border-radius: 12px; }
.arena-locked-icon { width: 56px; height: 56px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(245, 158, 11, .15); color: #f59e0b; font-size: 1.6rem; }
.arena-locked p { font-size: 13.5px; color: var(--text-muted); margin: 6px auto 12px; max-width: 460px; }
.arena-locked ul { list-style: none; display: inline-flex; flex-direction: column; gap: 5px; text-align: left; margin-bottom: 16px; font-size: 13px; }
.arena-locked li i { color: #10b981; margin-right: 6px; }
.arena-locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* =========================================================
   15. RESULT SCORECARD & ANSWER REVIEW
========================================================= */
.result-dialog { max-width: 860px; }
.result-footer { padding: 12px 20px; border-top: 1px solid var(--border-soft); text-align: right; }
.confirm-body { padding: 18px 20px; font-size: 14px; }
.confirm-tiles, .result-tiles { display: grid; gap: 10px; text-align: center; }
.confirm-tiles { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.confirm-tiles div { padding: 12px 6px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.confirm-tiles strong { display: block; font: 800 1.5rem 'Outfit', sans-serif; }
.confirm-tiles span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; }

.result-hero { display: flex; align-items: center; gap: 22px; padding: 4px 0 18px; }
.result-ring {
  --pct: 0;
  --ring: #10b981;
  flex-shrink: 0;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--border-soft) 0);
}
.result-ring.mid { --ring: #f59e0b; }
.result-ring.low { --ring: #ef4444; }
.result-ring-inner { width: 108px; height: 108px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.result-ring-inner strong { font: 900 1.9rem 'Outfit', sans-serif; line-height: 1.1; }
.result-ring-inner span { font-size: 12px; color: var(--text-dim); }
.result-verdict { font: 800 1.35rem 'Outfit', sans-serif; margin-bottom: 4px; }
.result-hero-text h3 { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.result-hero-text p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.result-tiles { grid-template-columns: repeat(5, 1fr); margin-bottom: 16px; }
.tile { padding: 12px 6px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.tile i { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.tile strong { display: block; font: 800 1.25rem 'Outfit', sans-serif; }
.tile span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; }
.tile.accuracy i { color: #06b6d4; }
.tile.correct i { color: #10b981; }
.tile.wrong i { color: #ef4444; }
.tile.skipped i { color: #f59e0b; }
.tile.time i { color: #6366f1; }
.result-unlock { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); border-radius: 10px; font-size: 13px; }
.result-unlock i { color: #f59e0b; }
.result-unlock span { flex: 1; }

.review-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.review-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.review-tab em { font-style: normal; padding: 0 6px; border-radius: 999px; background: var(--border-soft); font-size: 11.5px; }
.review-tab.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.review-tab.active em { background: rgba(255, 255, 255, .25); }

.review-card { padding: 14px 16px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; }
.review-card.correct { border-left-color: #10b981; }
.review-card.wrong { border-left-color: #ef4444; }
.review-card.skipped { border-left-color: #f59e0b; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-num { font: 800 .95rem 'Outfit', sans-serif; }
.review-status { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.review-status.correct { background: rgba(16, 185, 129, .14); color: #059669; }
.review-status.wrong { background: rgba(239, 68, 68, .13); color: #dc2626; }
.review-status.skipped { background: rgba(245, 158, 11, .15); color: #b45309; }
.review-marks { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--text-dim); }
.review-q { font-weight: 600; line-height: 1.6; white-space: pre-line; margin-bottom: 10px; }
.review-opts { display: flex; flex-direction: column; gap: 6px; }
.review-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface-soft); font-size: 14px; }
.review-opt .arena-opt-letter { width: 28px; height: 28px; font-size: 12px; }
.review-opt.is-correct { border-color: #10b981; background: rgba(16, 185, 129, .1); }
.review-opt.is-correct .arena-opt-letter { background: #10b981; border-color: #10b981; color: #fff; }
.review-opt.is-wrong { border-color: #ef4444; background: rgba(239, 68, 68, .09); }
.review-opt.is-wrong .arena-opt-letter { background: #ef4444; border-color: #ef4444; color: #fff; }
.review-opt .tag { flex-shrink: 0; font-style: normal; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
.tag.ok { background: #10b981; color: #fff; }
.tag.bad { background: #ef4444; color: #fff; }
.tag.mine { background: #0d6efd; color: #fff; }
.review-expl, .mcq-expl { margin-top: 10px; padding: 10px 14px; background: var(--surface-blue); border-left: 3px solid #0d6efd; border-radius: 6px; font-size: 13.5px; line-height: 1.6; }
.review-expl strong, .mcq-expl strong { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #0d6efd; margin-bottom: 4px; }
.review-expl p, .mcq-expl p { white-space: pre-line; color: var(--text-main); }

/* =========================================================
   16. SUBJECT CARDS (Mains practice)
========================================================= */
.subject-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; }
.subject-card {
  --accent: #0d6efd;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--text-main);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.subject-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.subject-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.subject-card.general { --accent: #0d6efd; }
.subject-card.empty { opacity: .55; }
.subject-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font: 800 1.1rem 'Outfit', sans-serif;
}
.subject-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.subject-card-body strong { font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-card-body em { font-style: normal; font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-card-count { flex-shrink: 0; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border-soft); font-size: 12px; font-weight: 800; text-align: center; }

.load-more { display: block; margin: 8px auto 20px; padding: 10px 26px; }
.mcq-end { text-align: center; padding: 14px; color: var(--text-dim); font-size: 13px; }

/* =========================================================
   17. RESPONSIVE (new components)
========================================================= */
@media (max-width: 992px) {
  .arena-grid { grid-template-columns: 1fr; }
  .arena-side { position: static; }
  .result-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-exam-btn { max-width: 130px; padding: 5px 9px; }
  .header-exam-btn #examFilterLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .exam-filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .arena-top { padding: 10px 12px; }
  .arena-grid { padding: 14px; }
  .arena-actions { flex-direction: column; align-items: stretch; }
  .arena-actions-left, .arena-actions-right { justify-content: space-between; }
  .arena-hint { display: none; }
  .result-hero { flex-direction: column; text-align: center; }
  .result-tiles { grid-template-columns: repeat(2, 1fr); }
  .test-row { flex-direction: column; align-items: stretch; }
}

/* icon spacing inside inline-flow labels */
.mcq-toggle i, .mcq-end i, .mcq-chip.pyq i { margin-right: 5px; }

/* =========================================================
   18. WEBSITE SECTIONS (feed, reader, mains, notes, progress, bookmarks)
========================================================= */
@media (min-width: 993px) {
  .main_content.no-left .middle-column { width: 76%; margin-left: 0; }
}
.main_content.no-left .column-left { display: none !important; }

.side-ico { display: inline-block; min-width: 1.3em; }
.sidebar-card-body {
  padding: 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px;
}
.sidebar-card-body p { color: var(--text-muted); font-size: 12.5px; margin-bottom: 12px; }
.custom-search-button i { pointer-events: none; }

/* Feed cards */
.post-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.post-title-row h3 { flex: 1; }
.bookmark-action-btn.saved { color: #f59e0b; }
.home-post-data-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Shared chips (kept from the old MCQ styles, now used by feed / mains / notes) */
.ci-chip, .mcq-chip { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.ci-num { flex-shrink: 0; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 8px; background: #0d6efd; color: #fff; font: 800 13px 'Outfit', sans-serif; }

/* Article reader */
.article-hero-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.article-body { font-size: 1.02rem; line-height: 1.8; color: var(--text-main); margin-bottom: 18px; overflow-wrap: anywhere; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body p { margin-bottom: 12px; }
.article-body h2, .article-body h3 { margin: 18px 0 8px; }
.article-body ul, .article-body ol { margin: 0 0 12px 22px; }
.article-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-attachments a { text-decoration: none; }
.recall-block { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.recall-block h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.05rem; color: var(--cyan); }
.recall-q { padding: 14px 16px; margin-bottom: 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.recall-q > p { margin-bottom: 10px; line-height: 1.6; }
.recall-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recall-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; text-align: left;
  background: var(--surface); border: 2px solid var(--border); border-radius: 8px; color: var(--text-main);
  font: 500 14px/1.4 'Roboto', sans-serif; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.recall-opt:hover:not(:disabled) { border-color: #0d6efd; background: var(--surface-blue); }
.recall-opt:disabled { cursor: default; }
.recall-opt .arena-opt-letter { width: 28px; height: 28px; font-size: 12px; }
.recall-opt.correct { border-color: #10b981; background: rgba(16, 185, 129, .11); }
.recall-opt.correct .arena-opt-letter { background: #10b981; border-color: #10b981; color: #fff; }
.recall-opt.wrong { border-color: #ef4444; background: rgba(239, 68, 68, .1); }
.recall-opt.wrong .arena-opt-letter { background: #ef4444; border-color: #ef4444; color: #fff; }
.recall-expl { margin-top: 10px; padding: 10px 14px; background: var(--surface-blue); border-left: 3px solid #0d6efd; border-radius: 6px; font-size: 13.5px; line-height: 1.6; white-space: pre-line; }

/* Flashcards */
.fc-progress { height: 4px; margin-bottom: 14px; background: var(--border-soft); border-radius: 4px; overflow: hidden; }
.fc-progress div { height: 100%; width: 0; background: linear-gradient(90deg, #0d6efd, #10b981); transition: width .25s ease; }
.fc-img { display: block; max-width: 100%; max-height: 110px; margin: 8px auto 0; border-radius: 8px; object-fit: contain; }

/* Mains practice */
.mains-q-text { font-size: 1.1rem; line-height: 1.55; margin: 8px 0 14px; }
.mains-meta-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mains-stat-counter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.mains-stat-counter .over { color: var(--danger); font-weight: 800; }
.mains-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.draft-state { color: var(--text-dim); font-size: 12px; }
.model-answer-box h4 { margin: 6px 0; font-size: .95rem; color: var(--cyan); }

/* Notes */
.note-card h4 { font-size: 1.02rem; line-height: 1.4; margin-bottom: 10px; }
.note-card.locked { opacity: .92; }
.note-card.locked .note-icon-wrap { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-dim); }
.note-actions { display: inline-flex; gap: 6px; }
.btn-secondary { text-decoration: none; }
a.btn-primary { text-decoration: none; display: inline-block; }

/* My progress */
.progress-tiles { margin-bottom: 20px; }
.attempt-list { display: flex; flex-direction: column; gap: 8px; }
.attempt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.attempt-row small { display: block; font-size: 12px; color: var(--text-dim); }
.attempt-score { text-align: right; font-size: 1.05rem; }
.attempt-score b { font-family: 'Outfit', sans-serif; font-size: 1.25rem; }

/* Bookmarks */
.bookmark-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.bookmark-item h4 { font-size: 1.02rem; margin: 6px 0 4px; }
.bookmark-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 4px; }
.bookmark-item small { font-size: 11.5px; color: var(--text-dim); }
.bookmark-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

@media (max-width: 768px) {
  .recall-opts { grid-template-columns: 1fr; }
  .bookmark-item { flex-direction: column; }
  .bookmark-item-actions { flex-direction: row; align-items: center; }
  .attempt-row { flex-direction: column; align-items: flex-start; }
  .attempt-score { text-align: left; }
}

.mcq-chip.exam, .ci-chip.exam { background: var(--surface-blue); color: var(--gkt-blue); }
.mcq-chip.general, .ci-chip.general { background: var(--surface-soft); color: var(--text-muted); border: 1px dashed var(--border); }
.mcq-chip.subject, .ci-chip.subject { --chip: #6366f1; background: color-mix(in srgb, var(--chip) 14%, transparent); color: var(--chip); }
.mcq-chip.pyq, .ci-chip.pyq { background: rgba(245, 158, 11, .15); color: #b45309; }
.mcq-num { flex-shrink: 0; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 8px; background: #0d6efd; color: #fff; font: 800 13px 'Outfit', sans-serif; }

/* =========================================================
   19. SIGN-IN, UNLOCK OPTIONS, AD GATE, NOTES FOLDERS
========================================================= */
.auth-box { display: inline-flex; align-items: center; margin-right: 8px; position: relative; }
.auth-user { position: relative; }
.auth-user-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; cursor: pointer;
  background: var(--surface); color: var(--text-main); border: 1px solid var(--border); border-radius: 999px; font: 600 13px 'Outfit', sans-serif;
}
.auth-user-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.auth-user-btn i { font-size: 24px; margin-left: 4px; }
.auth-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); overflow: hidden;
}
.auth-menu.open { display: block; }
.auth-menu-name { padding: 10px 14px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.auth-menu-name small { display: block; font-weight: 400; color: var(--text-muted); word-break: break-all; }
.auth-menu button { width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; cursor: pointer; color: var(--text-main); font-size: 13px; }
.auth-menu button:hover { background: var(--surface-soft); }

@media (min-width: 993px) {
  .main_content.no-right .middle-column { width: 76%; margin-right: 0; }
  .main_content.no-left.no-right .middle-column { width: 100%; margin: 0; }
}
.main_content.no-right .column-right { display: none !important; }

.series-note { flex-wrap: wrap; align-items: center; }
.series-note > span { flex: 1 1 220px; }
.series-note .btn-primary { padding: 6px 14px; font-size: 12.5px; }
.series-note.unlocked { background: rgba(16, 185, 129, .1); border-left-color: #10b981; }
.series-note.unlocked i { color: #10b981; }

.folder-locked {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px;
  background: var(--surface-soft); border: 2px dashed #f59e0b; border-radius: 10px;
}
.folder-locked > i { font-size: 22px; color: #f59e0b; }
.folder-locked > div { flex: 1 1 180px; display: flex; flex-direction: column; font-size: 13px; }
.folder-locked > div span { color: var(--text-muted); }

.unlock-name { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.unlock-sub { font-size: .88rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.55; }
.unlock-price { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-soft); border-radius: 8px; }
.unlock-price span { font-size: .9rem; color: var(--text-muted); }
.unlock-price strong { font-size: 1.35rem; font-weight: 800; color: var(--emerald); }
.unlock-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; align-items: stretch; }
.unlock-main { padding: 12px; font-weight: 800; text-align: center; }
.unlock-app { text-align: center; text-decoration: none; padding: 10px; }
.unlock-hint { font-size: 12.5px; color: var(--text-muted); text-align: center; }
.unlock-google { display: flex; justify-content: center; min-height: 44px; }

.adgate-ad { min-height: 120px; display: flex; align-items: center; justify-content: center; margin: 8px 0; }
.adgate-noad { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; padding: 28px; border: 1px dashed var(--border); border-radius: 10px; width: 100%; }
.adgate-noad i { font-size: 26px; }
.adgate-timer { text-align: center; }
.adgate-timer span { font: 800 2.4rem 'Outfit', sans-serif; color: var(--gkt-navy); }
.adgate-timer small { display: block; color: var(--text-muted); }

.notes-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.notes-crumbs button { background: none; border: 0; padding: 2px 4px; cursor: pointer; color: #0d6efd; font-weight: 600; }
.notes-crumbs span { color: var(--text-muted); }
.notes-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.notes-folder {
  display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; cursor: pointer; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text-main);
  transition: transform .15s, box-shadow .15s;
}
.notes-folder:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.notes-folder-ico { font-size: 28px; line-height: 1; }
.notes-folder-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notes-folder-body strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-folder-body em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.notes-folder-lock { color: #f59e0b; }
.mains-actions { margin-top: 10px; display: flex; gap: 10px; }

/* =========================================================
   20. ARTICLE PAGE, SHARED HEADER, MOBILE-FIRST REFINEMENTS
========================================================= */
/* the article sits in the portal's middle column (see inc/article_view.php) */
.article-page { padding: 0; }
.article-main {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(16px, 3.5vw, 34px); box-shadow: var(--shadow-sm); min-width: 0;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.article-meta i { margin-right: 3px; }
.article-title { font-size: clamp(1.45rem, 4.2vw, 2.15rem); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--text-main); overflow-wrap: anywhere; }
.article-lead { font-size: clamp(1rem, 2.6vw, 1.12rem); color: var(--text-muted); line-height: 1.6; border-left: 3px solid #0d6efd; padding-left: 12px; margin: 0 0 18px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.article-actions button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; cursor: pointer;
  background: var(--surface-soft); color: var(--text-main); border: 1px solid var(--border); border-radius: 999px; font: 600 13px 'Outfit', sans-serif;
}
.article-actions button.on { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.article-page .article-hero-img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 12px; margin: 0 0 18px; display: block; }
.article-page .article-body { font-size: clamp(16px, 2.3vw, 17.5px); line-height: 1.8; overflow-wrap: anywhere; }
.article-page .article-body img, .article-page .article-body video, .article-page .article-body iframe { max-width: 100%; height: auto; border-radius: 8px; }
.article-page .article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-page .article-body td, .article-page .article-body th { border: 1px solid var(--border); padding: 6px 10px; }
.article-page .article-body h2, .article-page .article-body h3 { margin: 1.4em 0 .5em; line-height: 1.3; }
.article-page .article-attachments { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.article-page .recall-block { margin-top: 28px; }
.article-page .recall-block h2 { font-size: 1.2rem; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li + li { border-top: 1px solid var(--border-soft); }
.related-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--text-main); text-decoration: none; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.related-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-list small { display: block; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ── Phones ── */
@media (max-width: 640px) {
  .header_top { padding: 8px 12px; }
  .header_column_left { min-width: 0; }
  .brand_title { font-size: 1.2rem; }
  .brand_subtitle { display: none; }
  .brand_logo_img { width: 34px; height: 34px; }
  .header_column_right { gap: 8px; }
  .header-cta-btn { display: none; }
  .main_menu { padding: 0 6px; }
  .main_menu li a { padding: 0 10px; font-size: 13px; }
  .article-main { border-radius: 12px; }
  .article-actions button { flex: 1 1 0; justify-content: center; padding: 0 8px; }
  .portal-breadcrumb { font-size: 12px; overflow-x: auto; white-space: nowrap; }
  .footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
  .footer .footer-links > span { display: none; }
  /* big tap targets */
  .btn-primary, .btn-secondary, .recall-opt, .arena-opt, .pal-btn, .notes-folder { min-height: 44px; }
  .portal-modal-dialog { width: 100% !important; max-width: 100% !important; margin: 0; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .portal-modal-overlay { align-items: flex-end; }
  .toast-feedback { left: 12px; right: 12px; bottom: 12px; text-align: center; }
}

/* header on the standalone pages scrolls with the page instead of being fixed over it */
.site-header { position: sticky; top: 0; left: auto; transform: none; width: auto; max-width: none; }

@media (max-width: 640px) {
  /* a compact cookie notice instead of a third of the screen */
  .cookie-consent-banner { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cookie-consent-inner { gap: 8px; }
  .cookie-consent-text { font-size: 12px; line-height: 1.4; }
  .cookie-consent-actions { display: flex; gap: 8px; width: 100%; }
  .cookie-consent-actions button { flex: 1; padding: 9px 8px; font-size: 13px; }
}

/* ── Article page: jump links, Mains questions, comments ── */
.article-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.article-jump a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; text-decoration: none;
  background: rgba(13, 110, 253, .08); color: #0d6efd; font: 600 12.5px 'Outfit', sans-serif;
}
.mains-block, .comments-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.mains-block h2, .comments-block h2 { font-size: 1.2rem; display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.mains-block h2 .count, .comments-block h2 .count { color: var(--text-muted); font-weight: 600; font-size: .95rem; }
.article-page .mains-question-card { margin-bottom: 12px; }
.muted { color: var(--text-muted); } .small { font-size: 12.5px; }

.c-compose, .c-login { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.c-login p { margin: 0 0 8px; }
.c-google { min-height: 44px; }
.c-text {
  width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-main); font: inherit; font-size: 15px; box-sizing: border-box;
}
.c-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.c-item { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.c-item.reply { margin-left: clamp(14px, 5vw, 38px); padding-left: 12px; border-left: 2px solid var(--border); }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.c-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.c-avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: #0d6efd; color: #fff; font-weight: 700; font-size: 13px; }
.c-you { background: rgba(16, 185, 129, .15); color: #059669; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.c-when { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.c-replyto { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.c-body { margin: 6px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 15px; }
.c-item .link-btn { min-height: 36px; padding: 0 4px; }
.c-item .link-btn.danger { color: #dc2626; }
.link-btn { background: none; border: 0; cursor: pointer; color: #0d6efd; font: 600 13px 'Outfit', sans-serif; }

/* ── Test modes: picker, instant-answer feedback ── */
.mode-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 12px; }
.mode-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 16px; cursor: pointer; min-height: 120px;
  background: var(--surface); color: var(--text-main); border: 2px solid var(--border); border-radius: 14px; font: inherit;
}
.mode-card:hover { border-color: #0d6efd; background: var(--surface-blue); }
.mode-card .mode-ico { font-size: 28px; line-height: 1; }
.mode-card strong { font-size: 1.05rem; }
.mode-card em { font-style: normal; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.mode-note { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.arena-opt.correct { border-color: #10b981; background: rgba(16, 185, 129, .12); }
.arena-opt.correct .arena-opt-letter { background: #10b981; border-color: #10b981; color: #fff; }
.arena-opt.wrong { border-color: #ef4444; background: rgba(239, 68, 68, .10); }
.arena-opt.wrong .arena-opt-letter { background: #ef4444; border-color: #ef4444; color: #fff; }
.arena-opt:disabled { cursor: default; opacity: 1; }
.arena-expl { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid #10b981; background: rgba(16, 185, 129, .08); }
.arena-expl.bad { border-left-color: #ef4444; background: rgba(239, 68, 68, .07); }
.arena-expl p { margin: 6px 0 0; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 640px) { .mode-picker { grid-template-columns: 1fr; } .mode-card { min-height: 0; } }

@media (max-width: 640px) {
  /* test header: title on its own row, controls below, nothing clipped */
  .arena-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .arena-title-box { min-width: 0; }
  .arena-title-box h3 { font-size: 1.05rem; line-height: 1.3; }
  .arena-series { white-space: normal; font-size: 11px; }
  .arena-top-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
  .arena-top-right .btn-secondary { padding: 6px 10px; font-size: 13px; }
}

/* ── Phone refinements (second pass) ── */
/* the closed menu drawer must not leave a shadow strip on the left edge of every screen */
#left_column:not(.open) { box-shadow: none; }

@media (max-width: 768px) {
  /* no tall empty gap under short content */
  .middle-column, .main_content { min-height: 0; }
  .column-right { margin-top: 12px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .legal-card { padding: 20px 16px !important; }
}

@media (max-width: 640px) {
  .portal-breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .portal-breadcrumb::-webkit-scrollbar { display: none; }
  .portal-breadcrumb .active { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

  /* test header: one line for the title, one for the controls — it stays pinned, so it must be short */
  .arena-top { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; }
  .arena-title-box { flex: 1 1 100%; }
  .arena-series { display: none; }
  .arena-title-box h3 { font-size: .95rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arena-top-right { flex: 1 1 100%; justify-content: space-between; }
  .arena-timer { padding: 5px 10px; }
  .arena-top-right .btn-secondary { padding: 5px 10px; min-height: 36px; }
}

@media (max-width: 640px) {
  /* the legal pages already have Home in their menu: no oversized "Back to Portal" button */
  .site-header .header_column_right a.btn-primary { display: none; }
}

@media (max-width: 992px) {
  /* below the content on phones/tablets the side widgets belong to the feed only */
  body[data-tab]:not([data-tab="feed"]) .column-right { display: none; }
}

/* ── Content written in the admin page editor ── */
.page-body, .article-body { overflow-wrap: anywhere; }
.page-body img { max-width: 100%; height: auto; border-radius: 6px; }
.page-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 14px 0; }
.page-body td, .page-body th { border: 1px solid var(--border); padding: 8px 12px; vertical-align: top; }
.page-body th { background: var(--surface-soft); }
.page-body blockquote { margin: 14px 0; padding: 8px 16px; border-left: 4px solid #0d6efd; background: var(--surface-soft); color: var(--text-muted); }
.page-body h1, .page-body h2, .page-body h3, .page-body h4 { line-height: 1.3; margin: 1.3em 0 .5em; }
.page-body ul, .page-body ol { padding-left: 1.4em; }
.page-body hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.page-body a { color: #0d6efd; text-decoration: underline; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0; border-radius: 10px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Accessibility ───────────────────────────────────────────────────────────
   Visible keyboard focus, a "skip to content" link, text that stays readable, and no motion for people who ask for none. */
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
[data-theme="dark"] :focus-visible { outline-color: #60a5fa; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10000; background: #0d6efd; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
