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

: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;
}

*{ 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 ---------- */
body.lang-en .zh{ display:none !important; }
body.lang-zh .en{ display:none !important; }

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; }
.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 span{ display:block; }
.brand-name .sub{ font-size:11px; font-weight:600; color: var(--text-muted); letter-spacing:.02em; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{
  font-size:14.5px; 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; }

.lang-toggle{
  display:flex; align-items:center; background: var(--bg-soft);
  border:1px solid var(--border); border-radius: 999px; padding:4px;
  gap:2px;
}
.lang-toggle button{
  border:none; background:transparent; cursor:pointer;
  font-family: inherit; font-weight:700; font-size:13px;
  padding:7px 14px; border-radius:999px; color: var(--text-muted);
  transition: all .15s;
}
.lang-toggle button.active{
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color:#fff; box-shadow: 0 4px 10px rgba(77,124,254,0.35);
}

.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; }
  .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,.75); margin:0 0 14px; font-size:15px; }

.qrp-content{
  max-width:1100px; margin:0 auto; padding:36px 24px 60px;
}
/* override field-grid inside results to always 3-col centered */
.qrp-cards.field-grid{
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content:center;
  margin-bottom:36px;
}
/* match rank badge on each field-card */
.qrp-rank-badge{
  display:inline-flex; align-items:center;
  font-size:12px; font-weight:700; border-radius:999px;
  padding:3px 11px; margin-bottom:8px;
}
.qrp-rank-badge.c-blue{ background:var(--blue-soft); color:var(--blue-dark); }
.qrp-rank-badge.c-teal{ background:var(--teal-soft); color:var(--teal-dark); }
.qrp-rank-badge.c-purple{ background:var(--purple-soft); color:var(--purple-dark); }

.qrp-paywall{
  background:linear-gradient(135deg,#f0f4ff 0%,#f5f0ff 100%);
  border:1.5px solid #c7d2fe; border-radius:18px;
  padding:32px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  max-width:580px; margin:0 auto;
}
.qrp-paywall .qrpw-icon{ font-size:40px; }
.qrp-paywall h3{ font-size:18px; font-weight:700; color:var(--text); margin:0; }
.qrp-paywall p{ font-size:14px; color:var(--text-muted); max-width:440px; line-height:1.65; margin:0; }
.qrp-paywall .qrpw-btn{
  background:linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color:#fff; border:none; border-radius:12px;
  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;
}
.qrp-paywall .qrpw-btn:hover{ transform:translateY(-2px); box-shadow:0 7px 24px rgba(99,102,241,.38); }
.qrp-links{
  display:flex; gap:14px; flex-wrap:wrap; justify-content:center;
  margin-top:2px;
}
.qrp-links a{ font-size:13.5px; color:var(--blue); font-weight:600; }
.qrp-links a:hover{ text-decoration:underline; }

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

@media (max-width:980px){
  .qrp-cards.field-grid{ grid-template-columns:repeat(2, minmax(0,340px)); }
}
@media (max-width:640px){
  .qrp-cards.field-grid{ grid-template-columns:1fr; }
  .qrp-hero h2{ font-size:21px; }
  .qrp-content{ padding:24px 16px 48px; }
  .qrp-paywall{ padding:22px 16px; }
  .qrp-topbar{ padding:10px 16px; }
}

/* ranking table clickable rows */
.rk-row:hover td{ background:#f0f4ff; }
.rk-link{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:inherit;
}
.rk-link:hover b{ color:var(--blue); text-decoration:underline; }
