/* ==========================================================================
   Babies13 — "Joyful Storybook" Design System  (v2)
   Single stylesheet for ALL pages. Change here, every page updates.

   Stack: Bootstrap 5.3 + Bootstrap Icons (loaded in header.php)
   Font:  Plus Jakarta Sans (loaded in header.php)

   Sections:
     1. CSS Custom Properties (design tokens)
     2. Base / Reset
     3. Decorative motifs
     4. Typography helpers
     5. Buttons
     6. Form controls
     7. Cards  (.card-babies, .name-card)
     8. Ad slots
     9. Scroll reveal
    10. Header / Nav
    11. Hero
    12. Feature tiles
    13. Stats band
    14. Smart Discovery
    15. Chinese Gender Predictor
    16. Decorative section photos
    17. Browse by Origin
    18. Numerology section
    19. SEO content block
    20. Footer
    21. Complete Toolkit showcase
    22. Family band
    23. Page-level helpers (tools, blog, names browse, name detail, forms)
    24. Reduced-motion overrides
   ========================================================================== */


/* ============================================================
   1. CSS CUSTOM PROPERTIES  (design tokens)
   ============================================================ */
:root {
  /* ---- Brand palette (from logo) ---- */
  --coral:        #F4576B;
  --coral-ink:    #DD3F55;
  --coral-soft:   #FFE7EB;
  --teal:         #1FB6C6;
  --teal-ink:     #149AA8;
  --teal-soft:    #DBF4F7;
  --blue:         #2FA3E8;
  --blue-soft:    #E2F1FC;
  --yellow:       #FCB42B;
  --yellow-ink:   #E0961A;
  --yellow-soft:  #FFF1D2;

  /* ---- Mystical / predictor palette ---- */
  --midnight:     #0C3F49;
  --midnight-2:   #0A5560;
  --gold:         #F4C752;
  --gold-soft:    #FBE4A6;

  /* ---- Extra accents ---- */
  --violet:       #7C6BD6;
  --violet-soft:  #ECE7FB;
  --green:        #2FB389;
  --green-soft:   #DBF3EA;

  /* ---- Surfaces & ink ---- */
  --canvas-a:     #FAC9DC;
  --canvas-b:     #C3DBF3;
  --cream:        #FCE3EE;
  --cream-2:      #DFEAF8;
  --paper:        #FFFFFF;
  --ink:          #1E2B57;
  --muted:        #5E6488;
  --line:         #EADFEF;
  --line-strong:  #D8C8E0;

  /* ---- Gender semantics ---- */
  --girl:         var(--coral);
  --boy:          var(--blue);
  --unisex:       #CF8F1C;

  /* ---- Shape & elevation ---- */
  --radius:       24px;
  --radius-lg:    36px;
  --radius-sm:    16px;
  --shadow-sm:    0 4px 14px rgba(54,42,46,.06);
  --shadow:       0 16px 40px rgba(54,42,46,.10);
  --shadow-lg:    0 30px 70px rgba(54,42,46,.16);
  --shadow-coral: 0 18px 40px rgba(244,87,107,.28);
  --ring:         0 0 0 5px rgba(244,87,107,.18);

  /* ---- Typography ---- */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand:    var(--font-body);

  /* ---- Back-compat aliases (keep — old PHP/JS references these) ---- */
  --brand-rose:    var(--coral);
  --brand-rose-dk: var(--coral-ink);
  --brand-gold:    var(--gold);
  --brand-cream:   var(--cream);
  --brand-soft:    var(--coral-soft);
  --text-dark:     var(--ink);
  --text-muted:    var(--muted);
  --shadow-md:     var(--shadow);
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(94,100,136,.06) 1.4px, transparent 1.4px),
    linear-gradient(150deg, var(--canvas-a) 0%, #F6E6F0 46%, var(--canvas-b) 100%);
  background-size: 26px 26px, 100% 100%;
  background-attachment: fixed;
  margin: 0;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

a { color: var(--coral-ink); text-decoration: none; }
a:hover { color: var(--coral); }
p { margin: 0; }

.container { max-width: 1200px; padding-inline: 26px; }
.section    { padding: 96px 0; position: relative; }
.section-sm { padding: 60px 0; position: relative; }
@media (max-width: 768px) {
  .section    { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}


/* ============================================================
   3. DECORATIVE MOTIFS
   ============================================================ */
/* squiggle underline */
.squig { position: relative; white-space: nowrap; }
.squig::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.18em; height: 0.34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='16' viewBox='0 0 240 16'%3E%3Cpath d='M4 11 C40 3 80 3 120 9 C160 15 200 13 236 6' stroke='%231FB6C6' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.squig.coral::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='16' viewBox='0 0 240 16'%3E%3Cpath d='M4 11 C40 3 80 3 120 9 C160 15 200 13 236 6' stroke='%23F4576B' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* floating deco bits */
.deco  { position: absolute; pointer-events: none; z-index: 0; }
.dot   { border-radius: 999px; }
.star  {
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCB42B'%3E%3Cpath d='M12 0c1 6 5 10 11 12-6 2-10 6-11 12-1-6-5-10-11-12 6-2 10-6 11-12z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.heart {
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F4576B'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.3 8.2 2 5 5.3 5c2 0 3.3 1.1 4.2 2.4C10.4 6.1 11.7 5 13.7 5 17 5 18.7 8.2 17 11.7 14.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.blob-bg { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; pointer-events: none; }


/* ============================================================
   4. TYPOGRAPHY HELPERS
   ============================================================ */
.hand {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  line-height: 1.2;
  display: inline-flex; align-items: center; gap: 7px;
}
.hand.teal { color: var(--teal-ink); }
.hand.gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral);
}

.section-head { text-align: center; margin-bottom: 52px; position: relative; z-index: 1; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink);
  text-wrap: balance; line-height: 1.05;
}
.section-subtitle {
  color: var(--muted); font-size: 1.1rem; max-width: 580px; margin: 12px auto 0; text-wrap: pretty;
}
.section-head.left { text-align: left; }
.section-head.left .section-subtitle { margin-left: 0; }

/* legacy aliases so existing pages keep working */
.section-title-legacy  { font-family: var(--font-display); color: var(--coral); font-size: 1.8rem; margin-bottom: 0.25rem; font-weight: 600; }
.section-subtitle-legacy { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-body); font-weight: 800; border-radius: 999px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.96); }

.btn-brand         { background: var(--coral); color: #fff; border: none; box-shadow: var(--shadow-coral); }
.btn-brand:hover   { background: var(--coral-ink); color: #fff; transform: translateY(-2px) scale(1.02); }
.btn-outline-brand { background: #fff; color: var(--coral-ink); border: 2.5px solid var(--coral); }
.btn-outline-brand:hover { background: var(--coral-soft); color: var(--coral-ink); transform: translateY(-2px); }
.btn-teal          { background: var(--teal); color: #fff; border: none; box-shadow: 0 16px 36px rgba(31,182,198,.30); }
.btn-teal:hover    { background: var(--teal-ink); color: #fff; transform: translateY(-2px) scale(1.02); }
.btn-gold          { background: var(--gold); color: #5a3d00; border: none; box-shadow: 0 16px 36px rgba(244,199,82,.40); }
.btn-gold:hover    { background: #eab73c; color: #4a3200; transform: translateY(-2px) scale(1.02); }
.btn-yellow        { background: var(--yellow); color: #5b3d00; border: none; box-shadow: 0 16px 36px rgba(252,180,43,.34); }
.btn-yellow:hover  { background: var(--yellow-ink); color: #4a3200; transform: translateY(-2px) scale(1.02); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }


/* ============================================================
   6. FORM CONTROLS
   ============================================================ */
.form-control {
  font-family: var(--font-body); border-radius: 999px;
  border: 2.5px solid var(--line-strong);
  color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--coral); box-shadow: var(--ring); outline: none; }
.form-control::placeholder { color: #bcadb0; }

/* square-radius variant for selects / inline filters */
.form-select-b13 {
  font-family: var(--font-body); border-radius: 14px;
  border: 2px solid var(--line-strong);
  color: var(--ink); background: #fafafa;
  padding: 0 16px; height: 52px; cursor: pointer;
}
.form-select-b13:focus { border-color: var(--coral); outline: none; box-shadow: var(--ring); }


/* ============================================================
   7. CARDS
   ============================================================ */
/* generic content card */
.card-babies {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s;
}
a .card-babies:hover, .card-babies.hoverable:hover {
  transform: translateY(-5px) rotate(-.6deg);
  box-shadow: var(--shadow); border-color: var(--line-strong);
}

.cat-label  { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.gender-tag { font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }

/* name cards (browse lists & homepage) */
.name-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .name-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .name-grid { grid-template-columns: 1fr; } }

.name-card {
  padding: 20px; border-radius: var(--radius-sm);
  position: relative; height: 100%; overflow: hidden;
}
.name-card .corner {
  position: absolute; right: -18px; top: -18px;
  width: 54px; height: 54px; border-radius: 50%; opacity: .5;
}
.name-card .nm {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.42rem; color: var(--ink); line-height: 1.05; position: relative; z-index: 1;
}
.name-card .meaning {
  font-size: 0.88rem; color: var(--muted); margin-top: 9px;
  line-height: 1.45; position: relative; z-index: 1;
}
.cn-girl   .corner { background: var(--coral-soft); } .cn-girl   { border-left: 4px solid var(--girl); }
.cn-boy    .corner { background: var(--blue-soft);  } .cn-boy    { border-left: 4px solid var(--boy); }
.cn-unisex .corner { background: var(--yellow-soft);} .cn-unisex { border-left: 4px solid var(--unisex); }
.g-girl   { color: var(--girl); }
.g-boy    { color: var(--boy); }
.g-unisex { color: var(--unisex); }


/* ============================================================
   8. AD SLOTS
   ============================================================ */
.ad-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #fbf1ec, #fbf1ec 11px, #f6e8e3 11px, #f6e8e3 22px);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: #c2b3b6; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  min-height: 110px;
}


/* ============================================================
   9. SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }


/* ============================================================
   10. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,244,249,.88);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; gap: 22px; height: 88px; }
.site-header .logo img { height: 70px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.main-nav a {
  font-weight: 800; font-size: 0.96rem; color: var(--ink); white-space: nowrap;
  padding: 9px 15px; border-radius: 999px;
  transition: background .15s, color .15s, transform .15s;
}
.main-nav a:hover { background: var(--coral-soft); color: var(--coral-ink); transform: translateY(-1px); }
.main-nav a.active,
.main-nav a[aria-current="page"] { background: var(--coral-soft); color: var(--coral-ink); }

.nav-spacer { flex: 1; }

.nav-cta {
  padding: 10px 20px; border-radius: 999px;
  background: var(--coral); color: #fff !important;
  font-weight: 800; box-shadow: var(--shadow-coral); white-space: nowrap;
}
.nav-cta:hover { background: var(--coral-ink); transform: translateY(-1px); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 10px 16px 16px;
    background: rgba(255,244,249,.98);
    backdrop-filter: saturate(170%) blur(14px);
    -webkit-backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 14px; border: none;
    background: var(--coral-soft); color: var(--coral-ink);
    font-size: 1.5rem; margin-left: auto; cursor: pointer;
  }
}


/* ============================================================
   11. HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 70px 0 110px; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px;
  left: -240px; top: -260px;
  background: radial-gradient(circle at 50% 50%, var(--coral-soft), transparent 68%); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px;
  right: -300px; top: -160px;
  background: radial-gradient(circle at 50% 50%, var(--teal-soft), transparent 66%); z-index: 0;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center;
}
.hero-copy { position: relative; }
.hero .hand { margin-bottom: 6px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; margin: 8px 0 20px; }
.hero h1 .hl { color: var(--coral); }
.hero-lede { font-size: 1.2rem; color: var(--muted); max-width: 470px; margin-bottom: 30px; text-wrap: pretty; }

.hero-search { display: flex; gap: 12px; max-width: 480px; position: relative; }
.hero-search .form-control { flex: 1; height: 62px; padding-left: 26px; font-size: 1.08rem; box-shadow: var(--shadow-sm); }
.hero-search .btn { height: 62px; padding-inline: 30px; white-space: nowrap; }

.hero-quick { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-quick a {
  font-weight: 800; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  transition: transform .16s;
}
.hero-quick a:hover { transform: translateY(-2px) rotate(-1.5deg); }
.hero-quick a.boy  { color: var(--boy); }
.hero-quick a.girl { color: var(--girl); }

/* hero visual — blob photo frame */
.hero-visual { position: relative; min-height: 440px; }
.blob-photo {
  position: relative; z-index: 1; width: 100%; max-width: 580px; margin: 0 auto;
  aspect-ratio: 4 / 3.2; border-radius: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%);
          mask-image: linear-gradient(to right, transparent 0%, #000 15%);
}
.blob-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

/* floating sticker badges */
.sticker {
  position: absolute; z-index: 3; background: #fff; border-radius: 20px;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  border: 4px solid #fff; box-shadow: 0 14px 30px rgba(35,49,97,.20);
}
.sticker::after {
  content: ""; position: absolute; top: -13px; right: -11px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCB42B'%3E%3Cpath d='M12 0c1 6 5 10 11 12-6 2-10 6-11 12-1-6-5-10-11-12 6-2 10-6 11-12z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(8deg);
}
.sticker .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; flex: none; }
.sticker .t1 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1; white-space: nowrap; }
.sticker .t2 { font-size: 0.72rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.sticker.one   { left: -18px; top: 56px;   transform: rotate(-5deg); animation: floaty 6s ease-in-out infinite;      background: var(--coral-soft); }
.sticker.two   { right: -26px; top: 188px; transform: rotate(4deg);  animation: floaty 7s ease-in-out infinite .8s;  background: var(--teal-soft); }
.sticker.three { left: 12px; bottom: 6px;  transform: rotate(3deg);  animation: floaty 6.5s ease-in-out infinite .4s;background: var(--yellow-soft); }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

@media (max-width: 980px) {
  .hero { padding: 44px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; min-height: 400px; }
}
@media (max-width: 540px) {
  .hero-search { flex-wrap: wrap; }
  .hero-search .form-control, .hero-search .btn { width: 100%; flex: none; }
  .sticker.one { left: -6px; } .sticker.two { right: -6px; }
}


/* ============================================================
   12. FEATURE TILES
   ============================================================ */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-tile {
  display: flex; flex-direction: column; gap: 5px; padding: 26px;
  border-radius: var(--radius); background: #fff;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.feature-tile:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: var(--shadow); }
.feature-tile::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%; opacity: .35;
}
.feature-tile.f-girl::after   { background: var(--coral-soft); }
.feature-tile.f-boy::after    { background: var(--blue-soft); }
.feature-tile.f-teal::after   { background: var(--teal-soft); }
.feature-tile.f-yellow::after { background: var(--yellow-soft); }
.feature-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 1.65rem; margin-bottom: 10px; position: relative; z-index: 1; }
.feature-tile h3 { font-size: 1.3rem; position: relative; z-index: 1; }
.feature-tile p  { font-size: 0.92rem; color: var(--muted); line-height: 1.45; position: relative; z-index: 1; }
.feature-tile .go { margin-top: auto; font-weight: 800; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; position: relative; z-index: 1; }
.feature-tile:hover .go i { transform: translateX(4px); }
.feature-tile .go i { transition: transform .2s; }

.tint-girl   { background: var(--coral-soft);  color: var(--coral-ink); }
.tint-boy    { background: var(--blue-soft);   color: var(--boy); }
.tint-teal   { background: var(--teal-soft);   color: var(--teal-ink); }
.tint-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tint-violet { background: var(--violet-soft); color: var(--violet); }
.tint-green  { background: var(--green-soft);  color: var(--green); }

@media (max-width: 860px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .feature-row { grid-template-columns: 1fr; } }


/* ============================================================
   13. STATS BAND
   ============================================================ */
.stats { padding: 0; margin: 24px 0 64px; }
.stats-band {
  width: 100%;
  background: linear-gradient(100deg, var(--coral) 0%, #f76a8b 38%, var(--violet) 78%, var(--teal) 130%);
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 1280px; margin: 0 auto; padding: 28px 26px;
}
.stat { text-align: center; position: relative; padding: 6px 14px; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px;
  background: rgba(255,255,255,.28);
}
.stat .n   { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1; color: #fff; letter-spacing: -0.01em; }
.stat .lab { display: block; font-weight: 800; color: #fff; font-size: 0.96rem; margin-top: 8px; }
.stat .sub { display: block; color: rgba(255,255,255,.82); font-size: 0.78rem; margin-top: 2px; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; padding: 30px 20px; }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(5) { grid-column: 1 / -1; }
  .stat:nth-child(5)::before { display: none; }
}


/* ============================================================
   14. SMART DISCOVERY
   ============================================================ */
#smart-discovery {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  overflow: hidden;
}
#smart-discovery::before {
  content: ""; position: absolute; width: 480px; height: 480px;
  right: -160px; top: -100px;
  background: radial-gradient(circle, var(--teal-soft), transparent 66%); opacity: .7;
}
.snt-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 22px; box-shadow: var(--shadow);
  max-width: 900px; margin: 0 auto; position: relative; z-index: 1;
}
#snt-origin {
  border: 2px solid var(--line-strong); border-radius: 14px; padding: 0 16px;
  font-size: 0.95rem; color: #555; background: #fafafa;
  font-family: var(--font-body); cursor: pointer; height: 60px;
}
#snt-query { height: 60px; border-radius: 14px; }


/* ============================================================
   15. CHINESE GENDER PREDICTOR  — midnight showpiece
   ============================================================ */
.predictor-wrap { padding: 30px 0 96px; }
.predictor {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(31,182,198,.5), transparent 60%),
    radial-gradient(500px 280px at 10% 100%, rgba(12,63,73,.6), transparent 60%),
    linear-gradient(150deg, var(--midnight) 0%, var(--midnight-2) 70%, #0d6470 120%);
  box-shadow: var(--shadow-lg);
}
.predictor .stars {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.4px 1.4px at 28% 64%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.8px 1.8px at 46% 30%, rgba(244,199,82,.95), transparent),
    radial-gradient(1.3px 1.3px at 62% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.6px 1.6px at 78% 40%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(244,199,82,.9), transparent),
    radial-gradient(1.3px 1.3px at 36% 86%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.7px 1.7px at 70% 90%, rgba(255,255,255,.7), transparent);
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.predictor-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 54px;
  align-items: center; padding: 56px;
}
.predictor-photo {
  position: relative; width: 100%; max-width: 400px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 28px 54px rgba(0,0,0,.38); transform: rotate(-2.5deg);
}
.predictor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.predictor-photo::after {
  content: ""; position: absolute; right: -16px; bottom: -14px; width: 56px; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F4576B'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.3 8.2 2 5 5.3 5c2 0 3.3 1.1 4.2 2.4C10.4 6.1 11.7 5 13.7 5 17 5 18.7 8.2 17 11.7 14.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-12deg);
}
.predictor h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.predictor .lede { opacity: .92; line-height: 1.7; margin: 16px 0 30px; max-width: 540px; }
.predictor .eyebrow { color: var(--gold); }

.moon-card {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(244,199,82,.4);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(4px); text-align: center; position: relative;
}
.moon {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff 0%, var(--gold-soft) 42%, var(--gold) 100%);
  box-shadow: 0 0 50px rgba(244,199,82,.55);
  display: grid; place-items: center; color: #6a4f00; font-size: 2.2rem;
}
.moon-card .pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.moon-card .mini-pill {
  background: rgba(244,199,82,.16); border: 1px solid rgba(244,199,82,.35);
  padding: 5px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--gold-soft);
}
.baby-moon {
  width: 84%; max-width: 270px; margin: 0 auto 20px; aspect-ratio: 1 / 1;
  border-radius: 20px; overflow: hidden; border: 7px solid #fff;
  box-shadow: 0 22px 44px rgba(0,0,0,.32), 0 0 50px rgba(244,199,82,.35);
  transform: rotate(-2.5deg); position: relative;
}
.baby-moon img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }

@media (max-width: 860px) {
  .predictor-grid { grid-template-columns: 1fr; gap: 30px; padding: 36px 26px; text-align: center; }
  .predictor .lede { margin-inline: auto; }
  .predictor-photo { max-width: 320px; }
  .predictor-wrap .container { padding-inline: 14px; }
}


/* ============================================================
   16. DECORATIVE SECTION BACKGROUND PHOTOS
   ============================================================ */
.sec-photo {
  position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: 48%; max-width: 640px;
  background-size: cover; background-position: center; opacity: .7;
}
.sec-photo.left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
}
.sec-photo.right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to left, #000 0%, #000 70%, transparent 100%);
}
@media (max-width: 760px) { .sec-photo { opacity: .16; width: 100%; max-width: none; } }


/* ============================================================
   17. BROWSE BY ORIGIN  (photo tiles)
   ============================================================ */
.origin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .origin-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .origin-grid { grid-template-columns: repeat(2, 1fr); } }

.origin-card {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); border: 2px solid #fff;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.origin-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow); }
.origin-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.origin-card:hover img { transform: scale(1.06); }
.origin-card .on {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 24px 14px 12px; color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em;
  background: linear-gradient(to top, rgba(20,28,60,.82) 0%, rgba(20,28,60,.45) 55%, transparent 100%);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.origin-card .on small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: .85; margin-top: 2px;
}


/* ============================================================
   18. NUMEROLOGY SECTION
   ============================================================ */
.numerology { position: relative; overflow: hidden; }
.numerology::before {
  content: ""; position: absolute; width: 500px; height: 500px;
  left: -180px; bottom: -200px;
  background: radial-gradient(circle, var(--yellow-soft), transparent 66%);
}
.numerology-card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px 46px;
}
.num-orb {
  width: 104px; height: 104px; border-radius: 44% 56% 52% 48% / 54% 46% 54% 46%;
  flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #fff, var(--gold-soft) 45%, var(--yellow) 100%);
  color: #6b4a00; font-family: var(--font-display); font-weight: 600; font-size: 3rem;
  box-shadow: 0 0 40px rgba(252,180,43,.5); position: relative;
}
.num-orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 24px rgba(255,255,255,.6); }
.num-photo { position: relative; width: 168px; flex: none; aspect-ratio: 1 / 1; transform: rotate(-3deg); }
.num-photo > img { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); display: block; }
.num-badge {
  position: absolute; right: -12px; bottom: -12px; width: 62px; height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff, var(--gold-soft) 45%, var(--yellow) 100%);
  color: #6b4a00; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(252,180,43,.5); border: 4px solid #fff; transform: rotate(3deg);
}
.numerology-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.numerology-card p  { color: var(--muted); margin-top: 8px; max-width: 540px; }
@media (max-width: 720px) {
  .numerology-card { grid-template-columns: 1fr; text-align: center; gap: 20px; justify-items: center; }
}


/* ============================================================
   19. SEO CONTENT BLOCK
   ============================================================ */
.seo-block { background: var(--cream-2); border-top: 1px solid var(--line); }
.seo-block .seo-cols { columns: 2; column-gap: 50px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.seo-block h2 { font-size: 1.5rem; margin-bottom: 6px; }
.seo-block h3 { font-size: 1.04rem; color: var(--ink); margin: 18px 0 4px; }
.seo-block a  { color: var(--coral-ink); font-weight: 800; }
@media (max-width: 680px) { .seo-block .seo-cols { columns: 1; } }


/* ============================================================
   20. FOOTER
   ============================================================ */
.site-footer { background: #1B2547; color: #cfd6ea; padding: 64px 0 30px; position: relative; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 38px; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #d9cfd2; font-size: 1rem;
  transition: background .15s, color .15s;
}
.foot-social a:hover { background: var(--coral); color: #fff; }
.site-footer h4 {
  color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px; font-family: var(--font-body); font-weight: 800;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a  { color: #c3b8bc; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand p { color: #b0a4a8; font-size: 0.92rem; margin-top: 14px; max-width: 290px; line-height: 1.6; }
.site-footer .foot-logo { height: 52px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #9b8f93;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-legal a { color: #c3b8bc; font-weight: 700; font-size: 0.85rem; position: relative; }
.foot-legal a:hover { color: #fff; }
.foot-legal a + a::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: rgba(255,255,255,.18);
}
@media (max-width: 980px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 460px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }


/* ============================================================
   21. COMPLETE TOOLKIT SHOWCASE
   ============================================================ */
.toolkit { position: relative; overflow: hidden; }
.toolkit-bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none;
  height: 540px; background-size: cover; background-position: center 22%; opacity: .8;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}
@media (max-width: 760px) { .toolkit-bg { height: 360px; opacity: .55; } }
.tool-cat {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 22px;
}
.tool-cat:last-of-type { margin-bottom: 0; }
.tool-cat-head { display: flex; align-items: center; gap: 14px; padding: 17px 24px; }
.tool-cat-head .ci { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.tool-cat-head .cl { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); }
.tool-cat-head .cc { margin-left: auto; font-size: 0.76rem; font-weight: 800; color: var(--ink); background: rgba(255,255,255,.7); border: 1.5px solid rgba(35,49,97,.08); padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 24px 24px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; padding: 16px 16px 18px; } .tool-cat-head { padding: 15px 16px; } }
.tool-card {
  display: flex; gap: 13px; padding: 15px; background: var(--cream);
  border: 1.5px solid transparent; border-radius: 14px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s, background .2s;
}
.tool-card:hover { transform: translateY(-3px); background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tool-ic   { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 1.22rem; }
.tool-body { min-width: 0; }
.tool-name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.15; }
.tool-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.42; margin-top: 4px; }

/* per-category colour coding */
.cat-teal   .tool-cat-head { background: #C4EAEF; } .cat-teal   .ci { background: var(--teal); }
.cat-blue   .tool-cat-head { background: #CDE5F8; } .cat-blue   .ci { background: var(--blue); }
.cat-gold   .tool-cat-head { background: #FCE6B3; } .cat-gold   .ci { background: var(--yellow); color: #6b4a00; }
.cat-coral  .tool-cat-head { background: #FFD3DB; } .cat-coral  .ci { background: var(--coral); }
.cat-violet .tool-cat-head { background: #DCD3F5; } .cat-violet .ci { background: var(--violet); }


/* ============================================================
   22. FAMILY BAND  ("choose with love")
   ============================================================ */
.familyband { overflow: hidden; }
.fb-wrap {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 54px;
  align-items: center;
  background: linear-gradient(135deg, var(--coral-soft) 0%, #fff 50%, var(--blue-soft) 100%);
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 52px 56px;
}
.fb-photo {
  position: relative; width: 100%; max-width: 430px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 26px 50px rgba(35,49,97,.22); transform: rotate(-2deg);
}
.fb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-photo::after {
  content: ""; position: absolute; right: -16px; bottom: -14px; width: 54px; height: 54px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F4576B'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.3 8.2 2 5 5.3 5c2 0 3.3 1.1 4.2 2.4C10.4 6.1 11.7 5 13.7 5 17 5 18.7 8.2 17 11.7 14.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-12deg);
}
.fb-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.fb-copy p  { color: var(--muted); font-size: 1.1rem; margin: 14px 0 26px; max-width: 470px; }
.fb-copy .hand { margin-bottom: 8px; }
@media (max-width: 860px) {
  .fb-wrap { grid-template-columns: 1fr; gap: 30px; padding: 34px 22px; text-align: center; }
  .fb-copy p { margin-inline: auto; }
  .fb-photo { order: -1; max-width: 340px; }
}


/* ============================================================
   23. PAGE-LEVEL HELPERS
   (replaces all inline <style> blocks from individual pages)
   ============================================================ */

/* --- Alphabet filter bar (names-boys, names-girls, names-unisex) --- */
.alpha-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.alpha-bar a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; font-weight: 800; font-size: 0.9rem;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.alpha-bar a:hover  { background: var(--coral-soft); color: var(--coral-ink); border-color: var(--coral); }
.alpha-bar a.active { background: var(--coral); color: #fff; border-color: var(--coral); }

/* category pill filter */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-pill {
  padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  transition: background .15s, color .15s;
}
.cat-pill:hover  { background: var(--coral-soft); color: var(--coral-ink); }
.cat-pill.active { background: var(--coral); color: #fff; border-color: var(--coral); }

/* pagination */
.pagination-b13 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 36px; }
.pagination-b13 a,
.pagination-b13 span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: background .15s, color .15s;
}
.pagination-b13 a:hover   { background: var(--coral-soft); color: var(--coral-ink); }
.pagination-b13 .current  { background: var(--coral); color: #fff; border-color: var(--coral); }

/* --- Name detail page (name.php) --- */
.name-detail-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 48px;
}
.name-detail-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 800;
}
.num-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.num-table td { padding: 10px 16px; background: var(--cream); border-radius: 10px; font-size: 0.94rem; }
.num-table td:first-child { font-weight: 700; color: var(--ink); width: 44%; }
.num-table td:last-child  { color: var(--muted); }
@media (max-width: 640px) { .name-detail-card { padding: 24px 18px; } }

/* --- Tools hub (tools.php) --- */
.tools-hero {
  text-align: center; padding: 64px 0 48px;
}
.tools-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* --- Blog / article pages --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card img  { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-card-body { padding: 20px; }
.article-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.article-card h2 { font-size: 1.1rem; margin: 6px 0 10px; line-height: 1.3; }
.article-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* article body (individual blog posts) */
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: 1.65rem; margin: 40px 0 12px; }
.article-body h3 { font-size: 1.25rem; margin: 28px 0 8px; }
.article-body p  { color: var(--muted); font-size: 1.02rem; line-height: 1.75; margin-top: 16px; }
.article-body ul,
.article-body ol { color: var(--muted); font-size: 1.02rem; line-height: 1.75; padding-left: 24px; margin-top: 16px; }

/* --- About / Contact / Privacy / Terms --- */
.static-page { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.static-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 24px; }
.static-page h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.static-page p, .static-page li { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.static-page ul { padding-left: 22px; margin-top: 10px; }

/* --- Contact form --- */
.contact-form { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; max-width: 640px; }
.contact-form label { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.contact-form .form-control { border-radius: 14px; margin-bottom: 18px; }
.contact-form textarea.form-control { border-radius: 14px; resize: vertical; min-height: 130px; }

/* --- 404 page --- */
.page-404 { text-align: center; padding: 100px 0 120px; }
.page-404 .err-num { font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; color: var(--coral); opacity: .18; line-height: 1; }
.page-404 h1 { margin-top: -30px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.page-404 p  { color: var(--muted); font-size: 1.1rem; margin: 14px auto 32px; max-width: 460px; }

/* --- Shortlist / compare / quiz / certificate / random / initials / sibling --- */
.tool-page-wrap { max-width: 900px; margin: 0 auto; padding: 60px 0; }
.tool-page-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.tool-page-wrap .tool-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }
.tool-result-box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; margin-top: 28px; }

/* --- Chinese predictor page (full-page layout) --- */
.predictor-page-hero { padding: 60px 0 80px; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cal-table th, .cal-table td { border: 1px solid var(--line-strong); padding: 7px 10px; text-align: center; }
.cal-table th { background: var(--midnight); color: #fff; font-weight: 700; }
.cal-result-girl { background: var(--coral-soft); font-weight: 800; color: var(--coral-ink); }
.cal-result-boy  { background: var(--blue-soft);  font-weight: 800; color: var(--boy); }

/* --- Numerology calculator page --- */
.num-input-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; max-width: 640px; margin: 0 auto 40px; }
.num-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 600px) { .num-result-grid { grid-template-columns: 1fr; } }
.num-result-tile {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.num-result-tile .big-num { font-size: 3rem; font-weight: 700; color: var(--yellow-ink); line-height: 1; }
.num-result-tile h4 { font-size: 1rem; margin-top: 8px; }
.num-result-tile p  { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* --- Book pages --- */
.book-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .book-card { grid-template-columns: 1fr; } }
.book-cover { border-radius: var(--radius-sm); box-shadow: var(--shadow); width: 100%; }

/* --- Trending names --- */
.trend-rank { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--coral); min-width: 40px; }

/* --- Due date tool --- */
.season-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }

/* --- Sitemap --- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 700px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-grid h3 { font-size: 1rem; margin-bottom: 10px; color: var(--coral); }
.sitemap-grid ul { list-style: none; padding: 0; }
.sitemap-grid li { margin-bottom: 6px; font-size: 0.9rem; }


/* ============================================================
   24. REDUCED MOTION OVERRIDES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob-photo { animation: none !important; }
}
