/* ═══════════════════════════════════════════
   툴모아 Platform CSS
   공통 헤더/푸터/카드/레이아웃
═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary:      #5B8DEF;
  --primary-dark: #4a7ce0;
  --accent:       #FF8A5B;
  --cat-money:    #10B981;
  --cat-fortune:  #8B5CF6;
  --cat-test:     #EC4899;
  --cat-life:     #06B6D4;
  --cat-fun:      #F59E0B;

  --bg:           #f0f4f8;
  --white:        #ffffff;
  --text:         #1a2030;
  --text-sub:     #55637a;
  --border:       #d8e0eb;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(91,141,239,.12);
  --shadow-md:    0 4px 28px rgba(91,141,239,.18);
  --tr:           .2s ease;
}

[data-theme="dark"] {
  --bg:     #0f172a;
  --white:  #1e293b;
  --text:   #e2e8f0;
  --text-sub: #94a3b8;
  --border: #334155;
  --shadow: 0 2px 12px rgba(0,0,0,.35);
  --shadow-md: 0 4px 28px rgba(0,0,0,.45);
}

/* ── Reset (minimal, for standalone platform pages) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; word-break: keep-all; }
p  { word-break: keep-all; }
button, input, select, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ══════════════════════════════════════════
   HEADER — overrides style.css navy header
══════════════════════════════════════════ */
.site-header {
  background: var(--white) !important;
  position: sticky !important;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(91,141,239,.10);
}

.site-header .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 58px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text) !important;
  font-weight: 900;
  font-size: 1.2rem;
  white-space: nowrap;
  padding-bottom: 0 !important;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary) !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff !important;
  line-height: 1;
}

.logo-text {
  color: var(--text) !important;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  /* reset style.css scrollable-nav overrides */
  border-top: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  overflow-x: visible !important;
}

.nav-link {
  color: var(--text-sub) !important;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 8px;
  transition: all var(--tr);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(91,141,239,.08);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--primary) !important;
  background: rgba(91,141,239,.10);
  font-weight: 600;
}

/* Category-tinted nav links */
.nav-money:hover, .nav-money.active   { color: var(--cat-money)   !important; background: rgba(16,185,129,.08); }
.nav-fortune:hover, .nav-fortune.active{ color: var(--cat-fortune) !important; background: rgba(139,92,246,.08); }
.nav-test:hover, .nav-test.active     { color: var(--cat-test)    !important; background: rgba(236,72,153,.08); }
.nav-life:hover, .nav-life.active     { color: var(--cat-life)    !important; background: rgba(6,182,212,.08); }
.nav-fun:hover, .nav-fun.active       { color: var(--cat-fun)     !important; background: rgba(245,158,11,.08); }

/* Header right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Dark mode toggle (in header) */
.theme-toggle {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg) !important;
  color: var(--text-sub);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--tr);
  position: static !important;  /* override fixed position from style.css */
  bottom: auto !important;
  right: auto !important;
  box-shadow: none !important;
}

.theme-toggle:hover {
  background: var(--border) !important;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--tr);
}

.nav-toggle:hover { background: var(--bg); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
  opacity: 0;
  transition: opacity .2s;
}

/* ── Responsive Header ── */
@media (max-width: 768px) {
  .site-nav {
    display: none !important;
    position: fixed !important;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px !important;
    margin: 0 !important;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow-x: hidden !important;
  }

  .site-nav.open {
    display: flex !important;
  }

  .nav-overlay.show {
    display: block;
    opacity: 1;
  }

  .nav-link {
    padding: 12px 12px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--white) !important;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 40px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-sub);
  padding: 3px 0;
  transition: color var(--tr);
}

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

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-sub);
}

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

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-sub);
  transition: color var(--tr);
}

.footer-legal a:hover { color: var(--primary); }

/* Legacy footer support (from style.css) */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-sub); transition: color var(--tr); }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { font-size: 0.78rem; color: var(--text-sub); text-align: center; padding-top: 8px; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand p { max-width: 100%; }
}

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-sub);
  padding: 12px 0 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-sub); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════
   TOOL CARDS
══════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tool-color, var(--primary));
  opacity: 0;
  transition: opacity var(--tr);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tool-color, var(--primary));
}

.tool-card:hover::before { opacity: 1; }

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tool-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.tool-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-popular {
  background: rgba(255,138,91,.15);
  color: #c9501e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(255,138,91,.3);
}

.badge-new {
  background: rgba(91,141,239,.12);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(91,141,239,.25);
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tool-card p {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.tool-tag {
  background: var(--bg);
  color: var(--text-sub);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.tool-card-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  gap: 3px;
  margin-top: 4px;
}

/* Coming Soon Card */
.tool-card.coming-soon {
  opacity: .65;
  cursor: default;
}

.tool-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.tool-card.coming-soon::before { opacity: 0 !important; }

.badge-soon {
  background: rgba(148,163,184,.15);
  color: var(--text-sub);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   HERO SECTION (main landing page)
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(145deg, #1e3a5f 0%, #2d5ba3 50%, #5B8DEF 100%);
  padding: 60px 0 48px;
  text-align: center;
  color: #fff;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-logo-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  backdrop-filter: blur(4px);
}

.hero-logo-text {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.hero h1 {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: .85;
  margin-bottom: 32px;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--tr);
  backdrop-filter: blur(4px);
}

.hero-cat-btn:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 36px; }
  .hero-logo-text { font-size: 1.9rem; }
  .hero-logo-icon { width: 42px; height: 42px; font-size: 1.4rem; }
  .hero-cat-btn { padding: 8px 14px; font-size: 0.82rem; }
}

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-hd h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-hd a {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

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

/* ══════════════════════════════════════════
   CATEGORY PAGE HEADER
══════════════════════════════════════════ */
.cat-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.cat-hero-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cat-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cat-hero-text h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.cat-hero-text p {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ══════════════════════════════════════════
   CONTENT SECTIONS
══════════════════════════════════════════ */
.content-section {
  padding: 40px 0;
}

.platform-main {
  padding-bottom: 40px;
}

.platform-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.platform-section:last-child { border-bottom: none; }

/* ══════════════════════════════════════════
   RELATED TOOLS
══════════════════════════════════════════ */
.related-tools {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.related-tools h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

/* ══════════════════════════════════════════
   COMING SOON PLACEHOLDER
══════════════════════════════════════════ */
.coming-soon-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin: 24px 0;
}

.coming-soon-banner .cs-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.coming-soon-banner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.coming-soon-banner p {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* ══════════════════════════════════════════
   STATIC PAGES (about/privacy/contact)
══════════════════════════════════════════ */
.static-page {
  padding: 40px 0 60px;
}

.static-page h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text);
}

.static-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.static-page p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.static-page ul {
  list-style: disc;
  padding-left: 1.4em;
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.static-page a {
  color: var(--primary);
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   AGE CALCULATOR
══════════════════════════════════════════ */
.age-calc-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0;
}

.age-input-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.age-input-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.age-date-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.age-date-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 90px;
}

.age-date-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
}

.age-date-group select,
.age-date-group input[type="number"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--tr);
  width: 100%;
}

.age-date-group select:focus,
.age-date-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,141,239,.15);
}

.age-calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  transition: background var(--tr), transform var(--tr);
}

.age-calc-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.age-calc-btn:active { transform: none; }

/* Age result card */
.age-result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: none;
}

.age-result-card.show { display: block; }

.age-result-main {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.age-result-main .age-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--cat-life);
  line-height: 1;
}

.age-result-main .age-unit {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.age-result-main .age-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.age-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.age-item .ai-label {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 6px;
}

.age-item .ai-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.age-item .ai-unit {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.birthday-countdown {
  background: linear-gradient(135deg, rgba(6,182,212,.08), rgba(91,141,239,.08));
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.birthday-countdown .bc-icon { font-size: 2rem; }

.birthday-countdown .bc-text p {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin: 0;
}

.birthday-countdown .bc-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cat-life);
}

/* Age share section */
.age-share {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.age-share p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  font-weight: 600;
}

.age-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.age-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-sub);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tr);
}

.age-share-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

.age-share-btn .asb-icon { font-size: 1.2rem; }

@media (max-width: 420px) {
  .age-grid { grid-template-columns: 1fr 1fr; }
  .age-share-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a2030;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  white-space: nowrap;
}

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

[data-theme="dark"] .toast {
  background: #e2e8f0;
  color: #1a2030;
}

/* ══════════════════════════════════════════
   AD ZONE
══════════════════════════════════════════ */
.ad-zone {
  padding: 16px 0;
}

.ad-placeholder {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════
   DARK MODE extras
══════════════════════════════════════════ */
[data-theme="dark"] .age-date-group select,
[data-theme="dark"] .age-date-group input {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

[data-theme="dark"] .age-date-group select option {
  background: #1e293b;
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
