/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #6c63ff; border-radius: 3px; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #6c63ff 0%, #f64f59 50%, #f7971e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6c63ff, #f64f59);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: #fff;
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.4);
}

/* ===== SECTION LAYOUT ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  color: #fff;
}

/* ===== HERO (HOME) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.18) 0%, transparent 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: #a89fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-sub {
  font-size: 1.15rem;
  color: #888;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-trust {
  margin-top: 20px;
  font-size: 0.82rem;
  color: #555;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #6c63ff, #f64f59);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.5); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ===== TOOLS SECTION ===== */
.tools-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(108,99,255,0.05), transparent);
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 600px)  { .tools-grid { grid-template-columns: 1fr !important; } }
.tool-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 36px;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-card:hover { transform: translateY(-6px); }
.roast-card:hover { border-color: rgba(246,79,89,0.5); }
.quiz-card:hover { border-color: rgba(108,99,255,0.5); }
.tool-icon { font-size: 3rem; }
.tool-card h3 { font-size: 1.6rem; font-weight: 800; color: #fff; }
.tool-card p { color: #888; font-size: 0.95rem; }
.tool-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tool-features li { color: #ccc; font-size: 0.9rem; }
.btn-tool {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
  align-self: flex-start;
  transition: all 0.2s;
}
.roast-card .btn-tool { background: linear-gradient(135deg, #f64f59, #f7971e); box-shadow: 0 4px 20px rgba(246,79,89,0.3); }
.quiz-card .btn-tool { background: linear-gradient(135deg, #6c63ff, #a855f7); box-shadow: 0 4px 20px rgba(108,99,255,0.3); }
.btn-tool:hover { transform: translateY(-2px); }
.tool-stat { font-size: 0.8rem; color: #555; margin-top: auto; }

/* ===== SOCIAL PROOF ===== */
.social-proof { padding: 100px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.testimonial:hover { border-color: rgba(108,99,255,0.3); }
.t-stars { color: #f7971e; font-size: 1rem; letter-spacing: 2px; }
.testimonial p { color: #ccc; font-size: 0.9rem; font-style: italic; }
.t-author { color: #666; font-size: 0.8rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 60px 0;
  background: rgba(108,99,255,0.06);
  border-top: 1px solid rgba(108,99,255,0.15);
  border-bottom: 1px solid rgba(108,99,255,0.15);
}
.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-big { font-size: 2.4rem; font-weight: 900; background: linear-gradient(135deg, #6c63ff, #f64f59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: 0.85rem; color: #666; }

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  text-align: center;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, #6c63ff, #f64f59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.footer-tagline { color: #555; font-size: 0.9rem; margin-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { color: #666; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #a89fff; }
.footer-copy { color: #333; font-size: 0.8rem; }

/* ===== QUIZ PAGE ===== */
.quiz-page-body {
  background: #0a0a0f;
  min-height: 100vh;
}
.screen { display: none; }
.screen.active { display: block; }

/* Landing Screen */
.quiz-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.2) 0%, transparent 70%);
}
.quiz-hero-inner { max-width: 640px; margin: 0 auto; }
.quiz-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: #a89fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.quiz-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.quiz-hero-sub {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.qmeta-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qmeta-num { font-size: 1.8rem; font-weight: 900; color: #6c63ff; }
.qmeta-lbl { font-size: 0.78rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.btn-start-quiz {
  padding: 18px 48px;
  background: linear-gradient(135deg, #6c63ff, #a855f7);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(108,99,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-start-quiz:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,99,255,0.5); }
.quiz-trust { margin-top: 16px; font-size: 0.8rem; color: #444; }

/* Floating types */
.floating-types {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ft {
  position: absolute;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  color: rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: floatUp 12s linear infinite;
}
.ft:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 14s; }
.ft:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 11s; }
.ft:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 13s; }
.ft:nth-child(4) { left: 60%; animation-delay: 1s; animation-duration: 15s; }
.ft:nth-child(5) { left: 75%; animation-delay: 3s; animation-duration: 12s; }
.ft:nth-child(6) { left: 88%; animation-delay: 5s; animation-duration: 10s; }
@keyframes floatUp {
  from { transform: translateY(110vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-10vh); opacity: 0; }
}

/* Quiz Screen */
.quiz-screen { padding-top: 64px; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.quiz-container { max-width: 680px; width: 100%; margin: 0 auto; padding: 40px 24px; }
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.quiz-logo { font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, #6c63ff, #f64f59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.progress-wrap { display: flex; align-items: center; gap: 12px; flex: 1; margin-left: 24px; }
.progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #6c63ff, #a855f7); border-radius: 999px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); width: 10%; }
.progress-text { font-size: 0.82rem; color: #666; white-space: nowrap; }

.question-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
  animation: cardIn 0.4s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.q-number { font-size: 0.8rem; color: #6c63ff; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.q-text { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 32px; line-height: 1.4; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .options-grid { grid-template-columns: 1fr; } }
.option-btn {
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.4;
}
.option-btn:hover {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.5);
  color: #fff;
  transform: translateY(-2px);
}
.option-btn.selected {
  background: rgba(108,99,255,0.25);
  border-color: #6c63ff;
  color: #fff;
}

/* Loading Screen */
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  text-align: center;
}
.loader-ring {
  width: 64px; height: 64px;
  border: 4px solid rgba(108,99,255,0.2);
  border-top-color: #6c63ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 1.4rem; font-weight: 700; color: #fff; }
.loading-steps { display: flex; flex-direction: column; gap: 8px; max-width: 280px; }
.loading-step {
  font-size: 0.85rem;
  color: #555;
  animation: stepFade 0.5s ease forwards;
}
.loading-step.done { color: #6c63ff; }
@keyframes stepFade { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* Result Screen */
.result-screen { padding: 80px 24px 60px; min-height: 100vh; }
.result-container { max-width: 680px; margin: 0 auto; }
.result-logo { font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, #6c63ff, #f64f59); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: center; margin-bottom: 32px; }

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.6s ease;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c63ff, #f64f59, #f7971e);
}
.result-emoji { font-size: 5rem; margin-bottom: 16px; animation: bounceIn 0.6s ease; }
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.result-label { font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.result-type-name { font-size: 2.4rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.result-tagline { font-size: 1rem; color: #888; margin-bottom: 24px; font-style: italic; }
.result-traits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.trait-tag {
  padding: 6px 14px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #a89fff;
  font-weight: 600;
}
.result-desc { color: #999; font-size: 0.9rem; line-height: 1.7; max-width: 480px; margin: 0 auto 32px; }

.result-stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.rs-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rs-num { font-size: 1.4rem; font-weight: 800; color: #6c63ff; }
.rs-lbl { font-size: 0.72rem; color: #555; text-align: center; }

/* Score bars */
.score-bars {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
}
.score-bar-row { display: flex; align-items: center; gap: 12px; }
.sbar-label { width: 90px; font-size: 0.78rem; color: #777; text-align: right; flex-shrink: 0; }
.sbar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 999px; animation: barGrow 1s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes barGrow { from { width: 0 !important; } }
.sbar-val { width: 36px; font-size: 0.78rem; color: #666; }

/* Share section */
.share-section {
  text-align: center;
  margin-bottom: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}
.share-section h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.share-sub { color: #666; font-size: 0.85rem; margin-bottom: 20px; }
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  color: #fff;
  font-family: inherit;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-tw { background: #000; border: 1px solid #333; }
.share-wa { background: #25d366; }
.share-copy { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.copy-toast {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #6c63ff;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-toast.show { opacity: 1; }
.btn-retake {
  display: block;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #777;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-retake:hover { border-color: rgba(255,255,255,0.25); color: #aaa; }

/* ===== ROAST PAGE ===== */
.roast-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(246,79,89,0.15) 0%, transparent 70%);
}
.roast-hero-inner { max-width: 680px; margin: 0 auto; }
.roast-badge {
  display: inline-block;
  background: rgba(246,79,89,0.1);
  border: 1px solid rgba(246,79,89,0.35);
  color: #f97888;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.roast-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.roast-gradient { background: linear-gradient(135deg, #f64f59, #f7971e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.roast-sub { font-size: 1.05rem; color: #777; margin-bottom: 40px; }

/* Input Panel */
.roast-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px;
  margin-top: 8px;
  text-align: left;
}
.roast-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.rtab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #666;
  transition: all 0.2s;
  font-family: inherit;
}
.rtab.active { background: rgba(246,79,89,0.15); border-color: rgba(246,79,89,0.4); color: #f97888; }
.rtab-panel { display: none; }
.rtab-panel.active { display: block; }
.roast-textarea {
  width: 100%;
  min-height: 180px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.6;
}
.roast-textarea:focus { border-color: rgba(246,79,89,0.5); }
.roast-textarea::placeholder { color: #444; }
.roast-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.roast-input:focus { border-color: rgba(246,79,89,0.5); }
.roast-input::placeholder { color: #444; }

.roast-intensity { margin: 20px 0; }
.intensity-label { font-size: 0.82rem; color: #888; margin-bottom: 10px; display: block; }
.intensity-options { display: flex; gap: 8px; }
.int-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #666;
  transition: all 0.2s;
  font-family: inherit;
}
.int-btn.active { background: rgba(246,79,89,0.15); border-color: rgba(246,79,89,0.4); color: #f97888; }

.btn-roast-me {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f64f59, #f7971e);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 6px 24px rgba(246,79,89,0.35);
  font-family: inherit;
}
.btn-roast-me:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-roast-me:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Roast Loading */
.roast-loading {
  padding: 60px 24px;
  text-align: center;
  display: none;
}
.flame-anim { font-size: 4rem; animation: flicker 0.8s ease-in-out infinite alternate; }
@keyframes flicker {
  from { transform: scale(1) rotate(-3deg); }
  to { transform: scale(1.1) rotate(3deg); }
}
.roast-loading-msg { font-size: 1.1rem; color: #ccc; margin-top: 16px; }
.roast-loading-sub { font-size: 0.85rem; color: #555; margin-top: 8px; }

/* Roast Result */
.roast-result {
  margin-top: 32px;
  display: none;
}
.roast-score-card {
  background: rgba(246,79,89,0.05);
  border: 1px solid rgba(246,79,89,0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
}
.roast-score-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.roast-score-value { font-size: 5rem; font-weight: 900; background: linear-gradient(135deg, #f64f59, #f7971e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.roast-score-suffix { font-size: 2rem; font-weight: 700; color: #f64f59; }
.roast-verdict { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 12px 0 8px; }
.roast-one-liner { font-size: 0.9rem; color: #888; font-style: italic; }

.roast-sections { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.roast-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
}
.roast-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.roast-section-icon { font-size: 1.4rem; }
.roast-section-title { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.roast-section-body { font-size: 0.9rem; color: #aaa; line-height: 1.7; }
.roast-section-body strong { color: #f97888; }

.roast-improvements { background: rgba(108,99,255,0.05); border-color: rgba(108,99,255,0.2); }
.roast-improvements .roast-section-body { color: #a89fff; }

.roast-share-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f64f59, #f7971e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-bottom: 12px;
}
.roast-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-roast-again {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-roast-again:hover { border-color: rgba(255,255,255,0.25); color: #aaa; }

/* ===== FLOATING SHARE BAR (desktop right side) ===== */
.floating-share-bar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: rgba(13,13,20,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 12px 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.fsb-label {
  font-size: 0.55rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-bottom: 2px;
}
.fsb-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  font-family: inherit;
}
.fsb-btn:hover { transform: scale(1.18); opacity: 0.9; }
.fsb-x    { background: #1a1a1a; border: 1px solid #333; }
.fsb-wa   { background: #25d366; }
.fsb-fb   { background: #1877f2; }
.fsb-li   { background: #0a66c2; }
.fsb-rd   { background: #ff4500; }
.fsb-copy { background: #6c63ff; }
.fsb-divider { width: 20px; height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }
.fsb-copied-tip {
  font-size: 0.6rem;
  color: #6c63ff;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  writing-mode: vertical-rl;
}
.fsb-copied-tip.show { opacity: 1; }

/* ===== MOBILE SHARE BAR (bottom fixed) ===== */
.mobile-share-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10,10,15,0.98);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 8px env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(20px);
}
.msb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 0.6rem;
  font-family: inherit;
  transition: color 0.2s;
  text-decoration: none;
  padding: 4px 6px;
  min-width: 52px;
}
.msb-btn:active { color: #fff; }
.msb-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ===== PAGE SHARE SECTION (inline) ===== */
.page-share-section {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
}
.page-share-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.page-share-inner h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.page-share-inner p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 24px;
}
.page-share-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.psb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.psb-btn:hover { transform: translateY(-2px); opacity: 0.88; }
.psb-x    { background: #1a1a1a; border: 1px solid #333; }
.psb-wa   { background: #25d366; }
.psb-fb   { background: #1877f2; }
.psb-li   { background: #0a66c2; }
.psb-rd   { background: #ff4500; }
.psb-copy { background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.35); color: #a89fff; }
.psb-copy-toast {
  font-size: 0.75rem;
  color: #6c63ff;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  height: 18px;
}
.psb-copy-toast.show { opacity: 1; }

/* Hide floating bar on mobile, show bottom bar */
@media (max-width: 768px) {
  .floating-share-bar { display: none !important; }
  .mobile-share-bar   { display: flex !important; }
  body { padding-bottom: 70px; }
  .page-share-section { padding-bottom: 80px; }
}

/* ===== GEO MAP ===== */
.geomap-section { padding: 80px 0; background: linear-gradient(180deg, transparent, rgba(108,99,255,0.04), transparent); }
.geomap-wrap { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 24px; overflow: hidden; }
.geomap-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; gap: 8px; }
.geomap-title { font-size: 1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.geomap-subtitle { font-size: 0.82rem; color: #666; }
.geomap-subtitle span { color: #10b981; font-weight: 700; }
.geomap-svg-wrap { width: 100%; aspect-ratio: 2/1; overflow: hidden; }
.geomap-legend { display: flex; gap: 20px; padding: 12px 24px; border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; }
.geomap-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #555; }
.gml-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.geomap-feed { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.geomap-feed-item { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; }
.gmf-city { color: #ccc; font-weight: 600; min-width: 90px; }
.gmf-action { color: #555; flex: 1; }
.gmf-time { color: #333; font-size: 0.68rem; white-space: nowrap; }

/* ===== WEEK STATS ===== */
.weekstats-section { padding: 80px 0; }
.weekstats-wrap { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 24px; padding: 28px; }
.weekstats-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.weekstats-title { font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.weekstats-total { font-size: 1.8rem; font-weight: 900; color: #fff; }
.weekstats-change { display: flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: #10b981; font-weight: 700; white-space: nowrap; align-self: center; }
.ws-arrow { font-size: 1rem; }
.weekstats-bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; margin-bottom: 20px; }
.wsb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wsb-val { font-size: 0.62rem; color: #444; white-space: nowrap; }
.wsb-track { flex: 1; width: 100%; background: rgba(255,255,255,0.05); border-radius: 6px 6px 0 0; overflow: hidden; display: flex; align-items: flex-end; }
.wsb-fill { width: 100%; background: rgba(108,99,255,0.4); border-radius: 4px 4px 0 0; min-height: 4px; }
.wsb-today { background: linear-gradient(180deg, #6c63ff, #a855f7) !important; box-shadow: 0 0 12px rgba(108,99,255,0.4); }
.wsb-day { font-size: 0.68rem; color: #444; }
.wsb-day-today { color: #a89fff; font-weight: 700; }
.weekstats-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.wsm-item { text-align: center; }
.wsm-val { font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg,#6c63ff,#f64f59); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.wsm-lbl { font-size: 0.7rem; color: #555; margin-top: 2px; }
@media (max-width: 600px) {
  .weekstats-metrics { grid-template-columns: repeat(2,1fr); }
  .weekstats-bars { height: 90px; }
  .wsb-val { display: none; }
  .geomap-feed { display: none; }
}

/* ===== FACT ROTATOR ===== */
.fact-section { padding: 70px 0; }
.fact-outer { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.fact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 40px;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: factSlide 0.4s ease;
}
@keyframes factSlide { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.fact-icon { font-size: 2.4rem; }
.fact-text { font-size: 1rem; color: #ccc; line-height: 1.7; max-width: 520px; }
.fact-text strong { color: #fff; }
.fact-dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.fact-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); cursor: pointer; transition: background 0.2s; }
.fact-dot.active { background: #6c63ff; }

/* ===== TYPE COMPARISON ===== */
.tc-section { padding: 80px 0; background: rgba(108,99,255,0.03); }
.tc-wrap { display: flex; flex-direction: column; gap: 24px; }
.tc-selectors { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tc-select {
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  min-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.tc-select option { background: #13131f; color: #fff; }
.tc-vs { font-size: 0.8rem; font-weight: 800; color: #444; background: rgba(255,255,255,0.05); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .tc-grid { grid-template-columns: 1fr; } }
.tc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-emoji { font-size: 2.2rem; }
.tc-name { font-size: 1.1rem; font-weight: 800; }
.tc-famous { font-size: 0.75rem; color: #555; }
.tc-career { font-size: 0.78rem; color: #888; padding: 6px 10px; background: rgba(255,255,255,0.04); border-radius: 8px; }
.tc-sw { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tc-sw-item { display: flex; flex-direction: column; gap: 2px; }
.tc-sw-lbl { font-size: 0.68rem; color: #555; text-transform: uppercase; letter-spacing: 1px; }
.tc-sw-val { font-size: 0.8rem; color: #bbb; }
.tc-bars { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 20px 24px; }
.tc-bar-row { display: grid; grid-template-columns: 100px 1fr 32px 16px 32px 1fr; gap: 8px; align-items: center; }
@media (max-width: 600px) { .tc-bar-row { grid-template-columns: 80px 1fr 28px 12px 28px 1fr; gap: 4px; } }
.tc-bar-label { font-size: 0.75rem; color: #777; text-align: right; }
.tc-bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.tc-bar-a { height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.tc-bar-b { height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.tc-bar-score { font-size: 0.72rem; font-weight: 700; text-align: center; }
.tc-bar-sep { font-size: 0.7rem; color: #333; text-align: center; }
.tc-cta { text-align: center; padding-top: 8px; }

/* ===== ACCORDION ===== */
.accordion-section { padding: 80px 0; }
.accordion-wrap { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.acc-item:last-child { border-bottom: none; }
.acc-q {
  width: 100%;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: background 0.2s;
}
.acc-q:hover { background: rgba(108,99,255,0.08); }
.acc-icon { font-size: 1.2rem; color: #6c63ff; font-weight: 300; flex-shrink: 0; }
.acc-body { overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.acc-text { padding: 0 24px 20px; font-size: 0.88rem; color: #999; line-height: 1.8; }
.acc-text strong { color: #f97888; }
.acc-cta { padding: 28px; text-align: center; background: rgba(246,79,89,0.04); border-top: 1px solid rgba(246,79,89,0.12); }

/* ===== QUIZ TEASER ===== */
.quiz-teaser-section { padding: 70px 0; }
.quiz-teaser-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  opacity: 1;
}
.quiz-teaser-card {
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}
.quiz-teaser-card h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.quiz-teaser-card p  { font-size: 0.88rem; color: #777; margin-bottom: 28px; }
.qt-types { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.qt-type {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
}
.qt-type:hover { transform: translateY(-2px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .question-card { padding: 28px 20px; }
  .result-card { padding: 32px 20px; }
  .roast-panel { padding: 24px 20px; }
  .section-title { font-size: 1.5rem; }
  .result-stats-row { gap: 20px; }
  .roast-score-value { font-size: 3.5rem; }
}
