/* ═══════════════════════════════════════════════════════════════════════════
  Murudo — Marketing landing page styles with distinct light and dark themes.
  ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Light theme (default) ───────────────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg:               #FFF9F5;
  --bg-warm:          #F4ECE6;
  --surface:          #FFFFFF;
  --surface-elevated: #FBF3EE;
  --surface-accent:   rgba(141, 79, 141, 0.08);
  --text:             #21161F;
  --text-secondary:   #66545F;
  --text-tertiary:    #897681;
  --accent:           #8D4F8D;
  --accent-hover:     #774177;
  --accent-light:     #B57AB5;
  --accent-soft:      rgba(141, 79, 141, 0.10);
  --gold:             #D4AF37;
  --border:           #E2D4DE;
  --border-light:     #F0E4EC;
  --input-bg:         #FFFFFF;
  --danger:           #E04545;
  --success:          #4E8A62;
  --shadow:           rgba(76, 38, 63, 0.12);
  --nav-bg:           rgba(255, 249, 245, 0.82);
  --nav-bg-blur:      saturate(180%) blur(20px);
  --modal-backdrop:   rgba(33, 22, 31, 0.24);
  --footer-bg:        #EFE3DC;
  --footer-text:      #43323D;
  --footer-muted:     #7E6C77;
  --max-w:            1180px;
  --ease:             cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color-scheme:       light;
}

/* ─── Dark theme ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:               #050505;
  --bg-warm:          #100C14;
  --surface:          #151020;
  --surface-elevated: #1C1628;
  --surface-accent:   rgba(179, 102, 179, 0.12);
  --text:             #F8F6F8;
  --text-secondary:   #9A8A9A;
  --text-tertiary:    #C8B8C8;
  --accent:           #B366B3;
  --accent-hover:     #C888C8;
  --accent-light:     #D4A0D4;
  --accent-soft:      rgba(179, 102, 179, 0.15);
  --gold:             #D4AF37;
  --border:           #2A2034;
  --border-light:     #1C1628;
  --input-bg:         #151020;
  --danger:           #E04545;
  --success:          #5B9A6A;
  --shadow:           rgba(0, 0, 0, 0.5);
  --nav-bg:           rgba(5, 5, 5, 0.72);
  --nav-bg-blur:      saturate(180%) blur(20px);
  --modal-backdrop:   rgba(0, 0, 0, 0.7);
  --footer-bg:        #030303;
  --footer-text:      #C8B8C8;
  --footer-muted:     #6A5A6A;
  color-scheme:       dark;
}

/* ─── Reset ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ──────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: var(--nav-bg-blur);
  -webkit-backdrop-filter: var(--nav-bg-blur);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  line-height: 1;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 980px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  border-radius: 999px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Auth nav */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-login-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-account-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.nav-logout-btn {
  font-size: 12px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
  font-family: inherit;
}

.nav-logout-btn:hover { color: var(--danger); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ─── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 120px 0 80px;
  background: var(--bg-warm);
  transition: background 0.3s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Proof strip */
.hero-proof {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.proof-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.proof-item span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Phone visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-light), var(--accent));
  box-shadow:
    0 32px 80px var(--shadow),
    0 0 0 1px rgba(154, 87, 154, 0.15);
}

.phone-frame .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(160deg, var(--accent-light), var(--accent));
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  transition: all 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.btn-solid {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: all 0.2s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-solid:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

.btn-outline {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--border);
  background: transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ─── Sections ────────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
  transition: background 0.3s;
}

.bg-warm {
  background: var(--bg-warm);
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 48px;
}

/* ─── Features Grid ───────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.feature-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-warm);
}

.feature-card.highlight {
  background: var(--accent);
  color: #fff;
}

.feature-card.highlight:hover {
  background: var(--accent-hover);
}

.feature-card.highlight h3 { color: #fff; }
.feature-card.highlight p { color: rgba(255, 255, 255, 0.85); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* ─── Steps ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* ─── Safety Grid ─────────────────────────────────────────────────────── */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.safety-item {
  background: var(--surface);
  padding: 36px 28px;
  transition: background 0.3s;
}

.safety-item:hover {
  background: var(--bg-warm);
}

.safety-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.safety-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ─── Pricing ─────────────────────────────────────────────────────────── */

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

.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 28px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow);
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 48px rgba(154, 87, 154, 0.12);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 5px 18px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card ul li:last-child { border-bottom: none; }

.pricing-card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

/* Pricing purchase controls */
.pricing-login-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.pricing-primary-btn {
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}

.pricing-primary-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.pricing-primary-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.pricing-primary-btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.boost-shop {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(154, 87, 154, 0.08), rgba(154, 87, 154, 0.02));
}

.boost-shop-copy {
  max-width: 640px;
  margin-bottom: 20px;
}

.boost-shop-copy h3 {
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--text);
}

.boost-shop-copy p:last-child {
  color: var(--text-secondary);
  line-height: 1.7;
}

.boost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.boost-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 20px;
}

.boost-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.boost-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.boost-card p {
  min-height: 46px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── CTA Section ─────────────────────────────────────────────────────── */

.cta-section {
  background: var(--accent);
  text-align: center;
  transition: background 0.3s;
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  transition: all 0.2s var(--ease);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 10px;
  opacity: 0.75;
  text-align: left;
}

.store-btn strong {
  display: block;
  font-size: 15px;
  text-align: left;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 32px;
  transition: background 0.3s;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 12px;
  display: inline-block;
  line-height: 0;
}

.footer-logo-img {
  width: 84px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.footer-brand p {
  font-size: 14px;
  color: var(--footer-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--footer-muted);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--footer-muted);
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--footer-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--footer-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--footer-muted);
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--footer-text); }

/* ─── Modal ───────────────────────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--modal-backdrop);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 32px 80px var(--shadow);
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-warm);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

/* ─── Auth Modal Tabs ─────────────────────────────────────────────────── */

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-tab:hover:not(.active) {
  color: var(--text);
}

.social-auth-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.social-auth-btn {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.social-auth-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.auth-help-text {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ─── Forms ───────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}

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

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

.form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.01);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  margin-top: 14px;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.link-btn:hover {
  color: var(--accent-hover);
}

.forgot-form {
  display: none;
}

.forgot-form.active {
  display: block;
}

.forgot-form .form-group {
  display: none;
}

.forgot-form .form-group.visible {
  display: block;
}

/* ─── Purchase Modal ──────────────────────────────────────────────────── */

.purchase-steps {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.purchase-step {
  flex: 1;
  text-align: center;
}

.purchase-step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.purchase-step.active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.purchase-step.completed .step-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.purchase-step .step-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.purchase-status {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  min-height: 44px;
}

.purchase-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.purchase-method-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.purchase-method-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.purchase-plan-text {
  margin-top: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ─── Toast ───────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

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

.toast-info    { background: var(--accent); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }

/* ─── Animations ──────────────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 20px 24px 32px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 24px 48px var(--shadow);
    overflow-y: auto;
  }
  .nav-controls {
    margin-left: auto;
    gap: 8px;
  }
  .nav-toggle { display: flex; }
  .nav-auth { gap: 6px; }
  .nav-auth-links { gap: 6px; }
  .nav-account-name { display: none; }
  .nav-login-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero { padding: 100px 0 60px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; flex-wrap: wrap; }
  .proof-item strong { white-space: normal; }
  .hero-visual { order: -1; }
  .phone-frame { width: 260px; }
  .hero-overlay-logo { width: 96px; }

  .section { padding: 64px 0; }
  .section-headline { font-size: 32px; }

  .features-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .boost-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  .logo-img { width: 36px; height: 36px; }
  .nav-logo-text { font-size: 18px; }
  .hero-title { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .phone-frame { width: 220px; }
  .hero-overlay-logo { width: 84px; }
  .footer-logo-img { width: 76px; }

  .theme-toggle { width: 40px; height: 40px; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-socials { justify-content: center; }

  .feature-card { padding: 28px 24px; }
  .safety-item { padding: 28px 20px; }
  .pricing-card { padding: 32px 24px; }
  .boost-shop { padding: 24px 20px; }

  .store-buttons { flex-direction: column; align-items: center; }
}
