/*
  droPrompt — Shared Dark Mode stylesheet
  Loaded by all sub-pages. Activated via html.dark-mode class
  (set by inline <script> reading localStorage 'dp-theme').
*/

/* ── Override CSS custom properties from theme.css ── */
html.dark-mode {
  --surface: #0f1117;
  --surface-dim: #1a1d27;
  --surface-lowest: #1a1d27;
  --surface-low: #21253a;
  --surface-container: #262b40;
  --surface-high: #2d3148;
  --surface-highest: #363b54;
  --on-surface: #e2e6f0;
  --on-surface-soft: rgba(226,230,240,0.8);
  --on-surface-muted: rgba(226,230,240,0.5);
  --on-surface-faint: rgba(226,230,240,0.3);
  --ghost-line: rgba(255,255,255,0.07);
  --ghost-line-strong: rgba(255,255,255,0.12);
  --primary: #e7731a;
  --primary-deep: #c95e0e;
  --bg: #0f1117;
  --surface2: #21253a;
  --surface3: #262b40;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --border3: rgba(255,255,255,0.18);
  --text: #e2e6f0;
  --muted: rgba(226,230,240,0.5);
  --muted2: rgba(226,230,240,0.3);
  --accent: #e7731a;
  --shadow-ambient: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-float: 0 20px 70px rgba(0,0,0,0.6);

  /* Phase 8/9 dp- variables used in contact.html */
  --dp-bg: #0f1117;
  --dp-bg-2: #0f1117;
  --dp-surface: #1a1d27;
  --dp-surface-2: #21253a;
  --dp-border: #2d3148;
  --dp-border-2: #363b54;
  --dp-text: #e2e6f0;
  --dp-text-soft: #aab0c8;
  --dp-muted: #8890a8;
  --dp-muted-2: #5e6480;
  --dp-accent: #e7731a;
  --dp-blue: #4a9eff;
  --dp-blue-soft: rgba(74,158,255,0.12);
  --dp-final-bg: #0f1117;
  --dp-final-bg-2: #0f1117;
  --dp-final-surface: #1a1d27;
  --dp-final-surface-2: #21253a;
  --dp-final-border: #2d3148;
  --dp-final-border-2: #363b54;
  --dp-final-text: #e2e6f0;
  --dp-final-text-soft: #aab0c8;
  --dp-final-muted: #8890a8;
  --dp-final-muted-2: #5e6480;
  --dp-final-orange: #e7731a;
  --dp-final-orange-2: #c95e0e;
  --dp-final-orange-soft: rgba(231,115,26,0.12);
  --dp-final-blue: #4a9eff;
  --dp-final-blue-soft: rgba(74,158,255,0.12);
  --dp-final-shadow: 0 16px 34px rgba(0,0,0,0.45);
  color-scheme: dark;
}

/* ── Page background ── */
html.dark-mode,
html.dark-mode body {
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(231,115,26,0.06), transparent),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(47,128,255,0.05), transparent),
    #0f1117 !important;
  color: #e2e6f0 !important;
}

/* ── Header / Nav ── */
html.dark-mode header,
html.dark-mode .topbar,
html.dark-mode .navbar,
html.dark-mode .page-header,
html.dark-mode .site-header {
  background: rgba(15,17,23,0.96) !important;
  border-bottom-color: #2d3148 !important;
  backdrop-filter: blur(10px);
}

html.dark-mode .logo-name .dro,
html.dark-mode .logo-name .drop { color: #8890a8 !important; }
html.dark-mode .logo-name .Prompt,
html.dark-mode .logo-name .prompt { color: #e2e6f0 !important; }

html.dark-mode .back-btn {
  color: #8890a8 !important;
  border-color: #2d3148 !important;
  background: transparent !important;
}
html.dark-mode .back-btn:hover { color: #e2e6f0 !important; border-color: #363b54 !important; }

/* ── Typography ── */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6,
html.dark-mode .section-title, html.dark-mode .plan-name,
html.dark-mode .auth-title, html.dark-mode th {
  color: #e2e6f0 !important;
}
html.dark-mode p, html.dark-mode li, html.dark-mode small,
html.dark-mode label, html.dark-mode .form-note,
html.dark-mode .plan-desc, html.dark-mode .faq-a,
html.dark-mode .legal-body {
  color: #8890a8 !important;
}
html.dark-mode .field-label, html.dark-mode .plan-price-note,
html.dark-mode .char-count, html.dark-mode .input-lang { color: #5e6480 !important; }
html.dark-mode strong { color: #e2e6f0 !important; }
html.dark-mode em { color: #e7731a !important; }
html.dark-mode a:not(.logo):not(.back-btn):not([class*="btn"]):not([class*="plan"]):not([class*="nav"]) {
  color: #e7731a !important;
}

/* ── Cards / Surfaces ── */
html.dark-mode .form-card,
html.dark-mode .card, html.dark-mode .panel, html.dark-mode .box,
html.dark-mode .plan-card, html.dark-mode .plan-box,
html.dark-mode .faq-item, html.dark-mode .legal-section,
html.dark-mode .rights-card, html.dark-mode .guarantee-banner,
html.dark-mode table {
  background: #1a1d27 !important;
  border-color: #2d3148 !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.4) !important;
  color: #e2e6f0 !important;
}

html.dark-mode .plan-card.featured,
html.dark-mode .plan-card[data-featured],
html.dark-mode .plan-card:has(.plan-tag) {
  background: #1e2235 !important;
  border-color: rgba(231,115,26,0.4) !important;
}

html.dark-mode .form-field { border-bottom-color: #2d3148 !important; background: transparent !important; }
html.dark-mode .form-action { border-top-color: #2d3148 !important; background: transparent !important; }

/* ── Inputs ── */
html.dark-mode input, html.dark-mode textarea, html.dark-mode select {
  background: #0f1117 !important;
  border-color: #2d3148 !important;
  color: #e2e6f0 !important;
  border-radius: 12px !important;
}
html.dark-mode input::placeholder, html.dark-mode textarea::placeholder { color: #5e6480 !important; }
html.dark-mode input:focus, html.dark-mode textarea:focus, html.dark-mode select:focus {
  border-color: rgba(231,115,26,0.5) !important;
  box-shadow: 0 0 0 4px rgba(231,115,26,0.10) !important;
  outline: none !important;
}

/* ── Buttons ── */
html.dark-mode button.secondary,
html.dark-mode .btn-secondary,
html.dark-mode .btn-outline,
html.dark-mode .btn-ghost {
  background: #21253a !important;
  border-color: #2d3148 !important;
  color: #8890a8 !important;
}
html.dark-mode button.secondary:hover,
html.dark-mode .btn-outline:hover,
html.dark-mode .btn-ghost:hover {
  background: #262b40 !important;
  color: #e2e6f0 !important;
  border-color: #363b54 !important;
}

/* ── Badges / Pills / Tags ── */
html.dark-mode .badge, html.dark-mode .tag, html.dark-mode .pill,
html.dark-mode .plan-tag, html.dark-mode .legal-badge {
  background: rgba(231,115,26,0.12) !important;
  color: #e7731a !important;
  border-color: rgba(231,115,26,0.28) !important;
}

/* ── Table ── */
html.dark-mode th { background: #21253a !important; color: #e2e6f0 !important; }
html.dark-mode td { background: #1a1d27 !important; color: #8890a8 !important; border-color: #2d3148 !important; }
html.dark-mode tr:last-child td { border-bottom: none !important; }
html.dark-mode th:last-child, html.dark-mode td:last-child { border-right: none !important; }

/* ── HR dividers ── */
html.dark-mode hr {
  background: linear-gradient(90deg, transparent, #2d3148, transparent) !important;
  border: none !important;
  height: 1px !important;
}

/* ── Footer ── */
html.dark-mode footer,
html.dark-mode .site-footer {
  background: #0f1117 !important;
  border-top-color: #2d3148 !important;
}
html.dark-mode footer *, html.dark-mode .site-footer * { color: #5e6480 !important; }
html.dark-mode footer a:hover, html.dark-mode .site-footer a:hover { color: #8890a8 !important; }

/* ── Errors ── */
html.dark-mode .error-msg {
  background: rgba(226,75,74,0.1) !important;
  border-color: rgba(226,75,74,0.25) !important;
  color: #f09595 !important;
}

/* ── Hero eyebrow (contact.html) ── */
html.dark-mode .hero-eyebrow { color: #5e6480 !important; }
html.dark-mode .hero-eyebrow::before,
html.dark-mode .hero-eyebrow::after { background: #2d3148 !important; }

/* ── Contact hero p ── */
html.dark-mode .hero p { color: #8890a8 !important; }

/* ── Pricing page specifics ── */
html.dark-mode .billing-toggle {
  background: #1a1d27 !important;
  border-color: #2d3148 !important;
}
html.dark-mode .billing-toggle span { color: #8890a8 !important; }
html.dark-mode .billing-toggle span.active,
html.dark-mode .billing-pill { color: #e2e6f0 !important; }
html.dark-mode .plan-price { color: #e2e6f0 !important; }
html.dark-mode .plan-feature { color: #8890a8 !important; }
html.dark-mode .plan-feature.included::before { color: #e7731a !important; }
html.dark-mode .faq-q { color: #e2e6f0 !important; }
html.dark-mode .compare-tbl th { color: #e2e6f0 !important; }

/* ── Legal pages specifics ── */
html.dark-mode .legal-section-title { color: #e2e6f0 !important; }
html.dark-mode .legal-section-header { border-color: #2d3148 !important; }

/* ── Override Phase 8/9 forced-light inline styles ── */
html.dark-mode [style*="background:#111"],
html.dark-mode [style*="background:#181818"],
html.dark-mode [style*="background:#080808"],
html.dark-mode [style*="background:#0b0b0b"],
html.dark-mode [style*="background:#000"] {
  background: #1a1d27 !important;
  color: #e2e6f0 !important;
  border-color: #2d3148 !important;
}
html.dark-mode [style*="color:#F2EDE4"],
html.dark-mode [style*="color: #F2EDE4"] { color: #e2e6f0 !important; }
