
    :root {
      --primary: #be185d;
      --primary-dark: #9d174d;
      --primary-light: #fce7f3;
      --accent: #f97316;
      --accent-light: #fff7ed;
      --bg: #fdf4f7;
      --bg-card: #ffffff;
      --text: #111827;
      --text-muted: #6b7280;
      --border: #f3d6e8;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --radius: 20px;
      --shadow: 0 10px 30px rgba(190, 24, 93, 0.07);
      --shadow-sm: 0 4px 12px rgba(190, 24, 93, 0.04);
  }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
  }

    body::before {
      content: "";
      position: fixed;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='rgba(190,24,93,0.15)' transform='scale(0.8)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='rgba(249,115,22,0.12)' transform='scale(1.2)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='rgba(219,39,119,0.12)' transform='scale(0.6)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 50%, rgba(252, 231, 243, 0.6), transparent 80%);
      background-size: 150px 150px, 200px 200px, 100px 100px, 50% 50%;
      background-position: 0px 0px, 50px 50px, 20px 80px, 0px 0px;
      animation: pwtFloat 25s linear infinite;
      z-index: -1;
      pointer-events: none;
  }

    @keyframes pwtFloat {
      0%   { transform: translate(0px, 0px); }
      100% { transform: translate(0px, -200px); }
  }

    /* Modal for big image */
    .img-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.85);
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
      backdrop-filter: blur(5px);
  }
    .img-modal-content {
      max-width: 98%;
      max-height: 98%;
      border-radius: 12px;
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
      transition: transform 0.3s ease;
  }
    .img-modal-content:active { transform: scale(0.98); }

    /* ── NAVBAR ── */
    .navbar {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
  }
    .nav-inner {
      max-width: 1000px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      height: 64px;
  }
    .nav-brand {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--primary);
  }
    .nav-brand svg { color: var(--primary); }
    .nav-links { display: flex; gap: 20px; }
    .nav-links a {
      text-decoration: none; font-size: 0.875rem; font-weight: 500;
      color: var(--text-muted); transition: color 0.2s;
  }
    .nav-links a:hover { color: var(--primary); }
    .nav-links a.active { color: var(--primary); font-weight: 700; }

    /* ── HERO ── */
    .hero {
      background: linear-gradient(135deg, rgba(255,240,246,0.6) 0%, rgba(255,247,237,0.4) 50%, rgba(253,244,247,0.6) 100%);
      padding: 60px 24px 48px;
      text-align: center;
  }
    .hero-eyebrow {
      display: inline-block;
      background: var(--primary-light);
      color: var(--primary);
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
      padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
      text-transform: uppercase;
  }
    .hero h1 {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(2.2rem, 6vw, 3.5rem);
      font-weight: 800; line-height: 1.1;
      margin-bottom: 20px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
    .hero-sub {
      font-size: 1.05rem; color: var(--text-muted);
      max-width: 520px; margin: 0 auto 36px;
  }
    .hero-note-box {
      max-width: 600px;
      margin: -10px auto 36px;
      padding: 16px 20px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      font-size: 0.9rem;
      text-align: left;
      line-height: 1.5;
      color: var(--text-muted);
      box-shadow: 0 4px 20px rgba(190, 24, 93, 0.02);
  }
    .hero-note-link {
      color: var(--primary);
      font-weight: 700;
      text-decoration: none;
      display: inline-block;
      margin-left: 4px;
  }
    .hero-note-link:hover {
      text-decoration: underline;
  }

    /* ── CALCULATOR CARD ── */
    .calc-card {
      background: var(--bg-card); border-radius: var(--radius);
      box-shadow: var(--shadow);
      max-width: 600px; margin: 0 auto;
      padding: 32px;
  }
    .calc-toggle {
      display: flex; gap: 0;
      background: var(--bg); border-radius: 10px;
      padding: 4px; margin-bottom: 24px;
  }
    .calc-toggle button {
      flex: 1; padding: 8px 16px;
      border: none; cursor: pointer; border-radius: 8px;
      font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
      background: transparent; transition: all 0.2s;
  }
    .calc-toggle button.active {
      background: var(--bg-card); color: var(--primary);
      font-weight: 600; box-shadow: var(--shadow-sm);
  }
    .input-group { margin-bottom: 20px; }
    .input-group label {
      display: block; font-size: 0.875rem; font-weight: 600;
      color: var(--text); margin-bottom: 8px;
  }
    .input-group input[type="date"], .input-group input[type="number"] {
      width: 100%; padding: 12px 16px;
      border: 2px solid var(--border); border-radius: 10px;
      font-size: 1rem; font-family: inherit; color: var(--text);
      background: var(--bg); outline: none; transition: border-color 0.2s;
      -webkit-appearance: none;
      appearance: none;
  }
    .input-group input:focus { border-color: var(--primary); background: #fff; }
    .input-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
    .calc-error { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(254, 202, 202, 0.36); border: 1px solid #fecaca; color: #991b1b; font-size: 0.95rem; }
    .btn-calc {
      width: 100%; padding: 14px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #fff; font-size: 1rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: opacity 0.2s, transform 0.1s; letter-spacing: 0.01em;
  }
    .btn-calc, .share-btn, .btn-predict, .tool-btn-main {
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
    .btn-calc:hover, .share-btn:hover, .btn-predict:hover, .tool-btn-main:hover {
      transform: translateY(-2px) scale(1.02);
      filter: brightness(1.1);
      box-shadow: 0 12px 24px rgba(190, 24, 93, 0.2);
  }
    .btn-calc:active, .share-btn:active, .btn-predict:active, .tool-btn-main:active {
      transform: translateY(0) scale(0.97);
  }

    .week-chip {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 12px;
      cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex; flex-direction: column; gap: 3px;
  }
    .week-chip:hover { 
      border-color: var(--primary); 
      box-shadow: var(--shadow); 
      transform: translateY(-5px) scale(1.03); 
  }

    /* ── RESULT PANEL ── */
    #resultPanel { scroll-margin-top: 90px; display: none; padding: 40px 0 0; }
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
  }
    #resultPanel.reveal { animation: fadeSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }

    .result-headline { text-align: center; padding: 12px 0 28px; }
    .result-headline .rh-week {
      font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.2;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      margin-bottom: 6px;
  }
    .result-headline .rh-baby { font-size: 1.05rem; color: var(--text); font-weight: 500; margin-bottom: 6px; }
    .result-headline .rh-sub  { font-size: 0.9rem; color: var(--text-muted); }

    .milestone-banner {
      background: linear-gradient(135deg, var(--primary-light) 0%, #fff7ed 100%);
      border: 2px solid var(--primary); border-radius: 16px;
      padding: 20px 24px; text-align: center; margin-bottom: 24px;
  }
    .ms-icon  { font-size: 2.4rem; display: block; margin-bottom: 6px; }
    .ms-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
    .ms-sub   { font-size: 0.87rem; color: var(--text-muted); margin-top: 4px; line-height: 1.55; }

    .share-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
    .share-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 22px; border-radius: 999px;
      font-size: 0.875rem; font-weight: 600; cursor: pointer; font-family: inherit;
      transition: all 0.2s; border: 2px solid var(--primary);
      background: var(--primary-light); color: var(--primary);
  }
    .share-btn:hover { background: var(--primary); color: #fff; }
    .share-btn svg   { flex-shrink: 0; }
    .result-grid {
      display: grid; grid-template-columns: 1fr 1fr 1fr;
      gap: 16px; margin-bottom: 24px;
  }
    .result-stat {
      background: var(--bg-card); border-radius: var(--radius);
      padding: 20px; text-align: center;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: default;
  }
    .result-stat:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow);
      border-color: var(--primary);
  }
    .result-stat .stat-value {
      font-size: 2rem; font-weight: 800; color: var(--primary);
      line-height: 1.1; margin-bottom: 4px;
  }
    .result-stat .stat-label {
      font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 0.06em;
  }
    .result-stat .stat-sub {
      font-size: 0.8rem; color: var(--text-muted); margin-top: 4px;
  }

    /* ── TRIMESTER PROGRESS ── */
    .trimester-bar-wrap {
      background: var(--bg-card); border-radius: var(--radius);
      padding: 20px 24px; margin-bottom: 24px;
      box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  }
    .trimester-labels {
      display: flex; justify-content: space-between;
      font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
      margin-bottom: 8px;
  }
    .trimester-labels span.active-tri { color: var(--primary); }
    .progress-track {
      height: 12px; background: var(--bg);
      border-radius: 999px; overflow: hidden;
  }
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 999px; transition: width 0.8s ease;
  }
    .trimester-dividers {
      display: flex; justify-content: space-between;
      padding: 4px 0;
  }
    .tri-div { font-size: 0.7rem; color: var(--text-muted); }

    /* ── WEEK DETAIL CARD ── */
    .week-card { scroll-margin-top: 90px;
      background: var(--bg-card); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: hidden;
      margin-bottom: 24px;
  }
    .week-card-header {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      padding: 24px; color: #fff;
      display: grid; grid-template-columns: 170px 1fr;
      gap: 18px;
      align-items: start;
  }
    .week-image-box { display: flex; flex-direction: column; gap: 8px; align-items: center; }
    .week-emoji { font-size: 3.5rem; line-height: 1; }
    .week-emoji img.emoji-img { 
      width: 150px; height: 150px; display: block; object-fit: contain; 
  }
    .week-emoji img.emoji-img.week-photo { transition: transform 0.2s, box-shadow 0.2s; border-radius: 12px; }
    .week-emoji[style*="cursor:zoom-in"]:hover img.emoji-img { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
    .enlarge-hint {
      font-size: 0.7rem; color: rgba(255,255,255,0.6);
      letter-spacing: 0.04em; margin-top: -4px;
    }
    .week-image-label {
      text-transform: uppercase; letter-spacing: 0.08em;
      font-size: 0.78rem; color: rgba(255,255,255,0.85);
      padding: 6px 12px; border: 1px solid rgba(255,255,255,0.25);
      border-radius: 999px; white-space: nowrap;
    }
    .week-image-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .week-image-tab {
      background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
      color: #fff; border-radius: 999px; padding: 8px 12px;
      font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
    }
    .week-image-tab.active {
      background: #fff; color: var(--primary); border-color: #fff;
      font-weight: 700;
    }
    .week-header-content { display: grid; gap: 16px; }
    .week-header-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .week-card-header .week-number,
    .week-card-header .week-size,
    .week-card-header .week-size-sub { color: #fff; }
    .week-card-header h3 { color: #fff; }
    .week-card-header .week-section h3 { color: #fff; }
    .week-card-header .week-section p { color: rgba(255,255,255,0.94); }
    .week-title-wrap {}
    .week-number { font-size: 0.75rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; }
    .week-size { font-size: 1.5rem; font-weight: 800; }
    .week-size-sub { font-size: 0.875rem; opacity: 0.85; margin-top: 2px; }
    .week-card-body { padding: 24px; }
    .week-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .week-section {}
    .week-section h3 {
      font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.07em; color: var(--primary); margin-bottom: 10px;
      display: flex; align-items: center; gap: 6px;
  }
    .week-section p { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
    .week-tip {
      margin-top: 20px; padding: 14px 18px;
      background: var(--accent-light); border-radius: 10px;
      border-left: 3px solid var(--accent);
      font-size: 0.875rem; color: var(--text);
      display: flex; gap: 10px; align-items: flex-start;
  }
    .week-tip strong { color: var(--accent); }

    /* ── PRODUCT RECOMMENDATIONS ── */
    .ui-curated-section {
      background: var(--bg-card); border-radius: var(--radius);
      box-shadow: var(--shadow-sm); padding: 24px;
      margin-bottom: 24px; border: 1px solid var(--border);
  }
    .ui-curated-section h2 {
      font-size: 1rem; font-weight: 700; color: var(--text);
      margin-bottom: 4px;
  }
    .ui-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ui-grid-card {
      border: 1px solid var(--border); border-radius: 10px;
      padding: 14px; display: flex; gap: 12px; align-items: flex-start;
      text-decoration: none; color: var(--text);
      transition: box-shadow 0.2s, border-color 0.2s; background: var(--bg);
    }
    .ui-grid-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
    .tip-sub {
      font-size: 0.8rem; color: var(--text-muted); line-height: 1.65;
      margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(59,130,246,0.08);
      font-style: italic; text-align: center;
  }
    .ui-grid-icon { font-size: 1.6rem; flex-shrink: 0; }
    .ui-grid-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
    .ui-grid-desc { font-size: 0.75rem; color: var(--text-muted); }
    .affiliate-badge {
      display: inline-block; font-size: 0.65rem; font-weight: 600;
      background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
      padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
  }

    /* ── ADVERT SLOT ── */
    .ad-slot {
      background: var(--bg-card); border: 1px dashed var(--border);
      border-radius: var(--radius); padding: 24px; text-align: center;
      color: var(--text-muted); font-size: 0.8rem; margin: 24px 0;
      min-height: 90px; display: flex; align-items: center; justify-content: center;
  }

    /* ── WEEKS TIMELINE ── */
    .timeline-section { padding: 40px 0; }
    .timeline-section h2 {
      font-size: 1.5rem; font-weight: 800; color: var(--text);
      margin-bottom: 8px; text-align: center;
  }
    .timeline-section .section-sub {
      font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; text-align: center;
  }
    .tri-group { margin-bottom: 32px; }
    .tri-group-title {
      display: flex; align-items: center; justify-content: center; gap: 12px;
      font-size: 1rem; font-weight: 700; color: var(--primary);
      margin-bottom: 12px; padding-bottom: 8px;
      border-bottom: 2px solid var(--primary-light);
  }
    .tri-badge {
      background: var(--primary-light); color: var(--primary);
      font-size: 0.7rem; font-weight: 700; padding: 2px 10px;
      border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
  }
    .weeks-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 8px;
  }
    .week-chip {
      background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-radius: 16px; padding: 18px 14px;
      min-height: 170px; justify-content: space-between;
      cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex; flex-direction: column; gap: 12px; align-items: center;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  }
    .week-chip:hover { border-color: var(--primary); background: rgba(255,255,255,0.75); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
    @keyframes chipPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(190,24,93,0.28); }
      50%       { box-shadow: 0 0 0 8px rgba(190,24,93,0); }
  }
    .week-chip.current {
      border-color: var(--primary); background: var(--primary-light);
      box-shadow: 0 0 0 2px var(--primary);
      animation: chipPulse 2.5s ease infinite;
  }
    .week-chip-num { font-size: 0.75rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
    .week-chip-emoji { width: 100%; height: 95px; display: flex; align-items: center; justify-content: center; }
    .week-chip-emoji img.emoji-img, .week-photo {
      width: 100%; max-width: 100%; height: 100%; max-height: 100%; display: block; object-fit: contain;
  }
    .week-card-header .week-image-box .week-photo {
      max-width: 260px; max-height: 260px;
  }
    .week-chip-size { font-size: 0.82rem; font-weight: 700; color: var(--text); text-align: center; margin-top: 6px; line-height: 1.3; }

    /* ── SEO CONTENT ── */
    .content-section { padding: 48px 0 24px; text-align: center; }
    .content-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; font-family: 'Outfit', sans-serif; color: var(--primary); }
    .content-section p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
    .content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 32px; text-align: left; }
    .content-card {
      background: var(--bg-card); border-radius: 20px;
      padding: 28px; border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
  }
    .content-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
    .content-card ul { padding-left: 20px; }
    .content-card li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }

    /* ── FAQ ── */
    .faq-section { padding: 40px 0; text-align: center; }
    .faq-section h2 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 32px; color: var(--primary); }
    .faq-wrapper { max-width: 800px; margin: 0 auto; text-align: left; }
    .faq-item {
      background: var(--bg-card); border-radius: 10px; margin-bottom: 8px;
      border: 1px solid var(--border); overflow: hidden;
  }
    .faq-q {
      padding: 16px 20px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
      display: flex; justify-content: space-between; align-items: center;
      user-select: none;
  }
    .faq-q:hover { background: var(--primary-light); }
    .faq-q svg { flex-shrink: 0; color: var(--primary); transition: transform 0.2s; }
    .faq-q.open svg { transform: rotate(45deg); }
    .faq-a {
      padding: 0 20px; font-size: 0.87rem; color: var(--text-muted); line-height: 1.7;
      max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s;
  }
    .faq-a.open { max-height: 300px; padding: 0 20px 16px; }

    /* ── FOOTER ── */
    .footer {
      background: var(--text); color: #e5e7eb;
      padding: 40px 24px 24px;
  }
    .footer-inner {
      max-width: 1000px; margin: 0 auto;
      display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
      padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
    .footer-brand { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
    .footer-brand span { color: var(--accent); }
    .footer-desc { font-size: 0.85rem; color: #9ca3af; max-width: 300px; line-height: 1.6; }
    .footer-links h4 { font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; margin-bottom: 16px; }
    .footer-links ul { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { text-decoration: none; font-size: 0.9rem; color: #d1d5db; transition: color 0.2s; }
    .footer-links a:hover { color: #fff; }
    .footer-copy { max-width: 1000px; margin: 0 auto; padding-top: 24px; font-size: 0.82rem; color: #6b7280; text-align: center; }
    .footer-copy a { color: #9ca3af; text-decoration: none; border-bottom: 1px dotted #4b5563; }
    .footer-copy a:hover { color: #fff; border-bottom-style: solid; }
    .disclaimer {
      background: var(--accent-light); border: 1px solid #fed7aa;
      border-radius: 10px; padding: 14px 18px; margin: 24px 0;
      font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
  }

    /* ── HAMBURGER ── */
    .hamburger {
      display: none !important; flex-direction: column; gap: 5px;
      background: none; border: none; cursor: pointer; padding: 4px;
      -webkit-tap-highlight-color: transparent;
  }
    .hamburger span {
      display: block; width: 22px; height: 2px;
      background: var(--primary); border-radius: 2px;
      transition: transform 0.25s, opacity 0.25s;
  }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
      .hamburger { display: flex !important; }
      .nav-links {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
      .nav-links.open { display: flex; }
      .nav-links a {
        padding: 14px 24px; font-size: 1rem;
        border-bottom: 1px solid var(--border);
        min-height: 44px; display: flex; align-items: center;
    }
      .result-grid { grid-template-columns: 1fr 1fr; }
      .week-sections { grid-template-columns: 1fr; }
      .ui-grid-layout { grid-template-columns: 1fr; }
      .content-grid { grid-template-columns: 1fr; }
      .hero { padding: 36px 20px 28px; }
      .hero h1 { font-size: 1.75rem; }
      .hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
      .calc-card { padding: 20px 16px; }
      .week-card-header { grid-template-columns: 1fr; text-align: center; }
      .week-image-box { flex-direction: column; }
      .week-header-grid { grid-template-columns: 1fr; }
      .week-image-tabs { justify-content: center; }
      .container { padding: 0 16px; }
      .gender-opt { padding: 8px 12px; }
      .share-btn { min-height: 44px; }
      .footer-inner { flex-direction: column; text-align: center; gap: 40px; }
      .footer-desc { margin: 0 auto; }
  }
    @media (max-width: 420px) {
      .result-grid { grid-template-columns: 1fr; }
  }

    /* ── WEEK DETAIL SECTION (permanent outside resultPanel) ── */

    /* ── WEEK CHIP ACTIVE STATE ── */
    .week-chip.active-detail {
      border-color: var(--accent); background: var(--accent-light);
      box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
      transform: translateY(-2px);
  }
    .week-chip:active { transform: scale(0.97); }

    /* ── GENDER PREDICTION SECTION ── */
    .gender-section {
      background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);
      border-radius: var(--radius);
      border: 1px solid #e9d5ff;
      padding: 32px;
      margin: 0 0 40px;
  }
    .gender-section h2 { font-size: 1.4rem; font-weight: 800; color: #7c3aed; margin-bottom: 8px; }
    .gender-intro { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
    .gender-disclaimer {
      font-size: 0.78rem; color: var(--text);
      background: #fff; border-radius: 8px; padding: 10px 14px;
      border-left: 3px solid #f59e0b;
      margin-bottom: 20px; line-height: 1.65;
  }
    .gender-inputs-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
      margin-bottom: 20px;
  }
    .gender-input-card {
      background: #fff; border-radius: 12px; padding: 14px;
      border: 1px solid #e9d5ff;
  }
    .gender-input-card label {
      display: block; font-size: 0.73rem; font-weight: 700;
      color: #7c3aed; margin-bottom: 8px;
      text-transform: uppercase; letter-spacing: 0.05em;
  }
    .gender-options { display: flex; flex-wrap: wrap; gap: 5px; }
    .gender-opt {
      padding: 5px 10px; border: 1.5px solid #e9d5ff; border-radius: 6px;
      font-size: 0.76rem; font-weight: 500; cursor: pointer; background: #fff;
      transition: all 0.15s; color: var(--text); user-select: none; -webkit-user-select: none;
  }
    .gender-opt:hover  { border-color: #7c3aed; background: #f5f3ff; }
    .gender-opt.selected { background: #7c3aed; color: #fff; border-color: #7c3aed; }
    .gender-num-input {
      width: 100%; padding: 8px 10px;
      border: 1.5px solid #e9d5ff; border-radius: 8px;
      font-size: 0.9rem; font-family: inherit; color: var(--text);
      outline: none; transition: border-color 0.15s; background: var(--bg);
  }
    .gender-num-input:focus { border-color: #7c3aed; background: #fff; }
    .gender-select {
      width: 100%; padding: 8px 10px;
      border: 1.5px solid #e9d5ff; border-radius: 8px;
      font-size: 0.82rem; font-family: inherit; background: var(--bg);
      color: var(--text); outline: none; cursor: pointer; transition: border-color 0.15s;
  }
    .gender-select:focus { border-color: #7c3aed; }
    .btn-predict {
      display: block; width: fit-content; margin: 0 auto;
      padding: 14px 40px;
      background: linear-gradient(135deg, #7c3aed, #be185d);
      color: #fff; font-size: 1rem; font-weight: 700;
      border: none; border-radius: 10px; cursor: pointer;
      transition: opacity 0.2s, transform 0.1s;
  }
    .btn-predict:hover  { opacity: 0.9; }
    .btn-predict:active { transform: scale(0.99); }
    .gender-result {
      background: #fff; border-radius: 12px; padding: 24px;
      border: 2px solid #e9d5ff; text-align: center; margin-top: 16px;
  }
    .gender-verdict       { font-size: 2.2rem; font-weight: 800; margin: 10px 0 4px; }
    .gender-verdict.boy   { color: #3b82f6; }
    .gender-verdict.girl  { color: #be185d; }
    .gender-verdict.tie   { color: var(--text-muted); }
    .gender-meter-track {
      height: 18px; background: #f1f5f9; border-radius: 999px;
      overflow: hidden; margin: 12px 0; display: flex;
  }
    .gender-meter-boy  { background: linear-gradient(90deg,#60a5fa,#3b82f6); transition: width 0.8s ease; }
    .gender-meter-girl { background: linear-gradient(90deg,#f9a8d4,#be185d); transition: width 0.8s ease; }
    .gender-breakdown  { font-size: 0.78rem; color: var(--text-muted); }
    .gender-methods    { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; line-height: 1.55; }
    .gender-fun-note {
      font-size: 0.74rem; color: var(--text-muted); font-style: italic;
      margin-top: 12px; padding: 10px 12px;
      background: var(--bg); border-radius: 8px; line-height: 1.55;
  }
    .india-callout {
      background: #fff8f0; border: 1px solid #fed7aa;
      border-radius: 10px; padding: 12px 16px; margin-top: 16px;
      font-size: 0.78rem; color: var(--text); line-height: 1.65;
  }
    @media (max-width: 640px) {
      .gender-inputs-grid { grid-template-columns: 1fr; }
      .gender-section { padding: 20px 16px; }
      .glass-card { padding: 24px 16px; }
  }

    /* ── GLASS CARDS ── */
    .glass-card {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: var(--radius);
      padding: 40px;
      box-shadow: var(--shadow);
      margin-bottom: 48px;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
      position: relative;
      z-index: 1;
  }

    /* ── TOOLS SECTION ── */
    .tools-wrapper {
      margin-bottom: 48px;
  }
    .tools-section {
      display: flex;
      flex-direction: column;
      gap: 32px;
  }
    .tool-card {
      background: #fff;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      padding: 32px 24px;
      text-align: center;
      box-shadow: var(--shadow);
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
  }
    .tool-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 15px 35px rgba(190, 24, 93, 0.1);
  }
    .tool-card h2 {
      font-family: 'Outfit', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 12px;
  }
    .tool-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-bottom: 24px;
      line-height: 1.6;
      max-width: 400px;
  }
    
    /* Progress Circle for Kick Counter */
    .kc-visual {
      position: relative;
      width: 180px; height: 180px;
      margin-bottom: 24px;
      display: flex; align-items: center; justify-content: center;
  }
    .kc-svg { transform: rotate(-90deg); }
    .kc-bg { fill: none; stroke: var(--bg); stroke-width: 10; }
    .kc-progress {
      fill: none; stroke: var(--success); stroke-width: 10;
      stroke-linecap: round; stroke-dasharray: 502.6;
      stroke-dashoffset: 502.6; transition: stroke-dashoffset 0.6s ease;
  }
    .kc-center {
      position: absolute;
      display: flex; flex-direction: column; align-items: center;
  }
    .kc-val { font-size: 2.8rem; font-weight: 800; color: var(--text); line-height: 1; }
    .kc-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-top: 2px; }

    .tool-btn-main {
      width: 100%; max-width: 320px;
      padding: 18px; font-size: 1.15rem; font-weight: 800;
      border: none; border-radius: 16px; cursor: pointer;
      transition: all 0.2s; user-select: none;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      font-family: 'Outfit', sans-serif;
  }
    .tool-btn-main:active { transform: scale(0.96); }
    
    .btn-kick-pulse {
      background: linear-gradient(135deg, var(--success), #059669);
      color: white;
  }
    .btn-contraction-pulse {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white;
  }
    .btn-contraction-end {
      background: linear-gradient(135deg, var(--danger), #dc2626);
      color: white;
  }
    
    .tool-timer-wrap {
      display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
      font-weight: 700; color: var(--text); font-size: 1.2rem;
  }
    .tool-timer-wrap span { font-variant-numeric: tabular-nums; }

    .tool-history-list {
      width: 100%;
      background: var(--bg);
      border-radius: 12px;
      padding: 16px;
      margin-top: 24px;
      max-height: 250px;
      overflow-y: auto;
  }
    .history-card {
      background: white; border-radius: 8px; padding: 12px;
      margin-bottom: 8px; box-shadow: var(--shadow-sm);
      display: flex; justify-content: space-between; align-items: center;
      animation: slideIn 0.3s ease-out;
  }
    @keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
    .hc-left { display: flex; flex-direction: column; text-align: left; }
    .hc-time { font-size: 0.85rem; font-weight: 700; color: var(--text); }
    .hc-date { font-size: 0.7rem; color: var(--text-muted); }
    .hc-right { font-size: 0.9rem; font-weight: 800; color: var(--primary); }

    .contraction-banner {
      width: 100%; background: #fee2e2; border: 2px solid var(--danger);
      color: var(--danger); border-radius: 12px; padding: 16px;
      margin-bottom: 24px; font-weight: 800; text-align: center;
      animation: alertShake 0.5s ease infinite alternate;
  }
    @keyframes alertShake { from { transform: scale(1); } to { transform: scale(1.02); } }

    .encouragement {
      font-size: 1rem; font-weight: 700; color: var(--success);
      margin-bottom: 16px; display: none;
  }

    @media (max-width: 768px) {
      .tools-section { grid-template-columns: 1fr; }
      .tool-card { padding: 24px 12px; width: 100%; }
      .tools-wrapper.glass-card { padding: 0; background: transparent; border: none; box-shadow: none; }
      .tool-btn-main { max-width: none; }
  }
    /* ── Mobile UI Fixes ── */
    @media (max-width: 640px) {
      body { overflow-x: hidden; }
      .navbar { padding: 0 12px; }
      .nav-inner { justify-content: space-between; padding: 0; box-sizing: border-box; width: 100%; }
      .hamburger { margin-right: 0px; }
      .gender-section { padding: 20px 16px; width: 100%; box-sizing: border-box; }
      [data-tooltip]::after, [data-tooltip]::before { display: none !important; } /* Hide tooltips on touch devices to avoid layout stickiness */
    }

    /* Scroll Reveal animations */
.reveal-scroll {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scroll.visible {
  opacity: 1;
}

.reveal-scroll.visible:not(:hover) {
  transform: translateY(0);
}

/* Premium Custom Tooltips for Pregnancy-Tracker */
[data-tooltip] {
  position: relative;
  cursor: help;
}
span[data-tooltip],
label[data-tooltip],
a[data-tooltip] {
  display: inline-block;
}
[data-tooltip]:hover {
  z-index: 50;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -6px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: min(220px, 90vw);
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.12), 0 4px 12px rgba(0, 0, 0, 0.25);
}
[data-tooltip]::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -6px);
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tooltip-js [data-tooltip]::after,
.tooltip-js [data-tooltip]::before {
  display: none !important;
}

/* Compact Tooltips for Timeline Chips */
.week-chip[data-tooltip]::after {
  min-width: auto;
  width: max-content;
  max-width: 150px;
  white-space: normal;
  word-wrap: break-word;
  font-size: 0.72rem;
  padding: 6px 10px;
}

/* Contraction Calming Coach styles */
#contraction-timer.active-contraction {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 10px 25px rgba(190, 24, 93, 0.15) !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 100%) !important;
  transition: all 0.3s ease;
}
.contraction-coach {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-top: 10px;
  margin-bottom: 24px;
}
@keyframes coachBreath {
  0%, 100% {
    transform: scale(0.9);
    background-color: var(--primary-light);
    color: var(--primary-dark);
  }
  50% {
    transform: scale(1.25);
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 25px rgba(190, 24, 93, 0.4);
  }
}
.coach-pulse-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.5s ease;
  animation: coachBreath 8s infinite ease-in-out;
}
  

/* ── Network Footer ── */
.network-footer {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 24px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-align: center;
}
.network-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  margin-bottom: 16px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.network-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg, #f8fafc);
  color: var(--text, #1e293b);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border, #e2e8f0);
  transition: all 0.2s ease;
}
.network-link:hover {
  border-color: var(--primary, #3b82f6);
  color: var(--primary, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.network-icon { font-size: 1.1rem; }
