/* =========================================================
   Germany Ausbildung — Stylesheet
   CI: white background, blue / teal / purple accents,
   rounded cards, soft shadows (matches reference dashboard UI)
   ========================================================= */

/* Global utility — used by portal modals, nav sections, etc. */
.hidden { display: none !important; }

:root{
  --blue: #4D7CFE;
  --blue-dark: #3A63E0;
  --blue-soft: #EAF0FF;
  --teal: #12B886;
  --teal-dark: #0E9A70;
  --teal-soft: #E6FBF3;
  --purple: #8B5CF6;
  --purple-dark: #7440E0;
  --purple-soft: #F1EBFF;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FE;
  --text: #1A2140;
  --text-muted: #5C6480;
  --border: #E8EBF7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 45, 90, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 45, 90, 0.12);
  --maxw: 1180px;
  --accent: #4A6CF7;
  --surface: #F6F8FE;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- language toggle (now handled by i18n.js) ---------- */

img, svg{ display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; }
li{ list-style:none; }

.wrap{ max-width: var(--maxw); margin:0 auto; padding: 0 24px; }

h1,h2,h3,h4{ margin:0; font-weight:800; letter-spacing:-0.01em; }
p{ margin:0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color: var(--blue-dark);
  background: var(--blue-soft); padding:6px 14px;
  border-radius: 999px; margin-bottom:16px;
}

.section{ padding: 88px 0; position:relative; }
.section-soft{ background: var(--bg-soft); }
.section-head{ max-width: 720px; margin: 0 auto 48px; text-align:center; }
.section-title{ font-size: clamp(26px, 3.4vw, 38px); margin-bottom:14px; }
.section-subtitle{ color: var(--text-muted); font-size:16px; }

/* ---------- navbar ---------- */
.navbar{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; }
.nav-logo{ font-weight:800; font-size:18px; color:var(--text); text-decoration:none; display:flex; align-items:center; gap:6px; }
.nav-logo:hover{ color:var(--blue-dark); }
.brand-mark{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(77,124,254,0.35);
  flex-shrink:0;
}
.brand-mark svg{ width:20px; height:20px; }
.brand-name{ white-space:nowrap; overflow:hidden; }
.brand-name span{ display:block; }
.brand-name .sub{ font-size:11.5px; font-weight:500; color: var(--text-muted); letter-spacing:.03em; opacity:.8; max-width:200px; overflow:hidden; text-overflow:ellipsis; }

.nav-links{ display:flex; align-items:center; gap:28px; flex:1; justify-content:center; margin:0 24px; }
.nav-links a{
  font-size:14px; font-weight:600; color: var(--text-muted);
  transition: color .15s;
}
.nav-links a:hover{ color: var(--blue-dark); }

.nav-right{ display:flex; align-items:center; gap:14px; flex-shrink:0; }

.lang-select{
  appearance: none; -webkit-appearance: none;
  font-family: inherit; font-weight:700; font-size:13px;
  padding:7px 32px 7px 14px; border-radius:999px;
  border:1px solid var(--border); background: var(--bg-soft);
  color: var(--text-muted); cursor:pointer;
  transition: all .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select:hover{
  border-color: var(--blue);
  color: var(--blue);
}
.lang-select:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,124,254,0.15);
}

.nav-toggle-mobile{ display:none; }

/* ---------- hero ---------- */
.hero{
  position:relative; padding: 80px 0 60px; overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(77,124,254,0.10), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(139,92,246,0.10), transparent 38%),
    radial-gradient(circle at 80% 85%, rgba(18,184,134,0.10), transparent 40%);
}
.hero-blob{
  position:absolute; border-radius:50%; filter: blur(2px); opacity:.5; z-index:0;
}
.hero-dot{ position:absolute; border-radius:50%; z-index:0; }

.hero .wrap{ position:relative; z-index:1; }
.hero-inner{ max-width: 760px; margin: 0 auto; text-align:center; }
.hero h1{
  font-size: clamp(30px, 4.6vw, 50px); line-height:1.18; margin-bottom:20px;
}
.hero h1 .hl{
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{ font-size:17px; color: var(--text-muted); margin-bottom:34px; }

.hero-ctas{ display:flex; justify-content:center; gap:14px; margin-bottom:56px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:inherit; font-weight:700; font-size:15px;
  padding:13px 26px; border-radius:999px; cursor:pointer; border:none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color:#fff; box-shadow: 0 10px 24px rgba(77,124,254,0.35);
}
.btn-ghost{
  background:#fff; color: var(--text); border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-row{
  display:grid; grid-template-columns: repeat(4,1fr); gap:16px;
}
.stat-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-md);
  padding:22px 18px; box-shadow: var(--shadow); text-align:left;
}
.stat-card .num{
  font-size:26px; font-weight:800; margin-bottom:4px;
}
.stat-card .num.blue{ color: var(--blue-dark); }
.stat-card .num.teal{ color: var(--teal-dark); }
.stat-card .num.purple{ color: var(--purple-dark); }
.stat-card .label{ font-size:12.5px; color: var(--text-muted); font-weight:600; }

/* ---------- feature grid (what is Ausbildung) ---------- */
.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.feature-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:28px 24px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon{
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:18px;
}
.feature-icon.blue{ background: var(--blue-soft); color: var(--blue-dark); }
.feature-icon.teal{ background: var(--teal-soft); color: var(--teal-dark); }
.feature-icon.purple{ background: var(--purple-soft); color: var(--purple-dark); }
.feature-card h3{ font-size:17px; margin-bottom:10px; }
.feature-card p{ font-size:14.5px; color: var(--text-muted); }

/* ---------- field cards (6 Ausbildung categories) ---------- */
.field-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.field-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  overflow:hidden; box-shadow: var(--shadow); display:flex; flex-direction:column;
  transition: transform .18s, box-shadow .18s;
}
.field-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.field-top{ height:6px; }
.field-top.c-blue{ background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.field-top.c-teal{ background: linear-gradient(90deg, var(--teal), var(--teal-dark)); }
.field-top.c-purple{ background: linear-gradient(90deg, var(--purple), var(--purple-dark)); }

.field-body{ padding:26px 24px 24px; flex:1; display:flex; flex-direction:column; }
.field-de{ font-size:18px; font-weight:800; margin-bottom:2px; }
.field-tr{ font-size:14px; color: var(--text-muted); font-weight:600; margin-bottom:18px; }

.field-rows{ display:flex; flex-direction:column; gap:11px; margin-bottom:16px; }
.field-row{ display:flex; gap:10px; font-size:13.5px; align-items:flex-start; }
.field-row .ico{ flex-shrink:0; width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; margin-top:1px; }
.field-row .ico.blue{ background: var(--blue-soft); color: var(--blue-dark); }
.field-row .ico.teal{ background: var(--teal-soft); color: var(--teal-dark); }
.field-row .ico.purple{ background: var(--purple-soft); color: var(--purple-dark); }
.field-row .rtext .k{ color: var(--text-muted); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.02em; display:block; margin-bottom:1px;}
.field-row .rtext .v{ font-weight:600; }

.lang-badge{
  display:inline-flex; align-self:flex-start; font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:999px; margin-top:auto;
}
.lang-badge.b1{ background: var(--teal-soft); color: var(--teal-dark); }
.lang-badge.b1b2{ background: var(--blue-soft); color: var(--blue-dark); }
.lang-badge.b2{ background: var(--purple-soft); color: var(--purple-dark); }

/* ---------- requirements ---------- */
.req-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.req-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:26px 22px; box-shadow: var(--shadow); position:relative;
}
.req-num{
  position:absolute; top:20px; right:22px; font-size:34px; font-weight:800;
  color: var(--border); line-height:1;
}
.req-card h3{ font-size:16px; margin: 4px 0 10px; padding-right:30px; }
.req-card p{ font-size:14px; color: var(--text-muted); }
.req-card .req-icon{
  width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:19px; margin-bottom:14px;
}

/* ---------- tips ---------- */
.tips-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap:28px; align-items:start; }
.tip-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:30px; box-shadow: var(--shadow);
}
.tip-card h3{ font-size:18px; margin-bottom:18px; display:flex; align-items:center; gap:10px;}
.tip-list{ display:flex; flex-direction:column; gap:16px; }
.tip-item{ display:flex; gap:12px; align-items:flex-start; }
.tip-check{
  flex-shrink:0; width:24px; height:24px; border-radius:50%;
  background: var(--teal-soft); color: var(--teal-dark);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800;
  margin-top:1px;
}
.tip-item p{ font-size:14.5px; color: var(--text); }
.tip-item p strong{ color: var(--text); }

/* wage trend chart */
.wage-chart{ display:flex; align-items:flex-end; gap:14px; height:170px; margin: 22px 0 10px; padding: 0 4px; }
.wage-bar-wrap{ flex:1; display:flex; flex-direction:column; align-items:center; height:100%; justify-content:flex-end; gap:8px;}
.wage-bar{
  width:100%; max-width:56px; border-radius:10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  position:relative;
}
.wage-bar.y2{ background: linear-gradient(180deg, var(--teal), var(--teal-dark)); }
.wage-bar.y3{ background: linear-gradient(180deg, var(--purple), var(--purple-dark)); }
.wage-bar.y4{ background: linear-gradient(180deg, #FFA94D, #F08C00); }
.wage-bar .val{
  position:absolute; top:-22px; left:0; right:0; text-align:center;
  font-size:12.5px; font-weight:800; color: var(--text);
}
.wage-bar-label{ font-size:12px; color: var(--text-muted); font-weight:700; text-align:center; }
.wage-note{
  background: var(--bg-soft); border-radius: var(--radius-md); padding:16px 18px;
  font-size:13.5px; color: var(--text-muted); margin-top:18px;
}

/* shortage section */
.shortage-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.industry-bar-item{ margin-bottom:16px; }
.industry-bar-top{ display:flex; justify-content:space-between; font-size:13.5px; font-weight:700; margin-bottom:6px; }
.industry-bar-top .n{ color: var(--text-muted); font-weight:600; }
.industry-bar-track{ background: var(--bg-soft); border-radius:999px; height:10px; overflow:hidden; }
.industry-bar-fill{ height:100%; border-radius:999px; background: linear-gradient(90deg, var(--blue), var(--purple)); }

.state-list{ display:flex; flex-direction:column; gap:14px; }
.state-item{
  display:flex; gap:14px; align-items:flex-start; padding:14px 16px;
  background: var(--bg-soft); border-radius: var(--radius-md);
}
.state-rank{
  flex-shrink:0; width:30px; height:30px; border-radius:50%; background:#fff; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color: var(--blue-dark);
}
.state-item p{ font-size:13.5px; color: var(--text-muted); }
.state-item strong{ color: var(--text); font-size:14.5px; }

.mini-stat-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.mini-stat{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-md);
  padding:18px; box-shadow: var(--shadow);
}
.mini-stat .num{ font-size:21px; font-weight:800; margin-bottom:4px; }
.mini-stat .label{ font-size:13px; font-weight:700; margin-bottom:5px; }
.mini-stat .sub{ font-size:11.5px; color: var(--text-muted); line-height:1.5; }

/* ---------- footer ---------- */
.footer{ background: var(--text); color:#fff; padding: 56px 0 28px; }
.footer .wrap{ display:flex; flex-direction:column; gap:28px; }
.footer-top{ display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.footer-brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:17px; }
.footer-links{ display:flex; gap:26px; flex-wrap:wrap; }
.footer-links a{ font-size:13.5px; color: rgba(255,255,255,0.7); }
.footer-links a:hover{ color:#fff; }
.footer-disclaimer{
  font-size:12.5px; color: rgba(255,255,255,0.55); line-height:1.7;
  border-top:1px solid rgba(255,255,255,0.12); padding-top:22px;
}
.footer-meta{ font-size:12px; color: rgba(255,255,255,0.4); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;}
.footer-meta a{ color: rgba(255,255,255,0.5); text-decoration:none; }
.footer-meta a:hover{ color:#fff; }

/* ---------- impressum page ---------- */
.impressum-card{
  max-width:640px; margin:0 auto; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:36px 40px; box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.impressum-card h2{ font-size:18px; margin-top:28px; margin-bottom:14px; color:var(--text); }
.impressum-card h2:first-child{ margin-top:0; }
.impressum-dl{ display:grid; grid-template-columns:140px 1fr; gap:10px 20px; margin:0; }
.impressum-dl dt{ font-weight:600; color:var(--text-muted); font-size:14px; }
.impressum-dl dd{ margin:0; font-size:15px; color:var(--text); }
.impressum-dl dd a{ color:var(--blue); text-decoration:none; }
.impressum-dl dd a:hover{ text-decoration:underline; }
@media (max-width:560px){
  .impressum-card{ padding:24px 20px; }
  .impressum-dl{ grid-template-columns:1fr; gap:4px 0; }
  .impressum-dl dt{ margin-top:10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .stat-row{ grid-template-columns: repeat(2,1fr); }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .field-grid{ grid-template-columns: repeat(2,1fr); }
  .req-grid{ grid-template-columns: repeat(2,1fr); }
  .tips-grid{ grid-template-columns: 1fr; }
  .shortage-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .brand-name .sub{ display:none; }
  .stat-row{ grid-template-columns: repeat(2,1fr); }
  .feature-grid{ grid-template-columns: 1fr; }
  .field-grid{ grid-template-columns: 1fr; }
  .req-grid{ grid-template-columns: 1fr; }
  .section{ padding:64px 0; }
  .footer-top{ flex-direction:column; }
}

/* ============================================================
   VIEW-ALL BUTTON
   ============================================================ */
.view-all-btn{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--blue-soft); color: var(--blue-dark);
  border:1.5px solid transparent; border-radius:12px;
  padding:11px 20px; font-size:14px; font-weight:700;
  cursor:pointer; text-decoration:none; font-family:inherit;
  transition:background .15s, border-color .15s, transform .12s;
  margin-bottom:8px;
}
.view-all-btn:hover{ background: var(--blue); color:#fff; transform:translateY(-1px); }

/* ============================================================
   FIELDS-FULL.HTML — category sections, quicknav, unlock
   ============================================================ */
.category-section{ margin-bottom: 52px; scroll-margin-top: 150px; }
.category-section:last-child{ margin-bottom:0; }
.category-head{
  display:flex; align-items:center; gap:14px; margin-bottom:22px;
}
.category-icon{
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:21px;
}
.category-icon.blue{ background: var(--blue-soft); color: var(--blue-dark); }
.category-icon.teal{ background: var(--teal-soft); color: var(--teal-dark); }
.category-icon.purple{ background: var(--purple-soft); color: var(--purple-dark); }
.category-head h2{ font-size:19px; margin-bottom:2px; }
.category-head .count{ font-size:12.5px; color: var(--text-muted); font-weight:600; }

.clickable-card{ position:relative; cursor:pointer; }
.clickable-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.unlock-cta{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:14px; padding:11px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--blue-dark);
  font-weight:700; font-size:13.5px;
}
.unlock-cta.is-locked{ background: var(--bg-soft); color: var(--text-muted); }
.field-rows.locked-rows{ opacity:.7; }
.v.locked-val{ letter-spacing:2px; color: var(--text-muted); font-weight:700; }

.unlock-banner{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  border-radius: var(--radius-lg); padding:18px 22px; margin-bottom:32px;
}
.unlock-banner.locked{ background: var(--blue-soft); }
.unlock-banner.unlocked{ background: var(--teal-soft); }
.unlock-banner .ub-icon{ font-size:22px; flex-shrink:0; }
.unlock-banner .ub-text{ flex:1; font-size:14px; line-height:1.6; color: var(--text); min-width:200px; }
.unlock-banner.locked .ub-text strong{ color: var(--blue-dark); }
.unlock-banner .ub-btn{
  flex-shrink:0; border:none; cursor:pointer; font-family:inherit;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color:#fff;
  font-weight:700; font-size:13.5px; padding:11px 20px; border-radius:999px;
  box-shadow: 0 8px 18px rgba(77,124,254,0.3); transition: transform .15s;
}
.unlock-banner .ub-btn:hover{ transform: translateY(-1px); }

.browse-toggle{ display:flex; gap:10px; margin-bottom:26px; flex-wrap:wrap; }
.browse-toggle a{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13.5px; font-weight:700; padding:9px 18px; border-radius:999px;
  background: var(--bg-soft); color: var(--text-muted); border:1px solid var(--border);
  transition: background .15s, color .15s;
}
.browse-toggle a.active{ background: var(--text); color:#fff; border-color: var(--text); }
.browse-toggle a:hover:not(.active){ background: var(--border); }

.category-quicknav{
  display:flex; flex-wrap:nowrap; gap:8px; margin-bottom:26px;
  position:sticky; top:76px; background:#fff; padding:12px 0; z-index:6;
  border-bottom:1px solid var(--border);
  overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.category-quicknav a{
  display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
  font-size:12.5px; font-weight:700; padding:7px 14px; border-radius:999px;
  background: var(--bg-soft); color: var(--text-muted); white-space:nowrap;
  transition: background .15s, color .15s;
}
.category-quicknav a:hover{ background: var(--blue-soft); color: var(--blue-dark); }

/* ============================================================
   A-Z INDEX PAGE
   ============================================================ */
.az-jumpnav{
  display:flex; flex-wrap:wrap; gap:6px; margin-bottom:36px;
  position:sticky; top:76px; background:#fff; padding:10px 0; z-index:6;
  border-bottom:1px solid var(--border);
}
.az-jumpnav a{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:8px; font-size:13px; font-weight:700;
  background: var(--bg-soft); color: var(--text-muted);
  transition: background .15s, color .15s;
}
.az-jumpnav a:hover{ background: var(--blue-soft); color: var(--blue-dark); }
.az-letter-section{ margin-bottom:36px; }
.az-letter-head{
  font-size:22px; font-weight:800; color: var(--blue); margin-bottom:12px;
  border-bottom:2px solid var(--blue-soft); padding-bottom:6px;
}
.az-entry-list{ display:grid; grid-template-columns: repeat(3,1fr); gap:8px; }
.az-entry{
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  border:1px solid var(--border); border-radius:10px; cursor:pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  background:#fff;
}
.az-entry:hover{ border-color:var(--blue); box-shadow: 0 3px 12px rgba(77,124,254,.12); transform:translateY(-1px); }
.az-entry-icon{
  width:28px; height:28px; border-radius:7px; font-size:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.az-entry-icon.blue{ background: var(--blue-soft); color: var(--blue-dark); }
.az-entry-icon.teal{ background: var(--teal-soft); color: var(--teal-dark); }
.az-entry-icon.purple{ background: var(--purple-soft); color: var(--purple-dark); }
.az-entry-name{ flex:1; min-width:0; }
.az-de{ font-size:13px; font-weight:700; color: var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.az-tr{ font-size:11.5px; color: var(--text-muted); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.az-entry-arrow{ color: var(--text-muted); font-size:13px; flex-shrink:0; }

/* ============================================================
   MODAL / GATE OVERLAY
   ============================================================ */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:999;
  background: rgba(15,20,40,.6); backdrop-filter:blur(3px);
  align-items:center; justify-content:center;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:#fff; border-radius:20px; width:min(460px,94vw);
  padding:36px 40px 32px; box-shadow: 0 24px 80px rgba(15,20,40,.22);
  position:relative; max-height:90vh; overflow-y:auto;
}
.modal-close{
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:20px; color: var(--text-muted);
  cursor:pointer; line-height:1; padding:4px 8px; border-radius:6px;
}
.modal-close:hover{ background: var(--surface); }
.modal-step{ display:none; flex-direction:column; gap:14px; }
.modal-step.active{ display:flex; }
.modal-eyebrow{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); }
.modal-title{ font-size:21px; font-weight:800; color: var(--text); line-height:1.25; }
.modal-sub{ font-size:14px; color: var(--text-muted); line-height:1.6; }
.price-box{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:14px 18px;
}
.price-box .pname{ font-size:13.5px; font-weight:600; color: var(--text); }
.price-box .pval{ font-size:20px; font-weight:800; color: var(--blue); }
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field label{ font-size:13px; font-weight:600; color: var(--text-muted); }
.form-field input{
  border:1.5px solid var(--border); border-radius:10px; padding:11px 14px;
  font-size:15px; font-family:inherit; color: var(--text);
  transition: border-color .15s;
}
.form-field input:focus{ outline:none; border-color: var(--blue); }
.modal-btn{
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color:#fff; border:none; border-radius:11px; padding:13px 20px;
  font-size:15px; font-weight:700; cursor:pointer; font-family:inherit;
  box-shadow: 0 4px 16px rgba(77,124,254,0.28);
  transition: transform .15s, box-shadow .15s;
}
.modal-btn:hover{ transform:translateY(-1px); box-shadow: 0 7px 22px rgba(77,124,254,0.36); }
.modal-note{ font-size:12px; color: var(--text-muted); line-height:1.5; }
.modal-success{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px 0; }
.check-circle{
  width:60px; height:60px; border-radius:50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color:#fff; font-size:28px; display:flex; align-items:center; justify-content:center;
}

/* ============================================================
   SUBPAGE HERO (fields-full, az-index, field-detail)
   ============================================================ */
.subpage-hero{
  background: linear-gradient(135deg, var(--text) 0%, #2d3a6e 100%);
  color:#fff; padding:56px 0 44px;
}
.subpage-hero h1{ font-size:32px; line-height:1.25; margin:10px 0 14px; }
.subpage-hero p{ font-size:15px; color:rgba(255,255,255,0.75); max-width:640px; line-height:1.7; }
.breadcrumb{ display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:14px; color:rgba(255,255,255,0.65); }
.breadcrumb a{ color:rgba(255,255,255,0.75); }
.breadcrumb a:hover{ color:#fff; }
.breadcrumb .sep{ color:rgba(255,255,255,0.35); }
.live-count{ font-weight:800; color: var(--teal); }

/* ============================================================
   FIELD DETAIL PAGE
   ============================================================ */
.detail-grid{ display:grid; grid-template-columns:340px 1fr; gap:28px; align-items:start; }
.detail-summary-card{ position:sticky; top:100px; }
.detail-sections{ display:flex; flex-direction:column; gap:20px; }
.detail-section-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:26px 28px; box-shadow: var(--shadow);
}
.detail-section-card h3{ font-size:16px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.task-list{ display:flex; flex-direction:column; gap:10px; }
.task-list li{ display:flex; gap:12px; align-items:flex-start; font-size:14px; line-height:1.5; }
.task-bullet{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background: var(--blue-soft); color: var(--blue-dark); font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}
.locked-teaser-card{
  background: var(--bg-soft); border:2px dashed var(--border); border-radius: var(--radius-lg);
  padding:36px 32px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px;
}
.lt-icon{ font-size:42px; }
.locked-teaser-card h3{ font-size:18px; font-weight:700; color: var(--text); }
.locked-teaser-card p{ font-size:14px; color: var(--text-muted); max-width:400px; line-height:1.65; }
.apply-section{
  background: linear-gradient(135deg, #eff6ff 0%, #f5f0ff 100%);
  border:1.5px solid #c7d2fe; border-radius: var(--radius-lg);
  padding:28px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
}
.apply-section h3{ font-size:17px; font-weight:700; color: var(--text); }
.apply-section p{ font-size:14px; color: var(--text-muted); max-width:420px; line-height:1.6; }
.btn-apply-placeholder{
  background: var(--surface); border:2px solid var(--border); border-radius:11px;
  padding:12px 26px; font-size:15px; font-weight:700; cursor:not-allowed;
  color: var(--text-muted); font-family:inherit; opacity:.7;
}
.apply-soon-note{ font-size:12px; color: var(--text-muted); }

/* not-found */
.not-found-box{
  text-align:center; padding:60px 20px; display:flex; flex-direction:column;
  align-items:center; gap:12px;
}
.not-found-box .emoji{ font-size:52px; }
.not-found-box h2{ font-size:22px; margin-bottom:4px; }

@media (max-width: 980px){
  .detail-grid{ grid-template-columns: 1fr; }
  .detail-summary-card{ position:static; }
}

/* ============================================================
   ORIGINAL FINAL RESPONSIVE (kept from original)
   ============================================================ */
@media (max-width: 720px){
  .category-head h2{ font-size:17px; }
  .modal-box{ padding:26px 20px; }
  .az-entry-list{ grid-template-columns: 1fr; }
  .az-jumpnav{ top:0; }
  .category-quicknav{ top:0; }
  .unlock-banner{ flex-direction:column; align-items:flex-start; }
  .unlock-banner .ub-btn{ width:100%; text-align:center; }
}

/* ============================================================
   QUIZ CTA BUTTON
   ============================================================ */
.quiz-cta-main{
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color:#fff; border:none; border-radius:12px;
  padding:12px 22px; font-size:15px; font-weight:700;
  cursor:pointer; text-decoration:none;
  box-shadow:0 4px 18px rgba(99,102,241,.28);
  transition:transform .15s, box-shadow .15s;
}
.quiz-cta-main:hover{ transform:translateY(-2px); box-shadow:0 7px 24px rgba(99,102,241,.38); }

/* ============================================================
   QUIZ OVERLAY
   ============================================================ */
.quiz-overlay{
  position:fixed; inset:0; z-index:1100;
  background:rgba(15,20,40,.72); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity .22s;
}
.quiz-overlay.open{ opacity:1; pointer-events:auto; }
.quiz-box{
  background:#fff; border-radius:20px;
  width:min(620px, 96vw); max-height:90vh; overflow-y:auto;
  padding:36px 40px 32px;
  box-shadow:0 24px 80px rgba(15,20,40,.22);
  position:relative;
}
.quiz-close-btn{
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:20px; color:var(--text-muted);
  cursor:pointer; line-height:1; padding:4px 8px; border-radius:6px;
}
.quiz-close-btn:hover{ background:var(--surface); }
.quiz-progress-track{
  height:4px; background:var(--border); border-radius:99px; margin-bottom:28px; overflow:hidden;
}
.quiz-progress-fill{
  height:100%; background:linear-gradient(90deg, var(--blue), var(--purple));
  border-radius:99px; transition:width .35s ease; width:4%;
}
.quiz-q-wrap{ display:flex; flex-direction:column; gap:16px; }
.quiz-step-tag{ font-size:12px; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.quiz-q-title{ font-size:20px; font-weight:700; color:var(--text); line-height:1.35; }
.quiz-multi-hint{ font-size:12.5px; color:var(--text-muted); margin-top:-8px; }
.quiz-opts-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
.quiz-opts-grid.multi .quiz-opt{ text-align:left; }
.quiz-opt{
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:10px; padding:11px 14px; font-size:14px; font-weight:500;
  color:var(--text); cursor:pointer; text-align:center;
  transition:border-color .15s, background .15s, color .15s;
  display:flex; align-items:center; gap:9px;
}
.quiz-opt:hover{ border-color:var(--blue); background:#eff6ff; }
.quiz-opt.active{ border-color:var(--blue); background:#dbeafe; color:var(--blue-dark); font-weight:600; }
.qo-check{
  width:16px; height:16px; border:1.5px solid var(--border);
  border-radius:4px; flex-shrink:0; display:inline-block;
  transition:background .15s, border-color .15s;
}
.quiz-opt.active .qo-check{ background:var(--blue); border-color:var(--blue); }
.quiz-nav{ display:flex; justify-content:space-between; align-items:center; margin-top:20px; gap:10px; }
.quiz-nav-back, .quiz-nav-next{
  padding:10px 20px; border-radius:9px; font-size:14px; font-weight:600;
  cursor:pointer; border:none; transition:background .15s, color .15s, opacity .15s;
}
.quiz-nav-back{ background:var(--surface); color:var(--text-muted); border:1.5px solid var(--border); }
.quiz-nav-back:hover{ background:var(--border); }
.quiz-nav-next{ background:var(--blue); color:#fff; }
.quiz-nav-next:hover:not(:disabled){ background:var(--blue-dark); }
.quiz-nav-next:disabled{ opacity:.42; cursor:default; }
.quiz-bonus-badge{
  display:inline-flex; align-items:center; gap:7px;
  background:linear-gradient(90deg,#fef3c7,#fde68a);
  color:#78350f; font-size:13px; font-weight:600;
  border-radius:20px; padding:6px 14px; margin-bottom:4px;
}
.quiz-submit-btn{
  flex:1; padding:12px 24px; border-radius:10px; border:none;
  background:linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color:#fff; font-size:15px; font-weight:700; cursor:pointer;
  box-shadow:0 4px 16px rgba(99,102,241,.26);
  transition:opacity .15s, transform .15s;
}
.quiz-submit-btn:disabled{ opacity:.42; cursor:default; }
.quiz-submit-btn:hover:not(:disabled){ transform:translateY(-1px); }
.quiz-computing{ display:flex; flex-direction:column; align-items:center; gap:18px; padding:40px 0; }
.quiz-spin{ font-size:52px; animation:spin-pulse 1.4s ease-in-out infinite; }
@keyframes spin-pulse{
  0%,100%{ transform:scale(1) rotate(0deg); }
  50%{ transform:scale(1.15) rotate(10deg); }
}
.quiz-computing p{ font-size:15px; color:var(--text-muted); }

/* ============================================================
   QUIZ RESULTS
   ============================================================ */
.qr-root{ display:flex; flex-direction:column; gap:20px; }
.qr-heading{ font-size:20px; font-weight:700; color:var(--text); text-align:center; }
.qr-urgency{ border-radius:10px; padding:12px 16px; font-size:13.5px; font-weight:500; display:flex; align-items:flex-start; gap:9px; }
.qr-urgency.red{ background:#fef2f2; color:#b91c1c; border:1px solid #fca5a5; }
.qr-urgency.blue{ background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.qr-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.qr-card{
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:16px 14px 14px; display:flex; flex-direction:column; gap:8px;
  position:relative; transition:box-shadow .15s;
}
.qr-card:hover{ box-shadow:0 6px 20px rgba(15,20,40,.10); }
.qr-rank{ font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.qr-pct{ font-size:26px; font-weight:800; color:var(--blue); line-height:1; }
.qr-pct-unit{ font-size:13px; font-weight:500; color:var(--text-muted); }
.qr-body{ display:flex; align-items:center; gap:10px; }
.qr-cat-icon{ width:34px; height:34px; border-radius:8px; font-size:17px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.qr-names{ flex:1; min-width:0; }
.qr-de{ font-size:12.5px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qr-tr{ font-size:11.5px; color:var(--text-muted); }
.qr-footer{ display:flex; align-items:center; gap:8px; margin-top:2px; flex-wrap:wrap; }
.qr-pay{ font-size:12px; color:var(--text-muted); }
.qr-locked{ filter:blur(5px); user-select:none; pointer-events:none; }
.qr-lock-badge{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:26px; }
.qr-locked-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.qr-paywall{
  background:linear-gradient(135deg,#f0f4ff 0%,#f5f0ff 100%);
  border:1.5px solid #c7d2fe; border-radius:16px;
  padding:28px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
}
.qrpw-icon{ font-size:36px; }
.qr-paywall h3{ font-size:17px; font-weight:700; color:var(--text); }
.qr-paywall p{ font-size:14px; color:var(--text-muted); max-width:400px; line-height:1.6; }
.qrpw-btn{
  background:linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color:#fff; border:none; border-radius:11px;
  padding:13px 28px; font-size:15px; font-weight:700; cursor:pointer;
  box-shadow:0 4px 18px rgba(99,102,241,.28);
  transition:transform .15s, box-shadow .15s;
}
.qrpw-btn:hover{ transform:translateY(-2px); box-shadow:0 7px 24px rgba(99,102,241,.38); }
.qrpw-note{ font-size:13px; color:var(--text-muted); }
.qrpw-note a{ color:var(--blue); }
.qr-cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:4px; }

/* ============================================================
   CAREER RANKINGS ACCORDION
   ============================================================ */
.ranking-list{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.ranking-item{ border:1.5px solid var(--border); border-radius:14px; overflow:hidden; background:#fff; }
.ranking-header{
  width:100%; display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:18px 20px; background:none; border:none; cursor:pointer;
  text-align:left; transition:background .15s;
}
.ranking-header:hover{ background:var(--surface); }
.ranking-header[aria-expanded="true"]{ background:var(--surface); }
.rh-left{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.rh-title{ font-size:16px; font-weight:700; color:var(--text); }
.rh-desc{ font-size:12.5px; color:var(--text-muted); line-height:1.45; }
.rh-arrow{ font-size:16px; color:var(--blue); flex-shrink:0; padding-top:2px; transition:transform .2s; }
.ranking-body{ max-height:0; opacity:0; overflow:hidden; transition:max-height .35s ease, opacity .25s ease; }
.ranking-table-wrap{ overflow-x:auto; padding:0 4px 16px; }
.ranking-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.ranking-table thead th{
  background:var(--surface); padding:9px 12px; text-align:left;
  font-weight:600; color:var(--text-muted); font-size:12px;
  border-bottom:1px solid var(--border);
}
.ranking-table tbody tr:hover td{ background:#f8faff; }
.ranking-table td{ padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.ranking-table tbody tr:last-child td{ border-bottom:none; }
.rk-num{ font-size:12px; color:var(--text-muted); font-weight:700; width:28px; text-align:center; }
.rk-prof{ display:flex; align-items:center; gap:10px; }
.rk-icon{ width:30px; height:30px; border-radius:7px; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rk-names{ display:flex; flex-direction:column; gap:2px; }
.rk-names b{ font-size:13px; color:var(--text); }
.rk-tr{ font-size:11.5px; color:var(--text-muted); }
.rk-diff{ font-size:13px; color:var(--blue); letter-spacing:1px; white-space:nowrap; }
.rk-pay{ font-size:13px; color:var(--text-muted); white-space:nowrap; }

/* ============================================================
   DIFFICULTY BARS
   ============================================================ */
.diff-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px; }
.diff-item{ display:flex; flex-direction:column; gap:7px; }
.diff-item-label{ font-size:13px; font-weight:600; color:var(--text-muted); }
.diff-bar-row{ display:flex; gap:5px; }
.diff-pip{ flex:1; height:8px; border-radius:99px; background:var(--border); transition:background .2s; }
.diff-pip.active{ background:var(--blue); }
.diff-item-tag{ font-size:12.5px; font-weight:600; color:var(--blue); }

/* ============================================================
   PROS & CONS GRID
   ============================================================ */
.pc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:10px; }
.pc-col h4{ font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:10px; }
.pc-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; }
.pc-col li{ display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--text); line-height:1.45; }
.pc-check{ color:#16a34a; font-weight:700; flex-shrink:0; margin-top:1px; }
.pc-cross{ color:#dc2626; font-weight:700; flex-shrink:0; margin-top:1px; }

/* ============================================================
   A-Z GATE OVERLAY
   ============================================================ */
.az-gate{
  background:linear-gradient(135deg,#f0f4ff 0%,#f5f0ff 100%);
  border:1.5px solid #c7d2fe; border-radius:20px;
  padding:44px 36px; text-align:center; margin:24px 0;
}
.az-gate-inner{ max-width:520px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:16px; }
.az-gate-icon{ font-size:48px; }
.az-gate-title{ font-size:21px; font-weight:800; color:var(--text); }
.az-gate-desc{ font-size:14.5px; color:var(--text-muted); }
.az-gate-list{
  list-style:none; padding:16px 20px; margin:0; text-align:left;
  display:flex; flex-direction:column; gap:9px; width:100%;
  background:#fff; border:1.5px solid #c7d2fe; border-radius:12px;
}
.az-gate-list li{ font-size:13.5px; color:var(--text); display:flex; align-items:flex-start; gap:8px; }
.az-gate-btn{
  width:100%; max-width:320px;
  background:linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  box-shadow:0 4px 18px rgba(99,102,241,.28);
}
.az-gate-alt{ font-size:13px; color:var(--text-muted); }
.az-gate-alt a{ color:var(--blue); }

/* ============================================================
   LANG-PILL
   ============================================================ */
.lang-pill{
  display:inline-block; background:var(--surface); border:1px solid var(--border);
  color:var(--text-muted); font-size:11px; font-weight:600;
  border-radius:99px; padding:2px 9px; white-space:nowrap;
}

/* ============================================================
   RESPONSIVE — NEW COMPONENTS
   ============================================================ */
@media (max-width: 720px){
  .quiz-box{ padding:24px 18px 20px; }
  .quiz-opts-grid{ grid-template-columns:1fr; }
  .qr-cards, .qr-locked-strip{ grid-template-columns:1fr; }
  .diff-grid{ grid-template-columns:1fr; }
  .pc-grid{ grid-template-columns:1fr; }
  .ranking-table-wrap{ font-size:12px; }
  .rk-prof{ gap:7px; }
  .az-gate{ padding:28px 16px; }
  .ranking-table{ table-layout:fixed; }
  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3),
  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4){ display:none; }
  .ranking-table td, .ranking-table th{ padding:8px 6px; }
  .rk-num{ width:20px; }
  .rk-pay{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rk-prof{ word-break:break-word; overflow:hidden; }
  .rk-link{ overflow:hidden; }
  .rk-names b{ word-break:break-word; }
  .ranking-promo-banner{ padding:18px 16px; gap:12px; }
  .rpb-text h3{ font-size:15px; }
  .rpb-text p{ font-size:13px; }
}

/* ============================================================
   RANKING PAGE (ranking.html)
   ============================================================ */
.ranking-promo-banner{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  background:linear-gradient(135deg,#eff6ff 0%,#f5f0ff 100%);
  border:1.5px solid #c7d2fe; border-radius:16px;
  padding:24px 28px; margin-top:20px;
}
.rpb-icon{ font-size:32px; flex-shrink:0; }
.rpb-text{ flex:1; min-width:180px; }
.rpb-text h3{ font-size:16px; font-weight:700; margin:0 0 4px; color:var(--text); }
.rpb-text p{ font-size:13.5px; color:var(--text-muted); margin:0; line-height:1.5; }
.rpb-btn{
  flex-shrink:0;
  background:linear-gradient(135deg,var(--blue) 0%,var(--purple) 100%);
  color:#fff; border:none; border-radius:11px;
  padding:12px 22px; font-size:14px; font-weight:700;
  cursor:pointer; text-decoration:none; font-family:inherit;
  box-shadow:0 4px 16px rgba(99,102,241,.26);
  transition:transform .15s, box-shadow .15s;
  white-space:nowrap;
}
.rpb-btn:hover{ transform:translateY(-1px); box-shadow:0 7px 22px rgba(99,102,241,.36); }

.ranking-full-section{
  background:#fff; border:1.5px solid var(--border);
  border-radius:16px; overflow:hidden; margin-bottom:20px;
}
.ranking-full-head{
  background:var(--surface); border-bottom:1px solid var(--border);
  padding:18px 22px;
}
.rf-title{ font-size:18px; font-weight:800; margin:0 0 4px; color:var(--text); }
.rf-desc{ font-size:13px; color:var(--text-muted); margin:0; }

/* ============================================================
   QUIZ RESULTS — FULL-PAGE OVERLAY
   ============================================================ */
.quiz-results-page{
  position:fixed; inset:0; z-index:1200;
  background:var(--bg-soft); overflow-y:auto;
  display:none;
}
.quiz-results-page.open{ display:block; animation:qrp-in .28s ease; }
@keyframes qrp-in{
  from{ opacity:0; transform:translateY(16px); }
  to{   opacity:1; transform:translateY(0); }
}
.qrp-topbar{
  position:sticky; top:0; z-index:10;
  background:#fff; border-bottom:1px solid var(--border);
  padding:12px 24px; display:flex; justify-content:space-between; align-items:center;
}
.qrp-close-btn{
  background:none; border:none; cursor:pointer;
  font-size:14px; font-weight:600; color:var(--text-muted);
  display:flex; align-items:center; gap:5px;
  padding:6px 10px; border-radius:8px;
  transition:background .15s, color .15s;
}
.qrp-close-btn:hover{ background:var(--surface); color:var(--text); }
.qrp-retake-btn{
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:9px; padding:7px 14px; font-size:13.5px; font-weight:600;
  cursor:pointer; font-family:inherit; color:var(--text);
  transition:background .15s;
}
.qrp-retake-btn:hover{ background:var(--border); }

.qrp-hero{
  background:linear-gradient(135deg, var(--text) 0%, #2d3a6e 100%);
  color:#fff; padding:40px 0 32px;
}
.qrp-hero-inner{
  max-width:900px; margin:0 auto; padding:0 24px;
}
.qrp-hero h2{
  font-size:28px; font-weight:800; margin:0 0 8px; line-height:1.25;
}

.qrp-hero p{
  color:rgba(255,255,255,.82); margin:0; font-size:15px;
}
.qr-urgency{
  margin-top:16px; padding:10px 16px; border-radius:10px;
  font-size:13.5px; font-weight:600;
}
.qr-urgency.red{ background:rgba(255,80,60,.18); color:#ffb3ab; }
.qr-urgency.blue{ background:rgba(80,140,255,.18); color:#a3c4ff; }

.qrp-content{
  max-width:1100px; margin:0 auto; padding:36px 24px 60px;
}
.qrp-cards.field-grid{
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content:center;
  margin-bottom:36px;
}
@media(max-width:980px){
  .qrp-cards.field-grid{ grid-template-columns: repeat(2, minmax(0,360px)); }
}
@media(max-width:640px){
  .qrp-cards.field-grid{ grid-template-columns: 1fr; }
}

.qrp-rank-badge{
  display:inline-flex; align-items:center;
  padding:3px 10px; border-radius:20px;
  font-size:12px; font-weight:700;
  margin-bottom:8px; letter-spacing:.02em;
}
.qrp-rank-badge.c-blue  { background:#e0eaff; color:#2355c7; }
.qrp-rank-badge.c-teal  { background:#e0f5f1; color:#13776a; }
.qrp-rank-badge.c-purple{ background:#f0eaff; color:#6b2fbf; }

.qrp-cta-links{
  display:flex; gap:12px; justify-content:center;
  flex-wrap:wrap; margin-top:8px;
}

/* History panel button */
.qrp-hist-btn{
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:9px; padding:7px 14px; font-size:13.5px; font-weight:600;
  cursor:pointer; font-family:inherit; color:var(--text);
  transition:background .15s;
}
.qrp-hist-btn:hover{ background:var(--border); }

/* History slide-in panel */
.qrp-hist-panel{
  position:absolute; top:56px; right:12px; z-index:20;
  background:#fff; border:1.5px solid var(--border);
  border-radius:14px; box-shadow:0 8px 32px rgba(0,0,0,.12);
  width:min(420px, 92vw); max-height:60vh; overflow-y:auto;
  animation:qrp-in .2s ease;
}
.qrp-hist-inner{ padding:16px 18px; }
.qrp-hist-head{
  display:flex; justify-content:space-between; align-items:center;
  font-weight:700; font-size:14px; margin-bottom:12px;
  padding-bottom:8px; border-bottom:1.5px solid var(--border);
}
.qrp-hist-close{
  background:none; border:none; cursor:pointer; font-size:16px;
  color:var(--text-muted); padding:2px 6px; border-radius:6px;
}
.qrp-hist-close:hover{ background:var(--surface); }
.qrp-hist-row{
  display:flex; gap:10px; align-items:flex-start;
  padding:8px 0; border-bottom:1px solid var(--border); font-size:13px;
}
.qrp-hist-row:last-child{ border-bottom:none; }
.qrp-hist-idx{
  min-width:20px; font-weight:700; color:var(--accent);
}
.qrp-hist-date{
  min-width:72px; color:var(--text-muted); font-size:12px; padding-top:1px;
}
.qrp-hist-names{ flex:1; }
.qrp-hist-name{ display:inline; }
.ag-hist-empty{ color:var(--text-muted); font-size:14px; padding:8px 0; }

/* field-card "View details" link */
.field-card-link{
  display:block; margin:10px 0 4px;
  font-size:13px; font-weight:600; color:var(--accent);
  text-decoration:none;
}
.field-card-link:hover{ text-decoration:underline; }

/* =====================================================
   AUTH GATE — registration + payment overlay
   ===================================================== */
.ag-overlay{
  position:fixed; inset:0; z-index:2000;
  background:rgba(12,18,40,.72); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  animation:qrp-in .22s ease;
}
.ag-box{
  background:#fff; border-radius:20px;
  width:min(500px, 100%); max-height:90vh; overflow-y:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  position:relative;
}
.ag-progress{
  height:4px; background:var(--border); border-radius:4px 4px 0 0; overflow:hidden;
}
.ag-bar{
  height:100%; background:var(--accent);
  transition:width .4s cubic-bezier(.4,0,.2,1);
}
.ag-topbar{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 20px 12px;
}
.ag-logo{ font-weight:700; font-size:14px; color:var(--text); }
.ag-close{
  background:none; border:none; cursor:pointer;
  font-size:18px; color:var(--text-muted); padding:4px 8px; border-radius:8px;
  line-height:1; transition:background .15s;
}
.ag-close:hover{ background:var(--surface); color:var(--text); }

/* Steps */
.ag-step{ display:none; padding:0 24px 28px; }
.ag-step.active{ display:block; }

.ag-step-title{
  font-size:21px; font-weight:800; color:var(--text);
  margin-bottom:6px; line-height:1.25;
}
.ag-step-desc{
  font-size:14px; color:var(--text-muted); margin:0 0 18px;
  line-height:1.55;
}

/* Form fields */
.ag-field{
  margin-bottom:14px;
}
.ag-field label{
  display:block; font-size:12.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-muted); margin-bottom:6px;
}
.ag-field input{
  width:100%; padding:11px 14px; border:1.5px solid var(--border);
  border-radius:10px; font-size:15px; font-family:inherit;
  background:#fff; color:var(--text);
  transition:border-color .2s, box-shadow .2s;
  box-sizing:border-box;
}
.ag-field input:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(74,108,247,.12);
}

/* Custom select wrapper (registration form dropdowns) */
.ag-select-wrap { position: relative; }
.ag-select-wrap::after {
  content: '';
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7599' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C%2Fsvg%3E") no-repeat center;
}
.ag-select-wrap select {
  width: 100%; padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--border, #E0E4F0);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--text, #1A2140);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ag-select-wrap select:focus {
  outline: none; border-color: var(--accent, #4A6CF7);
  box-shadow: 0 0 0 3px rgba(74,108,247,.12);
}
.ag-select-wrap select:hover { border-color: #a0b8ff; }

.ag-err{
  font-size:12.5px; color:#d93025; margin-top:5px; font-weight:600;
}
.ag-err.hidden{ display:none; }

/* Buttons */
.ag-btn{
  width:100%; padding:13px; border:none; border-radius:12px;
  background:var(--accent); color:#fff;
  font-size:15px; font-weight:700; font-family:inherit;
  cursor:pointer; margin-top:6px;
  transition:background .2s, transform .1s;
}
.ag-btn:hover{ background:#3348c8; }
.ag-btn:active{ transform:scale(.98); }
.ag-btn:disabled{
  background:var(--border); color:var(--text-muted); cursor:default;
}
.ag-spin{
  display:inline-block; animation:ag-rot .7s linear infinite;
}
@keyframes ag-rot{ to{ transform:rotate(360deg); } }

.ag-btn-stripe{
  background:#635bff;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.ag-btn-stripe:hover{ background:#4b45e4; }

/* Demo code box */
.ag-demo-box{
  background:#fff8e6; border:1.5px solid #f5c518;
  border-radius:10px; padding:10px 14px; font-size:13.5px;
  margin-bottom:14px; line-height:1.5;
}
.ag-demo-box code{
  background:#f5c518; color:#7a5400;
  padding:2px 8px; border-radius:6px;
  font-size:18px; font-weight:800; letter-spacing:.1em;
}
.ag-demo-box.hidden{ display:none; }

/* Price breakdown */
.ag-price-box{
  background:var(--bg-soft); border-radius:12px;
  padding:14px 16px; margin:10px 0 18px;
}
.ag-price-row{
  display:flex; align-items:flex-start; gap:8px;
  font-size:14px; color:var(--text); padding:4px 0;
}
.ag-check{ font-size:13px; }
.ag-price-amount{
  font-size:26px; font-weight:800; color:var(--text);
  text-align:right; margin-top:10px; padding-top:10px;
  border-top:1.5px solid var(--border);
}

/* Divider */
.ag-divider{
  text-align:center; color:var(--text-muted);
  font-size:13px; margin:14px 0;
}

/* PayPal container */
#ag-pp-container{
  min-height:40px;
  display:flex; align-items:center; justify-content:center;
}
.ag-pp-note{
  font-size:13px; color:var(--text-muted); text-align:center; margin:4px 0 0;
}

/* Secure note */
.ag-secure{
  text-align:center; font-size:12px; color:var(--text-muted);
  margin:12px 0 0;
}

/* Success state */
.ag-success{
  text-align:center; padding:20px 24px 32px;
}
.ag-check-circle{
  width:64px; height:64px; border-radius:50%;
  background:var(--accent); color:#fff;
  font-size:32px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
  animation:ag-pop .35s cubic-bezier(.17,.67,.35,1.3);
}
@keyframes ag-pop{
  from{ transform:scale(.3); opacity:0; }
  to{   transform:scale(1);  opacity:1; }
}
.ag-succ-title{
  font-size:22px; font-weight:800; color:var(--text); margin-bottom:8px;
}
.ag-succ-sub{
  font-size:14px; color:var(--text-muted); margin:0;
}

/* Responsive */
@media(max-width:520px){
  .ag-box{ border-radius:16px; }
  .ag-step{ padding:0 16px 24px; }
  .ag-step-title{ font-size:18px; }
}

/* Coming-soon banner on detail page */
.detail-coming-soon{
  margin:28px 0 0;
  padding:18px 24px;
  background:linear-gradient(135deg,#f0f4ff 0%,#e8f5f0 100%);
  border:1.5px dashed var(--accent);
  border-radius:14px;
  text-align:center;
}
.dcs-title{
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:14.5px; font-weight:700; color:var(--text);
  margin-bottom:14px;
}
.dcs-icon{ font-size:20px; }
.dcs-steps{
  display:flex; align-items:center; justify-content:center;
  gap:8px; flex-wrap:wrap;
}
.dcs-step{
  display:flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600; color:var(--text-muted);
}
.dcs-num{
  width:22px; height:22px; border-radius:50%;
  background:var(--accent); color:#fff;
  font-size:12px; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.dcs-arrow{
  color:var(--accent); font-weight:700; font-size:14px;
}

/* Login screen — secondary link button */
.ag-link-btn{
  display:block; width:100%; margin-top:10px;
  background:none; border:none; cursor:pointer;
  font-size:13px; color:var(--text-muted); font-family:inherit;
  text-decoration:underline; text-underline-offset:3px;
  padding:4px 0;
}
.ag-link-btn:hover{ color:var(--text); }


/* ============================================================
   NAV USER AREA — login button + username chip + admin chip
   ============================================================ */
#nav-user-area { display:flex; align-items:center; gap:.5rem; }

.nav-login-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: .35rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.nav-login-btn:hover { background: #3348c8; transform: translateY(-1px); }

/* (nav chip styles below — canonical block) */

/* ============================================================
   LOGIN DIALOG  (shared .ag-* with auth gate; add specifics)
   ============================================================ */
.ag-attempts-warn {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .88rem;
  color: #856404;
  margin-bottom: .75rem;
}
.ld-reset-link {
  font-family: monospace;
  font-size: .78rem;
  word-break: break-all;
  background: #f0f4ff;
  border-radius: 6px;
  padding: .5rem .75rem;
  margin-top: .5rem;
  color: var(--accent);
}
.ag-demo-box {
  background: #fff8e1;
  border: 1px dashed #f5a623;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .85rem;
  margin-bottom: .75rem;
}

/* ============================================================
   RESET PASSWORD PAGE
   ============================================================ */
.rp-main {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg, #f5f7ff);
}
.rp-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(31,45,90,.10);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.ag-err-big {
  font-size: 1.05rem;
  color: #d32f2f;
  padding: 1rem 0;
}

/* ============================================================
   USER PORTAL
   ============================================================ */
.portal-main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.2rem 4rem;
}
.portal-noauth {
  text-align: center;
  padding: 4rem 1rem;
  font-size: 1.1rem;
  color: var(--text-muted, #666);
}
.portal-h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy, #1f2d5a);
  margin-bottom: 1.5rem;
}
.portal-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(31,45,90,.07);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
}
.portal-card-h {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #1f2d5a);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid rgba(74,108,247,.12);
}
.portal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.pi-row { display: contents; }
.pi-lbl { font-weight: 600; font-size: .88rem; color: #666; }
.pi-val { font-size: .92rem; color: var(--navy, #1f2d5a); word-break: break-all; }
@media(max-width:500px){ .portal-info-grid { grid-template-columns: 1fr; } }

.portal-logout-btn {
  background: none;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  border-radius: 8px;
  padding: .4rem 1rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.portal-logout-btn:hover { background: #d32f2f; color: #fff; }

.portal-empty { color: #888; font-size: .92rem; padding: .5rem 0; }
.portal-list-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.portal-list-table th { text-align: left; font-weight: 700; padding: .5rem .75rem; border-bottom: 2px solid rgba(74,108,247,.12); color: #555; }
.portal-list-table td { padding: .55rem .75rem; border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: middle; }
.portal-list-table tr:last-child td { border-bottom: none; }
.portal-list-table tr:hover td { background: #f8f9ff; }

.portal-detail-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .3rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.portal-detail-btn:hover { background: #3348c8; }

.portal-status { border-radius: 20px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700; }
.portal-status-completed { background: #e8f5e9; color: #388e3c; }
.portal-status-failed    { background: #fce4ec; color: #c62828; }
.portal-status-pending   { background: #fff8e1; color: #f9a825; }

/* ── modals ── */
.portal-modal-bg {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(15,20,40,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.portal-modal {
  background: #fff; border-radius: 20px;
  box-shadow: 0 16px 60px rgba(15,20,40,.25);
  padding: 2rem 1.8rem;
  max-width: 540px; width: 100%;
  position: relative; max-height: 85vh; overflow-y: auto;
}
.portal-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: #888; line-height: 1;
}
.portal-modal-close:hover { color: #333; }
.portal-modal-h { font-size: 1.1rem; font-weight: 700; color: var(--navy,#1f2d5a); margin-bottom: 1rem; }

.portal-detail-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.portal-detail-table td { padding: .5rem .5rem; border-bottom: 1px solid #f0f0f0; }
.portal-detail-table td:first-child { font-weight: 700; color: #555; width: 40%; }

/* test result modal */
.portal-test-date { font-size: .85rem; color: #888; margin-bottom: .75rem; }
.portal-rank-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.portal-rank-table th { text-align:left; padding:.4rem .5rem; font-weight:700; color:#555; border-bottom:2px solid rgba(74,108,247,.12); }
.portal-rank-table td { padding:.5rem .5rem; border-bottom:1px solid #f0f0f0; vertical-align:middle; }
.portal-rank-num { font-weight: 800; color: var(--accent); }
.portal-score-bar { display:inline-block; width: 90px; height: 8px; background: #e8ecff; border-radius: 4px; vertical-align:middle; margin-right:.4rem; }
.portal-score-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width .5s; }
.portal-score-pct { font-size:.78rem; color:#555; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.2rem 4rem;
}
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-tmode {
  display: flex; align-items: center; gap: .6rem;
  background: #fff;
  border: 1px solid rgba(74,108,247,.2);
  border-radius: 12px;
  padding: .5rem 1rem;
  font-size: .88rem; font-weight: 600; color: #555;
}
.tmode-badge {
  background: #ff9800; color: #fff;
  border-radius: 20px; padding: .15rem .6rem;
  font-size: .75rem; font-weight: 700;
}
.admin-stat {
  font-size: .88rem; color: #666;
  margin-bottom: .75rem;
}

/* toggle switch */
.toggle-switch { position:relative; display:inline-block; width:40px; height:22px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; inset:0;
  background: #ccc; border-radius: 22px; cursor:pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content:""; position:absolute;
  width:16px; height:16px; background:#fff;
  border-radius:50%; left:3px; bottom:3px;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ============================================================
   PAYMENT GATE — test mode additions
   ============================================================ */
.ag-btn-test {
  background: #ff9800;
  width: 100%;
  margin-bottom: .5rem;
}
.ag-btn-test:hover { background: #e65100; }
.ag-test-badge {
  font-size: .82rem; color: #b45309; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: 8px;
  padding: .3rem .7rem; margin-top: .3rem; text-align: center;
}
/* ── Admin quick-test card ── */
.admin-quicktest-row {
  display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap;
}
.admin-qt-info { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.qt-badge {
  background: #f0f4ff; color: #4A6CF7; border: 1px solid #c7d7ff;
  border-radius: 20px; padding: .3rem .85rem; font-size: .83rem; font-weight: 600;
}
.admin-qt-btns { display: flex; flex-direction: column; gap: .4rem; min-width: 180px; }
.ag-btn-test {
  background: #f59e0b; color: #fff; border: none; border-radius: 10px;
  padding: .65rem 1.2rem; font-weight: 700; cursor: pointer; font-size: .95rem;
}
.ag-btn-test:hover { background: #d97706; }
.admin-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Navbar logged-in: inline items (no dropdown) ── */
.nav-user-inline {
  display: flex; align-items: center; gap: .4rem;
}

/* Avatar circle — same gradient as brand-mark */
.nav-avatar-init {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue, #4D7CFE), var(--blue-dark, #3A63E0));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .74rem; font-weight: 800;
  box-shadow: 0 2px 6px rgba(77,124,254,.35);
}
.nav-avatar-admin {
  background: linear-gradient(135deg, #2d2d50, #1a1a2e);
  box-shadow: 0 2px 6px rgba(20,20,50,.3);
}

/* Username text */
.nav-username-txt {
  font-size: .85rem; font-weight: 700; color: var(--text, #1A2140);
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-right: .15rem;
}

/* Thin separator — hidden, spacing handled by gap */
.nav-inline-sep { display: none; }

/* "My account / Admin panel" — same pill as .nav-login-btn */
.nav-inline-link {
  display: inline-block;
  background: var(--accent, #4A6CF7); color: #fff;
  border: none; border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.nav-inline-link:hover { background: #3348c8; transform: translateY(-1px); color: #fff; }

/* "Sign out" — same pill shape, outlined style to distinguish */
.nav-inline-logout {
  background: none;
  border: 1.5px solid var(--accent, #4A6CF7); border-radius: 20px;
  padding: .32rem .95rem;
  font-size: .85rem; font-weight: 600; color: var(--accent, #4A6CF7);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.nav-inline-logout:hover {
  background: var(--accent, #4A6CF7); color: #fff; transform: translateY(-1px);
}

/* ── Post-payment save prompt ── */
.ag-save-banner {
  background: linear-gradient(135deg,#f0f9ff,#e8f5e9);
  border: 1px solid #b3e0ff; border-radius: 12px;
  padding: .9rem 1.1rem; margin-bottom: 1.2rem;
}
.ag-save-lead { font-size: .93rem; color: #1f2d5a; line-height: 1.5; }

/* ── Portal test report — profession links ── */
.portal-prof-link {
  color: var(--blue-dark, #3A63E0); text-decoration: none; font-weight: 600;
}
.portal-prof-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   ADMIN — AI TEST ANALYTICS
   ══════════════════════════════════════════════ */

/* Summary stat cards row */
.admin-test-stats {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.admin-stat-card {
  background: var(--bg-soft, #F6F8FE);
  border: 1px solid var(--border, #E8EBF7);
  border-radius: var(--radius-sm, 10px);
  padding: .75rem 1.1rem; flex: 1; min-width: 130px;
}
.admin-stat-num {
  font-size: 1.5rem; font-weight: 800; color: var(--blue, #4D7CFE); line-height: 1;
  margin-bottom: .25rem;
}
.admin-stat-lbl { font-size: .78rem; color: var(--text-muted, #5C6480); font-weight: 600; }

/* Tabs */
.admin-tab-bar {
  display: flex; gap: .4rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--border, #E8EBF7); padding-bottom: 0;
}
.admin-tab {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: .88rem; font-weight: 600; color: var(--text-muted, #5C6480);
  padding: .55rem 1rem .65rem; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: var(--blue, #4D7CFE); }
.admin-tab.active { color: var(--blue, #4D7CFE); border-bottom-color: var(--blue, #4D7CFE); }

/* Score bar (in test records table) */
.admin-score-bar-wrap {
  display: inline-block; width: 60px; height: 6px;
  background: #E8EBF7; border-radius: 99px; vertical-align: middle; margin-right: .4rem;
}
.admin-score-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue,#4D7CFE), var(--teal,#12B886));
  border-radius: 99px;
}
.admin-score-pct { font-size: .8rem; font-weight: 700; color: var(--text-muted,#5C6480); }

/* Profession group cards */
.admin-group-card {
  border: 1px solid var(--border, #E8EBF7);
  border-radius: var(--radius-sm, 10px);
  margin-bottom: .8rem; overflow: hidden;
}
.admin-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; background: var(--bg-soft, #F6F8FE);
  border-bottom: 1px solid var(--border, #E8EBF7);
}
.admin-group-title {
  font-size: .95rem; font-weight: 700; color: var(--text, #1A

/* =====================================================
   APPLY FLOW — 限时活动一键申请系统
   ===================================================== */

/* --- Apply CTA on profession detail page --- */
.apply-cta-section {
  background: linear-gradient(135deg, #1a2f6e 0%, #2a4aaa 100%);
  border-radius: var(--radius, 16px);
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.apply-cta-section::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.apply-cta-badge {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: .6rem;
  text-transform: uppercase;
}
.apply-cta-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: .4rem 0;
}
.apply-cta-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.apply-cta-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: .5rem 0 1.2rem;
}
.apply-cta-price span { font-size: 1.1rem; font-weight: 600; opacity: .8; margin-left: 4px; }
.apply-main-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .1s;
  text-align: center;
}
.apply-main-btn:hover { background: #3348c8; transform: scale(.99); }
.apply-main-btn:active { transform: scale(.98); }
.apply-main-btn.coming-soon-btn { background: #9e9e9e; cursor: default; opacity: .85; }
.apply-main-btn.coming-soon-btn:hover { background: #9e9e9e; transform: none; }

/* Coming-soon teaser box */
.apply-coming-soon-box {
  border: 2px dashed #5c6bc0;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef0fb 0%, #e8f5f0 100%);
  padding: 22px 24px 18px;
  margin-top: 8px;
  text-align: center;
}
.apply-coming-soon-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 14px;
}
.apply-coming-soon-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .9rem;
  color: #444;
}
.apply-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3f51b5;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.apply-step-arrow { color: #888; font-size: .85rem; }

/* --- Modal overlay --- */
.apply-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,20,50,.7);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.apply-modal {
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 16px);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}

/* --- Top bar --- */
.apply-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem .9rem;
  border-bottom: 1px solid var(--border, #E8EBF7);
  flex-shrink: 0;
}
.apply-topbar-left { display: flex; align-items: center; gap: .7rem; }
.apply-logo { font-weight: 700; font-size: 1rem; color: var(--primary, #1f2d5a); }
.apply-badge {
  background: #ff6b35;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: .05em;
}
.apply-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted, #6b7280);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.apply-close-btn:hover { background: var(--bg-soft, #f3f4f6); }

/* --- Progress --- */
.apply-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem .3rem;
  gap: 0;
  flex-shrink: 0;
}
.apply-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border, #E8EBF7);
  border: 2px solid var(--border, #E8EBF7);
  transition: background .25s, border-color .25s;
  flex-shrink: 0;
}
.apply-dot.active {
  background: var(--primary, #1f2d5a);
  border-color: var(--primary, #1f2d5a);
}
.apply-dot.done {
  background: #22c55e;
  border-color: #22c55e;
}
.apply-progress-line {
  flex: 1;
  height: 2px;
  background: var(--border, #E8EBF7);
  max-width: 80px;
}
.apply-progress-labels {
  display: flex;
  justify-content: space-around;
  padding: .2rem 2rem .6rem;
  font-size: .72rem;
  color: var(--text-muted, #6b7280);
  flex-shrink: 0;
}
.apply-progress-labels span { flex: 1; text-align: center; }

/* --- Steps --- */
.apply-step { padding: 1.4rem 1.8rem 1.2rem; }
.apply-step-title { font-size: 1.25rem; font-weight: 800; color: var(--text, #1a2035); margin-bottom: .8rem; }
.apply-subtitle { font-size: .85rem; font-weight: 400; color: var(--text-muted, #6b7280); }
.apply-step-desc { color: var(--text-muted, #6b7280); font-size: .9rem; margin-bottom: 1rem; }

/* Step 1 */
.apply-price-badge {
  display: inline-block;
  background: #1f2d5a;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  padding: .4rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.apply-price-badge span { font-size: .85rem; font-weight: 500; opacity: .8; margin-left: 4px; }
.apply-price-note { font-size: .75rem !important; }
.apply-highlight-box {
  background: #f0f4ff;
  border: 1.5px solid #c7d4f8;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.apply-highlight-box p { color: var(--text, #1a2035); font-size: .9rem; margin-bottom: .5rem; }
.apply-includes-list { list-style: none; padding: 0; margin: 0; }
.apply-includes-list li { font-size: .88rem; color: var(--text, #1a2035); padding: 3px 0; }
.apply-docs-required { margin-bottom: 1rem; }
.apply-docs-required h3 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; color: var(--text, #1a2035); }
.apply-doc-item { display: flex; align-items: flex-start; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--border, #E8EBF7); }
.apply-doc-item:last-child { border-bottom: none; }
.apply-doc-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.apply-doc-item div { display: flex; flex-direction: column; }
.apply-doc-item strong { font-size: .88rem; color: var(--text, #1a2035); }
.apply-doc-item span { font-size: .8rem; color: var(--text-muted, #6b7280); margin-top: 1px; }
.apply-notice { font-size: .82rem; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: .7rem .9rem; margin-top: .5rem; line-height: 1.6; }

/* Step 2 */
.apply-selected-profs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  min-height: 36px; padding: .6rem .8rem;
  background: #f8f9ff; border: 1.5px solid #d0d9f6;
  border-radius: 10px; margin-bottom: .8rem;
}
.apply-no-selection { color: var(--text-muted, #9ca3af); font-size: .85rem; align-self: center; }
.apply-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #1f2d5a; color: #fff;
  font-size: .8rem; font-weight: 600;
  padding: 4px 10px 4px 12px;
  border-radius: 20px;
}
.apply-chip.done { background: #22c55e; }
.apply-chip-remove {
  background: rgba(255,255,255,.25); border: none; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; font-size: .7rem; display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.apply-chip-remove:hover { background: rgba(255,255,255,.4); }
.apply-prof-search-wrap { margin-bottom: .6rem; }
.apply-prof-search {
  width: 100%; box-sizing: border-box;
  padding: .6rem .9rem; border: 1.5px solid var(--border, #E8EBF7);
  border-radius: 10px; font-size: .9rem;
  background: var(--card-bg, #fff); color: var(--text, #1a2035);
  outline: none;
}
.apply-prof-search:focus { border-color: var(--primary, #1f2d5a); }
.apply-prof-list {
  max-height: 260px; overflow-y: auto;
  border: 1.5px solid var(--border, #E8EBF7);
  border-radius: 10px;
}
.apply-prof-option {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .9rem; cursor: pointer;
  border-bottom: 1px solid var(--border, #E8EBF7);
  transition: background .12s;
}
.apply-prof-option:last-child { border-bottom: none; }
.apply-prof-option:hover { background: #f0f4ff; }
.apply-prof-option.selected { background: #e8eeff; }
.apply-prof-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border, #e8ebf7);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; font-weight: 700;
  color: var(--text-muted, #6b7280);
}
.apply-prof-option.selected .apply-prof-check { background: #1f2d5a; color: #fff; }
.apply-prof-de { font-weight: 600; font-size: .85rem; color: var(--text, #1a2035); flex: 1; }
.apply-prof-tr { font-size: .8rem; color: var(--text-muted, #6b7280); }

/* Step 3 */
.apply-upload-item {
  border: 1.5px solid var(--border, #E8EBF7);
  border-radius: 12px; padding: .9rem 1rem;
  margin-bottom: .8rem; transition: border-color .2s;
}
.apply-upload-item.status-done { border-color: #22c55e; }
.apply-upload-item.status-error { border-color: #ef4444; }
.apply-upload-label {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: .6rem;
}
.apply-upload-icon { font-size: 1.3rem; flex-shrink: 0; }
.apply-upload-label div { display: flex; flex-direction: column; }
.apply-upload-label strong { font-size: .9rem; font-weight: 700; color: var(--text, #1a2035); }
.apply-upload-hint { font-size: .78rem; color: var(--text-muted, #6b7280); }
.apply-dropzone {
  border: 2px dashed var(--border, #c7d0e8);
  border-radius: 10px;
  padding: .9rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.apply-dropzone:hover, .apply-dropzone.drag-over {
  border-color: var(--primary, #1f2d5a);
  background: #f0f4ff;
}
.apply-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.apply-dropzone-inner span { font-size: .82rem; color: var(--text-muted, #6b7280); }
.apply-upload-cloud { font-size: 1.4rem; }
.apply-upload-success { font-size: 1.4rem; }
.apply-upload-spinner { font-size: 1.2rem; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.apply-file-input { display: none; }
.apply-upload-status { font-size: .8rem; margin-top: .4rem; }
.apply-status-done { color: #22c55e; }
.apply-status-error { color: #ef4444; }
.apply-status-uploading { color: var(--text-muted, #6b7280); }

/* Step 4 */
.apply-contract-box {
  background: #f9fafb;
  border: 1.5px solid var(--border, #E8EBF7);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  max-height: 240px;
  overflow-y: auto;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text, #1a2035);
  margin-bottom: .9rem;
}
.apply-contract-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.apply-contract-box p { margin-bottom: .6rem; }
.apply-contract-date { color: var(--text-muted, #6b7280); font-style: italic; }
.apply-terms-check { margin-bottom: 1rem; }
.apply-checkbox-label {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; font-size: .85rem; color: var(--text, #1a2035);
}
.apply-checkbox-label input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; cursor: pointer; }
.apply-summary-box {
  background: #f0f4ff;
  border: 1.5px solid #c7d4f8;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: .9rem;
}
.apply-summary-box h4 { font-size: .92rem; font-weight: 700; margin-bottom: .7rem; color: var(--text, #1a2035); }
.apply-sum-row { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .5rem; font-size: .85rem; }
.apply-sum-row > span:first-child { color: var(--text-muted, #6b7280); white-space: nowrap; min-width: 90px; }
.apply-sum-price { font-size: .95rem; font-weight: 700; color: var(--primary, #1f2d5a); text-align: right; margin-top: .4rem; }
.apply-sum-price strong { color: #ff6b35; font-size: 1.1rem; }

/* Buttons */
.apply-step-actions { display: flex; gap: .8rem; margin-top: 1.2rem; justify-content: flex-end; }
.apply-btn-primary {
  background: var(--primary, #1f2d5a); color: #fff;
  border: none; border-radius: 10px; padding: .7rem 1.6rem;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: background .18s, transform .12s;
}
.apply-btn-primary:hover { background: #162247; transform: translateY(-1px); }
.apply-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.apply-btn-secondary {
  background: var(--bg-soft, #f3f4f6); color: var(--text, #1a2035);
  border: 1.5px solid var(--border, #E8EBF7); border-radius: 10px;
  padding: .7rem 1.2rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.apply-btn-secondary:hover { background: #e8eeff; }
.apply-btn-pay {
  background: #ff6b35; color: #fff;
  border: none; border-radius: 10px; padding: .7rem 1.8rem;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,107,53,.35);
  transition: background .18s, transform .12s;
}
.apply-btn-pay:hover { background: #e5571f; transform: translateY(-1px); }
.apply-btn-pay:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.appl