/* ============================
   Dismis - Full Design System
   ============================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core */
  --bg: #241D17;
  --bg-light: #2E2520;
  --bg-elevated: #362D26;

  /* Card */
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #F5F0EB;
  --text-secondary: rgba(245, 240, 235, 0.6);
  --text-muted: rgba(245, 240, 235, 0.35);

  /* Palette - Figma colors */
  --sunshine: #FFD93D;
  --moss: #2D6A4F;
  --purple: #7B2CBF;
  --blossom: #FFB4D2;
  --flame: #E63946;
  --orange: #F77F00;
  --pear: #B5E48C;
  --sky: #48BFE3;
  --lilac: #C8B6FF;

  /* Accent gradients (green = fake detection, pink = authentic) */
  --accent-green: #00B894;
  --accent-green-end: #00CEC9;
  --accent-pink: #E84393;
  --accent-pink-end: #D63384;
  --fake-start: #00B894;
  --fake-end: #00CEC9;
  --real-start: #E84393;
  --real-end: #D63384;
  --suspicious-color: #FDCB6E;
  --finding-dot: #E17055;

  /* Feedback */
  --feedback-correct: #00B894;
  --feedback-wrong: #FDCB6E;

  /* Risk */
  --risk-low: #B5E48C;
  --risk-medium: #FFD93D;
  --risk-high: #E63946;

  /* Layout */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --nav-height: 72px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ============================
   Screen Transitions
   ============================ */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0 20px 40px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.screen.exit {
  opacity: 0;
  transform: translateX(-30px);
}

.screen.has-nav {
  padding-bottom: calc(var(--nav-height) + 24px);
}

/* Scrollbar */
.screen::-webkit-scrollbar {
  width: 4px;
}
.screen::-webkit-scrollbar-track {
  background: transparent;
}
.screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ============================
   Onboarding
   ============================ */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.onboarding-overlay.hidden {
  display: none;
}

.onboarding-slides {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.onboarding-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  background: var(--bg);
}

.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.onboarding-slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}

.onboarding-icon {
  width: 120px;
  height: 120px;
  min-height: 120px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  overflow: hidden;
}

.onboarding-icon.icon-shield {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(72, 191, 227, 0.2));
}
.onboarding-icon.icon-scan {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.2), rgba(0, 206, 201, 0.2));
}
.onboarding-icon.icon-chart {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.2), rgba(253, 203, 110, 0.2));
}
.onboarding-icon.icon-book {
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.2), rgba(255, 217, 61, 0.2));
}

.onboarding-icon svg {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  flex-shrink: 0;
}

.onboarding-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.onboarding-desc {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  max-width: 320px;
}

.onboarding-controls {
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
}

.onboarding-dots .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s, width 0.3s;
}

.onboarding-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--text-primary);
}

.onboarding-next-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--sky));
  color: white;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.onboarding-next-btn:active {
  transform: scale(0.97);
}

/* ============================
   Bottom Navigation
   ============================ */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-light);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 50;
  transition: transform 0.3s ease;
}

.bottom-nav.hidden {
  transform: translateY(100%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--purple);
}

.nav-item:active {
  opacity: 0.7;
}

/* ============================
   Header
   ============================ */
.app-header {
  display: flex;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: var(--card-bg);
}

.app-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Sparkle icon */
.sparkle {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

.sparkle svg {
  width: 16px;
  height: 16px;
}

/* ============================
   Teen Home Screen
   ============================ */
.home-greeting {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 8px;
}

.home-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.home-greeting-text h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-greeting-text span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Detector Card */
.home-detector-card {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(72, 191, 227, 0.1));
  border: 1px solid rgba(123, 44, 191, 0.2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.home-detector-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.home-detector-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-detector-card h2 svg {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

.home-detector-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.home-detector-actions {
  display: flex;
  gap: 10px;
}

.home-detector-actions .action-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn.btn-paste {
  background: linear-gradient(135deg, var(--real-start), var(--real-end));
}

.action-btn.btn-upload {
  background: linear-gradient(135deg, var(--fake-start), var(--fake-end));
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

/* Recent Checks */
.recent-checks {
  margin-top: 32px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.recent-checks-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.recent-checks-scroll::-webkit-scrollbar {
  display: none;
}

.recent-check-card {
  flex-shrink: 0;
  width: 120px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.recent-check-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.recent-check-label {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
}

.recent-check-label.authentic {
  color: var(--fake-start);
}

.recent-check-label.synthetic {
  color: var(--real-start);
}

.recent-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
}

/* Home Spectrum Card */
.home-spectrum-card {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.home-spectrum-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-spectrum-stats {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.home-spectrum-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: visible;
  position: relative;
  margin-bottom: 8px;
}

.home-spectrum-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg,
    var(--accent-pink) 0%, var(--orange) 25%,
    var(--sunshine) 45%, var(--accent-green) 65%,
    var(--sky) 85%, var(--lilac) 100%);
  transition: width 0.8s ease;
  width: 50%;
}

.home-spectrum-marker {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.8s ease;
}

.home-spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.home-spectrum-feedback {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xs);
}

/* Improvement Section */
.home-improvement {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.home-improvement h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.improvement-gauge {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gauge-circle {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}

.gauge-circle svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.gauge-circle .gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.gauge-circle .gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 1s ease;
}

.gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
}

.gauge-info {
  flex: 1;
}

.gauge-info .gauge-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gauge-info .gauge-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================
   Detector Upload Screen
   ============================ */
.detector-hero {
  text-align: center;
  padding: 8px 0 24px;
}

.detector-hero h2 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.upload-zone {
  background: var(--card-bg);
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.upload-icon {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.upload-text {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-subtext {
  font-size: 13px;
  color: var(--text-secondary);
}

/* URL Input */
.url-input-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.url-input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.url-input::placeholder {
  color: var(--text-muted);
}

.url-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.url-submit {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  padding: 12px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.url-submit:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* How It Works */
.how-it-works {
  margin-top: 32px;
}

.how-it-works h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 500;
}

.how-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-item:nth-child(1) .how-item-icon {
  background: rgba(232, 67, 147, 0.15);
  color: #E84393;
}
.how-item:nth-child(2) .how-item-icon {
  background: rgba(255, 217, 61, 0.15);
  color: #FFD93D;
}
.how-item:nth-child(3) .how-item-icon {
  background: rgba(230, 57, 70, 0.15);
  color: #E63946;
}
.how-item:nth-child(4) .how-item-icon {
  background: rgba(247, 127, 0, 0.15);
  color: #F77F00;
}
.how-item:nth-child(5) .how-item-icon {
  background: rgba(200, 182, 255, 0.15);
  color: #C8B6FF;
}

.how-item-icon svg {
  width: 18px;
  height: 18px;
}

/* Start Analysis Button */
.start-analysis-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-end));
  color: white;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 32px;
  transition: transform 0.15s;
  display: block;
}

.start-analysis-btn:active {
  transform: scale(0.97);
}

/* Examples */
.examples-section {
  margin-top: 32px;
}

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

.example-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.2s, border-color 0.2s;
}

.example-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.example-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 11px;
  font-weight: 500;
  color: white;
}

/* ============================
   Guess Screen
   ============================ */
.guess-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}

.image-preview-container {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.image-preview-container.small {
  width: 160px;
  max-height: 160px;
  border-radius: var(--radius-sm);
  margin: 0 auto 24px;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guess-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.guess-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.guess-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.guess-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-body);
  color: white;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.guess-btn:active {
  transform: scale(0.97);
}

.fake-btn {
  background: linear-gradient(135deg, var(--fake-start), var(--fake-end));
  box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3);
}

.fake-btn:hover {
  box-shadow: 0 6px 28px rgba(0, 184, 148, 0.45);
}

.real-btn {
  background: linear-gradient(135deg, var(--real-start), var(--real-end));
  box-shadow: 0 4px 20px rgba(232, 67, 147, 0.3);
}

.real-btn:hover {
  box-shadow: 0 6px 28px rgba(232, 67, 147, 0.45);
}

.guess-btn-icon {
  display: flex;
  align-items: center;
}

/* ============================
   Analyzing Screen
   ============================ */
.analyzing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.analyzing-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 32px;
}

.analysis-checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.check-item.active {
  opacity: 1;
}

.check-item.done {
  opacity: 1;
}

.check-item.done .check-spinner {
  border: none;
  background: var(--fake-start);
  animation: none;
}

.check-item.done .check-spinner::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 3px;
  left: 6px;
}

.check-spinner {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  position: relative;
}

.check-item.active .check-spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================
   Result Screen
   ============================ */
.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 40px;
}

.result-image {
  margin-bottom: 16px;
}

.result-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.result-feedback {
  text-align: center;
  margin-bottom: 24px;
}

.result-feedback .feedback-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.result-feedback .feedback-text.correct {
  color: var(--feedback-correct);
}

.result-feedback .feedback-text.wrong {
  color: var(--feedback-wrong);
}

.result-feedback .feedback-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Three-way verdict tabs */
.verdict-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.verdict-tab {
  flex: 1;
  padding: 14px 8px;
  border: none;
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  cursor: default;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.verdict-tab + .verdict-tab {
  border-left: 1px solid var(--card-border);
}

.verdict-tab.active[data-verdict="real"] {
  background: rgba(0, 184, 148, 0.2);
  color: var(--fake-start);
}

.verdict-tab.active[data-verdict="suspicious"] {
  background: rgba(253, 203, 110, 0.2);
  color: var(--suspicious-color);
}

.verdict-tab.active[data-verdict="fake"] {
  background: rgba(232, 67, 147, 0.2);
  color: var(--real-start);
}

/* Confidence */
.confidence-section {
  width: 100%;
  margin-bottom: 28px;
}

.confidence-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.confidence-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.confidence-value {
  font-size: 13px;
  font-weight: 600;
}

.confidence-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.confidence-fill.verdict-real {
  background: linear-gradient(90deg, var(--fake-start), var(--fake-end));
}

.confidence-fill.verdict-suspicious {
  background: linear-gradient(90deg, #f39c12, var(--suspicious-color));
}

.confidence-fill.verdict-fake {
  background: linear-gradient(90deg, var(--real-start), var(--real-end));
}

/* Findings */
.findings-section {
  width: 100%;
  margin-bottom: 28px;
}

.findings-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finding-card {
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.finding-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.severity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  min-width: 10px;
  background: var(--finding-dot);
}

.severity-dot.dot-green { background: var(--fake-start); }
.severity-dot.dot-orange { background: var(--orange); }
.severity-dot.dot-red { background: var(--flame); }

.finding-title {
  font-size: 14px;
  font-weight: 600;
}

.finding-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Spectrum (Result) */
.spectrum-section {
  width: 100%;
  margin-bottom: 28px;
}

.spectrum-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.spectrum-card-inline {
  padding: 24px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  text-align: center;
}

.spectrum-score-inline {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--real-start), var(--fake-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spectrum-desc-inline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.spectrum-bar-large {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: visible;
  position: relative;
}

.spectrum-fill-large {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg,
    var(--accent-pink) 0%, var(--orange) 25%,
    var(--sunshine) 45%, var(--accent-green) 65%,
    var(--sky) 85%, var(--lilac) 100%);
  transition: width 0.8s ease;
  width: 50%;
}

.spectrum-marker {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.8s ease;
}

.spectrum-labels-large {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.spectrum-moved {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 184, 148, 0.08);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* Teen explanation */
.teen-section {
  width: 100%;
  margin-bottom: 24px;
}

.teen-toggle-btn {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.12), rgba(0, 184, 148, 0.12));
  border: 1px solid rgba(232, 67, 147, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.teen-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.22), rgba(0, 184, 148, 0.22));
}

.chevron-icon {
  margin-left: auto;
  transition: transform 0.3s;
}

.teen-section.expanded .chevron-icon {
  transform: rotate(180deg);
}

.teen-explanation-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--card-bg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.teen-section.expanded .teen-explanation-expandable {
  max-height: 500px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-top: none;
}

.teen-explanation-expandable p {
  margin-bottom: 12px;
}
.teen-explanation-expandable p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.primary-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.primary-btn:active {
  transform: scale(0.98);
}

.try-another-btn {
  margin-top: 8px;
}

/* ============================
   Transparency Report
   ============================ */
.report-header {
  padding: 24px 0 8px;
}

.report-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.report-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bubble-chart {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  animation: bubbleIn 0.5s ease forwards;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.bubble:hover {
  z-index: 5;
  filter: brightness(1.1);
}

@keyframes bubbleIn {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.bubble-label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-align: center;
  padding: 4px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Risk Legend */
.risk-legend {
  margin: 0 0 28px;
}

.risk-legend h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.risk-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--risk-low), var(--risk-medium), var(--risk-high));
  margin-bottom: 8px;
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.risk-labels span:first-child { color: var(--risk-low); }
.risk-labels span:nth-child(2) { color: var(--risk-medium); }
.risk-labels span:last-child { color: var(--risk-high); }

/* Caution Card */
.caution-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.3), rgba(232, 67, 147, 0.25));
  border: 1px solid rgba(247, 127, 0, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.caution-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.caution-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* What to Notice */
.notice-section {
  margin-bottom: 32px;
}

.notice-section h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 32px;
  position: relative;
}

.notice-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.notice-know-more {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.notice-know-more:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================
   Content / Learn Screen
   ============================ */
.content-header {
  padding: 24px 0 8px;
}

.content-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.content-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.content-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.content-card:active {
  transform: scale(0.98);
}

.content-card-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-body {
  flex: 1;
  min-width: 0;
}

.content-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-badge.risk-low {
  background: rgba(181, 228, 140, 0.15);
  color: var(--risk-low);
}

.risk-badge.risk-medium {
  background: rgba(255, 217, 61, 0.15);
  color: var(--risk-medium);
}

.risk-badge.risk-high {
  background: rgba(230, 57, 70, 0.15);
  color: var(--risk-high);
}

.trending-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================
   Content Detail Screen
   ============================ */
.content-detail-header {
  padding-bottom: 4px;
}

.content-detail-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.content-detail-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Tabs */
.detail-tabs {
  display: flex;
  gap: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.detail-tab {
  flex: 1;
  padding: 12px 16px;
  background: var(--card-bg);
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.detail-tab + .detail-tab {
  border-left: 1px solid var(--card-border);
}

.detail-tab.active {
  background: rgba(123, 44, 191, 0.15);
  color: var(--text-primary);
}

/* Overview Tab */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.detail-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.detail-risk-scale {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-risk-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--risk-low), var(--risk-medium), var(--risk-high));
}

.detail-risk-labels {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
}

.detail-risk-labels span {
  opacity: 0.4;
}
.detail-risk-labels span.active-risk {
  opacity: 1;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list li {
  padding: 12px 14px;
  padding-left: 28px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  position: relative;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.detail-list.why-list li::before {
  background: var(--purple);
}

.detail-list.talk-list li::before {
  background: var(--fake-start);
}

/* Example Tab */
.example-preview {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.example-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.suspicious-section {
  margin-bottom: 24px;
}

.suspicious-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--flame);
}

.suspicious-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suspicious-list li {
  padding: 12px 14px;
  padding-left: 28px;
  background: rgba(230, 57, 70, 0.06);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(230, 57, 70, 0.12);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  position: relative;
}

.suspicious-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}

.verification-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.verification-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-list li {
  padding: 12px 14px;
  padding-left: 36px;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--card-border);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  position: relative;
}

.verification-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--card-border);
  border-radius: 3px;
}

/* ============================
   Error & Loading States
   ============================ */
.error-message {
  padding: 16px;
  background: rgba(232, 67, 147, 0.1);
  border: 1px solid rgba(232, 67, 147, 0.2);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 375px) {
  .screen {
    padding: 0 16px 32px;
  }
  .guess-title {
    font-size: 20px;
  }
  .guess-btn {
    padding: 16px 20px;
    font-size: 15px;
  }
  .examples-grid {
    gap: 8px;
  }
  .home-greeting-text h1 {
    font-size: 20px;
  }
  .bubble-chart {
    height: 280px;
  }
}

/* ============================
   Toast Messages
   ============================ */
.toast-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  border: 1px solid var(--card-border);
}

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