/* ========================================
   Winnoa AI / 応募文リスク診断AI
   Design System
   ======================================== */

/* ---------- CSS Variables ---------- */
/* ---------- CSS Variables (Light Theme - Psychological Safety) ---------- */
:root {
  /* Colors - Light Theme Base */
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-bg-input: #ffffff;

  /* Accent Colors - Trust & Calm */
  --color-accent-primary: #6366f1;
  /* Indigo */
  --color-accent-secondary: #818cf8;
  --color-accent-glow: rgba(99, 102, 241, 0.15);
  /* Softer glow */

  /* Status Colors */
  --color-warning: #d97706;
  /* Darker for contrast */
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-info: #3b82f6;
  --color-info-bg: #eff6ff;

  /* Text Colors */
  --color-text-primary: #1e293b;
  /* Slate 800 */
  --color-text-secondary: #475569;
  /* Slate 600 */
  --color-text-muted: #94a3b8;
  /* Slate 400 */

  /* Border */
  --color-border: rgba(99, 102, 241, 0.1);
  --color-border-focus: var(--color-accent-primary);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Typography */
  --font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.5rem;

  /* Border Radius - Softer */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Multi-layered & Ambient */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04),
    0 0 40px rgba(99, 102, 241, 0.05);
  --shadow-glow: 0 0 30px var(--color-accent-glow);

  /* Transitions - Heavy & Smooth (Premium Easing) */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-premium);
  --transition-normal: 400ms var(--ease-premium);
  --transition-slow: 600ms var(--ease-premium);

  /* Global Letter Spacing for Elegance */
  --ls-elegant: 0.03em;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  letter-spacing: var(--ls-elegant);
  /* Global elegance */
  line-height: 1.6;
}

/* Texture Overlay */
.texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  /* Lower than navbar and content */
  opacity: 0.02;
  /* Very subtle noise */
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---------- Navbar ---------- */
/* Navbar Base - Light Theme */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.03),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  z-index: 9999 !important;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__logo-img {
  width: 32px;
  /* Fix logo size */
  height: 32px;
}

.navbar__name {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: #1e293b !important;
  /* Dark Slate Title */
  background: none;
  /* Remove gradient for legibility or keep subtle */
  -webkit-text-fill-color: #1e293b !important;
}

.navbar__toggle {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  /* Increase gap slightly */
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  /* Above menu */
  min-width: 44px;
  /* Ensure clickable area */
  min-height: 44px;
  opacity: 1 !important;
  /* Force visible */
  visibility: visible !important;
}

.navbar__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: all var(--transition-normal);
}

/* Mobile Toggle - Light Theme */
.navbar__toggle .navbar__toggle-bar {
  background: #334155 !important;
  /* Slate 700 - Visible on white */
  opacity: 1 !important;
}

.navbar__toggle.open .navbar__toggle-bar {
  background: #6366f1 !important;
  /* Indigo when active */
}

.navbar__toggle.open .navbar__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.open .navbar__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar Mobile Menu - Light Theme */
.navbar__menu {
  display: flex !important;
  /* Always flex to allow transition, hidden via transform/opacity */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.98) !important;
  /* White BG */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.navbar__menu.open {
  /* Visible State */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__link {
  padding: var(--space-md);
  font-size: var(--font-size-md);
  color: #475569;
  /* Slate 600 */
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: block;
  /* Ensure full click area */
}

.navbar__link:hover,
.navbar__link--active {
  color: #1e293b;
  /* Slate 800 */
  background: #f1f5f9;
  /* Slate 100 */
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Full width on mobile */
  padding: var(--space-md);
  font-size: var(--font-size-md);
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  cursor: pointer;
}

.lang-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none !important;
  }

  .navbar__menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    background: none !important;
    border: none;
    box-shadow: none;

    /* Reset visibility from mobile state */
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navbar__link {
    padding: var(--space-sm) var(--space-md);
  }

  .navbar__actions {
    padding: 0;
    border: none;
    margin: 0;
    margin-left: var(--space-md);
  }
}

/* ---------- Page Sections ---------- */
/* Page Sections */
.page-section {
  display: none;
  padding-top: 80px;
  /* Adjust for fixed navbar */
  min-height: 80vh;
  /* Ensure full screen feel */
  padding-bottom: var(--space-2xl);
}

/* PC Layout Fixes */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    /* Ensure wide layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Don't center vertically */
    padding-top: var(--space-lg);
  }

  .hero {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg) 0;
    /* Reduce massive padding */
  }

  /* Fix vertical spacing */
  .page-section {
    padding-top: 100px;
  }
}

.page-section--active {
  display: block;
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ---------- About Section ---------- */
.about {
  padding: var(--space-xl) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
}

.step__content h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.step__content p {
  font-size: var(--font-size-sm);
  color: #475569;
  /* Slate 600 - Visible on white */
}

.about-features {
  padding: var(--space-lg);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.about-features h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.about-features ul {
  list-style: none;
}

.about-features li {
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: #475569;
  /* Slate 600 - Visible on white */
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: var(--space-xl) 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
  padding: var(--space-md);
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Animated Background ---------- */
/* ---------- Background (Light Theme) ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(241, 245, 249, 1) 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  display: none;
  /* Remove duplicate overlay */
}

/* Force Light Theme Text Base */
body {
  color: var(--color-text-primary);
  background: #f8fafc;
}

/* Ensure headings are dark and legible */
h1,
h2,
h3,
h4,
.header__title,
.header__catch,
.hero__catchphrase {
  color: #1e293b !important;
  /* Slate 800 */
  text-shadow: none !important;
  /* Remove dark shadows */
  word-break: keep-all;
  overflow-wrap: normal;
}

.header__desc,
.hero__description {
  color: #475569 !important;
  /* Slate 600 */
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__catchphrase {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 480px) {
  .hero__catchphrase {
    font-size: 1.4rem;
    word-break: keep-all;
  }
}

.hero__accent {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-radius: 2px;
}

.hero__description {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

/* Features Grid */
/* Features Pillars (3D) */
.features-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .features-pillars {
    flex-direction: row;
    align-items: stretch;
  }
}

.feature-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-pillar__img {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-md);
  /* filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); Removed to hide square box */
  /* mix-blend-mode: multiply; reverted */
  /* Aura & Soft Edge */
  -webkit-mask-image: radial-gradient(ellipse at center, black 80%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 80%, transparent 100%);
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
  /* Purple aura */

  animation: pillarFloat 6s ease-in-out infinite;
}

.feature-pillar:nth-child(2) .feature-pillar__img {
  animation: pillarFloatFlipped 6s ease-in-out infinite;
  animation-delay: 2s;
}

.feature-pillar:nth-child(3) .feature-pillar__img {
  animation-delay: 4s;
}

.feature-pillar__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-pillar__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@keyframes pillarFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pillarFloatFlipped {

  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }

  50% {
    transform: scaleX(-1) translateY(-8px);
  }
}


/* Secondary Button */
.btn--secondary {
  padding: var(--space-md) var(--space-xl);
  color: var(--color-accent-secondary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn--secondary:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.hero {
  position: relative;
  /* Required for absolute positioning of elements */
}

.hero__monster-wrapper {
  position: relative;
  width: fit-content;
  margin: -80px auto var(--space-md);
  /* Pop out from the top */
  z-index: 10;
  /* Ensure it's above the card border */
}

.hero__thinking-monster {
  width: 120px;
  height: auto;
  display: block;
  animation: monsterFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.15));
  mix-blend-mode: multiply;
  /* Fade out the square edges to blend with glass card */
  mask-image: radial-gradient(circle, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
}

.q-mark {
  position: absolute;
  font-family: inherit;
  font-weight: 800;
  color: var(--color-accent-primary);
  opacity: 0.6;
  pointer-events: none;
  animation: qFloat 4s ease-in-out infinite;
}

.q-mark--1 {
  top: -10px;
  left: -20px;
  font-size: 1.5rem;
  color: #818cf8;
  animation-delay: 0s;
}

.q-mark--2 {
  top: 20px;
  right: -25px;
  font-size: 1.2rem;
  color: #a78bfa;
  animation-delay: 1.5s;
}

.q-mark--3 {
  top: -25px;
  right: 10px;
  font-size: 1.8rem;
  color: #6366f1;
  animation-delay: 0.8s;
}

@keyframes qFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }

  50% {
    transform: translate(-5px, -15px) rotate(15deg);
    opacity: 0.8;
  }
}

@keyframes monsterFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.btn__sub-text {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 6px;
  word-break: keep-all;
}

.hero__security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(148, 163, 184, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  transition: all var(--transition-normal);
}

.hero__security-badge:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
}

.security-badge__icon {
  color: var(--color-accent-primary);
  opacity: 0.8;
}

.security-badge__text {
  font-weight: 500;
}

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

  .hero__catchphrase {
    font-size: 1.5rem;
  }
}

/* ---------- Mode Selector ---------- */
.mode-selector {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.mode-selector__title {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.mode-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Mode Buttons */
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mode-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mode-btn__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mode-btn__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

/* Hover State */
.mode-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 20px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.mode-btn:hover::before {
  opacity: 1;
}

.mode-btn:hover .mode-btn__icon {
  transform: scale(1.2) rotate(5deg);
}

.mode-btn:hover .mode-btn__label {
  color: var(--color-text-primary);
}

/* Active State */
.mode-btn--active {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.1),
    0 10px 25px -5px rgba(99, 102, 241, 0.25);
}

.mode-btn--active::before {
  opacity: 1;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.08) 0%,
      rgba(168, 85, 247, 0.08) 100%);
}

.mode-btn--active .mode-btn__icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.mode-btn--active .mode-btn__label {
  color: #6366f1;
  font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .mode-buttons {
    gap: var(--space-sm);
  }

  .mode-btn {
    padding: var(--space-sm);
  }

  .mode-btn__icon {
    font-size: 1.6rem;
  }

  .mode-btn__label {
    font-size: 0.7rem;
  }
}

/* ---------- Pricing Section ---------- */
.pricing {
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.pricing__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.pricing__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(34, 34, 46, 0.6);
  border-radius: var(--radius-full);
}

.billing-toggle__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-normal);
}

.billing-toggle__label--active {
  color: var(--color-text-primary);
}

.billing-toggle__switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: rgba(99, 102, 241, 0.3);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.billing-toggle__switch.yearly {
  background: var(--color-accent-primary);
}

.billing-toggle__slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.billing-toggle__switch.yearly .billing-toggle__slider {
  transform: translateX(24px);
}

.billing-toggle__discount {
  font-size: var(--font-size-xs);
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: rgba(34, 34, 46, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: left;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.pricing-card--popular {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pricing-card__header {
  margin-bottom: var(--space-lg);
}

.pricing-card__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-card__price {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.pricing-card__period {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.pricing-card__feature--disabled {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.pricing-card__btn {
  width: 100%;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  animation: iconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.header__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #6366f1 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  animation: gradientShift 4s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.header__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

/* ---------- Card ---------- */
.card {
  background: rgba(34, 34, 46, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-normal);
  animation: cardFadeIn 0.6s ease-out backwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.card:focus-within {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
}

.card__icon {
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast);
}

.card:hover .card__icon {
  transform: scale(1.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-md);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  line-height: 1.4;
  word-break: keep-all;
  flex-wrap: wrap;
  text-align: center;
}

.btn--primary {
  color: white;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
  min-height: 64px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.form-textarea {
  width: 100%;
  min-height: 200px;
  /* Increased from 120px for better mobile typing */
  padding: var(--space-lg);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: #1e293b;
  /* Slate 800 */
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  resize: vertical;
  transition: all var(--transition-normal);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle inner shadow */
}

.form-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
  transform: scale(1.01);
}

.form-textarea::placeholder {
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn--primary {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  animation: btnPulse 3s ease-in-out infinite;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.btn--primary:hover::before {
  left: 100%;
}

@keyframes btnPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.6);
  }
}

.btn--primary:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.btn--copy {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn--copy:hover {
  color: var(--color-text-primary);
  background: #ffffff;
  border-color: var(--color-accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn--copy.copied {
  color: var(--color-success);
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

/* ---------- Result Cards ---------- */
.result-section {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.result-section.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mental Alert */
.mental-alert {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mental-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
}

.mental-alert__score {
  margin-bottom: var(--space-md);
}

.mental-alert__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(42, 42, 56, 0.8);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-bar__fill--low {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.progress-bar__fill--medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.progress-bar__fill--high {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* New classes for Attractiveness (魅力度) - inverted scale */
.progress-bar__fill--high-good {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.progress-bar__fill--low-bad {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* Growth Potential (Nobishiro) Colors */
.progress-bar__fill--high-potential {
  /* High Potential = Needs Work = Gold/Orange (Encouraging) */
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.progress-bar__fill--medium-potential {
  /* Medium = Blue */
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-bar__fill--low-potential {
  /* Low Potential = Good = Green */
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.mental-alert__value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.mental-alert__risk {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.mental-alert__risk--low {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.mental-alert__risk--medium {
  color: var(--color-warning);
  background: var(--color-warning-bg);
}

.mental-alert__risk--high {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

.mental-alert__message {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.8;
}

/* Zone Cards */
.zone-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid transparent;
}

.zone-card--overthinking {
  border-left-color: var(--color-warning);
  background: linear-gradient(135deg, var(--color-warning-bg), var(--color-bg-card));
}

.zone-card--risk {
  border-left-color: var(--color-danger);
  background: linear-gradient(135deg, var(--color-danger-bg), var(--color-bg-card));
}

.zone-card--missing {
  border-left-color: var(--color-info);
  background: linear-gradient(135deg, var(--color-info-bg), var(--color-bg-card));
}

.zone-card--improved {
  border-left-color: var(--color-success);
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-bg-card));
}

/* Comparison View */
.zone-card__header-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.comparison-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .comparison-view {
    grid-template-columns: 1fr;
  }
}

.comparison-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.comparison-text {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  white-space: pre-wrap;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  min-height: 150px;
}

.comparison-text--before {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-text-secondary);
}

.comparison-text--after {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-text-primary);
}

.zone-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.zone-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.zone-card__list {
  list-style: none;
}

.zone-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.zone-card__item:last-child {
  border-bottom: none;
}

.zone-card__item-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.zone-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Q&A Section */
.qa-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.qa-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-item:first-child {
  padding-top: 0;
}

.qa-question {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.qa-answer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-lg);
}

.qa-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.qa-badge--q {
  color: var(--color-accent-primary);
  background: rgba(99, 102, 241, 0.2);
}

.qa-badge--a {
  color: var(--color-success);
  background: var(--color-success-bg);
}

/* ---------- Loading State ---------- */
.loading {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.loading.visible {
  display: block;
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-bg-input);
  border-top-color: var(--color-accent-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 1s linear infinite;
}

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

.loading__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ---------- History Section ---------- */
.history-section {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: transparent;
  border: none;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.history-header__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
}

.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-lg);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.history-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.history-item__content {
  flex: 1;
  min-width: 0;
}

.history-item__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
}

.history-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.history-item__score {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.history-item__score--low {
  color: var(--color-success);
}

.history-item__score--medium {
  color: var(--color-warning);
}

.history-item__score--high {
  color: var(--color-danger);
}

.history-item__delete {
  padding: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.history-item:hover .history-item__delete {
  opacity: 1;
}

.history-item__delete:hover {
  color: var(--color-danger);
}

.btn--danger-small {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
}

.btn--danger-small:hover {
  background: var(--color-danger-bg);
}

/* History Page (Dedicated Section) */
.history-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xl);
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-lg);
  /* Added space */
  margin-bottom: var(--space-lg);
}

.btn--danger-outline {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
  background: transparent;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.btn--danger-outline:hover {
  background: var(--color-danger);
  color: white;
}

.history-list-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.history-list-page .history-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: row;
  /* Side-by-side */
  align-items: flex-start;
  /* Top alignment */
  gap: var(--space-md);
}

.history-item__checkbox-wrapper {
  flex-shrink: 0;
  padding-top: 4px;
  /* Visual alignment with title */
}

.history-item__content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  /* Prevent flex overflow */
}

.history-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.history-item__name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  word-break: break-word;
}

.history-item__name-input {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  width: 100%;
  max-width: 400px;
}

.history-item__actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.history-item__btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.7;
}

.history-item__btn:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--color-accent);
}

.history-item__btn--delete:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
}

.history-item__preview {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__logo {
  font-size: 1.5rem;
}

.footer__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.footer__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer__separator {
  opacity: 0.5;
}

.footer__version {
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-accent-secondary);
}

/* ---------- Chart Section ---------- */
.result-card--chart {
  overflow: hidden;
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .chart-container {
    height: 250px;
  }
}

/* ---------- Utility Classes ---------- */
.hidden {
  display: none !important;
}

/* ---------- Compact Pricing Section (Footer) ---------- */
.pricing--compact {
  padding: var(--space-lg) 0;
  background: transparent;
  border-top: 1px solid #e2e8f0;
  margin-top: var(--space-2xl);
}

.pricing-compact-container {
  max-width: 800px;
  /* Limit width */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.pricing__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.pricing__title {
  font-size: var(--font-size-md);
  margin-bottom: 0;
}

.billing-toggle--compact {
  margin-bottom: 0;
  transform: scale(0.9);
  /* Slightly smaller toggle */
}

@media (min-width: 480px) {
  .pricing-cards--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Base style for mobile (below 480px) */
.pricing-cards--compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: stretch;
}

.pricing-card--small {
  padding: var(--space-sm);
  min-height: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Premium Glass Effect */
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.15);
  /* Light source from top */
  border-radius: var(--radius-xl);
  /* Softer corners */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Inner shine */
  position: relative;
  overflow: hidden;
}

/* Subtle shine animation on hover */
.pricing-card--small::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.pricing-card--small:hover::before {
  left: 100%;
}

.pricing-card--small.pricing-card--popular {
  background: linear-gradient(145deg,
      rgba(99, 102, 241, 0.15) 0%,
      rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.25),
    inset 0 0 20px rgba(99, 102, 241, 0.1);
  transform: scale(1.03);
  /* Pop out more */
  z-index: 10;
}

.pricing-card--small h3 {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  opacity: 0.9;
}

.pricing-card--small .pricing-card__price {
  margin-bottom: var(--space-sm);
}

.pricing-card--small .pricing-card__amount {
  font-size: 2rem;
  /* Big impact */
  font-weight: 800;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  letter-spacing: -0.02em;
  /* Premium Text Gradient (Dark for Light Theme) */
  background: linear-gradient(180deg, #1e293b 20%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pricing-card--small .pricing-card__features {
  display: block;
  margin: var(--space-md) 0;
}

.pricing-card--small .pricing-card__features li {
  font-size: 0.85rem;
  color: #475569;
  /* Slate 600 - Visible on white */
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Bullet points refinement */
.pricing-card--small .pricing-card__features li::before {
  content: '✓';
  color: var(--color-accent-secondary);
  font-weight: bold;
}

.pricing-card--small .btn--xs {
  font-size: 0.9rem;
  padding: 10px 20px;
  width: 90%;
  /* Not full width for clearer button shape */
  border-radius: var(--radius-full);
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile specific adjustments */
@media (max-width: 600px) {
  .pricing__header {
    flex-direction: row;
    gap: var(--space-sm);
    align-items: center;
  }

  /* Force font-size 0.75rem for plan names and feature items to avoid horizontal overflow in 3-column mode */
  .pricing-card--small h3,
  .pricing-card--small .pricing-card__features li {
    font-size: 0.75rem;
  }

  .pricing-card--small {
    padding: 10px 2px;
    border-radius: var(--radius-md);
  }

  /* Adjust popular card scale on mobile */
  .pricing-card--small.pricing-card--popular {
    transform: scale(1.02);
  }

  .pricing-card--small .pricing-card__amount {
    font-size: 1.25rem;
  }

  .pricing-card--small .pricing-card__features {
    font-size: 0.7rem;
    line-height: 1.2;
    margin: 8px 0;
  }

  .pricing-card--small .pricing-card__features li {
    margin-bottom: 3px;
    justify-content: center;
    white-space: nowrap;
  }

  .pricing-card--small .pricing-card__features li::before {
    display: none;
    /* Hide checkmark on tiny mobile screens if cluttered */
  }

  .pricing-card--small .btn--xs {
    padding: 6px 12px;
    font-size: 0.7rem;
    width: 100%;
    min-height: 28px;
  }
}

/* Pricing Pro - Coming Soon */
.pricing-card.coming-soon {
  position: relative;
  overflow: hidden;
}

.pricing-card.coming-soon>*:not(.coming-soon-overlay) {
  opacity: 0.5;
  filter: blur(1px);
  pointer-events: none;
  transition: opacity 0.3s;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes floatAndGlow {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg) scale(1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  }

  50% {
    transform: translateY(-4px) rotate(-3deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0) rotate(-5deg);
  }

  25% {
    transform: translateX(-4px) rotate(-7deg);
  }

  75% {
    transform: translateX(4px) rotate(-3deg);
  }
}

.coming-soon-overlay span {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  /* Indigo to Purple */
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: floatAndGlow 3s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  transition: transform 0.2s;
}

.pricing-card.coming-soon:hover .coming-soon-overlay span {
  animation: shake 0.4s ease-in-out;
  /* Override float on hover */
}

.pricing-card.coming-soon:active .coming-soon-overlay span {
  transform: scale(0.95) rotate(-5deg);
}



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .container {
    padding: var(--space-xl);
  }

  .header {
    padding: var(--space-2xl) 0;
  }

  .header__title {
    font-size: var(--font-size-3xl);
  }

  .form-textarea {
    min-height: 300px;
    /* Increased from 150px for tablet */
  }
}

/* ---------- Hero Mascot ---------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.hero-mascot {
  width: 140px;
  height: 140px;
  margin-bottom: var(--space-md);
  animation: floatMascot 6s ease-in-out infinite;

  /* Black Background Fix */
  border-radius: 50%;
  overflow: hidden;
  /* Clip corners */
  border: 2px solid rgba(99, 102, 241, 0.3);
  /* Add border frame */
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
  /* Removed black background for Light Theme */
  background: transparent;
  backdrop-filter: blur(10px);
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Blend darker parts with background if possible, or just look like a porthole */
}

/* Navbar Icon - consistent with mascot */
.navbar__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

/* Enhancing Glassmorphism for Worldview & Boundaries */
.navbar,
.zone-card,
.pricing-card,
.result-card,
.modal-content,
.billing-toggle,
.mode-btn,
.pricing-card--small {
  /* Premium Unified Glass Effect (Light) */
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;

  /* Crisp borders */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-bottom: 3px solid rgba(230, 230, 240, 0.5) !important;
  /* Grounding */

  /* Soft modern shadows */
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

.zone-card:hover,
.pricing-card:hover {
  border-color: var(--color-accent-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15) !important;
}

/* Feature Intro Card (Light Glass Separator) */
.feature-intro-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  /* More generous padding */
  margin-top: 100px;
  /* Space for the mascot popping out */
  box-shadow:
    0 20px 60px rgba(99, 102, 241, 0.08),
    0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  /* Inner highlight */
}

/* Refined Hero Typography */
/* Refined Hero Typography */
.header__subtitle-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* HYPER TITLE VISUALS */
.header__title {
  font-size: 3.5rem;
  /* Slightly larger for premium feel */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1em;
  /* Elegant spacing */
  margin-bottom: var(--space-xs);
  opacity: 0;
  transform: translateY(20px);
  animation:
    shineTitle 8s linear infinite,
    /* Restored and slowed down for elegance */
    titleEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;

  /* Complex Gradient (Moving) */
  background: linear-gradient(135deg,
      #ffffff 0%,
      #a5b4fc 25%,
      #6366f1 50%,
      #a855f7 75%,
      #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Glowing Shadow */
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

@keyframes shineTitle {
  from {
    background-position: 0% center;
  }

  to {
    background-position: 200% center;
  }
}

@keyframes titleEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__separator {
  width: 60px;
  height: 3px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(to right, transparent, var(--color-accent-primary), transparent);
  border-radius: var(--radius-full);
  opacity: 0.6;
}

.header__badge-wrapper {
  display: inline-block;
  margin: 0 auto var(--space-sm);
  padding: 4px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.header__catch {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0;
  text-shadow: none;
}

.header__desc {
  font-size: var(--font-size-md);
  line-height: 2;
  /* More airy */
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Feature Intro Card (Refined Glass) */
.feature-intro-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-top: 100px;
  box-shadow:
    0 20px 60px rgba(99, 102, 241, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Brand Strength Section */
.brand-strength {
  padding: 4rem var(--space-md);
  text-align: center;
}

.strength-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: 3rem;
}

.strength-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal) var(--ease-premium),
    box-shadow var(--transition-normal) var(--ease-premium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (hover: hover) {
  .strength-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
  }
}

.strength-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.2));
}

.strength-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  word-break: keep-all;
  /* Apply word-break: keep-all to prevent awkward line breaks */
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strength-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .brand-strength {
    padding: 6rem var(--space-xl);
  }

  .strength-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }

  .strength-card {
    padding: var(--space-2xl);
  }
}

@media (min-width: 768px) {
  .feature-intro-card {
    padding: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
    /* Center it */
  }
}

/* Refined Accent for "Bashitto" */
.hero__accent {
  background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-size: 1.2em;
  /* Emphasize */
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.text-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

@keyframes floatMascot {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Responsive Layout Refinements (PC Quality Lift) ---------- */
.char-count-wrapper {
  text-align: center;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.char-count-wrapper.text-danger {
  color: #ef4444;
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@media (min-width: 768px) {
  .container {
    max-width: 1000px;
    padding: var(--space-2xl) var(--space-xl);
    /* More vertical breathing room */
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    /* Stack vertically */
    max-width: 500px;
    /* Limit width for vertical reading */
    gap: var(--space-lg);
    margin: 0 auto;
  }



  .header {
    padding: 6rem 0 4rem;
    /* Significant top/bottom text space */
  }

  .header__title {
    font-size: 4.5rem;
    /* Even larger on desktop */
    letter-spacing: 0.12em;
    /* Keep elegant spacing */
    margin-bottom: var(--space-lg);
  }

  .hero-section {
    margin-bottom: 5rem;
    /* Space out hero from content */
  }

  .pricing {
    padding: 6rem 0;
    /* More space for pricing section */
  }

  .pricing.pricing--compact {
    padding: 2rem 0;
    /* reduce padding for compact version */
    margin-top: 2rem;
  }

  .form-textarea {
    min-height: 450px;
    /* Taller input on PC for easier long-form writing */
    font-size: 1.1rem;
    /* Readable scale */
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 4rem 2rem;
  }

  .hero__catchphrase {
    font-size: 3.5rem;
  }

  /* ---------- Premium Animations (Scroll & Interact) ---------- */

  /* Base Reveal State */
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger Delays */
  .stagger-delay-1 {
    transition-delay: 0.1s;
  }

  .stagger-delay-2 {
    transition-delay: 0.2s;
  }

  .stagger-delay-3 {
    transition-delay: 0.3s;
  }

  /* Pulse Glow for CTA */
  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
      box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
  }



  .btn-primary.animate-pulse {
    animation: pulseGlow 2s infinite;
  }
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Shimmer Effect for Premium Cards */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}


/* Global Polish: Visual Depth & Texture */
body::before {
  /* Ensure background opacity is perfect for glassmorphism */
  opacity: 0.6;
}

/* Refined Typography for "Expensive" feel */
h1,
h2,
h3,
.pricing-card__amount,
.btn {
  letter-spacing: 0.02em;
  text-shadow: none;
}

/* Floating Elements Polish */
.hero-mascot {
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
  /* Stronger glow */
}

/* Smooth Scrolling & Interaction */
html {
  scroll-padding-top: 100px;
  /* Prevent fixed header overlap */
}

.header__subtitle {
  font-size: var(--font-size-md);
  line-height: 1.6;
}

/* Enhancing Glassmorphism for Worldview */
.navbar,
.zone-card,
.pricing-card,
.result-card,
.modal-content,
.billing-toggle,
.mode-btn {
  background: #ffffff !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.zone-card,
.pricing-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- API Status Banner ---------- */
.api-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Card-like lift */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.api-status-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.1);
}

.api-status-banner--warning {
  background: #fffbeb;
  /* Amber 50 */
  border: 1px solid #fcd34d;
  /* Amber 300 */
  border-left: 4px solid #f59e0b;
  /* Amber 500 */
  color: #92400e;
  /* Amber 800 */
}

.api-status-banner--success {
  background: #ecfdf5;
  /* Emerald 50 */
  border: 1px solid #6ee7b7;
  /* Emerald 300 */
  border-left: 4px solid #10b981;
  /* Emerald 500 */
  color: #065f46;
  /* Emerald 800 */
}

.api-status-banner .btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: inherit;
  font-size: 0.8rem;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.api-status-banner .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- Additional Button Styles ---------- */
.btn--icon {
  padding: var(--space-sm);
  font-size: var(--font-size-lg);
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn--icon:hover {
  color: var(--color-text-primary);
}

.btn--small {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.btn--small:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--danger {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-danger);
  background: var(--color-danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-md);
}

.btn--danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* ---------- Header with Settings ---------- */
.header {
  position: relative;
}

#settingsBtn {
  position: absolute;
  top: var(--space-md);
  right: 0;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - var(--space-xl) * 2);
  max-width: 400px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--transition-normal);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* ---------- Form Input ---------- */
.form-input {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-glow);
}

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

.form-hint {
  margin-top: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-hint a {
  color: var(--color-accent-secondary);
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

/* ---------- API Info Box ---------- */
.api-info {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg-input);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.api-info ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
  color: var(--color-text-secondary);
}

.api-info ul li {
  margin-bottom: var(--space-xs);
}

.api-info__cost {
  margin-top: var(--space-sm);
  color: var(--color-success);
  font-weight: 500;
}

/* Ensure Footer Visibility */
.footer {
  background: #f8fafc;
  color: #475569;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.footer__tagline,
.footer__subtitle,
.footer__version,
.footer__credit {
  color: #64748b;
  /* Slate 500 */
}

/* End of File */

/* Char Count Wrapper */
.char-count-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-xs);
  padding: 0 var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Zone Header: Ensure button is always on top right */
.zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* This pushes title left and button right */
  margin-bottom: var(--space-md);
  width: 100%;
}

.zone-title {
  flex-grow: 1;
  /* Allow title to take up remaining space */
  margin-right: var(--space-sm);
  /* Truncate if too long? usually not needed but good for safety */
}

/* Clear Button (Text) */
.btn--clear {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0;
  /* Flex handles positioning now */
  white-space: nowrap;
  flex-shrink: 0;
  /* Prevent button from shrinking */
}

@media (min-width: 768px) {
  .btn--clear {
    padding: 6px 14px;
    font-size: 0.9rem;
    /* Bigger on desktop */
  }
}

.btn--clear:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-danger);
  border-color: var(--color-danger);
}



/* Utilities */
.u-no-break {
  display: inline-block;
  white-space: normal;
  /*Allow wrapping if absolutely necessary but prefer keep-all*/
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ---------- Loading Section ---------- */
.loading-section {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
}

.loading-section.visible {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-md);
}

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

.loading-text {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
}

/* Twitter Share Button */
.btn--twitter {
  background-color: #000000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  margin-top: 8px;
  cursor: pointer;
}

.btn--twitter:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--twitter svg {
  margin-right: 8px;
}

/* ---------- Nuance Selector ---------- */
.nuance-selector-wrapper {
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0 var(--space-xs);
}

.nuance-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nuance-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--color-accent-secondary);
  border-radius: 2px;
}

.nuance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nuance-tag {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  /* Pill shape */
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nuance-tag:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.nuance-tag.active {
  background: var(--color-accent-primary);
  color: white;
  border-color: var(--color-accent-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  font-weight: 700;
  /* Bolder text */
  padding-left: 12px;
  /* Adjust for checkmark */
}

/* Add checkmark when active */
.nuance-tag.active::before {
  content: '✓ ';
  margin-right: 4px;
}

.nuance-tag:active {
  transform: translateY(0);
}

.remove-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  transition: all 0.2s;
  cursor: pointer;
}

.remove-tag:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
  color: #ef4444;
}

.nuance-tag.active .remove-tag:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.nuance-custom-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 400px;
}

.nuance-custom-input .form-input {
  flex: 1;
}

/* ---------- Contact Section (Refined) ---------- */
/* ---------- Contact Section (Refined) ---------- */
.contact-container {
  max-width: 600px;
  width: 100%;
  /* Fix mobile width */
  padding: 0 var(--space-md);
  /* Fix mobile padding */
  margin: 0 auto;
  text-align: center;
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  /* Soft, premium shadow */
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  overflow: hidden;
  /* Prevent child overflow */
}

.contact-body {
  margin-bottom: var(--space-xl);
}

.contact-desc {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  /* Cuter font */
  font-weight: 500;
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  word-break: initial;
  /* Reset to allow wrapping */
  overflow-wrap: anywhere;
  /* Ensure it wraps even if tight */
  text-align: left;
  /* Better readability */
  display: inline-block;
  /* Keep block centered in parent */
}

@media (max-width: 480px) {
  .highlight-card {
    padding: var(--space-md);
    /* More space for text on mobile */
  }
}

.btn--contact {
  width: 100%;
  max-width: 260px;
  /* Slimmer button */
  margin: 0 auto;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  font-weight: 700;
}

.contact-email-sub {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-family: monospace;
}

/* Template Area */
/* Template Area */
.template-section {
  text-align: left;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-accent-primary);
  /* Accent border */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-lg);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.template-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-code-wrapper {
  padding: var(--space-md);
  position: relative;
  background: #ffffff;
}

.template-code-wrapper pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  /* Better monospace */
  font-size: var(--font-size-xs);
  color: #334155;
  line-height: 1.7;
  padding: var(--space-xs);
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

/* Hero CTA Button */
.btn--hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  /* Stronger Gradient: Indigo 600 to Indigo 500 */
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 3.5rem;
  /* Wider for better presence */
  border-radius: 9999px;
  text-decoration: none;
  /* Stronger shadow for lift */
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.5), 0 8px 10px -6px rgba(79, 70, 229, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  /* Cleaner font spacing */
}

.btn--hero-cta:hover {
  transform: translateY(-3px);
  /* Intense shadow on hover */
  box-shadow: 0 20px 30px -5px rgba(79, 70, 229, 0.6), 0 10px 10px -5px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.btn--hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px -3px rgba(99, 102, 241, 0.5);
}

.btn--hero-cta .btn__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn--hero-cta:hover .btn__arrow {
  transform: translateX(4px);
}

/* Shine effect */
.btn--hero-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn--hero-cta:hover::after {
  left: 150%;
  transition: left 0.7s ease-in-out;
}

/* Hero CTA Badge */
.hero-cta-badge {
  position: absolute;
  top: -28px;
  /* Brought even closer */
  right: -10px;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-text-primary);
  white-space: nowrap;
  transform: rotate(5deg);
  /* Playful tilt */
  animation: float-badge 2s ease-in-out infinite;
  border: 2px solid var(--color-accent-primary);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.hero-cta-badge__text {
  color: var(--color-accent-primary);
}

.hero-cta-badge__arrow {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-warning);
  /* Fun orange arrow */
  transform: rotate(90deg) translateY(2px);
  /* Point down to button */
  display: inline-block;
}

@keyframes float-badge {

  0%,
  100% {
    transform: rotate(5deg) translateY(0);
  }

  50% {
    transform: rotate(5deg) translateY(-8px);
  }
}

/* ========================================
   Ad Modal (Interstitial)
   ======================================== */
.ad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ad-modal.open {
  opacity: 1;
  visibility: visible;
}

.ad-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-modal.open .ad-content {
  transform: scale(1);
}

.ad-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-accent-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.ad-body {
  margin-bottom: var(--space-lg);
}

.ad-placeholder {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.ad-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 60px;
  justify-content: center;
}

.ad-timer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

#adCount {
  font-weight: 700;
  color: var(--color-accent-primary);
  font-size: 1.2em;
}

.ad-remove-link a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ========================================
   Modal Overlay (Fix for Limit Modal)
   ======================================== */
.modal-overlay {
  display: none;
  /* Hide by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

/* ========================================
   Limit Section (Real-time Countdown)
   ======================================== */
.limit-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: none;
  /* Hidden by default */
  animation: fadeIn 0.5s ease-out;
}

.limit-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--color-warning);
}

.limit-card__header h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--color-text-primary);
}

.limit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float-badge 3s ease-in-out infinite;
}

.limit-card__body p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.countdown-timer {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0;
  letter-spacing: 2px;
  background: #f8fafc;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.limit-actions {
  margin-top: 2rem;
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.limit-actions p {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .countdown-timer {
    font-size: 2.5rem;
    padding: 0.8rem 1rem;
  }
}

/* ========================================
   Ad Slots (Placeholders for AdSense)
   ======================================== */
.ad-slot {
  margin: 2rem 0;
  text-align: center;
}

.ad-slot__placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hide placeholder when AdSense is active */
.ad-slot--active .ad-slot__placeholder {
  display: none;
}

/* ========================================
   Sticky Footer Ad
   ======================================== */
.sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Reserve space for sticky ad so content doesn't get hidden behind it */
body {
  padding-bottom: 100px;
}

.sticky-ad__container {
  max-width: 728px;
  margin: 0 auto;
  position: relative;
}

.sticky-ad__placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sticky-ad__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-text-muted);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-ad__close:hover {
  background: var(--color-danger);
}

.sticky-ad--hidden {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sticky-ad {
    padding: 0.25rem;
  }

  .sticky-ad__placeholder {
    min-height: 50px;
    padding: 0.5rem;
  }
}
/* ========================================
   Limit Modal - Solid Background Override
   ======================================== */
#limitModal .modal-card--limit {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
}

#limitModal .modal-card--limit .modal-header h2 {
  color: var(--color-text-primary) !important;
}

#limitModal .modal-card--limit .modal-body {
  color: var(--color-text-primary) !important;
}

#limitModal .modal-card--limit p {
  color: var(--color-text-primary) !important;
}
/* ========================================
   Danger Alert Banner (Scam/Exploitation Warning)
   ======================================== */
.danger-banner {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
}

.danger-banner__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.danger-banner__content {
    flex: 1;
}

.danger-banner__title {
    color: #991b1b;
    /* Dark red */
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.danger-banner__message {
    color: #b91c1c;
    /* Red */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Severe variant (pulsing effect) */
.danger-banner--severe {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}