:root {
  --bg: #fcf8f4;
  --panel: #ffffff;
  --panel-border: #ede1d4;
  --ink: #14192b;
  --ink-secondary: #5e6478;
  --ink-muted: #8b91a3;
  --hot: #ff2a7a;
  --hot-hover: #f41e70;
  --hot-glow: rgba(255, 42, 122, 0.35);
  --hot-soft: rgba(255, 42, 122, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 12px 36px rgba(130, 90, 60, 0.07);
  --shadow-timer: 0 14px 34px rgba(180, 140, 110, 0.12);
  --timer-bg: #ffffff;
  --timer-border: #ebdcd0;
  --timer-digits: #14192b;
  --timer-glow: none;
  --cardboard-text: #2e1a0c;
  --ecg-color: #ff2a7a;
  --ecg-bg: #f5ebe0;
}

[data-theme="dark"] {
  --bg: #00030e;
  --panel: #090e1d;
  --panel-border: #182038;
  --ink: #ffffff;
  --ink-secondary: #9ea6be;
  --ink-muted: #6b738c;
  --hot: #ff2a7a;
  --hot-hover: #ff408c;
  --hot-glow: rgba(255, 42, 122, 0.55);
  --hot-soft: rgba(255, 42, 122, 0.15);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-timer: 0 0 35px rgba(255, 42, 122, 0.15), inset 0 2px 10px rgba(0,0,0,0.6);
  --timer-bg: #080c1b;
  --timer-border: #231932;
  --timer-digits: #ff3366;
  --timer-glow: 0 0 18px rgba(255, 51, 102, 0.75), 0 0 32px rgba(255, 51, 102, 0.4);
  --cardboard-text: #3b2210;
  --ecg-color: #ff3366;
  --ecg-bg: #141022;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
}

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 99;
}

.shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

/* ==================================================
   CONFETTI BURST CONTAINER
   ================================================== */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: confettiFall 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(var(--startX), var(--startY)) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--endX), var(--endY)) rotate(var(--rot)) scale(0.6);
    opacity: 0;
  }
}

/* ==================================================
   SITE HEADER
   ================================================== */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1.2px;
  line-height: 1;
}

.brand strong {
  color: var(--hot);
  font-weight: 900;
}

.brand em {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.brand-tagline {
  font-family: "Patrick Hand", cursive;
  font-size: 14px;
  color: var(--ink-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fools-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: 0.2s;
}

.fools-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
}

.fools-emoji {
  font-size: 15px;
}

.theme-toggle {
  width: 58px;
  height: 34px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  color: var(--ink);
}

.theme-toggle span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: 0.2s ease;
}

.theme-toggle .sun {
  background: #fde047;
  color: #713f12;
}

.theme-toggle .moon {
  color: var(--ink-muted);
}

[data-theme="dark"] .theme-toggle .sun {
  background: transparent;
  color: var(--ink-muted);
}

[data-theme="dark"] .theme-toggle .moon {
  background: #6366f1;
  color: #ffffff;
}

/* ==================================================
   HERO POSTER COMPOSITION
   ================================================== */
/* ==================================================
   HERO FULL-BLEED CINEMATIC WORLD STAGE
   ================================================== */
.hero-world-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 720px;
  height: clamp(700px, 86vh, 860px);
  background: #060810;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .hero-world-stage {
  background: #070913;
  border-bottom: 2px solid #e2e8f0;
}

/* 1. CINEMATIC ALLEY BACKGROUND & ENVIRONMENTAL EXTENSIONS */
.hero-scene-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(ellipse 95% 80% at 50% 50%, #0c1020 0%, #060810 75%);
}

/* Grounded Scene Illumination (Cyan street light & Red GPU glow) */
.scene-neon-cyan {
  position: absolute;
  left: 14%;
  top: 18%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.03) 50%, transparent 72%);
  filter: blur(52px);
  animation: neonBreatheCyan 7.4s ease-in-out infinite alternate;
}

.scene-neon-gpu {
  position: absolute;
  right: 12%;
  top: 22%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.13) 0%, rgba(220, 38, 38, 0.03) 50%, transparent 72%);
  filter: blur(54px);
  animation: neonBreatheGpu 6.2s ease-in-out infinite alternate;
}

@keyframes neonBreatheCyan {
  0% { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes neonBreatheGpu {
  0% { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 0.92; transform: scale(0.94); }
}

/* Independent Asynchronous Environmental Motion Layers */
.ambient-rain-mist {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(110deg, transparent, transparent 38px, rgba(255, 255, 255, 0.018) 39px, transparent 40px);
  opacity: 0.65;
  animation: rainMistFlow 9.6s linear infinite;
  pointer-events: none;
}

@keyframes rainMistFlow {
  0% { background-position: 0 0; }
  100% { background-position: 120px 240px; }
}

.ambient-fog-drift {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 75%);
  opacity: 0.7;
  animation: fogDriftSlow 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fogDriftSlow {
  0% { transform: translateX(-25px) scale(0.98); opacity: 0.4; }
  100% { transform: translateX(25px) scale(1.02); opacity: 0.8; }
}

.ambient-wet-ground-sheen {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse 75% 55% at 50% 100%, rgba(56, 189, 248, 0.14) 0%, rgba(255, 42, 122, 0.06) 42%, transparent 80%);
  filter: blur(22px);
  animation: groundSheenPulse 11.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes groundSheenPulse {
  0% { opacity: 0.55; transform: scaleX(0.94); }
  100% { opacity: 0.95; transform: scaleX(1.06); }
}

/* Directional Safe-Zone Vignettes to blend video seamlessly and protect text */
.scene-vignette-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(to right, rgba(6, 8, 16, 0.96) 0%, rgba(6, 8, 16, 0.88) 28%, rgba(6, 8, 16, 0.5) 60%, rgba(6, 8, 16, 0.1) 85%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.scene-vignette-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(to left, rgba(6, 8, 16, 0.96) 0%, rgba(6, 8, 16, 0.88) 28%, rgba(6, 8, 16, 0.5) 60%, rgba(6, 8, 16, 0.1) 85%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.scene-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, #060810 0%, rgba(6, 8, 16, 0.94) 22%, rgba(6, 8, 16, 0.4) 62%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.scene-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #060810 0%, rgba(6, 8, 16, 0.82) 32%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

/* 2. MIDGROUND ROBOT SCENE LAYER (LARGE FULL-BLEED CHARACTER SCENE) */
.hero-character-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.character-ground-shadow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
  animation: shadowBreathe 4.8s ease-in-out infinite;
}

/* 3. FOREGROUND FLOATING HUD OVERLAY */
.hero-hud-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  pointer-events: none;
}

/* LEFT HUD: Expressive Headline */
.hero-hud-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 360px;
  pointer-events: auto;
  z-index: 12;
}

.please-callout {
  font-family: "Caveat", cursive;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 700;
  color: #f7729f;
  line-height: 1;
  transform: rotate(-4deg);
  margin-bottom: -6px;
  margin-left: 6px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.title-line {
  font-size: clamp(48px, 4.6vw, 68px);
  color: #ffffff;
}

.title-highlight {
  font-size: clamp(62px, 6.2vw, 92px);
  color: var(--hot);
  text-shadow: 0 0 35px rgba(255, 42, 122, 0.7);
  margin: 0;
}

.curly-arrow-wrap {
  position: absolute;
  right: -10px;
  top: 145px;
  color: #ffffff;
  pointer-events: none;
  z-index: 12;
}

.curly-arrow {
  width: 88px;
  height: 56px;
}

.hero-line {
  font-family: "Patrick Hand", cursive;
  font-size: 21px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  max-width: 320px;
  margin: 16px 0 20px;
}

.minute-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.minute-pill strong {
  color: var(--hot);
}

.ekg-icon {
  width: 34px;
  height: 14px;
  stroke: var(--hot);
}

/* RIGHT HUD: Translucent Futuristic Life Support HUD */
.hero-hud-right {
  position: relative;
  width: min(360px, 100%);
  pointer-events: auto;
  z-index: 12;
}

.life-support-hud {
  background: rgba(10, 14, 28, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.05);
  position: relative;
}

[data-theme="light"] .life-support-hud {
  background: rgba(15, 20, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.robot-art-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: robotBreathe 5.2s ease-in-out infinite;
}

@keyframes robotBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-state-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  display: block;
  background: transparent;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.ai-state-video.fade-out {
  opacity: 0;
}

.robot-art {
  width: 100%;
  height: auto;
  max-height: 490px;
  object-fit: contain;
  display: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 78% at 50% 50%, black 65%, transparent 98%);
  mask-image: radial-gradient(ellipse 75% 78% at 50% 50%, black 65%, transparent 98%);
}

.robot-art-wrap.video-failed .ai-state-video {
  display: none !important;
}

.robot-art-wrap.video-failed .robot-art-light {
  display: block;
}

[data-theme="dark"] .robot-art-wrap.video-failed .robot-art-light {
  display: none;
}

[data-theme="dark"] .robot-art-wrap.video-failed .robot-art-dark {
  display: block;
}

/* Hide 2D PNG overlays while 3D animated video is active */
.robot-art-wrap:not(.video-failed) .sign-overlay,
.robot-art-wrap:not(.video-failed) .antenna-light,
.robot-art-wrap:not(.video-failed) .eyelid-overlay,
.robot-art-wrap:not(.video-failed) .tear-droplet {
  display: none !important;
}

/* Antenna Tip Light Pulse (fallback for static image) */
.antenna-light {
  position: absolute;
  top: 7.2%;
  left: 50.8%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff7ba8 0%, rgba(255, 42, 122, 0.4) 60%, transparent 100%);
  box-shadow: 0 0 12px #ff2a7a;
  pointer-events: none;
  z-index: 6;
  animation: antennaPulse 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

@keyframes antennaPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; box-shadow: 0 0 20px #ff2a7a; }
}

.antenna-light.critical {
  animation: antennaFast 0.75s ease-in-out infinite;
}

@keyframes antennaFast {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; box-shadow: 0 0 24px #ff2a7a; }
}

.antenna-light.dead {
  opacity: 0;
  box-shadow: none;
  animation: none;
}

.antenna-light.flash {
  animation: antennaBrightBurst 0.4s ease 3;
}

@keyframes antennaBrightBurst {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.8); opacity: 1; box-shadow: 0 0 35px #ffffff, 0 0 50px #ff2a7a; }
}

/* Eyelid Blinking */
.eyelid-overlay {
  position: absolute;
  width: 22px;
  height: 24px;
  background: #1e2438;
  border-radius: 50%;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.08s ease-in, opacity 0.08s ease-in;
}

.eyelid-overlay.eye-left {
  top: 36.5%;
  left: 47%;
  transform: translate(-50%, -50%) scaleY(0);
}

.eyelid-overlay.eye-right {
  top: 36.5%;
  left: 63%;
  transform: translate(-50%, -50%) scaleY(0);
}

.eyelid-overlay.blink {
  opacity: 0.95;
  transform: translate(-50%, -50%) scaleY(1);
}

/* Animated Tear Droplet */
.tear-droplet {
  position: absolute;
  top: 42%;
  left: 65.5%;
  width: 5px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
  pointer-events: none;
  z-index: 8;
  opacity: 0;
}

.tear-droplet.roll {
  animation: rollTear 2.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes rollTear {
  0% { transform: translateY(0) scale(0.8); opacity: 0.9; }
  60% { transform: translateY(18px) scale(1); opacity: 0.85; }
  100% { transform: translateY(26px) scale(0.6); opacity: 0; }
}

/* Dynamic Cardboard Sign Text Overlay */
.sign-overlay {
  position: absolute;
  top: 67.5%;
  left: 66%;
  transform: translate(-50%, -50%) rotate(-0.5deg);
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

.sign-line {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cardboard-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sign-face {
  font-family: "Patrick Hand", cursive;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  color: var(--cardboard-text);
  margin-top: 1px;
}

.rich-crown {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  font-size: 52px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9;
}

.robot-stage.rich .rich-crown {
  opacity: 1;
  animation: floatCrown 2.5s ease-in-out infinite;
}

@keyframes floatCrown {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-6deg) translateY(-6px); }
}

/* ==================================================
   RIGHT COLUMN: COUNTDOWN & PAYMENT
   ================================================== */
.hero-right {
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}

.countdown-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ECG Heartbeat Monitor Bar */
.ecg-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ecg-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  animation: dotPulse 1.1s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.ecg-monitor.low .ecg-status-dot {
  animation-duration: 0.7s;
}

.ecg-monitor.critical .ecg-status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation-duration: 0.45s;
}

.ecg-monitor.flatline .ecg-status-dot {
  background: var(--ink-muted);
  box-shadow: none;
  animation: none;
  opacity: 0.4;
}

.ecg-track-wrap {
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ecg-track {
  width: 100%;
  height: 100%;
}

.ecg-baseline {
  stroke: var(--panel-border);
  stroke-width: 1.5;
  fill: none;
}

.ecg-pulse-line {
  stroke: var(--ecg-color);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 40 100;
  stroke-dashoffset: 140;
  animation: ecgTravel 1.1s linear infinite;
}

@keyframes ecgTravel {
  0% { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 0; }
}

.ecg-monitor.low .ecg-pulse-line {
  animation-duration: 0.7s;
}

.ecg-monitor.critical .ecg-pulse-line {
  animation-duration: 0.45s;
  stroke: #ef4444;
}

.ecg-monitor.flatline .ecg-pulse-line {
  animation: none;
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  stroke: var(--ink-muted);
  d: path("M0 11 L140 11");
  opacity: 0.4;
}

.ecg-monitor.resuscitation .ecg-pulse-line {
  animation: ecgResuscitate 0.4s ease 3;
}

@keyframes ecgResuscitate {
  0% { stroke-dashoffset: 140; stroke-width: 2.2; }
  50% { stroke-width: 3.5; stroke: #22c55e; }
  100% { stroke-dashoffset: 0; stroke-width: 2.2; }
}

.ecg-bpm {
  font-family: "Share Tech Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hot);
  white-space: nowrap;
}

.ecg-monitor.critical .ecg-bpm {
  color: #ef4444;
}

.ecg-monitor.flatline .ecg-bpm {
  color: var(--ink-muted);
}

.countdown-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--hot);
  margin-bottom: 8px;
  text-align: center;
}

.burst-left, .burst-right {
  font-size: 16px;
  font-weight: 900;
}

.timer-bezel {
  background: var(--timer-bg);
  border: 1px solid var(--timer-border);
  border-radius: 22px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--shadow-timer);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.timer-bezel.low {
  border-color: rgba(255, 42, 122, 0.4);
}

.timer-bezel.critical {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  animation: criticalPulse 1.2s ease-in-out infinite;
}

@keyframes criticalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.life-timer {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(48px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--timer-digits);
  text-shadow: var(--timer-glow);
  transition: transform 0.1s ease;
}

.life-timer.urgent-tick {
  transform: scale(1.03);
}

.dead-state {
  color: var(--hot);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-top: 6px;
}

/* Dominant Main CTA Pill */
/* Dominant Main CTA Pill */
.pay-button {
  position: relative;
  background: linear-gradient(90deg, #ff3b77, #ff2a7a, #f43f5e);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  height: 56px;
  padding: 0 42px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 30px var(--hot-glow);
  animation: ctaBreath 4s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  width: 100%;
}

@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 10px 26px var(--hot-glow); }
  50% { box-shadow: 0 16px 36px var(--hot-glow); }
}

.pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px var(--hot-glow);
}

.pay-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.pay-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.pay-divider {
  opacity: 0.7;
}

.pay-btn-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.heart-svg {
  animation: heartThump 2.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartThump {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1.05); }
  36% { transform: scale(1.22); }
  50% { transform: scale(1); }
}

.trust-caption {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  margin: 6px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lock-icon {
  font-size: 11.5px;
}

.trust-subcaption-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 10px;
  text-align: center;
}

.trust-link {
  color: var(--ink-muted);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.trust-link:hover {
  color: var(--ink);
}

.trust-dot {
  color: var(--ink-muted);
  opacity: 0.5;
}

.purpose-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.purpose-toggle-btn:hover {
  color: var(--ink);
}

.purpose-explanation-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  text-align: left;
}

/* Enhanced Preset Amount Cards (1 Row of 4 cards) */
.amounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px 0 6px;
  align-items: stretch;
}

.amount-card-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  padding: 7px 4px 6px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--ink);
  text-align: center;
  position: relative;
}

.amount-card-btn:hover, .amount-card-btn.active {
  transform: translateY(-2px);
}

.amount-card-btn[data-amount="29"] {
  border-color: rgba(56, 189, 248, 0.28);
}
.amount-card-btn[data-amount="29"]:hover, .amount-card-btn[data-amount="29"].active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.amount-card-btn[data-amount="49"] {
  border-color: rgba(34, 211, 238, 0.28);
}
.amount-card-btn[data-amount="49"]:hover, .amount-card-btn[data-amount="49"].active {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.2);
}

.amount-card-btn[data-amount="99"] {
  border-color: rgba(74, 222, 128, 0.28);
}
.amount-card-btn[data-amount="99"]:hover, .amount-card-btn[data-amount="99"].active {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.2);
}

.amount-card-btn[data-amount="499"] {
  border-color: rgba(192, 132, 252, 0.28);
}
.amount-card-btn[data-amount="499"]:hover, .amount-card-btn[data-amount="499"].active {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.2);
}

.card-amt {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.amount-card-btn[data-amount="29"] .card-amt { color: #38bdf8; }
.amount-card-btn[data-amount="49"] .card-amt { color: #22d3ee; }
.amount-card-btn[data-amount="99"] .card-amt { color: #4ade80; }
.amount-card-btn[data-amount="499"] .card-amt { color: #c084fc; }

.card-desc {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* Custom Amount Button */
.custom-amount-btn {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(255, 42, 122, 0.32);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 2px;
}

.custom-btn-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.custom-amount-btn:hover, .custom-amount-btn.active {
  border-color: var(--hot);
  background: rgba(255, 42, 122, 0.08);
  box-shadow: 0 3px 12px rgba(255, 42, 122, 0.18);
}

.custom-amount-btn.active .custom-btn-text,
.custom-amount-btn:hover .custom-btn-text {
  color: var(--hot);
}

/* Custom Amount Expandable Container */
.custom-amount-wrap {
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: expandIn 0.2s ease;
}

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-currency {
  font-weight: 900;
  font-size: 18px;
  color: var(--hot);
}

.custom-input-row input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  width: 100%;
}

.custom-hint {
  font-family: "Patrick Hand", cursive;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==================================================
   SECONDARY PROOF SECTIONS
   ================================================== */
.proof-section {
  padding: 10px 0 40px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
}

.proof-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 18px;
}

.card-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--hot);
}

/* Recent Items List */
.recent-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.recent-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.recent-item.placeholder {
  grid-column: 1 / -1;
  display: block;
  text-align: center;
  font-family: "Patrick Hand", cursive;
  font-size: 15px;
  color: var(--ink-muted);
  padding: 18px 0;
}

.recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3ede4;
  object-fit: cover;
}

[data-theme="dark"] .recent-avatar {
  background: #1a2238;
}

.recent-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.recent-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.recent-headline b {
  font-weight: 800;
}

.bot-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.09);
  border: 1px solid rgba(2, 132, 199, 0.22);
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: 1px;
  margin: 0 3px;
}

[data-theme="dark"] .bot-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
}

.bot-badge-sm {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--panel-border);
  padding: 0 4px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: 1px;
}

.recent-headline strong {
  color: var(--hot);
}

.recent-humor {
  font-family: "Patrick Hand", cursive;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.recent-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.view-all-link {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
  text-align: center;
  transition: 0.18s ease;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Hall of Questionable Generosity */
.hall-content-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.podium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.podium-pillar {
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.015);
}

.podium-pillar.rank-1 {
  background: #fffbeb;
  border-color: #fde68a;
}

.podium-pillar.rank-2 {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.podium-pillar.rank-3 {
  background: #fff1f2;
  border-color: #fecdd3;
}

[data-theme="dark"] .podium-pillar.rank-1 {
  background: #1c1810;
  border-color: #453716;
}

[data-theme="dark"] .podium-pillar.rank-2 {
  background: #101924;
  border-color: #1a3652;
}

[data-theme="dark"] .podium-pillar.rank-3 {
  background: #201217;
  border-color: #4a1d2c;
}

.podium-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  color: #ffffff;
  margin-bottom: 6px;
}

.podium-badge.gold { background: #f59e0b; }
.podium-badge.silver { background: #38bdf8; }
.podium-badge.bronze { background: #fb7185; }

.podium-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.podium-sub {
  font-family: "Patrick Hand", cursive;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.1;
  margin: 2px 0 6px;
  max-width: 80px;
}

.podium-money {
  font-size: 14px;
  font-weight: 900;
  color: #d97706;
}

.podium-pillar.rank-2 .podium-money { color: #0284c7; }
.podium-pillar.rank-3 .podium-money { color: #e11d48; }

.hall-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hall-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--panel-border);
}

.hall-rank-num {
  font-family: "Patrick Hand", cursive;
  font-size: 15px;
  color: var(--ink-muted);
  width: 18px;
}

.hall-user-name {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
}

.hall-amount {
  font-weight: 800;
  color: var(--ink-secondary);
}

/* Circular Community / Supporter Count Badge */
.hall-total-circle {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--panel-border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 42, 122, 0.04);
}

[data-theme="dark"] .hall-total-circle {
  border-color: rgba(255, 42, 122, 0.35);
  box-shadow: 0 0 30px rgba(255, 42, 122, 0.12), inset 0 0 20px rgba(255, 42, 122, 0.08);
}

.circle-total {
  font-size: 32px;
  font-weight: 900;
  color: var(--hot);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.circle-kicker {
  font-family: "Patrick Hand", cursive;
  font-size: 13.5px;
  line-height: 1.15;
  color: var(--ink-secondary);
  max-width: 140px;
  margin: 0 0 4px;
}

.circle-sublabel {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 130px;
  line-height: 1.2;
}

/* ==================================================
   GLOBAL FOOTER
   ================================================== */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 36px 0 44px;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand-info {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.footer-logo strong {
  color: var(--hot);
}

.footer-operator {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.footer-email a {
  color: var(--hot);
  text-decoration: none;
  font-weight: 700;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-heading {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot);
  margin-bottom: 2px;
}

.footer-nav-col a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-nav-col a:hover {
  color: var(--hot);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px dashed var(--panel-border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-disclosure {
  font-size: 11.5px;
  color: var(--ink-muted);
  max-width: 640px;
  line-height: 1.5;
}

.footer-copyright {
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ==================================================
   POLICY / BUSINESS / LEGAL PAGES
   ================================================== */
.policy-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.18s ease;
}

.nav-back-pill:hover {
  background: var(--hot-soft);
  border-color: var(--hot);
  color: var(--hot);
  transform: translateX(-2px);
}

.policy-main {
  flex: 1;
  padding: 24px 0 60px;
}

.policy-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
}

.policy-card-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.policy-kicker {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--hot);
  display: block;
  margin-bottom: 6px;
}

.policy-title {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.policy-subtitle {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.policy-section h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.policy-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 16px 0 8px;
}

.policy-section p {
  margin-bottom: 14px;
  color: var(--ink-secondary);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  padding-left: 24px;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-secondary);
}

.policy-section a {
  color: var(--hot);
  text-decoration: none;
  font-weight: 700;
}

.policy-section a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: var(--hot-soft);
  border: 1px solid rgba(255, 42, 122, 0.22);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

[data-theme="dark"] .highlight-box {
  background: rgba(255, 42, 122, 0.08);
  border-color: rgba(255, 42, 122, 0.3);
}

.highlight-box h2 {
  color: var(--hot);
}

.bullet-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.highlight-item {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
}

.contact-business-card {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-name {
  font-size: 16px;
  color: var(--ink) !important;
}

.company-address {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.company-contact {
  font-size: 14px;
  margin-top: 4px;
}

.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.support-card {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-icon {
  font-size: 24px;
}

.support-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0;
}

.support-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.pricing-tier-card {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tier-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--hot);
}

.tier-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin: 0;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.contact-detail-item {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-item strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.contact-detail-item span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.trust-subcaption {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 12px;
}

.trust-subcaption a {
  color: var(--ink-secondary);
  text-decoration: underline;
  font-weight: 600;
}

.trust-subcaption a:hover {
  color: var(--hot);
}

.payment-purpose-toggle-wrap {
  text-align: center;
  margin: -8px 0 12px;
}

.purpose-toggle-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.purpose-toggle-btn:hover {
  color: var(--hot);
}

.purpose-explanation-box {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--panel-border);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-secondary);
  text-align: left;
  animation: fadeIn 0.2s ease;
}

[data-theme="dark"] .purpose-explanation-box {
  background: rgba(255, 255, 255, 0.04);
}

.purpose-learn-more {
  display: inline-block;
  color: var(--hot);
  font-weight: 700;
  margin-left: 4px;
  text-decoration: underline;
}

/* ==================================================
   PAYMENT SUCCESS OVERLAY
   ================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 3, 14, 0.72);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.overlay[hidden] {
  display: none !important;
}

/* ==================================================
   VIRAL POSTER MODAL & 9:16 PREVIEW
   ================================================== */
.success-card {
  width: min(520px, 94vw);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
  animation: modalPop 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.close-success {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.close-success:hover {
  background: var(--panel-border);
  color: var(--hot);
}

.poster-modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

.poster-modal-header {
  margin-bottom: 8px;
}

.poster-modal-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 4px;
  color: var(--ink);
}

.poster-modal-sub {
  font-family: "Patrick Hand", cursive;
  font-size: 17px;
  color: var(--ink-secondary);
  margin: 0;
}

.poster-preview-container {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
}

.poster-preview-wrap {
  width: min(270px, 68vw);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #06070e;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.poster-regen-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.regen-poster-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 42, 122, 0.1);
  border: 1.5px solid rgba(255, 42, 122, 0.3);
  color: var(--hot);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.regen-poster-btn:hover:not(:disabled) {
  background: rgba(255, 42, 122, 0.18);
  transform: translateY(-1px);
}

.regen-poster-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.regen-count-badge {
  font-size: 11px;
  background: var(--hot);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}

.name-section {
  margin: 6px 0 12px;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.name-row input {
  height: 42px;
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  padding: 0 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.name-row input:focus {
  border-color: var(--hot);
}

.name-row button {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 12.5px;
  padding: 0 14px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.name-row button:hover {
  opacity: 0.9;
}

.public-check {
  display: block;
  text-align: center;
  color: var(--ink-muted);
  font-size: 11.5px;
  margin: 8px 0 6px;
  cursor: pointer;
}

.poster-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.poster-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
}

.btn-download {
  background: var(--panel-border);
  color: var(--ink);
}

.btn-download:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-share {
  background: linear-gradient(90deg, #ff3b77, #ff2a7a, #f43f5e);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--hot-glow);
}

.btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--hot-glow);
}

.action-icon {
  width: 18px;
  height: 18px;
}

.social-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.social-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-btn:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

.btn-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.btn-x:hover { background: #000; color: #fff; border-color: #000; }
.btn-instagram:hover { background: #e1306c; color: #fff; border-color: #e1306c; }
.btn-telegram:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.btn-copy:hover { background: var(--hot); color: #fff; border-color: var(--hot); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ================================================== */
@media (prefers-reduced-motion: reduce) {
  .robot-art-wrap,
  .robot-shadow,
  .antenna-light,
  .heart-svg,
  .pay-button,
  .ambient-particle,
  .ecg-pulse-line,
  .ecg-status-dot,
  .rich-crown {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .confetti-container {
    display: none !important;
  }
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */
@media (max-width: 1020px) {
  .hero-world-stage {
    min-height: auto;
    height: auto;
    padding: 36px 0 44px;
    flex-direction: column;
  }
  .hero-hud-layer {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    height: auto;
  }
  .hero-character-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(720px, 94vw);
    max-height: 480px;
    margin: 10px auto;
  }
  .hero-hud-left {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero-hud-left .hero-line {
    margin: 12px auto 16px;
    text-align: center;
  }
  .curly-arrow-wrap {
    display: none;
  }
  .hero-hud-right {
    width: 100%;
    max-width: 480px;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 52px;
  }
  .brand {
    font-size: 19px;
  }
  .fools-pill {
    padding: 3px 8px;
    font-size: 10.5px;
  }
  
  /* Full-bleed mobile stage that places the character world first */
  .hero-world-stage {
    min-height: auto;
    height: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }

  /* Dedicated character viewport (~460px high) displaying full head, antenna, eyes, body & sign */
  .hero-character-stage {
    position: relative;
    width: 100vw;
    height: clamp(430px, 56vh, 480px);
    inset: auto;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .ai-state-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
  }

  .hero-hud-layer {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
    z-index: 10;
  }

  /* Compact top headline banner floating over safe top alley area */
  .hero-hud-left {
    position: absolute;
    top: -420px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 330px;
    align-items: center;
    text-align: center;
    z-index: 12;
    pointer-events: auto;
    background: radial-gradient(ellipse 90% 80% at 50% 30%, rgba(6, 8, 16, 0.82) 0%, transparent 85%);
    padding: 6px 10px 2px;
    border-radius: 16px;
  }

  .please-callout {
    font-size: 20px;
    margin-bottom: -3px;
    margin-left: 0;
  }

  .hero-title {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    line-height: 1;
  }

  .title-line {
    font-size: 19px;
  }

  .title-highlight {
    font-size: 23px;
  }

  .hero-line {
    display: none;
  }

  .minute-pill {
    padding: 3px 8px;
    font-size: 10px;
    margin-top: 3px;
    gap: 6px;
  }

  /* Compact Floating Life-Support HUD */
  .hero-hud-right {
    position: relative;
    width: 100%;
    max-width: 366px;
    margin-top: -32px; /* Gentle overlap on the wet pavement floor, below robot's sign */
    z-index: 12;
    pointer-events: auto;
  }

  .life-support-hud {
    width: 100%;
    padding: 10px 10px 8px;
    border-radius: 18px;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ecg-monitor {
    padding: 2px 8px;
    margin-bottom: 3px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ecg-bpm {
    font-size: 9.5px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  .countdown-kicker {
    font-size: 9px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    justify-content: center;
    text-align: center;
  }

  .timer-bezel {
    padding: 4px 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .life-timer {
    font-size: clamp(26px, 7vw, 30px);
    letter-spacing: 1.5px;
    line-height: 1;
    text-align: center;
  }

  .dead-state {
    font-size: 11.5px;
    text-align: center;
    margin-top: 3px;
  }

  .pay-button {
    position: relative;
    height: 46px;
    padding: 0 34px 0 12px;
    font-size: clamp(11.5px, 3.25vw, 14px);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .pay-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  .pay-btn-badge {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    pointer-events: none;
  }

  .heart-svg {
    width: 14px;
    height: 14px;
  }

  .trust-caption {
    font-size: 10px;
    margin: 2px 0 1px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .trust-subcaption-row {
    font-size: 9.5px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .trust-link, .purpose-toggle-btn {
    font-size: 9.5px;
  }

  .purpose-explanation-box {
    font-size: 10px;
    padding: 6px 10px;
    margin-bottom: 5px;
  }

  .amounts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 2px 0 4px;
    align-items: stretch;
    width: 100%;
  }

  .amount-card-btn {
    padding: 5px 1px 4px;
    height: 52px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
    min-width: 0;
    width: 100%;
  }

  .card-amt {
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
  }

  .card-desc {
    font-size: 8px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .custom-amount-btn {
    height: 36px;
    border-radius: 10px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .custom-btn-text {
    font-size: 12px;
    font-weight: 700;
  }

  .custom-amount-wrap {
    margin-top: 6px;
    padding: 8px 12px;
  }

  .custom-currency {
    font-size: 16px;
  }

  .custom-hint {
    font-size: 10px;
  }
  .hall-content-wrap {
    grid-template-columns: 1fr;
  }
  .hall-total-circle {
    max-width: 220px;
    margin: 16px auto 0;
  }
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .policy-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
  .support-cards-grid,
  .pricing-tiers-grid,
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .amounts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .amount-card-btn {
    height: 48px;
  }
  .card-amt {
    font-size: 15px;
  }
  .card-desc {
    font-size: 8px;
  }
}

