/* ============================================
   SBTI Personality Test — Stylesheet
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-elevated: #1e1e2a;

  --text-primary: #e8e6f0;
  --text-secondary: #8a8899;
  --text-muted: #5a586a;

  --accent-main: #a78bfa;
  --accent-main-dim: rgba(167, 139, 250, 0.15);
  --accent-blue: #60a5fa;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-orange: #fb923c;
  --accent-purple: #c084fc;
  --accent-red: #f87171;

  --gradient-main: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #fb923c 100%);
  --gradient-card: linear-gradient(145deg, rgba(167,139,250,0.08) 0%, rgba(244,114,182,0.05) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(167,139,250,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section { min-height: 100vh; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-mark {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.btn-nav {
  background: var(--accent-main-dim) !important;
  color: var(--accent-main) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.btn-nav:hover {
  background: rgba(167, 139, 250, 0.25) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 0;
}

.mobile-menu.active { display: flex; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(167,139,250,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 10%, rgba(244,114,182,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 30% 20% at 30% 20%, rgba(96,165,250,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-main);
  background: var(--accent-main-dim);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ============================================
   STATS
   ============================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   FEATURED CARDS
   ============================================ */

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 100px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-card:hover {
  border-color: rgba(167,139,250,0.15);
  transform: translateY(-4px);
}

.featured-card:hover::before { opacity: 1; }

.featured-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(167,139,250,0.2);
}

.featured-img-sm {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.featured-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.featured-code {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.featured-code.small {
  font-size: 2rem;
  letter-spacing: -1px;
}

.featured-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   SECTION BLOCKS
   ============================================ */

.section-block {
  margin-top: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-main);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================
   MODELS GRID
   ============================================ */

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.models-grid .model-card:nth-child(4),
.models-grid .model-card:nth-child(5) {
  grid-column: span 1;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
}

.model-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.model-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.model-card:hover::after { opacity: 0.5; }

.model-dims {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-main);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.model-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.model-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* last two cards center */
.models-grid {
  justify-items: center;
}

/* ============================================
   COMPARE
   ============================================ */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s;
}

.compare-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.1);
}

.compare-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.compare-sbti .compare-badge {
  background: var(--accent-main-dim);
  color: var(--accent-main);
}

.compare-mbti .compare-badge {
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent-blue);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.compare-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-main);
}

.compare-mbti li::before {
  background: var(--accent-blue);
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.1);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 0.95rem;
}

.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-main);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: all 0.35s ease;
}

.faq-item.active .faq-a {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  margin-top: 120px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 8px;
  font-size: 0.75rem !important;
}

/* ============================================
   QUIZ SECTION
   ============================================ */

.quiz-section {
  min-height: 100vh;
  background: var(--bg-primary);
  padding-top: 80px;
}

.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.quiz-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.quiz-back:hover { color: var(--text-primary); }

.quiz-progress-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 60px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-body {
  min-height: 400px;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
  animation: fadeInUp 0.4s ease both;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-option {
  background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeInUp 0.4s ease both;
}

.quiz-option:nth-child(1) { animation-delay: 0.05s; }
.quiz-option:nth-child(2) { animation-delay: 0.1s; }
.quiz-option:nth-child(3) { animation-delay: 0.15s; }
.quiz-option:nth-child(4) { animation-delay: 0.2s; }

.quiz-option:hover {
  border-color: rgba(167,139,250,0.3);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.quiz-option.selected {
  border-color: var(--accent-main);
  background: var(--accent-main-dim);
  color: var(--text-primary);
}

.quiz-option-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.quiz-option.selected .quiz-option-marker {
  border-color: var(--accent-main);
  background: var(--accent-main);
}

.quiz-option.selected .quiz-option-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-bottom: 60px;
}

/* ============================================
   RESULT SECTION
   ============================================ */

.result-section {
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 100px 0 60px;
}

.result-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.result-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 64px 40px;
  text-align: center;
  margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.08);
}

.result-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(167,139,250,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(244,114,182,0.12) 0%, transparent 50%),
    var(--bg-card);
  z-index: 0;
}

.result-card-inner {
  position: relative;
  z-index: 1;
}

.result-img {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: contain;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(167,139,250,0.2);
  animation: fadeInUp 0.6s ease 0.05s both;
}

.result-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.result-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.result-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.result-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.result-match {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* RESULT DETAILS */

.result-details {
  animation: fadeInUp 0.8s ease 0.5s both;
}

.result-section-block {
  margin-bottom: 40px;
}

.result-section-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-section-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* DIMENSION CHART */

.dims-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dim-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.dim-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}

.dim-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.dim-bar-fill.model-s { background: var(--accent-blue); }
.dim-bar-fill.model-e { background: var(--accent-pink); }
.dim-bar-fill.model-a { background: var(--accent-green); }
.dim-bar-fill.model-ac { background: var(--accent-orange); }
.dim-bar-fill.model-so { background: var(--accent-purple); }

.dim-score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dim-explanation {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 102px;
  margin-top: -4px;
  line-height: 1.5;
}

/* FACETS GRID */

.facets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.facet-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.facet-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.facet-score-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  position: relative;
}

.facet-score-ring svg {
  transform: rotate(-90deg);
}

.facet-score-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.facet-score-ring .ring-bg {
  stroke: rgba(255,255,255,0.06);
}

.facet-score-ring .ring-fill {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.facet-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.facet-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* RESULT DISCLAIMER */

.result-disclaimer {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.result-disclaimer p {
  font-size: 0.85rem;
  color: var(--accent-orange);
}

.result-leaderboard-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(244,114,182,0.08));
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.result-leaderboard-link:hover {
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(244,114,182,0.15));
  border-color: var(--accent-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167,139,250,0.15);
}

.result-leaderboard-link svg:first-child { color: var(--accent-main); }
.result-leaderboard-link svg:last-child { color: var(--text-muted); }

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SHARE */

.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.share-btn:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-save { border-color: rgba(167,139,250,0.3); }
.share-save:hover { background: rgba(167,139,250,0.12); border-color: var(--accent-main); }

.share-weibo { border-color: rgba(230,73,58,0.3); }
.share-weibo:hover { background: rgba(230,73,58,0.12); border-color: #e6493a; }
.share-weibo svg { color: #e6493a; }

.share-qq { border-color: rgba(18,183,245,0.3); }
.share-qq:hover { background: rgba(18,183,245,0.12); border-color: #12b7f5; }
.share-qq svg { color: #12b7f5; }

.share-copy { border-color: rgba(52,211,153,0.3); }
.share-copy:hover { background: rgba(52,211,153,0.12); border-color: var(--accent-green); }
.share-copy svg { color: var(--accent-green); }

.share-native { border-color: rgba(251,146,60,0.3); }
.share-native:hover { background: rgba(251,146,60,0.12); border-color: var(--accent-orange); }
.share-native svg { color: var(--accent-orange); }

.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.share-modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.share-modal-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.share-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.share-modal-close:hover { color: var(--text-primary); }

.share-modal-body {
  padding: 20px;
  text-align: center;
}

.share-modal-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.share-modal-body .share-tip {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* CONTACT PAGE */

.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
}

.contact-item + .contact-item {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(167,139,250,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-main);
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--accent-main);
}

.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-green);
  color: #000;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10000;
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .stats-row { grid-template-columns: 1fr; }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main { grid-row: span 1; }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .hero-title { letter-spacing: -0.5px; }

  .result-card { padding: 48px 24px; }

  .dim-row {
    grid-template-columns: 70px 1fr 36px;
    gap: 8px;
  }

  .dim-label { font-size: 0.68rem; }

  .facets-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-footer {
    flex-direction: column;
    gap: 12px;
  }

  .quiz-footer .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .facets-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: rgba(167, 139, 250, 0.3);
  color: #fff;
}

/* ============================================
   MORE TESTS CARDS (result page)
   ============================================ */

.result-more-tests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.more-test-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary, #fff);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.more-test-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.06);
}
.more-test-card svg {
  flex-shrink: 0;
  opacity: 0.35;
  margin-left: auto;
  transition: transform 0.2s, opacity 0.2s;
}
.more-test-card:hover svg {
  transform: translateX(3px);
  opacity: 0.7;
}

.more-test-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.more-test-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.more-test-info strong {
  font-size: 0.88rem;
  font-weight: 700;
}
.more-test-info small {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono, monospace);
}

@media (max-width: 600px) {
  .result-more-tests {
    grid-template-columns: 1fr;
  }
}
