/* ==========================================================================
   DORAEMON HOSTING V2.0 — EMERALD GREEN + DEEP CHARCOAL ENTERPRISE DESIGN
   - Replaces legacy orange foundation with Black, Charcoal & Emerald Green
   - Dark Mode: Deep Obsidian (#06090d) + Charcoal Surfaces + Emerald (#10b981 / #22c55e)
   - Light Mode: Warm Cream (#f9f7f2) + Soft Ivory Cards + Deep Emerald (#059669)
   - Mobile Navbar overflow fixed (zero clipping on 360px+ screens)
   ========================================================================== */
:root {
  --bg: #06090d;
  --bg-subtle: #0b1016;
  --surface: #111820;
  --surface-2: #16202a;
  --surface-hover: #1d2a37;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(16, 185, 129, 0.40);

  /* Signature Emerald Green Brand Palette */
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-2: #059669;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-fg: #34d399;
  --accent-on: #04130d;

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --green-glow: 0 0 20px rgba(16, 185, 129, 0.22);
  --green-border: rgba(16, 185, 129, 0.40);

  --pro-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --pro-grad-hover: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --pro-border-glow: rgba(16, 185, 129, 0.36);
  --pro-card-bg: linear-gradient(180deg, rgba(17, 24, 32, 0.96) 0%, rgba(11, 16, 22, 0.98) 100%);
}

html[data-theme="light"] {
  --bg: #f8f6f0;
  --bg-subtle: #f1ede4;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --surface-hover: #e7e1d4;
  --border: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(5, 150, 105, 0.35);

  --accent: #059669;
  --accent-hover: #047857;
  --accent-2: #10b981;
  --accent-soft: rgba(5, 150, 105, 0.11);
  --accent-fg: #047857;
  --accent-on: #ffffff;

  --pro-grad: linear-gradient(135deg, #059669 0%, #047857 100%);
  --pro-grad-hover: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --pro-border-glow: rgba(5, 150, 105, 0.32);
  --pro-card-bg: linear-gradient(180deg, #ffffff 0%, #f9f7f2 100%);
}

body {
  background-image:
    radial-gradient(ellipse 75% 42% at 15% -10%, rgba(16, 185, 129, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 38% at 88% 8%, rgba(34, 197, 94, 0.08), transparent 62%) !important;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 75% 42% at 15% -10%, rgba(5, 150, 105, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 38% at 88% 8%, rgba(16, 185, 129, 0.06), transparent 62%) !important;
}

.btn-primary, button.btn-primary, a.btn-primary {
  background: var(--pro-grad) !important;
  color: var(--accent-on) !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28) !important;
}
.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  background: var(--pro-grad-hover) !important;
}

.v19-term-bar-fill {
  background: linear-gradient(90deg, #059669, #34d399) !important;
}
.v19-announce {
  background: linear-gradient(90deg, rgba(16,185,129,0.16), rgba(5,150,105,0.16)) !important;
}
.v19-cta-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(5,150,105,0.10) 100%) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}

/* Mobile Navbar Overflow Fix (prevents button clipping on narrow phones) */
@media (max-width: 520px) {
  .v19-nav {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .v19-brand {
    font-size: 15px !important;
    gap: 7px !important;
    white-space: nowrap;
  }
  .v19-brand img {
    width: 26px !important;
    height: 26px !important;
  }
  .v19-nav .btn-sm {
    min-height: 36px !important;
    padding: 6px 11px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}
