    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #f8f9fb;
      --surface: #ffffff;
      --border: #e8eaed;
      --text: #1a1a2e;
      --muted: #6b7280;
      --radius: 16px;
      --shadow: 0 2px 16px rgba(0,0,0,.07);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    /* ── NAV ─────────────────────────────────────────────── */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      display: flex; align-items: center; justify-content: space-between;
      height: 56px;
    }
    .nav-brand {
      font-weight: 700; font-size: 1.1rem; color: var(--text);
      text-decoration: none; letter-spacing: -.3px;
    }
    .nav-brand span { color: #6366f1; }
    .nav-home {
      font-size: .85rem; color: var(--muted); text-decoration: none;
      padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px;
      transition: all .15s;
    }
    .nav-home:hover { background: var(--bg); color: var(--text); }

    /* ── HUB PAGE ────────────────────────────────────────── */
    .hub-hero {
      text-align: center;
      padding: 64px 24px 48px;
      max-width: 680px;
      margin: 0 auto;
    }
    .hub-hero h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 800;
      letter-spacing: -.5px;
      line-height: 1.15;
    }
    .hub-hero p {
      margin-top: 14px;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.6;
    }

    .hub-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
      padding: 0 24px 80px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .section-label {
      grid-column: 1 / -1;
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 8px;
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: transform .15s, box-shadow .15s, border-color .15s;
      box-shadow: var(--shadow);
    }
    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(0,0,0,.1);
      border-color: #c7c9ff;
    }
    .card-icon {
      font-size: 2rem;
      width: 56px; height: 56px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 12px;
      flex-shrink: 0;
    }
    .card-body { flex: 1; min-width: 0; }
    .card-name { font-weight: 700; font-size: .95rem; }
    .card-date { font-size: .78rem; color: var(--muted); margin-top: 2px; }
    .card-days {
      text-align: right; flex-shrink: 0;
    }
    .card-days .num {
      font-size: 2rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -.5px;
    }
    .card-days .lbl {
      font-size: .7rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    /* ── DETAIL PAGE ─────────────────────────────────────── */
    .detail-hero {
      min-height: 420px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 24px 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .detail-hero::before {
      content: '';
      position: absolute; inset: 0;
      opacity: .12;
      background: radial-gradient(circle at 30% 50%, white 0%, transparent 60%);
    }
    .detail-hero .emoji {
      font-size: 3.5rem;
      margin-bottom: 16px;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
    }
    .detail-hero h1 {
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      font-weight: 800;
      color: #fff;
      letter-spacing: -.5px;
      text-shadow: 0 2px 12px rgba(0,0,0,.2);
    }
    .detail-hero .sub {
      color: rgba(255,255,255,.8);
      font-size: .95rem;
      margin-top: 6px;
    }

    .countdown-strip {
      display: flex;
      gap: 12px;
      margin-top: 36px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .cd-box {
      background: rgba(255,255,255,.15);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 12px;
      padding: 18px 24px 14px;
      min-width: 90px;
      text-align: center;
    }
    .cd-num {
      font-size: clamp(2.2rem, 6vw, 3.5rem);
      font-weight: 800;
      color: #fff;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      letter-spacing: -1px;
    }
    .cd-lbl {
      font-size: .7rem;
      color: rgba(255,255,255,.7);
      text-transform: uppercase;
      letter-spacing: .1em;
      margin-top: 6px;
    }

    .cd-sep {
      font-size: 2.5rem;
      color: rgba(255,255,255,.4);
      font-weight: 300;
      align-self: center;
      margin-top: -8px;
    }

    /* Share / actions */
    .detail-actions {
      display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
      margin-top: 24px;
    }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 20px;
      border-radius: 10px;
      font-size: .88rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      border: none;
      transition: all .15s;
    }
    .btn-white {
      background: rgba(255,255,255,.95);
      color: var(--text);
    }
    .btn-white:hover { background: #fff; transform: translateY(-1px); }
    .btn-ghost {
      background: rgba(255,255,255,.15);
      color: #fff;
      border: 1px solid rgba(255,255,255,.3);
    }
    .btn-ghost:hover { background: rgba(255,255,255,.25); }

    /* Progress bar */
    .year-progress {
      max-width: 680px; margin: 32px auto 0; padding: 0 24px;
    }
    .year-progress p {
      font-size: .8rem; color: var(--muted); margin-bottom: 6px;
    }
    .progress-track {
      height: 6px; background: var(--border); border-radius: 99px; overflow: hidden;
    }
    .progress-fill {
      height: 100%; border-radius: 99px;
      transition: width 1s ease;
    }

    /* Detail info section */
    .detail-info {
      max-width: 680px;
      margin: 40px auto 0;
      padding: 0 24px;
    }
    .detail-info h2 {
      font-size: 1.2rem; font-weight: 700; margin-bottom: 12px;
    }
    .detail-info p {
      color: var(--muted); line-height: 1.7; font-size: .95rem;
    }

    /* Related countdowns */
    .related {
      max-width: 1100px;
      margin: 48px auto 80px;
      padding: 0 24px;
    }
    .related h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 12px;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
      background: #1a1a2e; color: #fff;
      padding: 12px 20px; border-radius: 10px;
      font-size: .88rem; font-weight: 500;
      transition: transform .3s cubic-bezier(.34,1.56,.64,1);
      pointer-events: none; z-index: 999;
      white-space: nowrap;
    }
    .toast.show { transform: translateX(-50%) translateY(0); }

    /* Search */
    .search-wrap {
      position: relative;
      max-width: 480px;
      margin: 24px auto 0;
    }
    .search-icon {
      position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
      color: var(--muted); font-size: 1rem; pointer-events: none;
    }
    .search-input {
      width: 100%;
      padding: 12px 40px 12px 40px;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      font-size: .95rem;
      background: var(--surface);
      color: var(--text);
      outline: none;
      transition: border-color .15s, box-shadow .15s;
      box-shadow: var(--shadow);
    }
    .search-input:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    }
    .search-clear {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: var(--muted); font-size: 1rem; line-height: 1;
      padding: 4px; display: none;
    }
    .search-clear:hover { color: var(--text); }
    .search-count {
      text-align: center;
      font-size: .8rem;
      color: var(--muted);
      margin-top: 10px;
      min-height: 1.2em;
    }
    .no-results {
      grid-column: 1/-1;
      text-align: center;
      padding: 48px 24px;
      color: var(--muted);
    }
    .no-results strong { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }

    /* Embed section */
    .embed-section {
      max-width: 680px; margin: 48px auto 0; padding: 0 24px;
      border-top: 1px solid var(--border); padding-top: 36px;
    }
    .embed-section h2 { font-size: 1.2rem; font-weight: 700; }
    .embed-sub { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.5; }
    .embed-preview {
      display: flex; gap: 16px; flex-wrap: wrap;
      justify-content: center; margin: 24px 0 20px;
    }
    .embed-preview iframe { border-radius: 12px; display: block; flex-shrink: 0; }
    .embed-controls {
      display: flex; gap: 20px; flex-wrap: wrap;
      align-items: center; margin-bottom: 16px;
    }
    .embed-control-group { display: flex; align-items: center; gap: 8px; }
    .embed-control-label {
      font-size: .75rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: .06em; color: var(--muted); white-space: nowrap;
    }
    .embed-toggles { display: flex; gap: 4px; }
    .embed-toggle {
      padding: 5px 13px; border-radius: 7px;
      border: 1.5px solid var(--border);
      background: var(--surface); color: var(--muted);
      font-size: .8rem; cursor: pointer; transition: all .15s; font-weight: 500;
    }
    .embed-toggle.active { background: #6366f1; color: #fff; border-color: #6366f1; }
    .embed-toggle:hover:not(.active) { border-color: #6366f1; color: var(--text); }
    .embed-code-wrap {
      border: 1.5px solid var(--border); border-radius: 10px;
      overflow: hidden; margin-bottom: 12px;
    }
    .embed-code-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 8px 14px; background: var(--bg);
      border-bottom: 1px solid var(--border);
      font-size: .75rem; font-weight: 600; color: var(--muted);
    }
    .btn-copy-embed {
      background: none; border: none; cursor: pointer;
      font-size: .78rem; color: #6366f1; font-weight: 600; padding: 2px 6px;
    }
    .btn-copy-embed:hover { text-decoration: underline; }
    .embed-code {
      width: 100%; padding: 12px 14px;
      font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
      font-size: .73rem; color: var(--text); background: var(--surface);
      border: none; resize: none; height: 88px; line-height: 1.6;
    }
    .embed-code:focus { outline: none; }
    .embed-note {
      font-size: .78rem; color: var(--muted); line-height: 1.6;
      padding: 10px 14px; background: var(--bg);
      border-radius: 8px; border: 1px solid var(--border);
    }

    /* Estimated badge (Islamic holidays) */
    .est-badge {
      display: inline-block;
      font-size: .65rem;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      background: #fff3cd;
      color: #92600a;
      border: 1px solid #f5c842;
      border-radius: 4px;
      padding: 1px 5px;
      margin-left: 6px;
      vertical-align: middle;
      line-height: 1.5;
    }
    .est-banner {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      background: #fffbeb;
      border: 1px solid #f5c842;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: .85rem;
      color: #78480f;
      max-width: 680px;
      margin: 20px auto 0;
      line-height: 1.5;
      text-align: left;
    }
    .est-banner .est-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

    /* Footer */
    footer {
      border-top: 1px solid var(--border);
      text-align: center;
      padding: 24px;
      color: var(--muted);
      font-size: .8rem;
    }

    @media (max-width: 480px) {
      .cd-sep { display: none; }
      .cd-box { min-width: 70px; padding: 14px 16px 10px; }
    }

    /* ── NAV RIGHT ─────────────────────────────────────────── */
    .nav-right { display: flex; align-items: center; gap: 8px; }
    .nav-calc-link {
      font-size: .72rem; font-weight: 700; color: #6366f1;
      text-decoration: none; padding: 4px 9px;
      border: 1.5px solid #6366f1; border-radius: 6px;
      transition: all .15s; white-space: nowrap;
    }
    .nav-calc-link:hover { background: #6366f1; color: white; }

    /* ── MORE TOOLS TEASER (hub page) ──────────────────────── */
    .more-tools { padding: 8px 24px 64px; max-width: 1100px; margin: 0 auto; }
    .more-tools-hdr { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
    .more-tools-hdr h2 { font-size: 1.05rem; font-weight: 800; }
    .more-tools-hdr a { font-size: .82rem; color: #6366f1; text-decoration: none; }
    .more-tools-hdr a:hover { text-decoration: underline; }
    .more-tools-sub { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
    .more-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
    .tool-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
      padding: 18px 20px; text-decoration: none; color: var(--text);
      display: flex; align-items: center; gap: 14px;
      transition: transform .15s, box-shadow .15s;
    }
    .tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.09); }
    .tool-emoji { font-size: 1.8rem; flex-shrink: 0; }
    .tool-name { font-size: .93rem; font-weight: 700; margin-bottom: 3px; }
    .tool-desc { font-size: .78rem; color: var(--muted); }

    /* ── CALCULATORS HUB PAGE ─────────────────────────────── */
    .calc-hub-hero { text-align: center; padding: 64px 24px 40px; max-width: 680px; margin: 0 auto; }
    .calc-hub-hero h1 { font-size: clamp(1.8rem,4.5vw,2.6rem); font-weight: 800; letter-spacing: -.5px; }
    .calc-hub-hero p { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
    .calc-hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0 24px 80px; max-width: 900px; margin: 0 auto; }
    .calc-hub-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px 24px; text-decoration: none; color: var(--text);
      transition: transform .15s, box-shadow .15s; display: block;
    }
    .calc-hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
    .chc-icon { font-size: 2.8rem; margin-bottom: 14px; }
    .chc-name { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
    .chc-desc { font-size: .87rem; color: var(--muted); line-height: 1.6; }

    /* ── SHARED CALCULATOR LAYOUT ─────────────────────────── */
    .calc-page { max-width: 760px; margin: 0 auto; padding-bottom: 80px; }
    .calc-hero { text-align: center; padding: 52px 24px 44px; color: white; }
    .calc-hero .ce { font-size: 3rem; margin-bottom: 14px; }
    .calc-hero h1 { font-size: clamp(1.6rem,4vw,2.2rem); font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
    .calc-hero p { margin-top: 10px; opacity: .88; font-size: 1rem; }
    .calc-section {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px; margin: 20px 20px 0;
    }
    .calc-section h2 {
      font-size: .8rem; font-weight: 800; letter-spacing: .06em;
      text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
    }
    .calc-field { margin-bottom: 16px; }
    .calc-field:last-of-type { margin-bottom: 0; }
    .calc-field label {
      display: block; font-size: .78rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 7px;
    }
    .calc-field input, .calc-field select {
      width: 100%; padding: 10px 14px;
      border: 1.5px solid var(--border); border-radius: 10px;
      font-size: 1rem; font-family: inherit; background: var(--bg);
      color: var(--text); outline: none; transition: border-color .15s;
    }
    .calc-field input:focus, .calc-field select:focus { border-color: #6366f1; background: white; }
    .calc-btn {
      width: 100%; padding: 14px; color: white; border: none; border-radius: 12px;
      font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer;
      margin-top: 20px; transition: opacity .15s;
    }
    .calc-btn:hover { opacity: .9; }

    /* ── RESULT CARDS ─────────────────────────────────────── */
    .result-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 20px 0; }
    .r-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; text-align: center; }
    .r-card.accent { color: white; border: none; }
    .r-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 6px; }
    .r-value { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
    .r-sub { font-size: .78rem; opacity: .8; margin-top: 5px; }

    /* ── FERTILITY CALENDAR ───────────────────────────────── */
    .fert-cals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 20px 0; }
    @media (max-width: 520px) { .fert-cals { grid-template-columns: 1fr; } }
    .mini-cal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
    .cal-month-label { font-weight: 700; font-size: .9rem; text-align: center; margin-bottom: 12px; }
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .cal-dow { text-align: center; font-size: .62rem; font-weight: 700; color: var(--muted); padding-bottom: 5px; }
    .cal-day { text-align: center; font-size: .78rem; padding: 5px 2px; border-radius: 6px; cursor: default; }
    .cal-day.cal-period { background: #fecdd3; color: #9f1239; font-weight: 600; }
    .cal-day.cal-fertile { background: #fce7f3; color: #be185d; font-weight: 600; }
    .cal-day.cal-ovulation { background: #7c3aed; color: white; font-weight: 800; border-radius: 50%; }
    .cal-day.cal-today { outline: 2px solid #6366f1; outline-offset: -1px; border-radius: 6px; }
    .fert-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 20px 0; }
    .legend-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
    .legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
    .legend-dot.period { background: #fecdd3; border: 1.5px solid #f43f5e; }
    .legend-dot.fertile { background: #fce7f3; border: 1.5px solid #ec4899; }
    .legend-dot.ovulation { background: #7c3aed; border-radius: 50%; }

    /* ── PREGNANCY MILESTONES ─────────────────────────────── */
    .trimester-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-bottom: 5px; }
    .trimester-track { background: var(--border); border-radius: 8px; height: 14px; overflow: hidden; }
    .trimester-fill { height: 100%; border-radius: 8px; width: 0%; transition: width .6s ease; }
    .week-label { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 6px; }
    .milestone-list { list-style: none; padding: 0; margin: 0; }
    .milestone-item { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); }
    .milestone-item:last-child { border-bottom: none; }
    .ms-icon { font-size: 1.2rem; flex-shrink: 0; width: 26px; text-align: center; }
    .ms-week { font-size: .75rem; font-weight: 700; color: var(--muted); min-width: 54px; padding-top: 2px; }
    .ms-text { font-size: .875rem; line-height: 1.45; }
    .milestone-item.past .ms-week { color: #10b981; }
    .milestone-item.current { background: #f0fdf4; border-radius: 10px; padding: 10px 12px; margin: 4px -12px; }
    .milestone-item.current .ms-week { color: #059669; }
    .milestone-item.future .ms-text { color: var(--muted); }

    /* ── EXAM PLANNER ─────────────────────────────────────── */
    .exam-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
    .exam-type-btn {
      padding: 11px 8px; border: 1.5px solid var(--border); border-radius: 10px;
      background: var(--bg); font-size: .85rem; font-weight: 700; font-family: inherit;
      cursor: pointer; color: var(--text); transition: all .15s;
    }
    .exam-type-btn:hover { border-color: #6366f1; color: #6366f1; }
    .exam-type-btn.active { border-color: #6366f1; background: #eef2ff; color: #4f46e5; }
    .exam-sub { display: none; }
    .exam-sub.visible { display: block; }
    .score-note { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: 10px; line-height: 1.5; }
    .study-row { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: 10px; }

    /* ── WIDGET MODE (served at /widget or /widget.html) ──── */
    body.widget-mode { overflow: hidden; height: 100%; background: transparent; }
    html.widget-mode { overflow: hidden; height: 100%; }
    .widget {
      width: 100%; height: 100vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 12px 16px 26px; position: relative;
      border-radius: 12px; text-align: center;
    }
    .wtheme-light { background: #ffffff; color: #1a1a2e; border: 1.5px solid #e8eaed; }
    .wtheme-dark  { background: #0f172a; color: #ffffff; }
    .wtheme-color { color: #ffffff; }
    .w-header {
      display: flex; align-items: center; gap: 6px;
      font-size: .68rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: .08em; opacity: .65; margin-bottom: 8px;
      white-space: nowrap; overflow: hidden;
    }
    .w-emoji { font-size: .95rem; }
    .w-est {
      font-size: .5rem; font-weight: 700;
      background: rgba(255,200,0,.2); border: 1px solid rgba(255,200,0,.5);
      border-radius: 3px; padding: 1px 4px; letter-spacing: .04em;
    }
    .w-main { display: flex; align-items: flex-end; gap: 10px; }
    .w-days-wrap { text-align: center; }
    .w-days-num {
      font-size: 3rem; font-weight: 800; line-height: 1;
      letter-spacing: -2px; font-variant-numeric: tabular-nums;
    }
    .w-days-lbl { font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .45; margin-top: 3px; }
    .w-sep { font-size: 1.5rem; opacity: .2; margin-bottom: 10px; }
    .w-hms { display: flex; align-items: flex-start; gap: 1px; margin-bottom: 2px; }
    .w-unit { text-align: center; min-width: 26px; }
    .w-unit-num { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
    .w-unit-lbl { font-size: .42rem; text-transform: uppercase; letter-spacing: .06em; opacity: .4; margin-top: 1px; }
    .w-colon { font-size: .85rem; font-weight: 300; opacity: .25; padding: 0 1px; line-height: 1.35; }
    .w-powered {
      position: absolute; bottom: 7px; right: 10px;
      font-size: .57rem; font-weight: 500; opacity: .38;
      text-decoration: none; color: inherit; transition: opacity .15s;
    }
    .w-powered:hover { opacity: .7; text-decoration: underline; }
    .wsize-compact .w-sep, .wsize-compact .w-hms { display: none; }
    .wsize-compact .w-days-num { font-size: 2.4rem; }
    .w-arrived { font-size: 1rem; font-weight: 700; opacity: .85; }

/* ── CONTENT SECTION ─────────────────────────────────────────── */
.content-section {
  max-width: 720px; margin: 0 auto; padding: 36px 24px 0;
}
.content-section h2 {
  font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; color: var(--text);
}
.content-section p {
  color: var(--muted); line-height: 1.8; margin-bottom: 13px; font-size: .97rem;
}
.fact-list {
  list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px;
}
.fact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .94rem; color: var(--text); line-height: 1.55;
}
.fact-list li::before {
  content: '✓'; color: #6366f1; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── FAQ SECTION ─────────────────────────────────────────────── */
.faq-section {
  max-width: 720px; margin: 0 auto; padding: 36px 24px;
}
.faq-section h2 {
  font-size: 1.35rem; font-weight: 700; margin-bottom: 18px; color: var(--text);
}
.faq-item {
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  font-weight: 600; padding: 15px 18px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); font-size: .94rem; gap: 12px; user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 18px 15px;
  color: var(--muted); line-height: 1.75; font-size: .94rem; background: var(--surface);
}
.faq-item.open .faq-a { display: block; }

/* Related Countdowns — internal linking block on prerendered pages */
.related-section {
  max-width: 720px; margin: 0 auto; padding: 36px 24px;
}
.related-section h2 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 16px;
}
.related-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px;
}
.related-list a {
  display: block; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: .95rem;
  transition: background .15s, border-color .15s;
}
.related-list a:hover {
  background: var(--surface-hover, #f3f4f6); border-color: #6366f1;
}

/* Cookie consent banner */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
  max-width: 720px; margin: 0 auto;
  background: #1f2937; color: #f9fafb;
  border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  display: flex; align-items: center; gap: 16px;
  font-size: .92rem; line-height: 1.5;
  animation: cookie-slide-up .25s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-text { flex: 1; margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 16px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.cookie-btn-primary    { background: #6366f1; color: #fff; }
.cookie-btn-primary:hover    { background: #4f52d8; }
.cookie-btn-secondary  { background: rgba(255,255,255,.1); color: #f9fafb; }
.cookie-btn-secondary:hover  { background: rgba(255,255,255,.18); }
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 14px; }
  .cookie-actions { justify-content: flex-end; }
}
