@charset "utf-8";
/* ============================================
   ZKOUSKA OSOBNOSTI - Warm & Friendly Design
   Inspired by: 16personalities warmth
   ============================================ */

:root {
  /* Warm blue */
  --blue: #4A90D9;
  --blue-deep: #2B6CB0;
  --blue-dark: #1A4971;
  --blue-light: #EBF5FB;
  --blue-pale: #F5FAFF;

  /* Warm green */
  --green: #5CB85C;
  --green-deep: #449D44;
  --green-dark: #357A35;
  --green-light: #E8F5E8;
  --green-pale: #F2FAF2;

  /* RIASEC type colors */
  --type-r: #C8874D;
  --type-i: #5193CC;
  --type-a: #A66BBB;
  --type-s: #4DAD4D;
  --type-e: #D4705A;
  --type-c: #4DB8B8;

  /* Neutrals - warm tinted */
  --text: #2D3436;
  --text-soft: #4A5568;
  --text-muted: #8492A6;
  --border: #E8ECF0;
  --border-light: #F1F4F8;
  --bg: #FFFFFF;
  --surface: #FFFFFF;

  --font: 'Figtree', system-ui, -apple-system, sans-serif;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-green: 0 4px 16px rgba(92,184,92,0.3);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
#footer { margin-top: auto; }

img, a img { border: 0; max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-deep); }
.row a:hover { text-decoration: none; }
ul, ol, li { list-style: none; }
form { margin: 0; padding: 0; }
input, textarea, select { font-family: var(--font); font-size: 14px; }

hr {
  display: block; visibility: hidden; width: 0; height: 0;
  clear: both; float: none; margin: 0 !important;
  padding: 0; border: 0; font-size: 0; line-height: 0;
}
hr.dot {
  width: 100%; border: 0; border-top: 1px solid var(--border-light);
  height: 0; visibility: visible; margin: 0 !important;
}
.small { font-size: 12px; color: var(--text-muted); line-height: 1.5; }


/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: clamp(17px, 2vw, 21px); font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; color: var(--blue-deep); margin-left: 0; font-style: normal; }

h1 em { font-style: normal; color: var(--text-muted); font-weight: 500; }
h1 strong, h2 strong, h3 strong { font-weight: 800; color: var(--blue); }


/* ========== LAYOUT ========== */
.container { width: 100%; max-width: 1060px; padding: 0 24px; margin: 0 auto; }
@media (min-width: 768px)  { .container { max-width: 750px; } }
@media (min-width: 992px)  { .container { max-width: 980px; } }
@media (min-width: 1200px) { .container { max-width: 1060px; } }

.row { display: flex; flex-wrap: wrap; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}
@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
}

.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin: 0 auto; }
.img-fluid { max-width: 100%; height: auto; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.pt-2rm { padding-top: 2rem; }
.pt-2 { padding-top: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pb-20px { padding-bottom: 20px !important; }
.pxy-0 { padding-left: 0 !important; padding-right: 0 !important; }
.gutters { margin-left: 15px !important; margin-right: 15px !important; }


/* ========== HEADER ========== */
#header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
#header .container { padding-top: 0; padding-bottom: 0; }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  min-height: 64px; gap: 12px;
  position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo a { display: inline-flex; }
.nav-logo img { height: 36px; width: auto; transition: opacity 0.15s; }
.nav-logo a:hover img { opacity: 0.7; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text-soft);
  border-radius: 2px; transition: all 0.25s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Test-mode header bar */
.nav-test {
  flex: 1; display: flex; align-items: center;
  justify-content: space-between; padding-left: 24px;
}
.nav-test-label {
  font-size: 14px; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.01em;
}
.nav-test-label strong {
  font-weight: 700; color: var(--text-soft);
}
.nav-test-sep { margin: 0 2px; }
.nav-test-quit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 7px 14px; border-radius: 8px;
  transition: all 0.15s; text-decoration: none;
}
.nav-test-quit:hover {
  color: var(--text-soft); background: var(--bg);
  text-decoration: none;
}
.nav-test-quit svg { opacity: 0.6; }
.nav-test-quit:hover svg { opacity: 1; }
/* Hide hamburger when test nav is active */
.nav-inner:has(.nav-test) .nav-toggle { display: none !important; }

.nav-menu { flex: 1; }
.nav-menu ul { display: flex; align-items: center; gap: 2px; justify-content: center; width: 100%; }
.nav-menu ul::before { content: ''; margin-right: auto; }
.nav-center-item { margin-left: auto; }
.nav-login-item, .nav-right-item { margin-left: auto; }
.nav-menu ul li a {
  display: inline-flex; padding: 8px 14px; font-size: 14px;
  font-weight: 500; color: var(--text-soft); border-radius: 10px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.nav-menu ul li a:hover { color: var(--blue); background: var(--blue-pale); text-decoration: none; }
.nav-menu ul li a strong { font-weight: 700; color: var(--blue-deep); }

/* Login dropdown */
.nav-login-item { position: relative; }
.signin {
  display: none; position: absolute; top: calc(100% + 12px); right: 0;
  width: 300px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 999; padding: 24px;
  animation: dropIn 0.2s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.signin form { display: flex; flex-direction: column; gap: 14px; }
.signin label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 5px;
}
.signin input[type="text"],
.signin input[type="password"] {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 14px; background: var(--bg);
  transition: all 0.15s; outline: none;
}
.signin input:focus {
  border-color: var(--blue); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.signin p { margin: 0; }
.signin p.reg {
  text-align: center; font-size: 12px; color: var(--text-muted);
  padding-top: 12px; border-top: 1px solid var(--border-light);
}
.signin p.reg a { color: var(--blue); font-weight: 600; }
.signin a.close { position: absolute; top: 14px; right: 14px; opacity: 0.3; }
.signin a.close:hover { opacity: 0.7; }
.signin a.close img { width: 14px; }
.dropdown-over { background: none !important; border: none !important; }

/* Language dropdown */
.nav-lang-item { position: relative; }
.nav-lang-item > a { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-lang-item > a svg { opacity: 0.6; }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px 0; min-width: 160px; z-index: 100;
}
.lang-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--text-soft); text-decoration: none;
  transition: all 0.15s;
}
.lang-dropdown a:hover { background: var(--bg); color: var(--text); }
.lang-dropdown img { width: 20px; border-radius: 2px; }
.lang-dropdown .close { justify-content: center; padding: 6px; border-top: 1px solid var(--border-light); margin-top: 4px; }
.lang-dropdown .close img { width: 14px; opacity: 0.4; }


/* ========== HERO SECTION (#content) ========== */
#content {
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--bg) 100%);
}

/* ========== STEP INDICATORS ========== */
.steps {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px 20px; gap: 0;
}
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 14px;
  transition: background 0.2s;
}
.step:hover { background: rgba(74,144,217,0.06); }
.step-dot {
  width: 20px; height: 2px; background: var(--border);
  flex-shrink: 0; margin: 0 4px;
}
.step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  border-radius: 12px;
  transition: all 0.25s var(--ease);
}
.step-icon svg { width: 20px; height: 20px; }
.step:hover .step-icon {
  background: var(--blue); color: var(--surface);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(74,144,217,0.3);
}
.step-text {
  color: var(--text-soft); font-size: 13px;
  font-weight: 600; line-height: 1.35; white-space: nowrap;
}
.step:hover .step-text { color: var(--text); }

/* Legacy .step-number (unused but safe) */
.step-number { display: none; }

/* Legacy .boxes/.box */
#content .boxes {
  padding: 28px 0 12px; text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
#content .box {
  flex: 1; min-width: 180px; max-width: 280px;
  font-size: 14px; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
  white-space: normal; float: none; margin: 0;
  font-family: var(--font);
}
#content .box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
#content .nbg { background: var(--surface); }
#content .box strong {
  display: block; font-size: 36px; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: 8px; position: static;
}
#content .box strong em { color: var(--blue-deep); font-style: normal; position: static; left: auto; margin-right: 0; }


/* ========== HERO CARDS ========== */
#content .center { padding: 0; text-align: left; margin: auto; padding-bottom: 10px; }

/* Full-width hero card (replaces old left+right layout) */
.hero-card {
  margin: 12px 0; border: none; padding: 44px 48px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); text-align: center;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.hero-card h1 {
  margin: 0 0 16px; color: var(--text);
  font-family: var(--font); line-height: 1.25;
}
.hero-card h1 em { color: var(--text-muted); }
.hero-card h1 strong { color: var(--blue); }
.hero-card p {
  color: var(--text-soft); line-height: 1.8;
  margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Note under CTA */
.hero-note {
  margin: 16px 0 0; font-size: 13px; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.01em;
}

/* Prominent CTA button */
.button-hero {
  font-size: 19px !important; padding: 18px 52px !important;
  box-shadow: 0 6px 24px rgba(92,184,92,0.35) !important;
  letter-spacing: 0.01em;
}
.button-hero:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 36px rgba(92,184,92,0.4) !important;
}

/* Legacy .left/.right (still used by test header) */
#content .left {
  margin: 12px 0; border: none; padding: 36px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); float: none;
}
#content .left h1 { margin: 0 0 16px; color: var(--text); }
#content .left h1 em { color: var(--text-muted); }
#content .left h1 strong { color: var(--blue); }
#content .left p { color: var(--text-soft); line-height: 1.8; margin-bottom: 24px; }

#content .right {
  width: 100%; margin: 12px 0; border: none;
  padding: 32px 24px; float: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  min-width: auto; height: fit-content; text-align: center;
}
#content .left h1, #content .right h2 {
  font-family: var(--font); line-height: 1.25;
}
#content .right h2 { color: var(--surface) !important; font-size: 22px; margin: 0 0 20px; padding: 0; font-weight: 700; }
#content .right h2 strong { color: rgba(255,255,255,0.8); }

@media (min-width: 992px) { #content .left { margin-right: 20px; } }


/* ========== BUTTONS ========== */
a.button,
#content .right a.button,
.test input.button {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-family: var(--font);
  font-weight: 700; font-size: 17px;
  background: var(--green); border: none;
  border-radius: var(--radius-full); padding: 16px 40px;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-green);
  width: auto; height: auto; line-height: 1.4;
  float: none; margin: 12px auto; box-sizing: border-box;
}
a.button:hover, #content .right a.button:hover, .test input.button:hover {
  background: var(--green-deep); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92,184,92,0.35);
  color: var(--surface); text-decoration: none;
}
a.button:active, .test input.button:active { transform: translateY(0); }

#content .right a.button { margin: 16px auto 0; font-size: 16px; padding: 14px 32px; }

a.button2, #content .right a.button1, #content .right2 a.button2 {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-family: var(--font); font-weight: 700; font-size: 14px;
  background: var(--green); border: none; border-radius: var(--radius-full);
  padding: 12px 28px; cursor: pointer; text-decoration: none;
  transition: all 0.25s var(--ease); box-shadow: var(--shadow-green);
  width: auto; height: auto; line-height: 1.4; float: none; margin-top: 12px;
}
a.button2:hover, #content .right a.button1:hover, #content .right2 a.button2:hover {
  background: var(--green-deep); transform: translateY(-2px);
  color: var(--surface); text-decoration: none;
}

.next_step {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-family: var(--font); font-weight: 700; font-size: 15px;
  background: var(--green); border: none; border-radius: var(--radius-full);
  padding: 13px 28px; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-green); transition: all 0.25s var(--ease);
  width: auto; height: auto; float: none; margin: 0;
}
.next_step:hover {
  background: var(--green-deep) !important; color: var(--surface) !important;
  text-decoration: none !important; transform: translateY(-2px);
}

.button-prev, .q-nav-prev {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-family: var(--font); font-weight: 600; font-size: 15px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-full); padding: 12px 28px;
  cursor: pointer; text-decoration: none; transition: all 0.2s var(--ease);
}
.button-prev:hover, .q-nav-prev:hover {
  color: var(--text-soft); border-color: var(--text-muted);
  text-decoration: none; transform: translateY(-1px);
}

.right2-bg {
  border: none; padding: 16px; float: right;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 12px 0; margin-left: auto;
}

/* Submit buttons */
.submit,
#header .center .signin input.submit,
.test .bx input.submit, .test .bx a.submit,
.regform input.submit {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--green); color: var(--surface);
  font-family: var(--font); font-weight: 700; font-size: 14px;
  padding: 11px 28px; border-radius: var(--radius-full);
  cursor: pointer; transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(92,184,92,0.2);
  width: auto; float: none; text-decoration: none; margin: 8px 0;
}
.submit:hover, .test .bx input.submit:hover, .regform input.submit:hover {
  background: var(--green-deep); transform: translateY(-1px);
}
.test .bx input.submit { margin: 12px 0 0; }
.test .bx a.submit { margin: 0 0 16px; display: inline-flex; float: none; }


/* ========== PROGRESS BAR ========== */
.progress-bar-wrap {
  width: 100%; height: 10px; background: var(--border);
  border-radius: var(--radius-full); margin-top: 16px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #7ED67E);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
  position: relative;
}
.progress-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2.5s ease infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}


/* ========== TEST HEADING ========== */
.test-heading {
  padding: 12px 0 0; margin: 0;
  text-align: center;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.test-heading em {
  font-style: normal;
}
.test-heading strong {
  font-weight: 600; color: var(--text-soft);
}

/* ========== TEST SECTION ========== */
.test {
  margin: auto; padding: 20px 0 32px; text-align: left;
}
.test.result-page { padding-left: 16px; padding-right: 16px; }
.test.otazky {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1;
  padding: 0 0 32px;
}
.test.otazky.container, .test.container, .test.restext.container {
  position: relative; z-index: 2;
}
.test h2 {
  padding: 0; color: var(--text); font-size: clamp(22px, 3vw, 28px);
  font-weight: 800; margin-bottom: 20px;
}
.test h3 { margin: 24px 20px; padding: 0; }
.test p { margin: 14px 20px; line-height: 1.8; color: var(--text-soft); }

.test-nav, .q-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border); width: 100%; clear: both;
}
.q-nav-next {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-family: var(--font); font-weight: 700; font-size: 16px;
  background: var(--green); border: none; border-radius: var(--radius-full);
  padding: 14px 36px; cursor: pointer;
  transition: all 0.25s var(--ease); box-shadow: var(--shadow-green);
}
.q-nav-next:hover { background: var(--green-deep); transform: translateY(-2px); }


/* ========== QUESTION PANELS ========== */
p.intro, .q-intro {
  margin: 0 0 28px; padding: 22px 28px;
  font-size: 14px; line-height: 1.75;
  background: var(--blue-pale); color: var(--text-soft);
  border-radius: var(--radius); border-left: 5px solid var(--blue);
  border: none; text-align: left;
  box-shadow: none;
  background: var(--blue-pale);
  border-left: 5px solid var(--blue);
}

h2.intro {
  margin: 0 0 28px; padding: 32px; text-align: center;
  background: linear-gradient(135deg, var(--blue-pale), var(--green-pale));
  border-radius: var(--radius-lg); color: var(--text); font-weight: 800;
  border: none;
}

.q-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.q-panel { flex: 1; min-width: 280px; }

.q-panel, .test .bx {
  border: none; padding: 0; float: none;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  margin-bottom: 24px; min-width: auto; max-width: none;
  transition: box-shadow 0.25s;
}
.test .bx:hover, .q-panel:hover { box-shadow: var(--shadow-lg); }
.test .nbx { margin-right: 0; float: none; }

.q-panel-head, .test .bx h3 {
  margin: 0; padding: 22px 28px 18px;
  font-size: 17px; font-weight: 700;
  color: var(--blue-dark); background: var(--surface);
  border-bottom: 2px solid var(--border-light);
}
.test .bx h3 { font-size: 18px; }
.test .bx p { margin: 0; font-size: 14px; }

/* Question items */
.q-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.q-item:last-child { border-bottom: none; }
.q-item:hover { background: #FAFBFD; }
.q-item.answered {
  background: var(--green-pale);
  border-left: 3px solid var(--green);
  padding-left: 25px;
}
.q-item.q-error {
  background: #FFF5F5;
  border-left: 3px solid var(--type-e);
  padding-left: 25px;
}

.q-text { flex: 1; font-size: 15px; line-height: 1.55; color: var(--text); }
.q-toggle { display: flex; gap: 10px; flex-shrink: 0; }

/* Toggle buttons - warm & friendly (legacy Ano/Ne) */
.q-radio {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.q-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 68px; height: 46px; padding: 0 22px;
  border: 2.5px solid var(--border);
  border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  color: var(--text-muted); background: var(--surface);
  transition: all 0.2s var(--bounce);
  user-select: none; letter-spacing: 0.02em;
}
.q-btn:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-pale);
}
.q-radio[value="1"]:checked + .q-yes {
  background: var(--green-light); border-color: var(--green);
  color: var(--green-dark); transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(92,184,92,0.2);
}
.q-radio[value="0"]:checked + .q-no {
  background: var(--bg); border-color: var(--text-muted);
  color: var(--text-soft); transform: scale(1.06);
}

/* ========== QUESTION CARDS (one-at-a-time) ========== */

/* Progress */
.qcard-progress {
  max-width: 480px; margin: 0 auto 8px; padding: 0 20px;
}
.qcard-counter {
  text-align: center; font-size: 14px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.qcard-counter span:first-child { color: var(--blue); font-size: 18px; }
.qcard-bar {
  height: 6px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden;
}
.qcard-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease);
}

/* Card stack */
.qcard-stack {
  position: relative; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  flex: 1; width: 100%;
}
.qcard {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  opacity: 0; transform: translateX(0) scale(0.96);
  pointer-events: none; visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
.qcard-active {
  opacity: 1; transform: translateX(0) scale(1);
  pointer-events: auto; visibility: visible;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0s;
}
.qcard-exit {
  opacity: 0; transform: translateX(-60px) scale(0.96);
  pointer-events: none; visibility: hidden;
}

/* Question number */
.qcard-number {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* Question text */
.qcard-text {
  font-size: clamp(20px, 3vw, 26px); font-weight: 700;
  color: var(--text); text-align: center;
  line-height: 1.4; margin: 0 0 32px;
  max-width: 560px;
}

/* Options row */
.qcard-options {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; max-width: 600px;
}

/* Each option button */
.qcard-opt {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px;
  min-width: 96px; cursor: pointer;
  border: 2.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  transition: all 0.2s var(--bounce);
  user-select: none;
}
.qcard-opt:hover {
  border-color: var(--blue); background: var(--blue-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.qcard-opt-num {
  font-size: 22px; font-weight: 800; color: var(--text-muted);
  transition: color 0.2s;
}
.qcard-opt-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: color 0.2s;
}
.qcard-opt:hover .qcard-opt-num { color: var(--blue); }
.qcard-opt:hover .qcard-opt-label { color: var(--blue-deep); }

/* Selected states */
.q-radio[value="1"]:checked + .qcard-opt {
  border-color: #E57373; background: #FDECEA;
  transform: translateY(-3px); box-shadow: 0 4px 16px rgba(229,115,115,0.25);
}
.q-radio[value="1"]:checked + .qcard-opt .qcard-opt-num { color: #C62828; }
.q-radio[value="1"]:checked + .qcard-opt .qcard-opt-label { color: #C62828; }

.q-radio[value="2"]:checked + .qcard-opt {
  border-color: #FFB74D; background: #FFF3E0;
  transform: translateY(-3px); box-shadow: 0 4px 16px rgba(255,183,77,0.25);
}
.q-radio[value="2"]:checked + .qcard-opt .qcard-opt-num { color: #E65100; }
.q-radio[value="2"]:checked + .qcard-opt .qcard-opt-label { color: #E65100; }

.q-radio[value="3"]:checked + .qcard-opt {
  border-color: var(--text-muted); background: var(--bg);
  transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.q-radio[value="3"]:checked + .qcard-opt .qcard-opt-num { color: var(--text-soft); }
.q-radio[value="3"]:checked + .qcard-opt .qcard-opt-label { color: var(--text-soft); }

.q-radio[value="4"]:checked + .qcard-opt {
  border-color: #81C784; background: #E8F5E9;
  transform: translateY(-3px); box-shadow: 0 4px 16px rgba(129,199,132,0.25);
}
.q-radio[value="4"]:checked + .qcard-opt .qcard-opt-num { color: #2E7D32; }
.q-radio[value="4"]:checked + .qcard-opt .qcard-opt-label { color: #2E7D32; }

.q-radio[value="5"]:checked + .qcard-opt {
  border-color: var(--green); background: var(--green-light);
  transform: translateY(-3px); box-shadow: 0 4px 16px rgba(92,184,92,0.3);
}
.q-radio[value="5"]:checked + .qcard-opt .qcard-opt-num { color: var(--green-dark); }
.q-radio[value="5"]:checked + .qcard-opt .qcard-opt-label { color: var(--green-dark); }

/* Keyboard hint */
.qcard-keys {
  margin-top: 28px; font-size: 13px;
  color: var(--text-muted); opacity: 0.6;
}
.qcard-keys kbd {
  display: inline-block; padding: 2px 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font);
  font-size: 12px; font-weight: 700;
}

/* MBTI scale options */
.mbti-radio { display: none; }
.qcard-dim-label {
  display: none;
}

/* Two pole statements */
/* 5-point agree/disagree scale */
.mbti-scale {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 6px; width: 100%; max-width: 480px;
}
.mbti-scale-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 8px 4px; flex: 1; max-width: 90px;
}
.mbti-scale-dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid var(--border); background: var(--surface);
  transition: all 0.2s var(--ease);
}
.mbti-scale-opt:hover .mbti-scale-dot {
  border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}
.mbti-scale-label {
  font-size: 11px; color: var(--text-muted); text-align: center;
  line-height: 1.3; font-weight: 500;
}

/* Scale dot sizes - outer poles are larger */
.mbti-scale-opt:nth-child(1) .mbti-scale-dot,
.mbti-scale-opt:nth-child(5) .mbti-scale-dot { width: 44px; height: 44px; }
.mbti-scale-opt:nth-child(3) .mbti-scale-dot { width: 32px; height: 32px; }

/* Selected states: disagree (red) → neutral (gray) → agree (green) */
.mbti-radio[value="1"]:checked + .mbti-scale-opt .mbti-scale-dot {
  background: #e74c3c; border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,0.2);
}
.mbti-radio[value="2"]:checked + .mbti-scale-opt .mbti-scale-dot {
  background: #f0967b; border-color: #e67e6a;
}
.mbti-radio[value="3"]:checked + .mbti-scale-opt .mbti-scale-dot {
  background: var(--text-muted); border-color: var(--text-muted);
}
.mbti-radio[value="4"]:checked + .mbti-scale-opt .mbti-scale-dot {
  background: #6bc785; border-color: #5ab876;
}
.mbti-radio[value="5"]:checked + .mbti-scale-opt .mbti-scale-dot {
  background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
}

.mbti-radio:checked + .mbti-scale-opt .mbti-scale-label { color: var(--text); font-weight: 700; }

@media (max-width: 640px) {
  .mbti-scale { gap: 4px; }
  .mbti-scale-dot { width: 36px; height: 36px; }
  .mbti-scale-opt:nth-child(1) .mbti-scale-dot,
  .mbti-scale-opt:nth-child(5) .mbti-scale-dot { width: 40px; height: 40px; }
  .mbti-scale-opt:nth-child(3) .mbti-scale-dot { width: 28px; height: 28px; }
  .mbti-scale-label { font-size: 10px; }
}

/* Final card */
.qcard-final .qcard-text { margin-bottom: 12px; }

/* Registration in final card (step 3) */
.qcard-reg {
  width: 100%; max-width: 420px; text-align: left;
}
.qcard-reg-info {
  margin-bottom: 16px;
}
.qcard-reg-info strong {
  font-size: 15px; color: var(--text);
}
.qcard-reg-info p {
  margin: 4px 0 0; font-size: 13px; color: var(--text-muted);
  line-height: 1.6;
}
.qcard-reg-fields {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
.qcard-reg-input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 15px; font-family: var(--font);
  background: var(--bg); outline: none; transition: all 0.15s;
}
.qcard-reg-input:focus {
  border-color: var(--blue); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.qcard-reg-actions {
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.qcard-skip {
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 12px 20px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.qcard-skip:hover { color: var(--text-soft); }
.qcard-reg-hint {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin: 0; padding: 0 4px;
}

@media (max-width: 575px) {
  .qcard-reg-actions { flex-direction: column; }
  .qcard-reg-actions .q-nav-next { width: 100%; }
}

.qcard-sub {
  font-size: 15px; color: var(--text-muted);
  margin: 0 0 28px; text-align: center;
}
.qcard-done-icon {
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.qcard-done-icon svg { width: 80px; height: 80px; }
.qcard-submit { font-size: 18px; padding: 16px 48px; }

/* Navigation below card */
.qcard-nav {
  display: flex; justify-content: center; gap: 16px;
  padding: 12px 0 8px;
}
.qcard-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 2px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 24px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.qcard-back:hover {
  border-color: var(--text-muted); color: var(--text-soft);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 575px) {
  .qcard-stack { min-height: 360px; }
  .qcard { padding: 24px 16px; }
  .qcard-options { gap: 8px; }
  .qcard-opt { min-width: 60px; padding: 12px 8px; }
  .qcard-opt-num { font-size: 18px; }
  .qcard-opt-label { font-size: 11px; }
  .qcard-keys { display: none; }
}

/* Legacy Likert (hide if unused) */
.q-likert { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.q-legend {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 16px 28px; padding: 20px 0 8px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}

/* ========== RESULTS PAGE ========== */

/* --- Hero --- */
.res-page-header {
  display: flex; align-items: baseline; justify-content: flex-start;
  padding: 24px 28px 16px; gap: 8px 16px; flex-wrap: wrap;
}
.res-page-header h1 {
  font-family: var(--font); font-size: 22px; font-weight: 800;
  color: var(--text); margin: 0;
}
.res-page-header-link-sec {
  margin-left: auto;
}
.res-new-test {
  font-size: 14px; font-weight: 600; color: var(--blue);
  text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.res-new-test:hover { color: var(--blue-deep); text-decoration: none; }

.res-hero {
  text-align: center; padding: 36px 24px 28px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-pale) 50%, #FFF5F0 100%);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.5s var(--ease) both;
}
.res-hero-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 20px;
}
.res-hero-code {
  display: flex; justify-content: center; gap: 14px; margin-bottom: 20px;
}
.res-hero-letter {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 24px 12px; border-radius: var(--radius-lg);
  color: var(--surface); min-width: 100px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeUp 0.5s var(--ease) both;
}
.res-hero-letter:nth-child(1) { animation-delay: 0.15s; }
.res-hero-letter:nth-child(2) { animation-delay: 0.25s; }
.res-hero-letter:nth-child(3) { animation-delay: 0.35s; }
.res-hero-char {
  font-size: 42px; font-weight: 900; line-height: 1;
}
.res-hero-name {
  font-size: 12px; font-weight: 600; opacity: 0.85;
  margin-top: 4px; white-space: nowrap;
}
.res-hero-sub {
  color: var(--text-soft); font-size: 15px; line-height: 1.7;
  margin: 0; text-align: center;
}
.res-hero-sub strong { color: var(--text); font-weight: 700; }

/* --- Overview (radar + bars) --- */
.res-overview {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-bottom: 32px;
  animation: fadeUp 0.5s 0.2s var(--ease) both;
}

/* Radar */
.res-radar {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px;
  display: flex; align-items: center; justify-content: center;
}
.radar-svg { width: 100%; max-width: 300px; overflow: visible; }
.radar-label { font-family: var(--font); }
.radar-dot { transform-origin: center; }

/* Score bars */
.res-bars {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px;
}
.res-bars h3 {
  margin: 0 0 20px; font-size: 18px; color: var(--text);
  padding: 0;
}
.res-bar-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.res-bar-row:last-child { border-bottom: none; }
.res-bar-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.res-bar-icon svg { width: 22px; height: 22px; }
.res-bar-info { flex: 1; }
.res-bar-head {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.res-bar-letter {
  font-size: 18px; font-weight: 900;
}
.res-bar-name {
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  flex: 1;
}
.res-bar-pct {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.res-bar-track {
  height: 8px; background: var(--border-light);
  border-radius: var(--radius-full); overflow: hidden;
}
.res-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  transition: width 0.8s var(--ease);
}

/* --- Top type card (free) --- */
.res-top-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.3s var(--ease) both;
}
.res-top-visual {
  position: relative; height: 200px; overflow: hidden;
}
.res-top-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.res-top-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 16px; border-radius: var(--radius-full);
  color: var(--surface); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.res-top-body {
  padding: 28px 32px;
}
.res-top-body h2 {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 16px; font-size: 24px;
}
.res-top-letter {
  font-size: 36px; font-weight: 900;
}
.res-top-pct {
  margin-left: auto; font-size: 20px; font-weight: 800;
  color: var(--text-muted);
}
.res-top-body p {
  color: var(--text-soft); line-height: 1.8;
  font-size: 15px; margin: 0;
}

/* --- Premium section --- */
.res-premium {
  animation: fadeUp 0.5s 0.35s var(--ease) both;
}
.res-section {
  padding: 32px 0; border-bottom: 1px solid var(--border-light);
}
.res-section:last-child { border-bottom: none; }
.res-section-head {
  text-align: center; margin-bottom: 32px;
}
.res-section-head h2 {
  margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px);
}
.res-section-head p {
  color: var(--text-muted); font-size: 15px;
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* Profile cards */
.res-profile {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  margin-bottom: 24px;
}
.res-profile-header {
  padding: 24px 28px; border-left: 5px solid;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.res-profile-rank {
  display: inline-block; padding: 4px 14px;
  border-radius: var(--radius-full); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; width: fit-content;
}
.res-rank-gold { background: #FFF3CD; color: #856404; }
.res-rank-silver { background: #E8ECF0; color: #4A5568; }
.res-rank-bronze { background: #FDEBD0; color: #7E5109; }

.res-profile-title {
  display: flex; align-items: center; gap: 14px;
}
.res-profile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--surface);
}
.res-profile-icon svg { width: 22px; height: 22px; }
.res-profile-title h3 {
  margin: 0; padding: 0; font-size: 20px;
}
.res-profile-score {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
}
.res-profile-bar {
  flex: 1; height: 6px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden; max-width: 180px;
}
.res-profile-bar div {
  height: 100%; border-radius: var(--radius-full);
}
.res-profile-score span {
  font-size: 15px; font-weight: 800; color: var(--text);
}
.res-profile-body {
  padding: 8px 0;
}
.res-profile-body .test.restext.container {
  box-shadow: none; border: none; padding: 0 28px 28px;
}
.res-profile-body h1 { display: none; } /* hide duplicate h1 from talk constants */

/* Collapsible secondary/tertiary profiles */
.res-profile-collapsible > summary {
  cursor: pointer; list-style: none; position: relative;
}
.res-profile-collapsible > summary::-webkit-details-marker { display: none; }
.res-profile-toggle {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s;
}
.res-profile-collapsible > summary:hover .res-profile-toggle { color: var(--text-soft); }
.res-profile-toggle svg {
  transition: transform 0.25s var(--ease);
}
.res-profile-collapsible[open] .res-profile-toggle svg {
  transform: rotate(180deg);
}
.res-profile-toggle-less { display: none; }
.res-profile-collapsible[open] .res-profile-toggle-more { display: none; }
.res-profile-collapsible[open] .res-profile-toggle-less { display: inline; }

/* Type interactions */
.res-interactions {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 32px;
  text-align: center; margin-bottom: 32px;
}
.res-interactions h3 {
  margin: 0 0 20px; padding: 0;
}
.res-interact-visual {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 20px;
}
.res-interact-dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 24px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.res-interact-line {
  width: 40px; height: 3px; background: var(--border);
}
.res-interactions p {
  color: var(--text-soft); font-size: 15px; line-height: 1.8;
  max-width: 520px; margin: 0 auto;
}

/* --- Strengths & Weaknesses --- */
.res-strengths {
  margin-bottom: 32px;
}
.res-sw-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.res-sw-col {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px;
}
.res-sw-col h4 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 0; font-size: 16px; font-weight: 700;
}
.res-sw-plus h4 { color: var(--green-deep); }
.res-sw-plus h4 svg { color: var(--green); }
.res-sw-minus h4 { color: var(--text-soft); }
.res-sw-minus h4 svg { color: var(--text-muted); }
.res-sw-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.res-sw-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--tc) 8%, var(--surface));
  color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--tc) 20%, transparent);
}
.res-sw-tag-type {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.res-sw-tag-weak {
  --tc: var(--text-muted);
  background: var(--bg); color: var(--text-soft);
  border-color: var(--border);
}

/* --- Work Environment --- */
.res-environment {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 32px;
  margin-bottom: 32px;
}
.res-environment .res-section-head {
  margin-bottom: 28px;
}
.res-env-scales {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 500px; margin: 0 auto 28px;
}
.res-env-scale { }
.res-env-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.res-env-track {
  height: 8px; background: var(--border-light);
  border-radius: var(--radius-full); position: relative;
  background: linear-gradient(90deg, var(--blue-light), var(--border-light), var(--green-light));
}
.res-env-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.res-env-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.res-env-tag {
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  background: var(--bg); border: 1.5px solid var(--border);
}

/* --- Type Compatibility --- */
.res-compat {
  margin-bottom: 32px;
}
.res-compat-hex {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.res-compat-type {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 8px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); text-align: center;
  transition: box-shadow 0.2s;
}
.res-compat-type:hover { box-shadow: var(--shadow-md); }
.res-compat-own {
  box-shadow: var(--shadow-md);
  background: color-mix(in srgb, var(--tc) 4%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--tc) 20%, transparent);
}
.res-compat-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 20px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.res-compat-name {
  font-size: 12px; font-weight: 600; color: var(--text);
}
.res-compat-level {
  font-size: 11px; font-weight: 700;
}
.res-compat-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; background: #FFF8F0;
  border-radius: var(--radius); border-left: 4px solid #D4705A;
}
.res-compat-note svg { flex-shrink: 0; color: #D4705A; margin-top: 2px; }
.res-compat-note p {
  margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-soft);
}

/* --- Careers section --- */
.res-careers {
  margin-top: 8px;
}

/* Featured top 3 */
.career-featured {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.career-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px 20px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.career-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.career-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.career-gold::before { background: linear-gradient(90deg, #F6D365, #FDA085); }
.career-silver::before { background: linear-gradient(90deg, #A8C0CE, #CBD5E1); }
.career-bronze::before { background: linear-gradient(90deg, #DABB9A, #C4956A); }

.career-card-rank {
  font-size: 12px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.career-gold .career-card-rank { color: #B8860B; }
.career-silver .career-card-rank { color: #6B7B8D; }
.career-bronze .career-card-rank { color: #A0734A; }

.career-card-name {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 16px; line-height: 1.3;
}
.career-card-match {
  position: relative; width: 80px; height: 80px;
  margin: 0 auto 14px;
}
.career-ring { width: 80px; height: 80px; }
.career-ring-fill {
  transition: stroke-dasharray 1s var(--ease);
}
.career-card-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: var(--text);
}
.career-card-types {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 8px;
}
.career-type-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 12px; font-weight: 800;
}
.career-type-sec { opacity: 0.6; }
.career-card-cat {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}

/* Career list */
.career-list {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.career-list-head {
  display: grid; grid-template-columns: 1fr 80px 140px;
  gap: 12px; padding: 14px 24px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.career-row {
  display: grid; grid-template-columns: 1fr 80px 140px;
  gap: 12px; padding: 14px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.career-row:hover { background: var(--bg); }
.career-row:last-of-type { border-bottom: none; }
.career-row-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text);
  flex-wrap: wrap;
}
.career-row-rank {
  font-size: 13px; color: var(--text-muted); font-weight: 700;
  min-width: 24px;
}
.career-row-cat {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  display: none;
}
.career-row-types {
  display: flex; gap: 4px;
}
.career-type-sm {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 11px; font-weight: 800;
}
.career-row-match {
  display: flex; align-items: center; gap: 10px;
}
.career-row-bar {
  flex: 1; height: 6px; background: var(--border-light);
  border-radius: var(--radius-full); overflow: hidden;
}
.career-row-bar div {
  height: 100%; border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}
.career-row-pct {
  font-size: 14px; font-weight: 800; color: var(--text);
  min-width: 36px; text-align: right;
}
.career-show-more {
  display: block; width: 100%; padding: 16px;
  background: var(--bg); border: none; border-top: 1px solid var(--border-light);
  color: var(--blue); font-family: var(--font);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.career-show-more:hover { background: var(--blue-pale); }

@media (max-width: 767px) {
  .career-featured { grid-template-columns: 1fr; }
  .career-card { padding: 20px 16px; }
  .career-list-head { display: none; }
  .career-row {
    grid-template-columns: 1fr 60px 100px;
    padding: 12px 16px; gap: 8px;
  }
  .career-row-name { font-size: 14px; }
  .career-row-cat { display: inline; }
  .career-row-pct { font-size: 13px; }
}
@media (max-width: 575px) {
  .career-row { grid-template-columns: 1fr 50px 80px; }
  .career-row-bar { display: none; }
}

/* --- Locked sections (free users) --- */
.locked-section {
  margin-bottom: 16px;
}
.locked-section .res-section-head {
  position: relative; z-index: 5;
}
.locked-section-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.locked-section .locked-blur {
  filter: blur(6px); pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  opacity: 0.7;
}
.locked-section-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.locked-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: var(--green); color: var(--surface);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(92,184,92,0.35);
  transition: all 0.25s var(--ease);
}
.locked-cta:hover {
  background: var(--green-deep); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92,184,92,0.4);
  color: var(--surface); text-decoration: none;
}
.locked-cta svg { flex-shrink: 0; }

/* ===== Demo mode: sample results for unpaid users ===== */

/* Banner above demo content */
.res-demo-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FEF9E7 0%, #FFF7CC 100%);
  border: 1px solid #F0D56E;
  animation: fadeUp 0.4s var(--ease) both;
}
.res-demo-banner-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #FDE68A; color: #92400E; flex-shrink: 0;
}
.res-demo-banner-icon svg { width: 20px; height: 20px; }
.res-demo-banner-text {
  flex: 1;
}
.res-demo-banner-text strong {
  display: block; font-size: 15px; font-weight: 700; color: #92400E;
  margin-bottom: 2px;
}
.res-demo-banner-text p {
  font-size: 13.5px; line-height: 1.55; color: #A16207; margin: 0;
}
.res-demo-banner-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  background: var(--green); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(92,184,92,0.3);
}
.res-demo-banner-btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.res-demo-banner-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Demo content wrapper — watermark overlay */
.res-demo-content {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.res-demo-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: var(--wm-bg);
  background-repeat: repeat;
}

/* Sticky overlay popup on demo results (used by other test results) */
.res-demo-overlay {
  position: sticky; top: 50vh; transform: translateY(-50%);
  z-index: 50; display: flex; justify-content: center;
  pointer-events: none; margin-bottom: -120px;
  animation: demoOverlayIn 0.6s ease-out both;
}
.res-demo-overlay-inner {
  pointer-events: auto;
  text-align: center; padding: 40px 36px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border-radius: 20px;
  border: 2px solid var(--blue);
  box-shadow: 0 16px 56px rgba(0,0,0,0.22), 0 0 0 6px rgba(74,144,217,0.12);
  max-width: 440px; width: 100%;
}
.res-demo-overlay-inner svg { width: 36px; height: 36px; margin-bottom: 14px; color: var(--green); }
.res-demo-overlay-inner h3 { margin: 0 0 8px; font-size: 20px; }
.res-demo-overlay-inner p { margin: 0 0 20px; color: #666; font-size: 14px; line-height: 1.5; }
.res-demo-hook { font-size: 17px; color: var(--text); line-height: 1.6; margin: 0 0 24px; font-weight: 600; }
.res-demo-overlay-inner .mt-btn {
  background: var(--green); color: #fff; border: none;
  padding: 16px 40px; font-size: 17px; font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(92,184,92,0.4);
  animation: demoBtnPulse 2.5s ease-in-out 1s infinite;
}
@media (max-width: 480px) {
  .res-demo-overlay-inner { padding: 28px 20px; max-width: 92vw; }
  .res-demo-overlay-inner .mt-btn { padding: 14px 24px; font-size: 15px; }
}
.res-demo-overlay-inner .mt-btn:hover { background: var(--green-deep); transform: translateY(-2px); }
.res-demo-overlay-sub { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); font-style: italic; }
@keyframes demoOverlayIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.95); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes demoBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92,184,92,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(92,184,92,0); }
}

/* Sticky unlock bar at bottom */
.res-unlock-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.res-unlock-bar.visible { transform: translateY(0); }
.res-unlock-bar-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.res-unlock-bar-text {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.res-unlock-bar-text svg { color: var(--green); flex-shrink: 0; width: 18px; height: 18px; }
.res-unlock-bar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: var(--radius-full);
  background: var(--green); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  box-shadow: 0 4px 16px rgba(92,184,92,0.3);
}
.res-unlock-bar-btn:hover { background: var(--green-deep); color: #fff; }
.res-unlock-bar-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 575px) {
  .res-demo-banner { flex-direction: column; text-align: center; gap: 12px; }
  .res-demo-banner-btn { width: 100%; justify-content: center; }
  .res-demo-content { padding: 16px; }
  .res-unlock-bar-text { display: none; }
  .res-unlock-bar-inner { justify-content: center; }
  .res-unlock-bar-btn { width: 100%; justify-content: center; }
}

/* Final big CTA at bottom */
.locked-final-cta {
  text-align: center;
  padding: 48px 20px 56px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.locked-final-cta h3 {
  font-family: var(--font); font-size: 24px; font-weight: 800;
  color: var(--text); margin: 0 0 10px;
}
.locked-final-cta p {
  font-size: 15px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 24px; line-height: 1.6;
}
.locked-cta-big {
  padding: 18px 40px; font-size: 17px;
  box-shadow: 0 6px 28px rgba(92,184,92,0.4);
}
.locked-cta-big:hover {
  box-shadow: 0 10px 36px rgba(92,184,92,0.45);
  transform: translateY(-3px);
}

@media (max-width: 575px) {
  .locked-cta { font-size: 14px; padding: 12px 24px; }
  .locked-cta-big { font-size: 15px; padding: 14px 28px; }
  .locked-final-cta h3 { font-size: 20px; }
  .locked-final-cta { padding: 36px 16px 44px; }
}

/* Upsell preview items */
.upsell-preview {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.upsell-preview-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--bg);
  border-radius: var(--radius-full); font-size: 14px;
  font-weight: 600; color: var(--text-soft);
}
.upsell-preview-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: 14px; font-weight: 800;
}
.upsell-preview-lock { opacity: 0.4; display: flex; }

/* Legacy compat */
.result-bar {
  height: 6px; background: var(--border-light); margin: 0 18px 16px;
  border-radius: var(--radius-full); overflow: hidden;
}
.result-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}
.result-rank-badge {
  display: inline-block; padding: 8px 20px; margin: 24px 0 8px;
  background: var(--blue-pale); color: var(--blue-dark);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
}

/* Responsive results */
@media (max-width: 767px) {
  .res-overview { grid-template-columns: 1fr; }
  .res-hero-code { gap: 10px; }
  .res-hero-letter { min-width: 80px; padding: 12px 16px 10px; }
  .res-hero-char { font-size: 34px; }
  .res-top-body h2 { font-size: 20px; }
  .res-top-letter { font-size: 28px; }
  .res-profile-header { padding: 20px; }
  .res-profile-body .test.restext.container { padding: 0 20px; }
  .res-interact-dot { width: 42px; height: 42px; font-size: 20px; }
  .res-interact-line { width: 24px; }
  .res-sw-grid { grid-template-columns: 1fr; }
  .res-compat-hex { grid-template-columns: repeat(3, 1fr); }
  .res-env-scales { max-width: 100%; }
  .res-profile-toggle { right: 20px; }
}
@media (max-width: 575px) {
  .res-hero { padding: 24px 16px 20px; }
  .res-hero-letter { min-width: 70px; padding: 10px 12px 8px; }
  .res-hero-char { font-size: 28px; }
  .res-hero-name { font-size: 11px; }
  .res-top-visual { height: 160px; }
  .res-top-body { padding: 20px; }
  .upsell-preview { flex-direction: column; align-items: center; }
  .res-compat-hex { grid-template-columns: repeat(2, 1fr); }
  .res-compat-type { padding: 14px 6px; }
  .res-compat-dot { width: 36px; height: 36px; font-size: 16px; }
  .res-sw-col { padding: 20px; }
  .res-environment { padding: 24px 20px; }
}
.q-item.q-error .q-btn { border-color: var(--type-e); }

/* Legacy radio compat */
.otazky .bx p { margin-top: 0; margin-bottom: 0; padding: 12px 0; float: left; }
.otazky .bx p.pright { float: right; display: flex; align-items: center; gap: 8px; }
.otazky .bx p.pright label { margin-right: 0 !important; }
.otazky form { width: 100%; }
.test .bx input.radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; margin: 0; border: 0; padding: 0; background: none; top: auto; }
.otazky .pright label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; padding: 8px 18px; border: 2.5px solid var(--border);
  border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--text-muted); background: var(--surface);
  transition: all 0.2s var(--bounce); user-select: none;
}
.otazky .pright label:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.otazky .radio[value="1"]:checked + label {
  background: var(--green-light); border-color: var(--green);
  color: var(--green-dark); transform: scale(1.06);
}
.otazky .radio[value="0"]:checked + label {
  background: var(--bg); border-color: var(--text-muted);
  color: var(--text-soft); transform: scale(1.06);
}


/* ========== REGISTRATION ========== */
.reg-card, .regform {
  max-width: 440px; margin: 0 auto; padding: 36px;
  border: none; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.reg-field { margin-bottom: 20px; }
.reg-field label, .regform th {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
  text-align: left; padding: 0;
}
.reg-field input, .regform input[type=text], .regform input[type=password] {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 15px; background: var(--bg);
  transition: all 0.15s; outline: none;
}
.reg-field input:focus, .regform input:focus {
  border-color: var(--blue); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.regform td { padding: 8px 0; }


/* ========== RESULTS ========== */
.test .imgbox {
  border: none; padding: 0; background: transparent;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sm130px {
  max-width: none; width: 100%; margin: 0;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; padding: 0;
  transition: all 0.3s var(--ease);
  border-top: 5px solid var(--text-muted);
}
.sm130px:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.sm130px img {
  width: 100% !important; height: auto !important;
  aspect-ratio: 4/3; object-fit: cover;
  margin: 0 !important; float: none !important;
  border-radius: 0 !important; background: var(--bg);
}

.test .imgbox h3 {
  display: block; width: auto; margin: 0; padding: 16px 18px;
  font-size: 13px; float: none; line-height: 1.4;
  font-family: var(--font); text-align: center;
}
.test .imgbox h3 strong {
  display: block; font-weight: 800; font-size: 20px;
}

/* Type colors */
.sm130px:has(img[alt="R"]) { border-top-color: var(--type-r); }
.sm130px:has(img[alt="I"]) { border-top-color: var(--type-i); }
.sm130px:has(img[alt="A"]) { border-top-color: var(--type-a); }
.sm130px:has(img[alt="S"]) { border-top-color: var(--type-s); }
.sm130px:has(img[alt="E"]) { border-top-color: var(--type-e); }
.sm130px:has(img[alt="C"]) { border-top-color: var(--type-c); }
.sm130px:has(img[alt="R"]) h3 strong:first-child { color: var(--type-r); }
.sm130px:has(img[alt="I"]) h3 strong:first-child { color: var(--type-i); }
.sm130px:has(img[alt="A"]) h3 strong:first-child { color: var(--type-a); }
.sm130px:has(img[alt="S"]) h3 strong:first-child { color: var(--type-s); }
.sm130px:has(img[alt="E"]) h3 strong:first-child { color: var(--type-e); }
.sm130px:has(img[alt="C"]) h3 strong:first-child { color: var(--type-c); }

/* Result text */
.restext { line-height: 1.8; }
.restext h1 { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border-light); }
.restext h2 { margin-top: 36px; margin-bottom: 14px; }
.restext h3 { margin-top: 28px; margin-bottom: 8px; font-size: 16px; color: var(--blue-deep); }
.restext ul { padding-left: 0; }
.restext ul li {
  margin-left: 0; list-style: none; line-height: 1.8;
  padding: 6px 0 6px 28px; position: relative;
}
.restext ul li::before {
  content: ''; position: absolute; left: 6px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.restext ul li strong { color: var(--text); font-weight: 700; }

.test.restext h4 { margin-left: 0; margin-top: 28px; margin-bottom: 10px; }
.test.restext p { margin-left: 0; margin-right: 0; }


/* ========== PAYMENT ========== */
.sms {
  text-align: center; border: 2px solid #F0C040;
  border-radius: var(--radius-lg); padding: 28px;
  background: #FFFBEB; font-size: 14px; margin: 20px 0;
}
.sms h2 { color: var(--text); font-size: 28px; margin: 10px 0; }
p.kod { text-align: center; margin: 20px 0; }
p.kod label { font-weight: 600; margin-right: 10px; }
p.kod input[type="text"] {
  padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 12px; margin-right: 8px; outline: none;
}
p.kod input[type="text"]:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
form.paypal { padding: 24px; border: 2px solid var(--blue); border-radius: var(--radius-lg); background: var(--blue-pale); }
#paypal-button-container { border: 2px solid var(--blue); border-radius: var(--radius-lg); padding: 28px 20px; background: var(--blue-pale); }

.test .bx ul { padding: 0; }
.test .bx ul li {
  padding: 8px 0 8px 28px; position: relative;
  line-height: 1.7; font-size: 14px; color: var(--text-soft); list-style: none;
}
.test .bx ul li::before {
  content: '\2713'; position: absolute; left: 2px;
  color: var(--green); font-weight: 800; font-size: 15px;
}
.test .bx h2 { font-size: 18px; margin-top: 24px; margin-bottom: 14px; }


/* ========== MISC ========== */
.clanek img { float: left; margin: 0 24px 20px 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.imgbox p { margin: 8px 0; }
.paging { text-align: center; margin: 28px 0; }
.paging ul li { display: inline-block; margin: 0 3px; }
.paging ul li a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 4px 12px;
  border-radius: 12px; border: 2px solid var(--border);
  color: var(--text-soft); font-size: 14px; font-weight: 600;
  transition: all 0.15s;
}
.paging ul li a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); text-decoration: none; }
.paging ul li.active a { background: var(--blue); color: var(--surface); border-color: var(--blue); }

.test a.more { font-size: 13px; color: var(--blue); font-weight: 600; padding: 4px 0; margin: 0 0 8px; float: none; top: auto; }
.test a.more:hover { color: var(--blue-deep); border: none; background: none; text-decoration: underline; }

h1.vyberpohlavi { text-align: center; text-transform: uppercase; font-size: 13px; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; }
.muz, .zena {
  width: 240px; height: 280px; border: 2px solid var(--border);
  border-radius: var(--radius-lg); background-size: contain;
  background-repeat: no-repeat; background-position: center;
  transition: all 0.3s var(--ease); box-shadow: var(--shadow-sm);
}
.muz { float: left; margin: 40px 0 30px 60px; background-image: url(/img/muz.png); }
.muz:hover { background-image: url(/img/muz2.png); border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.zena { float: right; margin: 40px 60px 30px 0; background-image: url(/img/zena.png); }
.zena:hover { background-image: url(/img/zena2.png); border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.fb { background: var(--bg); padding: 20px; margin: 24px auto; border-radius: var(--radius); }

.test table { border-collapse: collapse; }
.test table td, .test table th { padding: 8px; vertical-align: middle; }
.test table input[type="text"], .test table input[type="password"] {
  padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px;
  font-size: 14px; background: var(--bg); outline: none; transition: all 0.15s; width: 240px;
}
.test table input:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px rgba(74,144,217,0.1); }


/* ========== SHARE SECTION ========== */
.share-section {
  padding: 32px 0; text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: 32px;
}
.share-section h3 { font-size: 18px; margin: 0 0 6px; }
.share-preview {
  margin: 16px auto 20px; max-width: 520px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.share-preview img { width: 100%; height: auto; display: block; }
.share-text {
  font-size: 14px; color: var(--text-muted); font-style: italic; margin: 0 0 20px;
}
.share-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.15s;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-btn-twitter { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn-twitter:hover { background: #1DA1F210; }
.share-btn-facebook { border-color: #1877F2; color: #1877F2; }
.share-btn-facebook:hover { background: #1877F210; }
.share-btn-copied { border-color: var(--green) !important; color: var(--green) !important; }
.res-disclaimer { text-align: center; font-size: 12px; color: var(--text-muted); margin: 24px 0 0; opacity: 0.7; }

/* ========== CROSS-TEST PROFILE ========== */
.cross-profile { margin-bottom: 32px; }
.cross-insights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.cross-insight-card {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 20px; border-left: 4px solid var(--blue);
}
.cross-insight-card h4 { margin: 0 0 6px; font-size: 15px; }
.cross-insight-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cross-tests-visual {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 24px; padding: 24px 0;
}
.cross-test-badge {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff;
  transition: transform 0.15s;
}
.cross-test-badge:hover { transform: scale(1.1); }
.cross-test-badge-done { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.cross-test-badge-empty {
  background: transparent !important; color: var(--text-muted) !important;
  border: 2px dashed var(--border); opacity: 0.5;
}
.cross-test-line {
  width: 24px; height: 2px; background: var(--border-light);
}
.cross-next {
  background: var(--blue-pale); border: 1px solid var(--blue-light); border-radius: 12px;
  padding: 20px; text-align: center;
}
.cross-next p { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }
.cross-next a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: var(--blue); color: #fff; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.15s;
}
.cross-next a:hover { background: var(--blue-deep); }
.cross-complete {
  text-align: center; padding: 20px; color: var(--green); font-weight: 600; font-size: 15px;
}

@media (max-width: 640px) {
  .cross-insights { grid-template-columns: 1fr; }
  .cross-test-badge { width: 40px; height: 40px; font-size: 10px; }
  .cross-test-line { width: 12px; }
  .share-buttons { flex-direction: column; align-items: stretch; }
  .share-btn { justify-content: center; }
}

/* ========== EVAL LOADING ========== */
.eval-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.eval-loading p {
  margin-top: 20px; font-size: 18px; font-weight: 600; color: var(--text);
}
.eval-spinner {
  width: 48px; height: 48px; border: 4px solid var(--border-light);
  border-top-color: var(--blue); border-radius: 50%;
  animation: eval-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes eval-spin { to { transform: rotate(360deg); } }

/* Evaluation survey questions */
.eval-wrap {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.eval-inner {
  text-align: center; max-width: 480px; padding: 40px 20px; width: 100%;
}
.eval-phase {
  display: none;
}
.eval-phase.active {
  display: block;
  animation: evalFadeIn 0.4s var(--ease) both;
}
@keyframes evalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eval-title {
  margin: 24px 0 8px; font-size: 22px; font-weight: 800; color: var(--text);
}
.eval-desc {
  color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 24px;
}
.eval-progress {
  width: 100%; height: 6px; background: var(--border); border-radius: 3px;
  overflow: hidden; margin-bottom: 32px;
}
.eval-bar {
  width: 0%; height: 100%; background: var(--green); border-radius: 3px;
  transition: width 0.3s ease;
}
.eval-question {
  margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--text);
}
.eval-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 20px;
}
.eval-pill {
  padding: 12px 22px; border: 2px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: all 0.15s;
}
.eval-pill:hover {
  border-color: var(--green); color: var(--green); background: var(--green-pale);
}
.eval-pill:active {
  background: var(--green); color: #fff; border-color: var(--green);
  transform: scale(0.96);
}
@media (max-width: 480px) {
  .eval-pill { padding: 10px 16px; font-size: 14px; }
  .eval-question { font-size: 16px; }
}

/* ========== FOOTER ========== */
#footer {
  border-top: 1px solid var(--border); font-size: 13px;
  padding: 32px 24px; color: var(--text-muted); background: var(--surface);
  margin: 0; max-width: 100%;
}
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 500; transition: color 0.15s; }
.footer-links a:hover { color: var(--blue); }
#footer p.links { margin: 10px 0 0; padding: 0; }
#footer p.links a { color: var(--text-muted); }
#footer p.links a:hover { color: var(--blue); }


/* ========== UPSELL / PAYWALL ========== */

.upsell-wrap {
  margin: 36px 0; animation: fadeUp 0.5s 0.3s var(--ease) both;
}
.upsell-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px 40px;
  text-align: center; border: 2px solid var(--border);
  position: relative; overflow: hidden;
}
.upsell-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--type-r), var(--type-i), var(--type-a), var(--type-s), var(--type-e), var(--type-c));
}
.upsell-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); color: var(--green-deep);
  margin-bottom: 20px;
}
.upsell-icon svg { width: 32px; height: 32px; }
.upsell-card h2 {
  margin: 0 0 10px; color: var(--text);
  font-size: clamp(22px, 3vw, 28px);
}
.upsell-sub {
  color: var(--text-muted); font-size: 15px;
  max-width: 480px; margin: 0 auto 28px; line-height: 1.7;
}
.upsell-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 24px; text-align: left; padding: 0;
  max-width: 560px; margin: 0 auto 32px;
}
.upsell-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55; color: var(--text-soft);
  list-style: none;
}
.upsell-features li svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--green); margin-top: 1px;
}
.upsell-features li strong {
  color: var(--text); font-weight: 700;
}

/* Payment methods */
.upsell-payment {
  text-align: left; max-width: 520px; margin: 0 auto;
}
.upsell-method {
  padding: 24px; background: var(--bg);
  border-radius: var(--radius); margin-bottom: 0;
}
.upsell-method h4 {
  margin: 0 0 10px; font-size: 16px;
  color: var(--blue-deep); font-style: normal;
}
.upsell-method p { margin: 8px 0; font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.upsell-divider {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; color: var(--text-muted);
  font-size: 13px; font-weight: 600;
}
.upsell-divider::before,
.upsell-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.upsell-code-row {
  display: flex; gap: 10px; margin-top: 12px;
}
.upsell-code-row input[type="text"] {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 15px; background: var(--surface);
  outline: none; transition: all 0.15s;
}
.upsell-code-row input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.upsell-err {
  color: #C62828; background: #FDECEA;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; margin: 8px 0;
}

@media (max-width: 767px) {
  .upsell-card { padding: 32px 20px; }
  .upsell-features { grid-template-columns: 1fr; }
  .upsell-code-row { flex-direction: column; }
}

/* ========== TEST INFO PRELANDER ========== */
.ti-hero {
  background: linear-gradient(160deg, #F0F4F8 0%, #E8F0F8 40%, var(--green-pale) 100%);
  padding: 64px 20px 52px; text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative; overflow: hidden;
}
.ti-hero-inner { max-width: 700px; position: relative; z-index: 2; }
.ti-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--green-light); color: var(--green-deep);
  padding: 5px 14px; border-radius: var(--radius-full);
  margin-bottom: 18px;
  animation: fadeUp 0.4s var(--ease) both;
}
.ti-hero h1 {
  font-size: 36px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); margin: 0 0 16px; line-height: 1.2;
  animation: fadeUp 0.4s 0.04s var(--ease) both;
}
.ti-hero-sub {
  font-size: 17px; line-height: 1.7; color: var(--text-soft);
  margin: 0 auto 24px; max-width: 580px;
  animation: fadeUp 0.4s 0.08s var(--ease) both;
}
.ti-hero-meta {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
  animation: fadeUp 0.4s 0.12s var(--ease) both;
}
.ti-hero-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.ti-hero .home-cta {
  animation: fadeUp 0.4s 0.16s var(--ease) both;
  margin-bottom: 20px;
}
.ti-rating {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  animation: fadeUp 0.4s 0.2s var(--ease) both;
}
.ti-stars { display: flex; gap: 2px; }
.ti-rating span { font-size: 14px; font-weight: 700; color: var(--text); }
.ti-rating-count { font-weight: 500 !important; color: var(--text-muted) !important; }

/* Sections */
.ti-section { padding: 52px 20px; max-width: 860px; }
.ti-how-bg {
  max-width: 100%; background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.ti-how-bg .container { max-width: 860px; }
.ti-pricing-bg {
  max-width: 100%; background: linear-gradient(180deg, var(--bg) 0%, var(--blue-pale) 100%);
  border-top: 1px solid var(--border-light);
}
.ti-pricing-bg .container { max-width: 860px; }

/* Benefits */
.ti-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ti-benefit {
  text-align: center; padding: 28px 20px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.ti-benefit-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc); display: flex; align-items: center; justify-content: center;
}
.ti-benefit h3 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 8px;
}
.ti-benefit p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-soft); margin: 0;
}

/* Steps */
.ti-steps { display: flex; gap: 20px; justify-content: center; }
.ti-step {
  flex: 1; text-align: center; padding: 24px 16px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.ti-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  font-size: 17px; display: inline-flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.ti-step h4 {
  font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 8px;
}
.ti-step p {
  font-size: 13px; line-height: 1.65; color: var(--text-soft); margin: 0;
}

/* RIASEC types */
.ti-types {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ti-type {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.ti-type:hover { border-color: var(--tc); box-shadow: var(--shadow-sm); }
.ti-type-letter {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--tc) 12%, var(--bg));
  color: var(--tc); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ti-type strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.ti-type span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Pricing */
.ti-pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ti-plan {
  background: var(--surface); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ti-plan-header {
  padding: 24px 24px 20px; text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.ti-plan-header h3 {
  font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 6px;
}
.ti-plan-price {
  display: block; font-size: 28px; font-weight: 900; color: var(--blue);
  letter-spacing: -0.02em;
}
.ti-plan-note {
  display: block; font-size: 12px; color: var(--text-muted);
  margin-top: 4px; font-weight: 500;
}
.ti-plan ul { list-style: none; padding: 20px 24px; margin: 0; }
.ti-plan li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text-soft);
}
.ti-plan li svg { flex-shrink: 0; }
.ti-plan-pro {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(92,184,92,0.15);
}
.ti-plan-pro .ti-plan-header {
  background: var(--green-light);
  border-bottom-color: color-mix(in srgb, var(--green) 20%, var(--border-light));
}
.ti-plan-pro .ti-plan-price { color: var(--green-deep); }

/* SEO content */
.ti-seo { border-top: 1px solid var(--border-light); }
.ti-seo-content { max-width: 720px; margin: 0 auto; }
.ti-seo-content p {
  font-size: 15px; line-height: 1.8; color: var(--text-soft);
  margin: 0 0 16px;
}
.ti-seo-content p:last-child { margin-bottom: 0; }

/* FAQ */
.ti-faq { max-width: 680px; margin: 0 auto; }
.ti-faq-item {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
  transition: border-color 0.2s;
}
.ti-faq-item[open] { border-color: var(--border); }
.ti-faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600;
  color: var(--text); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s;
}
.ti-faq-item summary:hover { background: var(--bg); }
.ti-faq-item summary::-webkit-details-marker { display: none; }
.ti-faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--text-muted);
  transition: transform 0.2s;
}
.ti-faq-item[open] summary::after { content: '−'; }
.ti-faq-item p {
  padding: 0 20px 18px; margin: 0;
  font-size: 14px; line-height: 1.7; color: var(--text-soft);
}

/* Final CTA */
.ti-final-cta {
  text-align: center; padding: 56px 20px 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--green-pale) 100%);
  border-top: 1px solid var(--border-light);
}
.ti-final-cta h2 {
  font-size: 26px; font-weight: 800; color: var(--text);
  margin: 0 0 10px; letter-spacing: -0.02em;
}
.ti-final-cta p {
  font-size: 16px; color: var(--text-soft); margin: 0 0 24px;
}

/* Test info responsive */
@media (max-width: 767px) {
  .ti-hero h1 { font-size: 28px; }
  .ti-hero-meta { gap: 16px; }
  .ti-benefits { grid-template-columns: 1fr; gap: 16px; }
  .ti-steps { flex-direction: column; gap: 16px; }
  .ti-step { max-width: 100%; }
  .ti-types { grid-template-columns: 1fr 1fr; }
  .ti-pricing { grid-template-columns: 1fr; }
  .ti-final-cta h2 { font-size: 22px; }
}
@media (max-width: 440px) {
  .ti-hero h1 { font-size: 24px; }
  .ti-types { grid-template-columns: 1fr; }
  .ti-hero-meta { flex-direction: column; gap: 8px; }
}

/* ========== MBTI TYPE GROUPS ========== */
.mbti-groups {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto;
}
.mbti-group h4 {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px;
}
.mbti-group-types {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mbti-type-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 12px 14px; text-align: center; transition: border-color 0.2s, box-shadow 0.2s;
}
.mbti-type-card:hover { border-color: var(--tc); box-shadow: var(--shadow-sm); }
.mbti-type-card strong {
  display: block; font-size: 16px; font-weight: 800; color: var(--tc); letter-spacing: 0.04em;
}
.mbti-type-card span {
  display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
@media (max-width: 640px) {
  .mbti-groups { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .mbti-group-types { grid-template-columns: 1fr 1fr; }
}

/* ========== MBTI RESULT PAGE ========== */
.mbti-hero-code {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 16px;
}
.mbti-hero-letter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 80px; height: 90px; border-radius: 14px; color: #fff;
}
.mbti-hero-char { font-size: 32px; font-weight: 900; line-height: 1; }
.mbti-hero-name { font-size: 11px; font-weight: 600; opacity: 0.85; margin-top: 4px; }
.mbti-hero-temp {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  padding: 3px 12px; border-radius: var(--radius-full); margin-left: 8px;
}
.mbti-hero-desc {
  margin: 12px auto 0; font-size: 15px; line-height: 1.6;
  color: var(--text-soft); text-align: center;
}

/* Dimension bars */
.mbti-dims {
  max-width: 600px; margin: 0 auto 40px; padding: 28px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
}
.mbti-dims h3 { font-size: 16px; font-weight: 700; margin: 0 0 20px; }
.mbti-dim-row { margin-bottom: 20px; }
.mbti-dim-row:last-child { margin-bottom: 0; }
.mbti-dim-labels {
  display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: var(--text-muted);
}
.mbti-dim-pole { display: flex; align-items: center; gap: 4px; }
.mbti-dim-pole strong { font-weight: 800; }
.mbti-dim-active { color: var(--text); font-weight: 600; }
.mbti-dim-pct { font-weight: 700; font-size: 13px; }
.mbti-dim-track {
  position: relative; height: 10px; background: var(--bg); border-radius: 5px; overflow: visible;
}
.mbti-dim-fill-left {
  height: 100%; border-radius: 5px 0 0 5px; transition: width 0.6s var(--ease);
}
.mbti-dim-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tc); border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Communication cards */
.mbti-comm-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.mbti-comm-card {
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: 12px;
}
.mbti-comm-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 10px;
}
.mbti-comm-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* Preference strength under dimension bars */
.mbti-dim-strength {
  display: flex; gap: 8px; align-items: baseline;
  margin-top: 4px; padding-left: 2px;
}
.mbti-dim-strength-label {
  font-size: 12px; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.mbti-dim-strength-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
}

/* Famous personalities */
.mbti-famous {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px;
}
.mbti-famous h3 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.mbti-famous-list {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.mbti-famous-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 10px 16px;
}
.mbti-famous-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.mbti-famous-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* Cognitive functions stack */
.mbti-cog-stack {
  display: flex; flex-direction: column; gap: 20px;
}
.mbti-cog-item {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px 24px;
}
.mbti-cog-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.mbti-cog-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 800;
  color: #fff; letter-spacing: 0.5px;
}
.mbti-cog-name { font-size: 14px; font-weight: 600; color: var(--text); }
.mbti-cog-role {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-left: auto; text-transform: uppercase; letter-spacing: 0.5px;
}
.mbti-cog-bar-track {
  height: 6px; background: var(--border-light); border-radius: 3px;
  margin-bottom: 10px; overflow: hidden;
}
.mbti-cog-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.4s var(--ease);
}
.mbti-cog-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); margin: 0 0 4px; }
.mbti-cog-role-desc { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 0; font-style: italic; }

/* Career tags */
.mbti-careers {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.mbti-career-tag {
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border-light); color: var(--text);
}

/* Profile text blocks */
.mbti-profile-text {
  font-size: 14.5px; line-height: 1.7; color: var(--text-soft); margin: 0;
}

/* Compatibility section */
.mbti-compat {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px 28px;
}
.mbti-compat-group { margin-bottom: 16px; }
.mbti-compat-group:last-of-type { margin-bottom: 20px; }
.mbti-compat-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin: 0 0 8px;
}
.mbti-compat-best { color: var(--green); }
.mbti-compat-good { color: var(--blue); }
.mbti-compat-types { display: flex; flex-wrap: wrap; gap: 8px; }
.mbti-compat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 700;
}
.mbti-compat-badge small { font-weight: 500; opacity: 0.7; }
.mbti-compat-badge-best {
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--text);
}
.mbti-compat-badge-good {
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  color: var(--text);
}
.mbti-compat-desc {
  font-size: 14px; line-height: 1.6; color: var(--text-soft); margin: 0;
}

/* Stress card */
.mbti-stress-card {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px 28px;
}
.mbti-stress-card p {
  font-size: 14.5px; line-height: 1.7; color: var(--text-soft); margin: 0;
}

@media (max-width: 640px) {
  .mbti-hero-letter { width: 68px; height: 78px; }
  .mbti-hero-char { font-size: 26px; }
  .mbti-comm-cards { grid-template-columns: 1fr; }
  .mbti-dim-strength { flex-direction: column; gap: 2px; }
  .mbti-famous-list { gap: 8px; }
  .mbti-famous-item { padding: 8px 12px; }
  .mbti-cog-role { margin-left: 0; }
  .mbti-cog-item { padding: 16px 18px; }
}

/* ========== ACCOUNT PAGE ========== */
/* ========== SHARED ACCOUNT STYLES (settings, profile) ========== */
.account-page { max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.account-section-title {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin: 32px 0 16px;
}
.account-section-title:first-of-type { margin-top: 8px; }
.account-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.15s var(--ease);
}
.account-btn-primary { background: var(--blue); color: #fff; }
.account-btn-primary:hover { background: color-mix(in srgb, var(--blue) 85%, #000); color: #fff; }
.account-btn-outline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.account-btn-outline:hover { background: var(--surface); color: var(--text); }

/* Account info card */
.account-info-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 4px 0; margin-bottom: 16px;
}
.account-info-rows { display: flex; flex-direction: column; }
.account-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--border-light);
}
.account-info-row:last-child { border-bottom: none; }
.account-info-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.account-info-value { font-size: 14px; color: var(--text); font-weight: 600; }
.account-info-value a { color: var(--blue); text-decoration: none; }
.account-info-value a:hover { text-decoration: underline; }

/* Status badges */
.account-badge {
  display: inline-flex; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.account-badge-paid { background: color-mix(in srgb, var(--green) 15%, var(--surface)); color: var(--green); }
.account-badge-free { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); color: var(--blue); }

.account-logout { margin-top: 8px; }

@media (max-width: 640px) {
  .account-info-row { padding: 12px 18px; }
}



/* ========== MY TESTS DASHBOARD - Warm Atelier ========== */

.mt-dashboard {
  max-width: 960px; margin: 0 auto; padding: 40px 24px 72px;
}

/* --- Header --- */
.mt-header {
  text-align: center; margin-bottom: 44px;
}
.mt-title {
  font-family: var(--font);
  font-size: 42px; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px;
}
.mt-subtitle {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  margin: 0 0 28px; letter-spacing: 0.01em;
}
.mt-progress-strip {
  display: flex; gap: 3px; max-width: 380px; margin: 0 auto;
}
.mt-seg {
  flex: 1; height: 7px; border-radius: 4px;
  background: rgba(0,0,0,0.05);
  transition: all 0.6s var(--ease);
}
.mt-seg-done {
  background: var(--sc);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--sc) 40%, transparent);
}

/* --- Card grid --- */
.mt-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 48px;
}

/* --- Card --- */
.mt-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.03);
  transition: all 0.35s var(--ease);
  animation: mtSlideUp 0.5s var(--ease) calc(var(--i, 0) * 0.07s) both;
}
@keyframes mtSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mt-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.04),
    0 16px 48px color-mix(in srgb, var(--tc) 14%, rgba(0,0,0,0.07));
}

/* Card hero - colored gradient banner */
.mt-card-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; color: #fff;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 72%, #1a1a2e));
}
.mt-card-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255,255,255,0.08) 0%, transparent 45%);
}
.mt-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; position: relative; z-index: 1;
}
.mt-card-info {
  flex: 1; min-width: 0; position: relative; z-index: 1;
}
.mt-card-info h3 {
  font-size: 15px; font-weight: 700; color: #fff; margin: 0;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-card-info > span {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500;
}

/* Card body */
.mt-card-body {
  padding: 18px 22px 10px; display: flex; flex-direction: column;
  gap: 14px; flex: 1;
}

/* Type chips */
.mt-type-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mt-type-chip {
  min-width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--cc);
  padding: 0 6px; letter-spacing: 0.02em;
}
.mt-type-chip-wide {
  padding: 0 14px; font-size: 16px; border-radius: 10px;
}
.mt-type-label {
  font-size: 13px; color: var(--text-soft); font-weight: 500;
}

/* Card summary */
.mt-card-summary h4 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 4px; line-height: 1.3;
}
.mt-card-summary p {
  font-size: 13px; color: var(--text-soft); line-height: 1.55;
  margin: 0;
}

/* Card actions */
.mt-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 14px 22px 20px; margin-top: auto;
}
.mt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s var(--ease);
}
.mt-btn-primary {
  background: var(--tc); color: #fff;
}
.mt-btn-primary:hover {
  filter: brightness(0.9); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--tc) 35%, transparent);
  text-decoration: none;
}
.mt-btn-ghost {
  background: transparent; color: var(--green);
  border: 1.5px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.mt-btn-ghost:hover {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-color: var(--green); color: var(--green-deep);
  text-decoration: none;
}

/* --- CTA banner --- */
.mt-cta {
  text-align: center; padding: 36px 32px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-pale) 100%);
  border: 1px solid color-mix(in srgb, var(--blue) 12%, var(--border));
  border-radius: 16px; margin-bottom: 40px;
  animation: mtSlideUp 0.5s var(--ease) 0.3s both;
}
.mt-cta-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  color: var(--blue);
}
.mt-cta h3 {
  font-size: 19px; font-weight: 800; color: var(--text);
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.mt-cta p {
  font-size: 14px; color: var(--text-soft); line-height: 1.6;
  margin: 0 auto 16px; max-width: 520px;
}
.mt-cta-progress {
  font-size: 13px; font-weight: 700; color: var(--blue);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.mt-cta-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.mt-btn-cta {
  background: var(--blue); color: #fff;
  padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; text-decoration: none;
  transition: all 0.25s var(--ease);
}
.mt-btn-cta:hover {
  background: var(--blue-deep); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
  text-decoration: none;
}
.mt-btn-cta-outline {
  background: #fff; color: var(--blue);
  border: 1.5px solid color-mix(in srgb, var(--blue) 25%, transparent);
  padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; text-decoration: none;
  transition: all 0.25s var(--ease);
}
.mt-btn-cta-outline:hover {
  border-color: var(--blue); color: var(--blue-deep);
  background: color-mix(in srgb, var(--blue) 5%, #fff);
  text-decoration: none;
}

/* --- Available tests section --- */
.mt-available { margin-top: 8px; }
.mt-avail-heading {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font);
  font-size: 24px; font-weight: 800; color: var(--text);
  margin: 0 0 20px;
}
.mt-avail-count {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  color: var(--text-muted); background: rgba(0,0,0,0.05);
  padding: 3px 12px; border-radius: 20px;
}
.mt-avail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.mt-avail-tile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 16px 24px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease);
  animation: mtSlideUp 0.4s var(--ease) calc(var(--i, 0) * 0.05s) both;
  position: relative; overflow: hidden;
}
.mt-avail-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 75%, #1a1a2e));
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.mt-avail-tile:hover {
  border-color: var(--tc); transform: translateY(-3px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--tc) 18%, rgba(0,0,0,0.08));
  text-decoration: none; color: #fff;
}
.mt-avail-tile:hover::before { opacity: 1; }
.mt-avail-tile-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tc) 10%, var(--surface));
  color: var(--tc); margin-bottom: 14px;
  transition: all 0.3s var(--ease);
  position: relative; z-index: 1;
}
.mt-avail-tile:hover .mt-avail-tile-icon {
  background: rgba(255,255,255,0.2); color: #fff;
}
.mt-avail-tile h3 {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 0 0 4px; line-height: 1.3;
  position: relative; z-index: 1; transition: color 0.3s var(--ease);
}
.mt-avail-tile:hover h3 { color: #fff; }
.mt-avail-tile p {
  font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4;
  position: relative; z-index: 1; transition: color 0.3s var(--ease);
}
.mt-avail-tile:hover p { color: rgba(255,255,255,0.8); }

/* --- Account settings --- */
/* ---- Login page ---- */
.login-box {
  max-width: 400px; margin: 48px auto; padding: 36px 32px;
  background: var(--card-bg); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.login-box h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; text-align: center; }
.login-sub { font-size: 14px; color: var(--muted); text-align: center; margin: 0 0 24px; }
.login-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 20px;
}
.login-error a { color: #b91c1c; text-decoration: underline; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--heading); }
.login-field input {
  width: 100%; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; transition: border-color .2s;
}
.login-field input:focus, .login-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.login-submit {
  width: 100%; padding: 12px; margin-top: 4px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--blue); border: none; border-radius: 8px;
  cursor: pointer; transition: background .2s;
}
.login-submit:hover { background: var(--blue-dark); }

/* ---- Contact FAQ ---- */
.contact-faq { margin-bottom: 24px; }
.contact-faq-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.contact-faq-item:last-child { border-bottom: none; }
.contact-faq-item strong { font-size: 14px; display: block; margin-bottom: 3px; }
.contact-faq-item p { font-size: 13px; color: var(--muted); margin: 0; }
.contact-faq-item a { color: var(--blue); }

.mt-settings { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.mt-settings-heading { font-size: 20px; font-weight: 700; margin: 0 0 24px; }
.mt-settings-section { background: var(--card-bg); border-radius: 12px; padding: 24px; }
.mt-settings-danger { border: 1px solid #f5c6cb; }
.mt-settings-danger h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #c0392b; }
.mt-settings-danger p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }
.mt-btn-danger { background: #c0392b; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.mt-btn-danger:hover { background: #a93226; }
.mt-delete-warning { color: #c0392b; font-size: 14px; margin: 16px 0; padding: 12px 16px; background: #fdf0ef; border-radius: 8px; }
#mt-delete-confirm form { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Dashboard responsive --- */
@media (max-width: 767px) {
  .mt-header { margin-bottom: 32px; }
  .mt-title { font-size: 36px; }
  .mt-grid { grid-template-columns: 1fr; }
  .mt-avail-grid { grid-template-columns: repeat(2, 1fr); }
  .mt-progress-strip { max-width: 100%; }
}
@media (max-width: 480px) {
  .mt-dashboard { padding: 28px 16px 56px; }
  .mt-title { font-size: 30px; }
  .mt-card-hero { padding: 16px 18px; }
  .mt-card-body { padding: 14px 18px 6px; }
  .mt-card-actions { padding: 10px 18px 16px; }
  .mt-card-info h3 { font-size: 14px; }
  .mt-avail-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mt-avail-tile { padding: 20px 12px 18px; }
  .mt-avail-tile-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .mt-cta { padding: 28px 20px; }
  .mt-cta h3 { font-size: 17px; }
}


/* ========== COMPLEX PROFILE - Personal Portrait ========== */

.cp-page {
  max-width: 960px; margin: 0 auto; padding: 40px 24px 72px;
}

/* --- Hero --- */
.cp-hero {
  text-align: center; margin-bottom: 52px;
  padding: 48px 24px 40px;
  background:
    radial-gradient(ellipse at 30% 0%, color-mix(in srgb, var(--accent, #3B82C4) 6%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, color-mix(in srgb, var(--accent, #E8A838) 5%, transparent) 0%, transparent 50%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--surface); opacity: 0.55; pointer-events: none;
}
.cp-hero > * { position: relative; z-index: 1; }
.cp-hero-label {
  display: inline-block;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
  background: rgba(0,0,0,0.04); padding: 5px 16px; border-radius: 20px;
  margin-bottom: 16px;
}
.cp-hero-headline {
  font-family: var(--font);
  font-size: 52px; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px;
  animation: cpFadeIn 0.8s var(--ease) both;
}
@keyframes cpFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cp-hero-sub {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  margin: 0 0 24px; letter-spacing: 0.01em;
  animation: cpFadeIn 0.8s var(--ease) 0.15s both;
}
.cp-hero-dots {
  display: flex; justify-content: center; gap: 8px;
  animation: cpFadeIn 0.6s var(--ease) 0.3s both;
}
.cp-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(0,0,0,0.07);
  transition: all 0.4s var(--ease);
}
.cp-dot-done {
  background: var(--dc);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--dc) 45%, transparent);
}

/* --- Section --- */
.cp-section {
  margin-bottom: 48px;
}
.cp-section-title {
  font-family: var(--font);
  font-size: 28px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; margin: 0 0 6px;
}
.cp-section-sub {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  margin: 0 0 24px; line-height: 1.5;
}

/* --- Snapshot grid --- */
.cp-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.cp-snap-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 18px;
  border-left: 4px solid var(--tc);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
  transition: all 0.3s var(--ease);
  animation: cpSlideUp 0.45s var(--ease) calc(var(--i, 0) * 0.06s) both;
}
@keyframes cpSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cp-snap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 12px 36px color-mix(in srgb, var(--tc) 12%, rgba(0,0,0,0.06));
}
.cp-snap-name {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: 8px;
}
.cp-snap-badge {
  font-size: 22px; font-weight: 800; color: var(--tc);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 4px;
}
.cp-snap-desc {
  font-size: 12px; color: var(--text-soft, var(--text-muted));
  font-weight: 500; line-height: 1.3;
}

/* --- Insights grid --- */
.cp-insight-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cp-insight {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px 20px;
  border-left: 4px solid var(--ic);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
  transition: all 0.3s var(--ease);
  animation: cpSlideUp 0.45s var(--ease) calc(var(--i, 0) * 0.05s) both;
}
.cp-insight:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 12px 36px color-mix(in srgb, var(--ic) 14%, rgba(0,0,0,0.06));
}
.cp-insight h4 {
  font-size: 15px; font-weight: 800; color: var(--text);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.cp-insight p {
  font-size: 13px; color: var(--text-soft, var(--text-muted));
  margin: 0; line-height: 1.55; font-weight: 500;
}

/* --- Strengths --- */
.cp-strength-list {
  display: flex; flex-direction: column; gap: 12px;
}
.cp-strength {
  display: grid;
  grid-template-columns: 1fr 2.5fr auto auto;
  align-items: center; gap: 12px;
  animation: cpSlideUp 0.45s var(--ease) calc(var(--i, 0) * 0.08s) both;
}
.cp-strength-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-strength-bar-wrap {
  height: 8px; background: var(--border-light, rgba(0,0,0,0.06));
  border-radius: 4px; overflow: hidden;
}
.cp-strength-bar {
  height: 100%; border-radius: 4px;
  transform-origin: left;
  animation: cpBarGrow 0.7s var(--ease) calc(0.3s + var(--i, 0) * 0.08s) both;
}
@keyframes cpBarGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.cp-strength-score {
  font-size: 13px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 36px; text-align: right;
}
.cp-strength-source {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  min-width: 80px; text-align: right;
  white-space: nowrap;
}

/* --- Career grid --- */
.cp-career-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cp-career-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
  transition: all 0.3s var(--ease);
  animation: cpSlideUp 0.45s var(--ease) calc(var(--i, 0) * 0.07s) both;
}
.cp-career-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 50%, transparent));
}
.cp-career-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 12px 36px color-mix(in srgb, var(--tc) 14%, rgba(0,0,0,0.06));
}
.cp-career-card h4 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--tc);
  margin: 0 0 8px;
}
.cp-career-card p {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 0; line-height: 1.5;
}

/* --- CTA --- */
.cp-cta {
  text-align: center;
  padding: 40px 32px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, #3B82C4 8%, var(--surface)),
      color-mix(in srgb, #5CB85C 6%, var(--surface)));
  border-radius: 20px;
  margin-top: 8px;
}
.cp-cta h3 {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; margin: 0 0 8px;
}
.cp-cta p {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  margin: 0 0 24px; line-height: 1.5; max-width: 520px; margin-inline: auto;
}
.cp-cta-actions {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}

/* --- Empty state --- */
.cp-empty {
  text-align: center; padding: 80px 24px;
}
.cp-empty-icon {
  color: var(--text-muted); opacity: 0.35;
  margin-bottom: 24px;
  animation: cpFadeIn 0.8s var(--ease) both;
}
.cp-empty h2 {
  font-family: var(--font);
  font-size: 28px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.cp-empty p {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  margin: 0 0 28px; line-height: 1.6; max-width: 480px; margin-inline: auto;
}

/* --- Profile responsive --- */
@media (max-width: 767px) {
  .cp-hero { padding: 36px 20px 32px; margin-bottom: 40px; }
  .cp-hero-headline { font-size: 38px; }
  .cp-snapshot { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .cp-insight-grid { grid-template-columns: 1fr; }
  .cp-career-grid { grid-template-columns: 1fr; }
  .cp-strength { grid-template-columns: 1fr 1.8fr auto auto; }
}
@media (max-width: 480px) {
  .cp-page { padding: 28px 16px 56px; }
  .cp-hero { padding: 28px 16px 24px; border-radius: 18px; }
  .cp-hero-headline { font-size: 30px; }
  .cp-hero-sub { font-size: 13px; }
  .cp-section-title { font-size: 22px; }
  .cp-snap-card { padding: 16px 14px; }
  .cp-snap-badge { font-size: 18px; }
  .cp-insight { padding: 18px 16px; }
  .cp-strength {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
  }
  .cp-strength-bar-wrap { grid-column: 1 / -1; }
  .cp-strength-source { display: none; }
  .cp-cta { padding: 28px 20px; }
  .cp-cta h3 { font-size: 18px; }
  .cp-empty { padding: 56px 16px; }
  .cp-empty h2 { font-size: 22px; }
}

/* --- Profile: Personality text --- */
.cp-personality-text {
  max-width: 680px; margin: 0 auto; line-height: 1.75;
}
.cp-personality-text p {
  margin: 0 0 16px; color: var(--text-secondary); font-size: 15px;
}
.cp-personality-text p:last-child { margin-bottom: 0; }

/* --- Profile: Composite bars (relationship, leadership, creativity, resilience) --- */
.cp-compass { max-width: 560px; margin: 0 auto; }
.cp-compass-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cp-compass-label { min-width: 100px; font-size: 13px; font-weight: 600; color: var(--text); text-align: right; }
.cp-compass-track { flex: 1; height: 10px; background: var(--bg-inset); border-radius: 5px; overflow: hidden; }
.cp-compass-fill { height: 100%; border-radius: 5px; transition: width 0.8s ease; }
.cp-compass-val { min-width: 42px; font-size: 13px; font-weight: 700; color: var(--text); }
.cp-compass-overall {
  text-align: center; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-light); font-size: 15px; color: var(--text-secondary);
}
.cp-compass-overall strong { color: var(--text); font-size: 18px; }
.cp-compass-desc {
  max-width: 560px; margin: 20px auto 0; padding: 16px 20px;
  background: var(--bg-inset); border-radius: 10px;
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}

/* --- Profile: Development areas --- */
.cp-develop-list { max-width: 560px; margin: 0 auto; }
.cp-develop-item { margin-bottom: 20px; }
.cp-develop-item:last-child { margin-bottom: 0; }
.cp-develop-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cp-develop-name { font-size: 14px; font-weight: 600; color: var(--text); min-width: 140px; }
.cp-develop-bar-wrap { flex: 1; height: 8px; background: var(--bg-inset); border-radius: 4px; overflow: hidden; }
.cp-develop-bar { height: 100%; border-radius: 4px; }
.cp-develop-score { min-width: 38px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.cp-develop-tip {
  margin: 6px 0 0; padding-left: 152px; font-size: 13px;
  color: var(--text-muted); line-height: 1.5;
}
@media (max-width: 600px) {
  .cp-develop-tip { padding-left: 0; }
  .cp-compass-label { min-width: 80px; font-size: 12px; }
}

/* --- Profile: Tensions --- */
.cp-tension-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; max-width: 680px; margin: 0 auto;
}
.cp-tension {
  padding: 20px; border-radius: 12px;
  background: #fef9ef; border: 1px solid #f0e6d2;
}
.cp-tension-tests {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.cp-tension-vs { color: #D4A24C; font-weight: 700; }
.cp-tension h4 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.cp-tension p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }


/* ========== ANONYMOUS USER BANNER & UPGRADE ========== */

/* --- Sticky banner below header --- */
.anon-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFF8E1);
  border-bottom: 2px solid #E8A838;
  padding: 10px 0;
  position: relative; z-index: 90;
}
.anon-banner-inner {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #5D4E37; font-weight: 500;
  line-height: 1.45; flex-wrap: wrap;
}
.anon-banner-inner svg { flex-shrink: 0; color: #E8A838; }
.anon-banner-inner > span { flex: 1; min-width: 200px; }
.anon-banner-btn {
  display: inline-flex; align-items: center;
  padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: #E8A838; color: #fff; text-decoration: none;
  white-space: nowrap; transition: all 0.2s var(--ease);
}
.anon-banner-btn:hover {
  background: #D4952E; color: #fff; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(232,168,56,0.3);
}

/* --- Upgrade card on settings page --- */
.anon-upgrade-card {
  background: var(--surface);
  border: 2px solid #E8A838;
  border-radius: 16px;
  padding: 28px 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 16px rgba(232,168,56,0.1);
}
.anon-upgrade-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px;
}
.anon-upgrade-header svg { flex-shrink: 0; color: #E8A838; margin-top: 2px; }
.anon-upgrade-header h3 {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.anon-upgrade-header p {
  font-size: 14px; color: var(--text-muted); margin: 0;
  line-height: 1.5; font-weight: 500;
}
.anon-upgrade-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px; align-items: end;
}
.anon-upgrade-field { display: flex; flex-direction: column; gap: 5px; }
.anon-upgrade-field label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.anon-upgrade-field input {
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: var(--font);
  color: var(--text); background: var(--surface);
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.anon-upgrade-field input:focus {
  border-color: #E8A838;
  box-shadow: 0 0 0 3px rgba(232,168,56,0.12);
}
.anon-upgrade-field input::placeholder {
  color: var(--text-muted); opacity: 0.6;
}
.anon-upgrade-btn {
  padding: 10px 24px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  background: #E8A838; color: #fff; cursor: pointer;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.anon-upgrade-btn:hover {
  background: #D4952E;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(232,168,56,0.3);
}

/* --- Flash messages --- */
.anon-upgrade-msg {
  padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; margin-bottom: 24px;
  line-height: 1.5;
}
.anon-upgrade-success {
  background: color-mix(in srgb, #5CB85C 10%, var(--surface));
  border: 1.5px solid color-mix(in srgb, #5CB85C 30%, transparent);
  color: #2D7A2D;
}
.anon-upgrade-error {
  background: color-mix(in srgb, #E06B6B 10%, var(--surface));
  border: 1.5px solid color-mix(in srgb, #E06B6B 30%, transparent);
  color: #B83E3E;
}
.anon-upgrade-error a { color: #B83E3E; font-weight: 700; }

/* --- Responsive --- */
@media (max-width: 767px) {
  .anon-upgrade-form {
    grid-template-columns: 1fr;
  }
  .anon-banner-inner { font-size: 12px; }
  .anon-banner-btn { padding: 6px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .anon-upgrade-card { padding: 20px 18px 24px; }
  .anon-upgrade-header { gap: 10px; }
  .anon-upgrade-header h3 { font-size: 15px; }
}

/* ========== SHOWCASE - Demo Results ========== */

/* --- Demo banner --- */
.sc-demo-banner {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-bottom: 2px solid #E8A838;
  padding: 12px 0;
  position: relative; z-index: 10;
}
.sc-demo-banner-inner {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #5D4E37; font-weight: 500;
  flex-wrap: wrap;
}
.sc-demo-banner-inner svg { flex-shrink: 0; color: #E8A838; }
.sc-demo-banner-inner span { flex: 1; min-width: 200px; }
.sc-demo-banner-inner a {
  font-size: 13px; font-weight: 700; color: #E8A838;
  text-decoration: none; white-space: nowrap;
}
.sc-demo-banner-inner a:hover { text-decoration: underline; }

/* --- Hub page --- */
.sc-hub {
  max-width: 960px; margin: 0 auto; padding: 40px 24px 72px;
}
.sc-hub-header {
  text-align: center; margin-bottom: 44px;
}
.sc-hub-title {
  font-family: var(--font);
  font-size: 42px; font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px;
}
.sc-hub-sub {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  margin: 0; letter-spacing: 0.01em;
}

/* --- Hub grid --- */
.sc-hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.sc-hub-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px 22px 20px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease);
  animation: scSlideUp 0.4s var(--ease) calc(var(--i, 0) * 0.05s) both;
  position: relative; overflow: hidden;
}
@keyframes scSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sc-hub-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 72%, #1a1a2e));
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.sc-hub-card:hover {
  border-color: var(--tc); transform: translateY(-4px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--tc) 18%, rgba(0,0,0,0.08));
  text-decoration: none; color: #fff;
}
.sc-hub-card:hover::before { opacity: 1; }
.sc-hub-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tc) 10%, var(--surface));
  color: var(--tc); margin-bottom: 14px;
  transition: all 0.3s var(--ease);
  position: relative; z-index: 1;
}
.sc-hub-card:hover .sc-hub-card-icon {
  background: rgba(255,255,255,0.2); color: #fff;
}
.sc-hub-card h3 {
  font-size: 15px; font-weight: 800; color: var(--text);
  margin: 0 0 4px; position: relative; z-index: 1;
  transition: color 0.3s var(--ease);
}
.sc-hub-card:hover h3 { color: #fff; }
.sc-hub-card p {
  font-size: 12px; color: var(--text-muted); margin: 0 0 12px;
  line-height: 1.4; position: relative; z-index: 1;
  transition: color 0.3s var(--ease);
}
.sc-hub-card:hover p { color: rgba(255,255,255,0.8); }
.sc-hub-card-arrow {
  font-size: 18px; font-weight: 700; color: var(--tc);
  margin-top: auto; position: relative; z-index: 1;
  transition: all 0.3s var(--ease);
}
.sc-hub-card:hover .sc-hub-card-arrow {
  color: #fff; transform: translateX(4px);
}

/* --- Profile showcase card --- */
.sc-hub-profile { margin-bottom: 24px; }
.sc-hub-profile-card {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 28px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, #3B82C4 6%, var(--surface)),
      color-mix(in srgb, #E8A838 5%, var(--surface)));
  border: 1.5px solid var(--border);
  border-radius: 18px; text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease);
  animation: scSlideUp 0.4s var(--ease) 0.55s both;
}
.sc-hub-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #3B82C4;
  text-decoration: none; color: inherit;
}
.sc-hub-profile-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #3B82C4 12%, var(--surface));
  color: #3B82C4;
}
.sc-hub-profile-text { flex: 1; min-width: 0; }
.sc-hub-profile-text h3 {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin: 0 0 4px; letter-spacing: -0.02em;
}
.sc-hub-profile-text p {
  font-size: 13px; color: var(--text-muted);
  margin: 0; line-height: 1.5; font-weight: 500;
}
.sc-hub-profile-card .sc-hub-card-arrow {
  font-size: 22px; font-weight: 700; color: #3B82C4;
  transition: transform 0.3s var(--ease);
}
.sc-hub-profile-card:hover .sc-hub-card-arrow { transform: translateX(4px); }

/* --- Showcase responsive --- */
@media (max-width: 767px) {
  .sc-hub-title { font-size: 32px; }
  .sc-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-hub-profile-card { flex-wrap: wrap; gap: 14px; padding: 22px 20px; }
  .sc-demo-banner-inner { font-size: 13px; }
}
@media (max-width: 480px) {
  .sc-hub { padding: 28px 16px 56px; }
  .sc-hub-title { font-size: 26px; }
  .sc-hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sc-hub-card { padding: 18px 16px 16px; }
  .sc-hub-card-icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .sc-hub-profile-card { padding: 18px 16px; }
  .sc-hub-profile-icon { width: 48px; height: 48px; }
  .sc-hub-profile-text h3 { font-size: 16px; }
}

/* ========== IQ TEST ========== */

/* CAT wrapper */
.iq-cat-wrap { width: 100%; text-align: center; }

/* Timer */
.iq-timer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 16px;
  margin: 0 auto 10px; font-variant-numeric: tabular-nums;
}
.iq-timer-warn { color: #D4705A; border-color: #D4705A; animation: timerPulse 1s ease infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* IQ answer options */
.iq-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; max-width: 480px; margin: 24px auto 0;
}
.iq-radio { display: none; }
.iq-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 2px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: all 0.15s var(--ease); font-size: 15px;
  color: var(--text); background: var(--surface);
}
.iq-option:hover {
  border-color: var(--blue); background: var(--blue-light);
}
.iq-radio:checked + .iq-option {
  border-color: var(--blue); background: var(--blue-light);
}
.iq-option-letter {
  font-weight: 700; color: var(--blue);
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--blue-light);
  font-size: 13px; transition: all 0.15s;
}
.iq-radio:checked + .iq-option .iq-option-letter {
  background: var(--blue); color: #fff;
}
.iq-option-text { font-weight: 500; }

/* IQ Matrix image questions */
.iq-stack { min-height: 700px; }
.iq-matrix-img { text-align: center; margin: 8px auto 0; max-width: 380px; }
.iq-matrix-img img { width: 100%; height: auto; border-radius: 8px; }
.qcard-text-sm { font-size: 15px; font-weight: 500; margin-bottom: 0; }
.iq-options-img { max-width: 320px; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.iq-options-img .iq-option { padding: 10px 4px; justify-content: center; }
.iq-options-img .iq-option-text { display: none; }
.iq-options-img .iq-option-letter { margin-right: 0; }

@media (max-width: 480px) {
  .iq-options { grid-template-columns: 1fr; max-width: 100%; }
  .iq-options-img { grid-template-columns: repeat(4, 1fr); max-width: 280px; }
  .iq-matrix-img { max-width: 100%; }
  .iq-stack { min-height: 620px; }
  .iq-timer { font-size: 14px; padding: 5px 14px; }
}

/* IQ Result page */
.iq-result-page { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.iq-hero {
  text-align: center; padding: 36px 24px 28px; margin-bottom: 32px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-pale) 50%, #FFF5F0 100%);
  border-radius: var(--radius-lg); animation: fadeUp 0.5s var(--ease) both;
}
.iq-gauge { position: relative; width: 200px; margin: 0 auto 16px; }
.iq-gauge-svg { width: 200px; height: 130px; }
.iq-gauge-fill { transition: stroke-dashoffset 1.5s var(--ease); }
.iq-score-center {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.iq-score-num { font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; }
.iq-score-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.iq-category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.iq-category-badge svg { flex-shrink: 0; }
.iq-percentile-text { font-size: 15px; color: var(--text-soft); }

/* IQ Stats */
.iq-stats {
  display: flex; justify-content: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.iq-stat {
  flex: 1; text-align: center; padding: 18px 16px;
  border-right: 1px solid var(--border-light);
}
.iq-stat:last-child { border-right: none; }
.iq-stat-val { font-size: 22px; font-weight: 800; color: var(--text); }
.iq-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* IQ Categories */
.iq-categories { margin-bottom: 28px; }
.iq-section-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.iq-cat-row { margin-bottom: 14px; }
.iq-cat-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.iq-cat-icon { flex-shrink: 0; }
.iq-cat-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.iq-cat-score { font-size: 14px; font-weight: 700; color: var(--text); }
.iq-cat-bar {
  height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden;
}
.iq-cat-bar-fill {
  height: 100%; border-radius: 4px; transition: width 1s var(--ease);
}

/* IQ Description */
.iq-description {
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 28px;
}
.iq-description p { font-size: 14.5px; line-height: 1.75; color: var(--text-soft); margin: 0; }

/* IQ Premium sections */
.iq-premium-section { margin-bottom: 28px; }
.iq-detail-card {
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 12px;
}
.iq-detail-header {
  display: flex; align-items: center; gap: 12px;
  padding-left: 12px; margin-bottom: 10px;
}
.iq-detail-header > span { display: flex; align-items: center; flex-shrink: 0; }
.iq-detail-header > span svg { display: block; }
.iq-detail-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.iq-detail-score { font-size: 13px; color: var(--text-muted); }
.iq-detail-card p { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin: 0; }

/* Strengths grid */
.iq-strengths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-strength-card {
  padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.iq-strength-positive { background: #f0faf0; border-color: #c8e6c9; }
.iq-strength-develop { background: #fff8e1; border-color: #ffe082; }
.iq-strength-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin: 0 0 10px;
}
.iq-strength-card p { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); margin: 0 0 8px; }
.iq-strength-card h4 { font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: var(--text); }
.iq-strength-card ul { padding-left: 18px; }
.iq-strength-card li {
  list-style: disc; font-size: 13px; line-height: 1.6; color: var(--text-soft);
  margin-bottom: 4px;
}

/* Career tags */
.iq-career-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.iq-career-tag {
  font-size: 13px; font-weight: 600; padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--blue-light); color: var(--blue);
}
.iq-career-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* Bell curve / population comparison */
.iq-bell { margin-top: 16px; }
.iq-bell-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  margin-bottom: 4px; padding: 0 2px;
}
.iq-bell-bar {
  position: relative; display: flex; height: 24px;
  border-radius: 6px; overflow: visible;
}
.iq-bell-zone { height: 100%; }
.iq-bell-zone:first-child { border-radius: 6px 0 0 6px; }
.iq-bell-zone:last-child { border-radius: 0 6px 6px 0; }
.iq-bell-marker {
  position: absolute; top: -8px; transform: translateX(-50%);
}
.iq-bell-marker-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  margin: 0 auto;
}
.iq-bell-marker-label {
  font-size: 11px; font-weight: 800; color: var(--text);
  text-align: center; margin-top: 30px;
}
.iq-bell-desc {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-muted); margin-top: 6px;
}
.iq-bell-zone-pct {
  display: block; text-align: center;
  font-size: 9px; font-weight: 600; color: var(--text-muted);
  line-height: 24px;
}

/* IQ Radar chart */
.iq-radar-wrap { text-align: center; margin: 0 auto 24px; max-width: 320px; }
.iq-radar { width: 100%; height: auto; }

/* IQ Description text (free section) */
.iq-description-text {
  font-size: 15px; line-height: 1.8; color: var(--text-soft); margin: 0;
}

/* IQ Detail about */
.iq-detail-about {
  font-size: 13px; line-height: 1.6; color: var(--text-muted);
  font-style: italic; margin: 0 0 8px;
}

/* IQ Profile card (premium) */
.iq-profile-card {
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
}
.iq-profile-card > p {
  font-size: 14.5px; line-height: 1.75; color: var(--text-soft); margin: 0 0 20px;
}
.iq-profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-profile-col {
  padding: 16px 18px; border-radius: 12px;
  background: var(--blue-pale); border: 1px solid var(--border-light);
}
.iq-profile-col:last-child { background: #FFF8F0; }
.iq-profile-col h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 8px;
}
.iq-profile-col p { font-size: 13px; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* IQ Gc vs Gf section */
.iq-gc-gf { display: grid; gap: 16px; }
.iq-gc-gf-item {
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
}
.iq-gc-gf-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.iq-gc-gf-header strong { font-size: 14px; color: var(--text); }
.iq-gc-gf-header span { font-size: 14px; font-weight: 700; color: var(--text); }
.iq-gc-gf-desc {
  font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0;
}

/* IQ Result page header link */
.res-page-header-link {
  font-size: 14px; font-weight: 600; color: var(--blue);
  text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.res-page-header-link:hover { color: var(--blue-deep); text-decoration: none; }
.res-page-header-link-sec { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.res-page-header-link-sec:hover { color: var(--text-secondary); }

/* IQ result actions */
.res-actions {
  display: flex; gap: 12px; justify-content: space-between;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .iq-stats { flex-direction: column; }
  .iq-stat { border-right: none; border-bottom: 1px solid var(--border-light); padding: 14px; }
  .iq-stat:last-child { border-bottom: none; }
  .iq-strengths-grid { grid-template-columns: 1fr; }
  .iq-profile-cols { grid-template-columns: 1fr; }
  .iq-bell-desc { font-size: 9px; }
  .iq-bell-zone-pct { font-size: 8px; }
  .res-actions { flex-direction: column; }
}


/* ========== BIG FIVE BIPOLAR SCALES ========== */
.b5-bipolar-scales { display: flex; flex-direction: column; gap: 18px; }
.b5-bipolar-row {
  display: flex; align-items: center; gap: 14px;
}
.b5-bipolar-label {
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  width: 90px; flex-shrink: 0;
}
.b5-bipolar-low { text-align: right; }
.b5-bipolar-high { text-align: left; }
.b5-bipolar-track {
  flex: 1; height: 10px; background: #f0f0f0; border-radius: 5px;
  position: relative; min-width: 0;
}
.b5-bipolar-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 5px; opacity: 0.25;
}
.b5-bipolar-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.b5-bipolar-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.b5-bipolar-val {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.b5-bipolar-mid {
  position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1px; background: #ccc;
}

/* ========== BIG FIVE POPULATION COMPARISON ========== */
.b5-population { display: flex; flex-direction: column; gap: 12px; }
.b5-pop-row {
  display: flex; align-items: center; gap: 12px;
}
.b5-pop-label {
  font-size: 15px; font-weight: 800; width: 22px; text-align: center; flex-shrink: 0;
}
.b5-pop-track {
  flex: 1; height: 14px; background: #f0f0f0; border-radius: 7px;
  position: relative; min-width: 0;
}
.b5-pop-center {
  position: absolute; left: 50%; top: -2px; bottom: -2px;
  width: 2px; background: #bbb; border-radius: 1px;
}
.b5-pop-bar {
  position: absolute; top: 2px; height: 10px;
  border-radius: 5px; opacity: 0.7;
}
.b5-pop-bar-right { border-radius: 0 5px 5px 0; }
.b5-pop-bar-left { border-radius: 5px 0 0 5px; }
.b5-pop-val {
  font-size: 13px; font-weight: 700; min-width: 90px; text-align: right; flex-shrink: 0;
}
.b5-pop-legend {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
  padding: 0 34px 0 34px;
}

@media (max-width: 575px) {
  .b5-bipolar-label { width: 70px; font-size: 11px; }
  .b5-bipolar-row { gap: 8px; }
  .b5-pop-legend { padding: 0 34px; font-size: 10px; }
}


/* ========== PAYMENT PAGE ========== */
.payment-page {
  max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px;
}
.pay-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px;
  align-items: start;
}
.pay-left {
  min-width: 0; grid-column: 1; grid-row: 1;
}
.pay-bottom {
  min-width: 0; grid-column: 1; grid-row: 2;
}
.pay-right {
  min-width: 0; grid-column: 2; grid-row: 1 / 3;
}
.pay-sticky {
  position: sticky; top: 24px;
}

/* Pricing card in sidebar */
.pay-pricing-card {
  text-align: center; padding: 22px 28px 18px; margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeUp 0.4s var(--ease) both;
}
.pay-pricing-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.pay-pricing-arrow {
  font-size: 16px; color: var(--text-muted); opacity: 0.4;
}

.pay-hero {
  margin-bottom: 32px;
}
.pay-hero h1 {
  font-size: 28px; font-weight: 800; color: var(--text);
  margin: 0 0 12px; letter-spacing: -0.02em;
  animation: fadeUp 0.5s 0.08s var(--ease) both;
}
.pay-hero-sub {
  font-size: 16px; line-height: 1.7; color: var(--text-soft);
  max-width: 520px;
  animation: fadeUp 0.5s 0.14s var(--ease) both;
}
.pay-original-price {
  font-size: 16px; font-weight: 600; color: var(--text);
  text-decoration: line-through; opacity: 0.7;
}
.pay-hero-price {
  font-size: 28px; font-weight: 800; color: var(--green);
  letter-spacing: -0.02em;
}
.pay-discount-badge {
  display: inline-block; padding: 3px 9px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 700;
}
.pay-hero-test {
  font-size: 14px; color: var(--text-muted); margin-top: 6px;
  animation: fadeUp 0.5s 0.22s var(--ease) both;
}

/* Countdown timer */
.pay-timer {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: #FEF3C7; border: 1px solid rgba(245,208,70,0.35);
  font-size: 13px; color: #92400E;
}
.pay-timer svg { opacity: 0.6; flex-shrink: 0; }
.pay-timer strong { color: #B45309; font-variant-numeric: tabular-nums; font-weight: 700; }
.pay-timer-urgent { border-color: #FECACA; background: #FEF2F2; }
.pay-timer-urgent strong { color: #DC2626; }

/* Social proof */
.pay-social-proof {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; margin-bottom: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-light);
  font-size: 14px; color: var(--text-soft);
  animation: fadeUp 0.45s 0.08s var(--ease) both;
}
.pay-social-proof svg { color: var(--green); flex-shrink: 0; }

/* Result teaser */
.pay-teaser {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px;
  position: relative; overflow: hidden;
  animation: fadeUp 0.45s 0.12s var(--ease) both;
}
.pay-teaser-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pay-teaser-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.pay-teaser-lock {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--green);
}
.pay-teaser-body { position: relative; }
.pay-teaser-value {
  font-size: 40px; font-weight: 800; color: var(--text);
  text-align: center; letter-spacing: 0.04em; margin-bottom: 8px;
}
.pay-teaser-bars { display: flex; flex-direction: column; gap: 8px; }
.pay-teaser-bar-row { display: flex; align-items: center; gap: 10px; }
.pay-teaser-bar-label {
  width: 32px; font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-align: right; flex-shrink: 0;
}
.pay-teaser-bar-track {
  flex: 1; height: 8px; background: var(--border-light);
  border-radius: 4px; overflow: hidden;
}
.pay-teaser-bar-fill {
  height: 100%; background: var(--green); border-radius: 4px;
  transition: width 0.6s var(--ease);
}
.pay-teaser-blur {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(transparent, var(--surface) 80%);
  pointer-events: none;
}

.pay-benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.pay-benefit {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px;
  animation: fadeUp 0.45s var(--ease) both;
}
.pay-benefit:nth-child(1) { animation-delay: 0.1s; }
.pay-benefit:nth-child(2) { animation-delay: 0.15s; }
.pay-benefit:nth-child(3) { animation-delay: 0.2s; }
.pay-benefit:nth-child(4) { animation-delay: 0.25s; }
.pay-benefit-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pay-benefit-icon svg { width: 22px; height: 22px; }
.pay-benefit h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 6px;
}
.pay-benefit p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-soft);
  margin: 0;
}

.pay-methods {
  background: var(--surface);
  border: 1.5px solid rgba(92,184,92,0.22);
  border-radius: 20px; padding: 0;
  box-shadow:
    0 0 0 1px rgba(92,184,92,0.05),
    0 1px 2px rgba(0,0,0,0.03),
    0 8px 24px rgba(0,0,0,0.06),
    0 24px 48px -12px rgba(92,184,92,0.10);
  animation: payMethodsIn 0.6s 0.3s var(--ease) both;
  overflow: hidden;
  position: relative;
}
.pay-methods::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-deep), var(--green), #7DD87D, var(--green));
  background-size: 200% 100%;
  animation: payShimmer 3s ease-in-out infinite;
}
@keyframes payMethodsIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes payShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.pay-methods-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(92,184,92,0.05) 0%, transparent 100%);
  font-size: 12px; font-weight: 700; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}
.pay-methods-header svg { color: var(--green); flex-shrink: 0; }
.pay-method {
  padding: 24px 28px;
}
.pay-method + .pay-divider + .pay-method {
  border-top: 1px solid var(--border-light);
}
.pay-method h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--text);
  margin: 0 0 14px;
}
.pay-method h3 svg { flex-shrink: 0; color: var(--green); }
.pay-method p {
  font-size: 14px; line-height: 1.7; color: var(--text-soft);
  margin: 8px 0;
}
.pay-note {
  font-size: 12px !important; color: var(--text-muted) !important;
  margin-top: 12px !important;
}
.pay-price-badge {
  display: inline-block; margin-left: 8px;
  padding: 2px 10px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green-deep);
  font-size: 13px; font-weight: 700;
}
.pay-price-sms {
  background: var(--border-light); color: var(--text-muted);
}
.pay-err {
  color: #C62828; background: #FDECEA;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; margin: 8px 0;
}

.pay-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 0; padding: 4px 28px; color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pay-divider::before,
.pay-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

.pay-code-row {
  display: flex; gap: 10px; margin-top: 12px;
}
.pay-code-row input[type="text"] {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  background: var(--bg); transition: border-color 0.2s;
}
.pay-code-row input:focus {
  outline: none; border-color: var(--green);
}
.pay-code-row button {
  padding: 12px 24px; border: none; border-radius: var(--radius);
  background: var(--green); color: #fff; font-size: 15px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background 0.2s;
}
.pay-code-row button:hover { background: var(--green-deep); }

.pay-back {
  text-align: center;
  animation: fadeUp 0.5s 0.35s var(--ease) both;
}
.pay-back a {
  color: var(--text-muted); font-size: 14px; text-decoration: none;
  transition: color 0.2s;
}
.pay-back a:hover { color: var(--text); }

/* Trust badges */
.pay-trust {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 14px; padding: 12px 20px;
  animation: fadeUp 0.5s 0.5s var(--ease) both;
}
.pay-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; line-height: 1;
}
.pay-trust-item svg { color: var(--green); width: 14px; height: 14px; flex-shrink: 0; display: block; }

/* Exit intent overlay */
.pay-exit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pay-exit-overlay.pay-exit-visible {
  opacity: 1; pointer-events: auto;
}
.pay-exit-modal {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px 32px; max-width: 420px; width: 90%;
  text-align: center;
  transform: translateY(20px); transition: transform 0.3s var(--ease);
}
.pay-exit-visible .pay-exit-modal { transform: translateY(0); }
.pay-exit-modal h3 {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 0 0 10px;
}
.pay-exit-modal p {
  font-size: 15px; line-height: 1.6; color: var(--text-soft);
  margin: 0 0 20px;
}
/* Exit timer */
.pay-exit-timer {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--bg); border: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-soft); margin-bottom: 18px;
}
.pay-exit-timer strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pay-exit-timer.pay-timer-urgent { border-color: #FECACA; background: #FEF2F2; }
.pay-exit-timer.pay-timer-urgent strong { color: #DC2626; }

/* Exit benefits list */
.pay-exit-benefits {
  list-style: none; padding: 0; margin: 0 0 20px;
  text-align: left;
}
.pay-exit-benefits li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.pay-exit-benefits li:last-child { border-bottom: none; }
.pay-exit-benefits svg { color: var(--green); flex-shrink: 0; }

.pay-exit-pricing {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 24px;
}
.pay-exit-current {
  font-size: 26px; font-weight: 800; color: var(--green);
}
.pay-exit-stay {
  display: block; width: 100%; padding: 14px; border: none;
  border-radius: var(--radius); background: var(--green); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 0.2s; margin-bottom: 10px;
}
.pay-exit-stay:hover { background: var(--green-deep); color: #fff; }
.pay-exit-go {
  display: inline-block; font-size: 13px; color: var(--text-muted);
  text-decoration: none;
}
.pay-exit-go:hover { color: var(--text); }

.pay-teaser-wrap {
  grid-column: 1 / -1; grid-row: 3;
}
@media (max-width: 860px) {
  .pay-grid { display: flex; flex-direction: column; gap: 32px; }
  .pay-sticky { position: static; }
  .pay-left { order: 1; }
  .pay-right { order: 2; }
  .pay-bottom { order: 4; }
  .pay-teaser-wrap { order: 3; }
  .pay-pricing-card { text-align: center; }
}
@media (max-width: 575px) {
  .pay-benefits { grid-template-columns: 1fr; }
  .pay-benefit { display: flex; align-items: center; gap: 14px; padding: 16px; }
  .pay-benefit-icon { margin-bottom: 0; flex-shrink: 0; width: 38px; height: 38px; }
  .pay-benefit-icon svg { width: 20px; height: 20px; }
  .pay-benefit h3 { font-size: 14px; margin-bottom: 2px; }
  .pay-benefit p { font-size: 12.5px; }
  .pay-methods { border-radius: 16px; }
  .pay-methods-header { font-size: 10px; letter-spacing: 0.04em; padding: 12px 16px; }
  .pay-method { padding: 20px 18px; }
  .pay-pricing-card { padding: 22px 18px 16px; }
  .pay-divider { padding: 4px 18px; }
  .pay-trust { gap: 8px 14px; flex-wrap: wrap; justify-content: center; }
  .pay-code-row { flex-direction: column; }
  .pay-hero h1 { font-size: 22px; }
  .pay-hero-price { font-size: 26px; }
  .pay-teaser-value { font-size: 32px; }
}

/* ========== HOMEPAGE ========== */

/* --- Hero --- */
.home-hero {
  background: linear-gradient(160deg, #F0F4F8 0%, #E8F0F8 40%, var(--green-pale) 100%);
  padding: 72px 20px 56px; text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative; overflow: hidden;
}
.home-hero-inner { max-width: 680px; position: relative; z-index: 2; }
.home-title {
  font-size: 42px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); margin: 0 0 16px; line-height: 1.15;
}
.hero-typewriter { min-height: 1.2em; }
.hero-cursor {
  display: inline-block; color: var(--blue); font-weight: 300;
  animation: cursorBlink 0.7s steps(1) infinite;
  margin-left: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
  animation: fadeUp 0.5s var(--ease) both;
}
.home-subtitle {
  font-size: 17px; line-height: 1.7; color: var(--text-soft);
  margin: 0 auto 28px; max-width: 560px;
  animation: fadeUp 0.5s 0.06s var(--ease) both;
}
.home-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius-full);
  text-decoration: none; margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.25);
  transition: all 0.25s var(--ease);
  animation: fadeUp 0.5s 0.1s var(--ease) both;
}
.home-cta:hover {
  background: var(--green-deep); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46,125,50,0.3);
  color: #fff; text-decoration: none;
}
.home-cta-alt {
  background: var(--surface); color: var(--text); border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.home-cta-alt:hover {
  background: var(--bg-subtle); color: var(--text); border-color: var(--green);
  box-shadow: 0 4px 16px rgba(46,125,50,0.15);
}
.iq-variant-pick {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.iq-variant-pick .home-cta { margin-bottom: 0; }
.iq-variant-hint {
  text-align: center; color: var(--text-muted); font-size: 13px;
  margin-top: 12px; margin-bottom: 20px;
}
.home-stats {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); padding: 10px 8px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s 0.16s var(--ease) both;
}

/* Floating icons */
.hero-floats {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-float {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  animation: heroFloat var(--dur, 7s) var(--d, 0s) ease-in-out infinite,
             heroFadeIn 0.8s var(--d, 0s) var(--ease) both;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
  transform-origin: center;
}
.hero-float svg { width: 100%; height: 100%; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(calc(var(--s) * -0.25)) rotate(3deg); }
  75% { transform: translateY(calc(var(--s) * 0.2)) rotate(-2deg); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 0.45; }
}
.home-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 22px; gap: 2px;
}
.home-stat-num {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.1;
}
.home-stat-label {
  font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  white-space: nowrap;
}
.home-stat-sep {
  width: 1px; height: 28px; background: var(--border-light); flex-shrink: 0;
}

/* --- Section headings --- */
.home-section-head {
  text-align: center; margin-bottom: 32px;
}
.home-section-head h2 {
  font-size: 24px; font-weight: 800; color: var(--text);
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.home-section-head p {
  font-size: 15px; color: var(--text-soft); margin: 0;
  line-height: 1.6;
}

/* --- Trust signals --- */
.home-trust {
  background: var(--surface); border-bottom: 1px solid var(--border-light);
}
.home-trust-strip {
  display: flex; justify-content: center; gap: 32px; padding: 16px 20px;
  flex-wrap: wrap;
}
.home-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
}
.home-trust-item svg { color: var(--green); flex-shrink: 0; }

/* --- Social proof --- */
.home-social {
  max-width: 700px; padding: 40px 20px 0;
}
.home-social-strip {
  display: flex; justify-content: center; align-items: center; gap: 40px;
  flex-wrap: wrap;
}
.home-social-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.home-social-num {
  font-size: 28px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em;
}
.home-social-label {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.home-social-sep {
  width: 1px; height: 36px; background: var(--border-light);
}

/* --- How it works (steps) --- */
.home-steps {
  max-width: 820px; padding: 56px 20px 48px;
}
.home-steps-row {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
}
.home-step {
  flex: 1; text-align: center; padding: 0 16px; max-width: 240px;
}
.home-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.home-step h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 6px;
}
.home-step p {
  font-size: 13px; line-height: 1.6; color: var(--text-soft);
  margin: 0;
}
.home-step-arrow {
  display: flex; align-items: center; padding-top: 8px;
  color: var(--border-light);
}

/* --- Test catalog --- */
.home-catalog {
  padding: 52px 20px 48px; max-width: 920px;
}

/* Featured test card */
.home-featured {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  transition: all 0.3s var(--ease);
  animation: fadeUp 0.5s 0.08s var(--ease) both;
}
.home-featured:hover {
  box-shadow: 0 8px 30px color-mix(in srgb, var(--tc) 15%, transparent);
  border-color: color-mix(in srgb, var(--tc) 40%, var(--border-light));
  transform: translateY(-3px); color: inherit; text-decoration: none;
}
.home-featured-content {
  flex: 1; padding: 24px 28px;
  display: flex; flex-direction: column;
}
.home-featured-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc);
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 10px; width: fit-content;
}
.home-featured h3 {
  font-size: 20px; font-weight: 800; color: var(--text);
  margin: 0 0 6px; letter-spacing: -0.015em; line-height: 1.3;
}
.home-featured p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-soft);
  margin: 0 0 10px;
}
.home-featured-tags { display: flex; gap: 6px; }
.home-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-pale); color: var(--blue);
}
.home-featured-cta-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 32px; flex-shrink: 0;
}
.home-featured-cta-info {
  font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  white-space: nowrap;
}
.home-featured-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: var(--tc);
  padding: 11px 28px; border-radius: 10px;
  width: fit-content;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tc) 30%, transparent);
}
.home-featured-cta svg { transition: transform 0.25s var(--ease); }
.home-featured:hover .home-featured-cta {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--tc) 40%, transparent);
}
.home-featured:hover .home-featured-cta svg { transform: translateX(3px); }

/* Featured visual / left side */
.home-featured-visual {
  width: 120px; flex-shrink: 0; position: relative;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 5%, var(--bg)), color-mix(in srgb, var(--tc) 12%, var(--bg)));
  display: flex; align-items: center; justify-content: center;
  align-self: stretch;
}
.home-featured-icon {
  width: 48px; height: 48px; position: relative; z-index: 1;
  color: var(--tc);
  animation: featuredPulse 3s ease-in-out infinite;
  transition: transform 0.4s var(--ease);
}
.home-featured:hover .home-featured-icon {
  animation: none;
  transform: scale(1.15) rotate(8deg);
}
@keyframes featuredPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.home-featured-icon svg { width: 100%; height: 100%; }

/* Popular test cards (pair) */
.home-popular {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 18px;
}
.home-popular-grid {
  grid-template-columns: 1fr 1fr;
}
.home-popular-card {
  padding: 24px; background: var(--surface);
  border: 1.5px solid var(--border-light); border-radius: var(--radius-lg);
  opacity: 0.75; transition: all 0.25s var(--ease);
  animation: fadeUp 0.4s 0.1s var(--ease) both;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.home-popular-card:nth-child(2) { animation-delay: 0.15s; }
a.home-popular-card { text-decoration: none; opacity: 1; cursor: pointer; display: block; }
a.home-popular-card:hover { box-shadow: var(--shadow-sm); border-color: var(--tc); }
.home-popular-card:hover { opacity: 0.85; box-shadow: var(--shadow-sm); }
.home-popular-top {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px;
}
.home-popular-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc); display: flex; align-items: center; justify-content: center;
}
.home-popular-icon svg { width: 24px; height: 24px; }
.home-popular-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc);
}
.home-popular-card h4 {
  font-size: 17px; font-weight: 700; color: var(--text);
  margin: 0 0 8px; line-height: 1.35;
}
.home-popular-card p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-soft);
  margin: 0 0 14px;
}
.home-popular-card .home-test-pricing {
  justify-content: center;
}
.home-popular-cta-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: auto;
}
.home-popular-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--tc);
  padding: 12px 28px; border-radius: 10px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tc) 25%, transparent);
}
.home-popular-cta svg { transition: transform 0.25s var(--ease); }
.home-popular-card:hover .home-popular-cta {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tc) 35%, transparent);
}
.home-popular-card:hover .home-popular-cta svg { transform: translateX(3px); }
.home-popular-cta-info {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

/* Test cards grid */
.home-tests-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.home-test-card {
  display: flex; gap: 18px; padding: 22px 22px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: all 0.25s var(--ease);
  animation: fadeUp 0.4s var(--ease) both;
}
.home-test-card:nth-child(1) { animation-delay: 0.06s; }
.home-test-card:nth-child(2) { animation-delay: 0.1s; }
.home-test-card:nth-child(3) { animation-delay: 0.14s; }
.home-test-card:nth-child(4) { animation-delay: 0.18s; }
.home-test-card:nth-child(5) { animation-delay: 0.22s; }
a.home-test-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
  border-color: var(--border); text-decoration: none; color: inherit;
}
.home-test-soon { opacity: 0.65; }
.home-test-soon:hover { opacity: 0.75; }
.home-test-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc); display: flex; align-items: center; justify-content: center;
}
.home-test-icon svg { width: 22px; height: 22px; }
.home-test-body { flex: 1; min-width: 0; }
.home-test-body h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 5px; line-height: 1.35;
}
.home-test-body p {
  font-size: 13px; line-height: 1.6; color: var(--text-soft);
  margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-test-pricing {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12.5px; margin: 0 0 10px;
}
.home-free-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: #dcfce7; color: #16a34a;
  padding: 3px 10px; border-radius: var(--radius-full);
  vertical-align: middle; margin-left: 4px;
}
.home-price-free {
  color: #16a34a; font-weight: 600;
}
.home-price-paid {
  color: var(--text-muted); font-weight: 500;
}
.home-test-meta {
  display: flex; align-items: center; gap: 10px;
}
.home-test-dur {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.home-test-badge-soon {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--border-light); color: var(--text-muted);
}

/* --- How it works --- */
.home-how {
  padding: 48px 20px 52px; max-width: 820px;
}
.home-how-steps {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center;
}
.home-how-step {
  flex: 1; text-align: center; padding: 0 16px;
}
.home-how-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  font-size: 18px; display: inline-flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.home-how-step h4 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 6px;
}
.home-how-step p {
  font-size: 13.5px; line-height: 1.65; color: var(--text-soft);
  margin: 0;
}
.home-how-arrow {
  color: var(--border); padding-top: 10px; flex-shrink: 0;
}

/* --- RIASEC types overview --- */
.home-types {
  padding: 0 20px 60px; max-width: 820px;
}
.home-types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 32px;
}
.home-type-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.home-type-chip:hover {
  border-color: var(--tc); box-shadow: var(--shadow-sm);
}
.home-type-letter {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--tc) 12%, var(--bg));
  color: var(--tc); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.home-type-chip strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 1px;
}
.home-type-chip span:not(.home-type-letter) {
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
}
.home-types-cta { text-align: center; }

/* --- Komplexní profil --- */
.home-profile {
  padding: 52px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.home-profile .container { max-width: 920px; }
.home-profile-card {
  display: flex; align-items: center; gap: 48px;
  background: linear-gradient(135deg, #1A4971 0%, #2B6CB0 50%, #4A90D9 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.home-profile-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.home-profile-content { flex: 1; position: relative; z-index: 1; }
.home-profile-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.home-profile-content h2 {
  font-size: 26px; font-weight: 800;
  line-height: 1.25; margin: 0 0 12px;
  color: #fff;
}
.home-profile-content > p {
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0 0 20px; max-width: 480px;
}
.home-profile-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.home-profile-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.home-profile-features li svg {
  flex-shrink: 0; color: rgba(255,255,255,0.6);
}
.home-profile-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: #fff; color: var(--blue-deep);
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.home-profile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--blue-deep); text-decoration: none;
}

/* Profile visual */
.home-profile-visual {
  flex-shrink: 0; width: 240px; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.home-profile-rings {
  position: relative; width: 160px; height: 160px;
}
.home-profile-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.home-profile-ring-1 {
  inset: 0;
  animation: profileSpin 20s linear infinite;
  border-color: rgba(255,255,255,0.12);
  border-top-color: rgba(200,135,77,0.5);
  border-right-color: rgba(166,107,187,0.4);
}
.home-profile-ring-2 {
  inset: 18px;
  animation: profileSpin 15s linear infinite reverse;
  border-color: rgba(255,255,255,0.1);
  border-bottom-color: rgba(212,162,76,0.5);
  border-left-color: rgba(59,130,196,0.4);
}
.home-profile-ring-3 {
  inset: 36px;
  animation: profileSpin 12s linear infinite;
  border-color: rgba(255,255,255,0.08);
  border-top-color: rgba(224,107,107,0.5);
}
.home-profile-center {
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
}
@keyframes profileSpin {
  to { transform: rotate(360deg); }
}
.home-profile-dots {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.home-profile-dot {
  padding: 3px 10px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-left: 3px solid var(--dc);
}
@media (max-width: 768px) {
  .home-popular-grid { grid-template-columns: 1fr 1fr; }
  .home-profile-card {
    flex-direction: column; padding: 36px 28px; gap: 32px; text-align: center;
  }
  .home-profile-content > p { max-width: none; }
  .home-profile-features { align-items: center; }
  .home-profile-visual { width: 200px; }
  .home-profile-rings { width: 140px; height: 140px; }
  .home-profile-ring-2 { inset: 16px; }
  .home-profile-ring-3 { inset: 32px; }
  .home-profile-center { inset: 44px; }
}
@media (max-width: 480px) {
  .home-profile-card { padding: 28px 20px; }
  .home-profile-content h2 { font-size: 22px; }
  .home-profile-visual { width: 160px; }
  .home-profile-rings { width: 120px; height: 120px; }
}

/* --- Průvodce (guides) --- */
.home-guides {
  padding: 52px 0; border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.home-guides .container { max-width: 920px; }
.home-guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.home-guide-card {
  display: flex; flex-direction: column; gap: 0;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: all 0.25s var(--ease);
}
.home-guide-card:hover {
  border-color: var(--tc); box-shadow: var(--shadow-md);
  transform: translateY(-2px); text-decoration: none; color: inherit;
}
.home-guide-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--tc) 10%, var(--bg));
  color: var(--tc); display: flex; align-items: center; justify-content: center;
}
.home-guide-icon svg { width: 22px; height: 22px; }
.home-guide-body { flex: 1; }
.home-guide-body h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 5px; line-height: 1.35;
}
.home-guide-body p {
  font-size: 13px; line-height: 1.6; color: var(--text-soft);
  margin: 0;
}
.home-guide-count {
  display: inline-block; margin-top: 14px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}

/* --- SEO text --- */
.home-seo {
  padding: 52px 20px 0; max-width: 760px;
}
.home-seo-text p {
  font-size: 15px; line-height: 1.8; color: var(--text-soft);
  margin: 0 0 16px;
}
.home-seo-text p:last-child { margin-bottom: 0; }

/* --- Homepage FAQ --- */
.home-faq {
  padding: 48px 20px 60px; max-width: 720px;
}

/* --- Page banner (shown above faq, login, etc.) --- */
.page-banner {
  padding: 16px 20px; max-width: 920px;
}
.page-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue-pale), var(--green-pale));
  border-radius: var(--radius); border: 1px solid var(--border-light);
}
.page-banner-inner span {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.page-banner-inner span strong { color: var(--blue); }
.page-banner-btn {
  font-size: 13px; font-weight: 700; color: var(--surface);
  background: var(--green); padding: 8px 20px;
  border-radius: var(--radius-full); text-decoration: none;
  white-space: nowrap; transition: all 0.2s var(--ease);
}
.page-banner-btn:hover {
  background: var(--green-deep); transform: translateY(-1px);
  text-decoration: none; color: var(--surface);
}
@media (max-width: 575px) {
  .page-banner-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* --- Homepage responsive --- */
@media (max-width: 767px) {
  .home-hero { padding: 52px 20px 44px; }
  .home-title { font-size: 30px; }
  .home-subtitle { font-size: 15px; }
  .home-cta { font-size: 15px; padding: 12px 26px; }
  .hero-float { opacity: 0.25; }
  .home-stats { flex-wrap: wrap; border-radius: var(--radius); padding: 12px 4px; }
  .home-stat { padding: 6px 16px; }
  .home-stat-sep { display: none; }
  .home-trust-strip { gap: 18px; }
  .home-social-strip { gap: 24px; }
  .home-social-num { font-size: 24px; }
  .home-social-sep { height: 28px; }
  .home-steps-row { flex-direction: column; align-items: center; gap: 20px; }
  .home-step-arrow { transform: rotate(90deg); padding: 0; }
  .home-featured { flex-direction: column; }
  .home-featured-visual { width: 100%; height: 80px; }
  .home-featured-icon { width: 40px; height: 40px; }
  .home-featured-content { padding: 20px 22px 16px; }
  .home-featured-cta-wrap { width: 100%; padding: 0 22px 22px; }
  .home-featured-cta { width: 100%; }
  .home-popular { grid-template-columns: 1fr; }
  .home-popular-grid { grid-template-columns: 1fr 1fr; }
  .home-tests-grid { grid-template-columns: 1fr; }
  .home-how-steps { flex-direction: column; gap: 24px; align-items: center; }
  .home-how-step { max-width: 320px; }
  .home-how-arrow { transform: rotate(90deg); padding: 0; }
  .home-types-grid { grid-template-columns: 1fr 1fr; }
  .home-guides-grid { grid-template-columns: 1fr 1fr; }
  .home-catalog { padding: 36px 16px 36px; }
}

@media (max-width: 440px) {
  .home-title { font-size: 26px; }
  .hero-float { display: none; }
  .home-featured h3 { font-size: 19px; }
  .home-popular-grid { grid-template-columns: 1fr; }
  .home-types-grid { grid-template-columns: 1fr; }
  .home-type-chip span:not(.home-type-letter) { display: none; }
  .home-guides-grid { grid-template-columns: 1fr; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body.loaded .steps { animation: fadeUp 0.5s var(--ease) both; }
body.loaded .boxes { animation: fadeUp 0.5s var(--ease) both; }
body.loaded #content .left { animation: fadeUp 0.5s 0.08s var(--ease) both; }
body.loaded #content .right { animation: fadeUp 0.5s 0.16s var(--ease) both; }
body.loaded .test > h2 { animation: fadeUp 0.4s 0.05s var(--ease) both; }
body.loaded h2.intro { animation: fadeUp 0.4s var(--ease) both; }
body.loaded p.intro, body.loaded .q-intro { animation: fadeUp 0.4s 0.05s var(--ease) both; }
body.loaded .q-panel, body.loaded .test .bx { animation: fadeUp 0.45s 0.1s var(--ease) both; }

.q-item { animation: fadeUp 0.35s var(--ease) both; }
.q-item:nth-child(1)  { animation-delay: 0.04s; }
.q-item:nth-child(2)  { animation-delay: 0.07s; }
.q-item:nth-child(3)  { animation-delay: 0.10s; }
.q-item:nth-child(4)  { animation-delay: 0.13s; }
.q-item:nth-child(5)  { animation-delay: 0.16s; }
.q-item:nth-child(6)  { animation-delay: 0.19s; }
.q-item:nth-child(7)  { animation-delay: 0.22s; }
.q-item:nth-child(8)  { animation-delay: 0.25s; }
.q-item:nth-child(9)  { animation-delay: 0.28s; }
.q-item:nth-child(10) { animation-delay: 0.31s; }
.q-item:nth-child(11) { animation-delay: 0.34s; }

body.loaded .sm130px { animation: fadeUp 0.45s var(--ease) both; }
body.loaded .sm130px:nth-child(1) { animation-delay: 0.05s; }
body.loaded .sm130px:nth-child(2) { animation-delay: 0.10s; }
body.loaded .sm130px:nth-child(3) { animation-delay: 0.15s; }
body.loaded .sm130px:nth-child(4) { animation-delay: 0.20s; }
body.loaded .sm130px:nth-child(5) { animation-delay: 0.25s; }
body.loaded .sm130px:nth-child(6) { animation-delay: 0.30s; }


/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .nav-toggle { display: flex; order: 3; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg); padding: 8px 16px; z-index: 99;
  }
  .nav-menu.open { display: block; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul::before { display: none; }
  .nav-menu ul li a { display: block; padding: 14px 16px; font-size: 15px; }
  .nav-login-item, .nav-right-item, .nav-center-item { margin-left: 0; }
  .nav-menu ul li { border-bottom: 1px solid var(--border-light); }
  .nav-menu ul li:last-child { border-bottom: none; }
  .signin { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); right: auto; width: 92%; max-width: 360px; }
  .lang-dropdown { right: auto; left: 0; }
  .steps { flex-wrap: wrap; gap: 4px; }
  .step-dot { display: none; }
  .step { padding: 8px 14px; }
}

@media (max-width: 767px) {
  .test .nbx { float: none !important; }
  .right2-bg { display: none; }
  .q-columns { flex-direction: column; }
  .q-panel { min-width: 100%; }
  .test .imgbox { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  #content .box { min-width: 100%; }
  .steps { padding: 16px 10px 12px; }
  .step { padding: 6px 10px; gap: 8px; }
  .step-icon { width: 32px; height: 32px; border-radius: 10px; }
  .step-icon svg { width: 17px; height: 17px; }
  .step-text { font-size: 11px; }
  .test-nav, .q-nav { flex-direction: column; gap: 12px; }
  .test-nav .button-prev, .test-nav input.button, .q-nav-prev, .q-nav-next { width: 100%; justify-content: center; }
  .muz, .zena { width: 160px; height: 190px; margin: 30px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 575px) {
  .nav-test-label { display: none; }
  .nav-test { justify-content: flex-end; }
  .nav-test-quit { font-size: 12px; padding: 6px 10px; }
  .nav-test-quit svg { width: 14px; height: 14px; }
  .right2-bg { display: none; }
  #content .left { padding: 24px 20px; }
  .hero-card { padding: 28px 20px; }
  .button-hero { font-size: 17px !important; padding: 16px 36px !important; width: 100%; justify-content: center; }
  .q-item { padding: 14px 18px; flex-wrap: wrap; }
  .q-text { flex: 0 0 100%; margin-bottom: 10px; }
  .q-toggle { width: 100%; }
  .q-btn { flex: 1; }
  .q-likert { width: 100%; justify-content: space-between; }
  .q-lbl { width: 40px; height: 40px; font-size: 13px; }
  .holland-letter { width: 56px; height: 56px; font-size: 26px; }
  .holland-code-names { flex-direction: column; gap: 4px; }
  .otazky .bx p { max-width: 55%; }
  .signin { width: 94%; }
  .test .imgbox { grid-template-columns: 1fr 1fr !important; }
}

@media (min-width: 365px) { .otazky .bx p { max-width: 61%; } }

/* ============================================
   ARTICLES HUB + ARTICLE PAGE
   ============================================ */

.articles-hub { padding: 32px 0 48px; }
.articles-hub-header { margin-bottom: 32px; }
.articles-hub-header h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: var(--text-primary); }
.articles-hub-header p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* Category grid */
.articles-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.articles-cat-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  text-decoration: none; color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
}
.articles-cat-card:hover {
  border-color: var(--tc); box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.articles-cat-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tc) 12%, transparent);
  border-radius: 10px; color: var(--tc);
}
.articles-cat-icon svg { width: 20px; height: 20px; }
.articles-cat-body { flex: 1; min-width: 0; }
.articles-cat-body h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.articles-cat-body p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.articles-cat-count {
  font-size: 12px; font-weight: 600; color: var(--tc);
  white-space: nowrap; margin-top: 2px;
}

/* Articles list */
.articles-latest { margin-bottom: 32px; }
.articles-latest h2 { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: var(--text-primary); }
.articles-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.articles-card {
  display: block; padding: 20px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  text-decoration: none; color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
}
.articles-card:hover {
  border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.articles-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.articles-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.articles-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; font-size: 12px; color: var(--text-muted);
}
.articles-card-cat {
  font-weight: 600; color: var(--tc);
}
.articles-card-time { color: var(--text-muted); }
.articles-card-date { color: var(--text-muted); }
.articles-empty { font-size: 14px; color: var(--text-muted); padding: 32px 0; }

/* Breadcrumb */
.articles-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.articles-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.articles-breadcrumb a:hover { color: var(--accent); }
.articles-breadcrumb span:not(:last-child) { color: var(--text-muted); }
.articles-breadcrumb span:last-child { color: var(--text-primary); font-weight: 500; }

/* Related tests in category */
.articles-related-tests {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.articles-related-tests h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.articles-test-links { display: flex; flex-wrap: wrap; gap: 10px; }
.articles-test-link {
  display: inline-block; padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.articles-test-link:hover {
  border-color: var(--accent); background: var(--accent-bg);
}

/* Single article page */
.article-page { padding: 32px 0 48px; }
.article-header { margin-bottom: 32px; }
.article-cat {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--tc); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}
.article-header h1 { font-size: 30px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; color: var(--text-primary); }
.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.article-content {
  max-width: 720px; font-size: 15.5px; line-height: 1.8; color: var(--text-soft);
}
.article-content h2 {
  font-size: 21px; font-weight: 700; color: var(--text-primary);
  margin: 36px 0 12px;
}
.article-content h3 {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  margin: 28px 0 8px;
}
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); }
.article-content em { color: var(--text-muted); }
.article-placeholder {
  font-size: 15px; color: var(--text-muted); font-style: italic;
  padding: 40px 0;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 14px; line-height: 1.6;
}
.article-content th {
  text-align: left; padding: 10px 14px;
  background: var(--surface-alt, #f5f5f5); font-weight: 700;
  color: var(--text-primary); border-bottom: 2px solid var(--border-light);
}
.article-content td {
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  color: var(--text-soft);
}
.article-content tr:last-child td { border-bottom: none; }
.article-content blockquote {
  margin: 20px 0; padding: 16px 20px;
  border-left: 3px solid var(--accent, #4A90D9);
  background: var(--surface-alt, #f9f9f9);
  font-style: italic; color: var(--text-soft);
}
.article-content blockquote p { margin: 0; }
@media (max-width: 600px) {
  .article-content table { font-size: 13px; }
  .article-content th, .article-content td { padding: 8px 10px; }
}

/* Article test CTA */
.article-test-cta { margin: 40px 0; max-width: 720px; }
.article-test-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px;
  background: color-mix(in srgb, var(--tc) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tc) 25%, transparent);
  border-radius: var(--radius);
}
.article-test-cta-inner h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.article-test-cta-inner p { font-size: 13px; color: var(--text-muted); margin: 0; }
.article-test-cta-btn {
  flex-shrink: 0; padding: 10px 20px;
  background: var(--tc); color: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.article-test-cta-btn:hover { opacity: .85; }

/* Related articles */
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.article-related h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; }

@media (max-width: 600px) {
  .articles-cat-grid { grid-template-columns: 1fr; }
  .articles-list { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 24px; }
  .article-content { font-size: 14.5px; }
  .article-test-cta-inner { flex-direction: column; text-align: center; }
}

/* ========== B2B / BUSINESS PAGES ========== */

/* Shared buttons */
.biz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all .2s var(--ease);
  font-family: var(--font); line-height: 1.4;
}
.biz-btn-primary { background: var(--green); color: #fff; }
.biz-btn-primary:hover { background: var(--green-deep); color: #fff; }
.biz-btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.biz-btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.biz-btn-lg { padding: 14px 32px; font-size: 15px; }
.biz-btn-sm { padding: 8px 16px; font-size: 13px; }
.biz-btn-full { width: 100%; }

/* Shared form fields */
.biz-form-field { margin-bottom: 14px; }
.biz-form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 4px; }
.biz-form-field input, .biz-form-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; background: var(--surface); color: var(--text); transition: border-color .2s;
}
.biz-form-field input:focus, .biz-form-field select:focus { outline: none; border-color: var(--blue); }
.biz-error { color: #c0392b; font-size: 13px; margin-bottom: 12px; font-weight: 500; }

/* ---- Business Join ---- */
.biz-join { max-width: 640px; margin: 40px auto; padding: 0 16px; }

.biz-join-error, .biz-join-success { text-align: center; padding: 60px 20px; }
.biz-join-error-icon, .biz-join-success-icon { margin-bottom: 16px; }
.biz-join-error-icon svg { color: #c0392b; }
.biz-join-success-icon svg { color: var(--green); }
.biz-join-error h1, .biz-join-success h1 { font-size: 24px; margin-bottom: 8px; }
.biz-join-error p, .biz-join-success p { color: var(--text-muted); margin-bottom: 24px; }

.biz-join-hero { text-align: center; padding: 32px 0 24px; }
.biz-join-hero h1 { font-size: 28px; margin-bottom: 8px; }
.biz-join-hero p { color: var(--text-muted); font-size: 15px; }

.biz-join-tests { margin-top: 20px; }
.biz-join-tests h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-soft); }
.biz-join-test-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.biz-join-test-badge {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 600;
}

.biz-join-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.biz-join-form-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.biz-join-form-card h2 { font-size: 18px; margin-bottom: 4px; }
.biz-join-form-card > p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

@media (max-width: 640px) {
  .biz-join-forms { grid-template-columns: 1fr; }
}

/* ---- VIP banner & badge ---- */
.vip-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #fef9e7 0%, #fff7cc 100%);
  border: 1px solid #f0d56e; border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 20px;
  font-size: 14px; color: #7a5d00;
}
.vip-badge {
  flex-shrink: 0; display: inline-block;
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.vip-badge-sm {
  display: inline-block; vertical-align: middle;
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 3px; text-transform: uppercase;
  margin-left: 6px; position: relative; top: -1px;
}

/* ---- Account B2B banner ---- */
.biz-account-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-light); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px;
  font-size: 14px; color: var(--green-dark);
}
.biz-account-banner-icon { flex-shrink: 0; }

/* ---- Business Landing ---- */
.biz-landing { }

.biz-hero {
  background: linear-gradient(135deg, #f0faf0 0%, var(--blue-pale) 100%);
  padding: 72px 0 64px; text-align: center;
}
.biz-hero-badge {
  display: inline-block; padding: 5px 16px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .02em;
}
.biz-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.biz-hero p { font-size: 17px; color: var(--text-soft); max-width: 560px; margin: 0 auto 28px; line-height: 1.6; }
.biz-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Benefits */
.biz-benefits { padding: 64px 0; }
.biz-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.biz-benefit-card {
  background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s;
}
.biz-benefit-card:hover { box-shadow: var(--shadow-md); }
.biz-benefit-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: color-mix(in srgb, var(--bc) 12%, transparent);
  color: var(--bc); margin-bottom: 16px;
}
.biz-benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.biz-benefit-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* How it works */
.biz-how { padding: 48px 0 64px; }
.biz-how h2 { font-size: 24px; text-align: center; margin-bottom: 36px; }
.biz-how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.biz-how-step { text-align: center; }
.biz-how-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.biz-how-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.biz-how-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 640px) {
  .biz-how-steps { grid-template-columns: 1fr 1fr; }
}

/* Pricing */
.biz-pricing { padding: 64px 0; background: var(--blue-pale); }
.biz-pricing h2 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.biz-pricing-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.biz-currency-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.biz-currency-label { font-size: 14px; color: var(--text-soft); font-weight: 500; }
.biz-cur-btns { display: flex; }
.biz-cur-btn { padding: 8px 20px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.biz-cur-btn:first-child { border-radius: 6px 0 0 6px; }
.biz-cur-btn:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.biz-cur-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.biz-cur-btn:last-child.active { border-left: 1.5px solid var(--blue); }
.biz-cur-btn:not(.active):hover { background: var(--blue-pale); }
.biz-pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.biz-pricing-card {
  background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: box-shadow .2s;
}
.biz-pricing-card:hover { box-shadow: var(--shadow-md); }
.biz-pricing-popular { border-color: var(--green); }
.biz-pricing-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; padding: 3px 14px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.biz-pricing-tier { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.biz-pricing-price { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.biz-pricing-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.biz-pricing-features { margin-bottom: 24px; }
.biz-pricing-features li {
  font-size: 14px; color: var(--text-soft); padding: 6px 0; border-bottom: 1px solid var(--border-light);
  padding-left: 20px; position: relative;
}
.biz-pricing-features li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* Available tests */
.biz-tests { padding: 64px 0; }
.biz-tests h2 { font-size: 24px; text-align: center; margin-bottom: 32px; }
.biz-tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.biz-test-tile {
  background: var(--surface); border: 1.5px solid var(--border-light); border-radius: 12px;
  padding: 18px 20px;
}
.biz-test-tile h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.biz-test-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.biz-test-tile p { font-size: 13px; color: var(--text-soft); margin-top: 6px; line-height: 1.5; }

/* FAQ */
.biz-faq { padding: 48px 0 64px; }
.biz-faq h2 { font-size: 24px; text-align: center; margin-bottom: 28px; }
.biz-faq-list { max-width: 680px; margin: 0 auto; }
.biz-faq-item {
  border-bottom: 1px solid var(--border-light); padding: 0;
}
.biz-faq-item summary {
  padding: 16px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.biz-faq-item summary::-webkit-details-marker { display: none; }
.biz-faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--text-muted); transition: transform .2s; }
.biz-faq-item[open] summary::after { content: '-'; }
.biz-faq-item p { padding: 0 0 16px; font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* Contact CTA */
.biz-contact {
  text-align: center; padding: 64px 0; background: linear-gradient(135deg, var(--green-light) 0%, #f0faf0 100%);
}
.biz-contact h2 { font-size: 24px; margin-bottom: 8px; }
.biz-contact > .container > p { color: var(--text-soft); font-size: 15px; margin-bottom: 24px; }
.biz-contact-email { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

/* ---- Business Dashboard ---- */
.biz-dash-login { display: flex; justify-content: center; padding: 80px 16px; }
.biz-dash-login-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; max-width: 380px; width: 100%; text-align: center;
}
.biz-dash-login-card h1 { font-size: 22px; margin-bottom: 4px; }
.biz-dash-login-card > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.biz-dash { max-width: 800px; margin: 32px auto; padding: 0 16px 48px; }

.biz-dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.biz-dash-header h1 { font-size: 24px; margin-bottom: 6px; }
.biz-dash-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); align-items: center; }
.biz-dash-tag {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 700;
}
.biz-dash-meta code { background: var(--border-light); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

.biz-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.biz-dash-stat {
  background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius);
  padding: 20px;
}
.biz-dash-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.biz-dash-stat-value { font-size: 28px; font-weight: 800; }
.biz-dash-stat-value span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.biz-dash-stat-bar { height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.biz-dash-stat-bar div { height: 100%; background: var(--green); border-radius: 2px; transition: width .4s var(--ease); }
.biz-dash-stat-warn { font-size: 12px; color: #c0392b; font-weight: 600; margin-top: 6px; }

.biz-dash-section {
  background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.biz-dash-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

.biz-dash-test-table { }
.biz-dash-test-header, .biz-dash-test-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.biz-dash-test-header { font-weight: 700; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.biz-dash-test-name { font-weight: 600; }
.biz-dash-mini-bar { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; display: inline-block; width: 60px; vertical-align: middle; margin-right: 6px; }
.biz-dash-mini-bar div { height: 100%; background: var(--green); border-radius: 2px; }

.biz-dash-link { }
.biz-dash-link p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.biz-dash-link-row { display: flex; gap: 8px; }
.biz-dash-link-row input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 13px; background: var(--border-light); color: var(--text); font-family: monospace;
}
.biz-dash-gdpr { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 24px; padding: 12px; }

/* Aggregated results */
.biz-agg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding: 0 20px 20px; }
.biz-agg-card { background: #f9fafb; border-radius: 10px; padding: 16px 18px; border: 1px solid #e5e7eb; }
.biz-agg-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.biz-agg-card-header h3 { font-size: 14px; font-weight: 700; color: var(--text-dark, #1a1a2e); margin: 0; }
.biz-agg-count { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.biz-agg-bars { display: flex; flex-direction: column; gap: 6px; }
.biz-agg-bar-row { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 8px; }
.biz-agg-bar-label { font-size: 12px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-agg-bar { height: 18px; background: #e5e7eb; border-radius: 9px; overflow: hidden; }
.biz-agg-bar > div { height: 100%; border-radius: 9px; transition: width .4s ease; min-width: 2px; }
.biz-agg-bar-value { font-size: 12px; font-weight: 600; color: #374151; text-align: right; }
.biz-agg-iq { text-align: center; padding: 12px 0; }
.biz-agg-iq-score { font-size: 42px; font-weight: 800; color: var(--text-dark, #1a1a2e); line-height: 1; }
.biz-agg-iq-label { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.biz-agg-mbti-types { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.biz-agg-mbti-label { font-size: 12px; color: #6b7280; width: 100%; margin-bottom: 2px; }
.biz-agg-mbti-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #fff; }
.biz-agg-mbti-badge small { font-weight: 400; opacity: .85; }

/* Individual results */
.biz-ind-details { border-top: 1px solid #e5e7eb; }
.biz-ind-details:last-child { border-bottom: none; }
.biz-ind-summary { padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.biz-ind-summary::-webkit-details-marker { display: none; }
.biz-ind-summary::before { content: '\25B6'; font-size: 10px; margin-right: 10px; transition: transform .2s; color: #9ca3af; }
.biz-ind-details[open] > .biz-ind-summary::before { transform: rotate(90deg); }
.biz-ind-count { font-size: 12px; font-weight: 400; color: #9ca3af; }
.biz-ind-table-wrap { overflow-x: auto; padding: 0 12px 12px; }
.biz-ind-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.biz-ind-table th { text-align: center; padding: 6px 8px; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.biz-ind-table th:first-child { text-align: left; }
.biz-ind-table td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; }
.biz-ind-table tr:last-child td { border-bottom: none; }
.biz-ind-table tr:hover { background: #f0f5ff; }
.biz-ind-email { font-size: 12px; color: #374151; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-ind-num { text-align: center; font-variant-numeric: tabular-nums; }
.biz-ind-code { text-align: center; color: var(--primary, #5193CC); }
.biz-consent-label { display: flex !important; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.biz-consent-label input { margin-top: 2px; }

@media (max-width: 640px) {
  .biz-dash-stats { grid-template-columns: 1fr; }
  .biz-dash-test-header, .biz-dash-test-row { grid-template-columns: 2fr 1fr; font-size: 12px; }
  .biz-agg-grid { grid-template-columns: 1fr; padding: 0 12px 16px; }
  .biz-agg-bar-row { grid-template-columns: 90px 1fr 36px; }
  .biz-ind-table { min-width: 400px; }
}

/* ========== STRIPE PAYMENT ELEMENT ========== */
/* Payment preview: embedded result page */
.pay-result-preview .res-page-header,
.pay-result-preview .res-actions,
.pay-result-preview .locked-final-cta,
.pay-result-preview .res-unlock-bar,
.pay-result-preview .pay-exit-overlay,
.pay-result-preview .res-demo-banner,
.pay-result-preview .share-section { display: none !important; }
.pay-result-preview .test.result-page { padding-top: 0; }
/* Blur the result teaser on payment page in full paywall */
.pay-teaser-full-blur .pay-teaser-body { filter: blur(8px); pointer-events: none; user-select: none; }
/* CTA at bottom of preview */
.pay-preview-cta {
  text-align: center; padding: 40px 20px 60px;
}

/* Payment preview heading */
.pay-preview-heading {
  text-align: center; padding: 48px 0 24px;
}
.pay-preview-heading h2 {
  font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 8px;
}
.pay-preview-heading p {
  font-size: 15px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.6;
}

#express-checkout-element {
  margin-bottom: 4px;
}
#payment-element {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 16px;
}
.stripe-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 4px 16px rgba(92,184,92,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  margin-top: 4px;
}
.stripe-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,184,92,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.05);
}
.stripe-pay-btn:active { transform: scale(0.98); }
.stripe-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.stripe-pay-btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stripe-spin 0.6s linear infinite;
}
.stripe-pay-btn.loading .spinner { display: inline-block; }
.stripe-pay-btn.loading span { display: none; }
@keyframes stripe-spin { to { transform: rotate(360deg); } }
.stripe-error { color: #991b1b; font-size: 13px; margin-top: 8px; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* Full paywall mode: hide free/pro pricing comparison on info pages */
.paywall-full .ti-pricing-bg { display: none; }
/* Blur results on account page for unpaid tests */
.mt-card:not(.mt-card-paid) .mt-card-body { filter: blur(6px); pointer-events: none; user-select: none; }

/* Blur profile page for unpaid users */
.cp-locked-wrap { position: relative; }
.cp-locked-blur { filter: blur(6px); pointer-events: none; user-select: none; }
.cp-locked-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.cp-locked-overlay-inner {
  text-align: center; padding: 40px 32px;
  background: rgba(255,255,255,0.92); border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 420px;
}
.cp-locked-overlay-inner svg { margin-bottom: 16px; color: #888; }
.cp-locked-overlay-inner h3 { margin: 0 0 8px; font-size: 22px; }
.cp-locked-overlay-inner p { margin: 0 0 20px; color: #666; font-size: 15px; }

/* Hide footer for test/result/payment pages */
.page-focus #footer { display: none; }

@media print {
  #header, #footer, .nav-toggle, .nav-lang-item, .right2-bg, .next_step, .q-nav { display: none !important; }
  body { background: white; color: black; }
  .test .bx, .q-panel, #content .left, .sm130px { box-shadow: none; border: 1px solid #ddd; }
}
