*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0F0F13;
    --surface: #1A1A24;
    --surface2: #22222E;
    --text: #F0EEF8;
    --muted: #8B8A9A;
    --accent: #A78BFA;
    --accent2: #7C3AED;
    --accent-glow: rgba(167,139,250,0.15);
    --border: rgba(167,139,250,0.15);
    --gold: #F59E0B;
    --success: #10B981;
  }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
  header { padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .logo { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--accent); letter-spacing: -0.5px; text-decoration: none; }
  .logo span { font-style: italic; }
  .nav-links { display: flex; gap: 1.25rem; align-items: center; }
  .nav-links a { font-size: 13px; text-decoration: none; color: var(--muted); font-weight: 500; }
  .nav-links a:hover { color: var(--accent); }
  @media (max-width: 520px) { .nav-links a:not(.nav-home) { display: none; } }
  .ad-banner { background: #111118; border-bottom: 1px solid var(--border); text-align: center; padding: 10px; font-size: 11px; color: #444; }
  .ad-label { font-size: 9px; color: #333; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
  .ad-placeholder { height: 90px; display: flex; align-items: center; justify-content: center; color: #333; font-size: 12px; border: 1px dashed #222; border-radius: 4px; margin: 0 auto; max-width: 728px; }
  main { flex: 1; max-width: 720px; margin: 0 auto; width: 100%; padding: 3rem 1.5rem; }
  .hero { text-align: center; margin-bottom: 3rem; }
  .hero-eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; }
  .hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 0.75rem; }
  .hero h1 span { font-style: italic; color: var(--accent); }
  .hero p { font-size: 15px; color: var(--muted); font-weight: 300; max-width: 420px; margin: 0 auto; line-height: 1.6; }
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 2.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
  .card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: var(--accent-glow); border-radius: 50%; pointer-events: none; }
  .input-group { margin-bottom: 2rem; }
  .input-group label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
  .date-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
  @media (max-width: 480px) { .date-inputs { grid-template-columns: 1fr; } }
  .date-inputs select, .date-inputs input { width: 100%; padding: 0.85rem 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 15px; outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; cursor: pointer; }
  .date-inputs select:focus, .date-inputs input:focus { border-color: var(--accent); }
  .date-inputs input[type="number"] { text-align: center; }
  .divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
  .divider span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .calc-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: white; border: none; border-radius: 14px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; cursor: pointer; letter-spacing: 0.02em; transition: opacity 0.2s, transform 0.1s; }
  .calc-btn:hover { opacity: 0.92; }
  .calc-btn:active { transform: scale(0.99); }
  .result-box { display: none; }
  .result-box.show { display: block; animation: fadeUp 0.4s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .age-headline { text-align: center; margin-bottom: 2rem; padding: 2rem; background: var(--surface2); border-radius: 18px; border: 1px solid var(--border); position: relative; }
  .age-number { font-family: 'Playfair Display', serif; font-size: clamp(4rem, 15vw, 7rem); font-weight: 700; color: var(--accent); line-height: 1; }
  .age-unit { font-size: 18px; color: var(--muted); margin-top: 0.25rem; }
  .age-dob { font-size: 13px; color: var(--muted); margin-top: 0.5rem; }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
  @media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } }
  .stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; text-align: center; }
  .stat-num { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--text); font-weight: 700; line-height: 1; }
  .stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
  .fun-facts { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-top: 0.75rem; }
  .fun-facts h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; }
  .fact-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 13px; }
  .fact-row:last-child { border-bottom: none; padding-bottom: 0; }
  .fact-label { color: var(--muted); }
  .fact-value { color: var(--text); font-weight: 500; font-family: 'Playfair Display', serif; font-size: 15px; }
  .next-birthday { background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(124,58,237,0.1)); border: 1px solid var(--accent); border-radius: 14px; padding: 1.25rem; margin-top: 0.75rem; display: flex; align-items: center; gap: 1rem; }
  .birthday-icon { font-size: 2rem; }
  .birthday-text h3 { font-size: 14px; font-weight: 500; color: var(--accent); }
  .birthday-text p { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .quick-section { margin-bottom: 1.5rem; }
  .quick-section h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
  .quick-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .quick-btn { padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: 100px; font-size: 13px; color: var(--muted); background: var(--surface); cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; }
  .quick-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
  .ad-block { background: var(--surface); border: 1px dashed #333; border-radius: 12px; padding: 1rem; text-align: center; font-size: 11px; color: #444; margin-bottom: 1.5rem; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .faq { margin-bottom: 2rem; }
  .faq h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--text); }
  .faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .faq-item h3 { font-size: 14px; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
  .faq-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }
  footer { border-top: 1px solid var(--border); padding: 1.5rem 2rem; text-align: center; font-size: 12px; color: var(--muted); }
  footer a { color: var(--accent); text-decoration: underline; }
  .error-msg { display: none; color: #F87171; font-size: 13px; margin-top: 0.75rem; text-align: center; }
  .error-msg.show { display: block; }
  select option { background: #1A1A24; }
