/* =========================================================================
   lunox — Design System
   Soft · Pastel · Feminine · Calm · Trustworthy · RTL Persian
   ========================================================================= */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  /* Brand palette — soft pastels */
  --pink-50:  #fff5f8;
  --pink-100: #ffe4ee;
  --pink-200: #ffc9dd;
  --pink-300: #ffa6c6;
  --pink-400: #ff7fb0;
  --pink-500: #f75c9a;
  --pink-600: #e34484;

  --lilac-100: #f1e9ff;
  --lilac-200: #e2d4ff;
  --lilac-300: #cbb3ff;
  --lilac-400: #b194f7;
  --lilac-500: #9a76e8;

  --peach-100: #ffeede;
  --peach-200: #ffd9bd;

  --cream:    #fffaf3;
  --white:    #ffffff;

  --ink-900: #3a2740;
  --ink-700: #5d4a63;
  --ink-500: #8a7a91;
  --ink-300: #b8acbf;

  /* Semantic / calendar */
  --c-period:   #ff7fb0;   /* period days */
  --c-period-soft: #ffe1ec;
  --c-fertile:  #c084fc;   /* fertile window */
  --c-fertile-soft: #f0e1ff;
  --c-ovul:     #9a76e8;   /* ovulation day */
  --c-ovul-soft: #e7dcff;
  --c-pms:      #ffb38a;   /* PMS */
  --c-pms-soft: #ffead9;
  --c-safe:     #b9eede;   /* low fertility */
  --c-safe-soft:#e6f9f3;

  /* Surfaces */
  --bg:        #fff7fb;
  --bg-grad:   linear-gradient(135deg, #fff7fb 0%, #fdf4ff 45%, #f4efff 100%);
  --card:      #ffffff;
  --card-soft: #fff9fd;

  --shadow-sm: 0 2px 8px rgba(214, 130, 170, 0.08);
  --shadow:    0 8px 30px rgba(190, 120, 170, 0.12);
  --shadow-lg: 0 18px 50px rgba(170, 110, 160, 0.18);
  --shadow-glow: 0 10px 40px rgba(247, 92, 154, 0.25);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --grad-primary: linear-gradient(135deg, #ff9bc0 0%, #f75c9a 55%, #b194f7 120%);
  --grad-soft:    linear-gradient(135deg, #fff0f6 0%, #f6ecff 100%);
  --grad-lilac:   linear-gradient(135deg, #cbb3ff 0%, #9a76e8 100%);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink-900);
  line-height: 1.75;
  font-size: 16px;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink-900); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.4; color: var(--ink-900); }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pink-600);
  background: var(--pink-100);
  padding: .4em 1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.muted { color: var(--ink-500); }
.tiny { font-size: .8rem; }

/* ---------- Layout helpers ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }
.gap-lg { gap: 1.75rem; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 2.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 46px rgba(247, 92, 154, .35); }
.btn-soft {
  background: var(--pink-100);
  color: var(--pink-600);
}
.btn-soft:hover { background: var(--pink-200); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.7);
  color: var(--ink-700);
  border: 1.5px solid var(--pink-200);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--pink-400); color: var(--pink-600); }
.btn-white {
  background: #fff;
  color: var(--pink-600);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 1em 2em; }
.btn-sm { font-size: .85rem; padding: .55em 1em; }
.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.card-soft {
  background: var(--card-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45em .95em;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  background: var(--pink-100);
  color: var(--pink-600);
  transition: all .2s var(--ease);
}
.chip-soft { background: var(--lilac-100); color: var(--lilac-500); }
.chip-mint { background: var(--c-safe-soft); color: #2a9d7c; }
.chip-peach { background: var(--peach-100); color: #d98a4a; }

/* selectable chips (symptoms) */
.selectable {
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  background: var(--bg);
}
.selectable:hover { background: var(--pink-100); transform: translateY(-2px); }
.selectable.selected {
  background: var(--pink-200);
  color: var(--pink-600);
  border-color: var(--pink-400);
  box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .5rem;
  color: var(--ink-700);
}
.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--pink-100);
  background: var(--cream);
  transition: border .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px var(--pink-100);
}
.textarea { resize: vertical; min-height: 90px; }

/* ---------- Trust badge ---------- */
.trust {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-500);
  background: rgba(255,255,255,.7);
  padding: .5em 1em;
  border-radius: 999px;
}
.trust svg { color: #6bbf9e; flex-shrink: 0; }

.disclaimer {
  font-size: .82rem;
  color: var(--ink-500);
  background: var(--lilac-100);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  line-height: 1.7;
}
.disclaimer svg { color: var(--lilac-500); flex-shrink: 0; margin-top: .2em; }

/* =========================================================================
   Landing page
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 251, .8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 200, 221, .4);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.4rem; color: var(--ink-900); }
.brand .logo-mark {
  width: 42px; height: 42px;
  background: var(--grad-primary);
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
  font-size: 1.2rem;
}
.nav-links { display: flex; gap: .4rem; align-items: center; }
.nav-links a {
  padding: .55em 1em;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all .2s;
  font-size: .95rem;
}
.nav-links a:hover { background: var(--pink-100); color: var(--pink-600); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-700); max-width: 30ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.hero-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.stat-mini { text-align: center; }
.stat-mini b { display: block; font-size: 1.6rem; color: var(--pink-600); font-weight: 800; }
.stat-mini span { font-size: .82rem; color: var(--ink-500); }

/* Hero visual — phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 90vw;
  background: #fff;
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--pink-100);
  position: relative;
}
.phone-screen {
  background: var(--grad-soft);
  border-radius: 32px;
  padding: 1.4rem 1.1rem;
  min-height: 460px;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #fff; border-radius: 0 0 16px 16px;
  z-index: 2;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(8px); z-index: -1;
}
.blob-1 { width: 220px; height: 220px; background: var(--pink-200); top: -40px; left: -40px; opacity:.6; }
.blob-2 { width: 180px; height: 180px; background: var(--lilac-200); bottom: -30px; right: -30px; opacity:.55; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  border: 1px solid rgba(255, 200, 221, .3);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.feature h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.feature p { color: var(--ink-500); font-size: .95rem; }

/* Steps / how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative; text-align: center; padding: 1.5rem;
}
.step .num {
  width: 54px; height: 54px; margin: 0 auto 1rem;
  background: var(--grad-primary);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}

/* Testimonial */
.quote-card {
  background: var(--grad-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.7);
}
.quote-card .stars { color: #ffb84d; font-size: 1.2rem; letter-spacing: 3px; }

/* CTA band */
.cta-band {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn-white { margin-top: 1.5rem; }

/* Footer */
.site-footer {
  background: #2f1d38;
  color: #d9c9e0;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { color: #c7b3d0; display: block; padding: .3em 0; font-size: .92rem; transition: color .2s; }
.site-footer a:hover { color: var(--pink-300); }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem;
}

/* =========================================================================
   App shell (dashboard & inner pages)
   ========================================================================= */
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

.sidebar {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--pink-100);
  padding: 1.4rem 1rem;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 40;
}
.side-brand { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem 1.4rem; font-weight: 800; font-size: 1.25rem; }
.side-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink-700);
  text-align: right;
  width: 100%;
  transition: all .2s;
  font-size: .95rem;
}
.side-nav a:hover, .side-nav button:hover { background: var(--pink-100); color: var(--pink-600); }
.side-nav a.active, .side-nav button.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.side-nav .ico-box { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.5); display: grid; place-items: center; font-size: 1.05rem; }
.side-nav a.active .ico-box, .side-nav button.active .ico-box { background: rgba(255,255,255,.25); }
.side-nav .nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-300); padding: 1.2rem .8rem .4rem; font-weight: 700; }
.side-user {
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--pink-100);
  display: flex; align-items: center; gap: .7rem;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }

.main { padding: clamp(1.2rem, 3vw, 2.2rem); max-width: 100%; overflow-x: hidden; }
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap;
}
.app-header .greet h2 { font-size: 1.5rem; }
.app-header .greet p { color: var(--ink-500); font-size: .92rem; }
.topbar-actions { display: flex; gap: .6rem; align-items: center; }
.app-search {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px; padding: .55rem 1rem;
  box-shadow: var(--shadow-sm);
}
.app-search input { border: none; background: none; outline: none; width: 180px; }

.mobile-topbar { display: none; }

/* view animation */
.view { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Dashboard widgets
   ========================================================================= */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Cycle ring */
.cycle-card {
  background: var(--grad-soft);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.ring-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto .8rem; }
.ring-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transform-origin: center;
}
.ring-track { fill: none; stroke: var(--pink-100); stroke-width: 16; }
.ring-prog { fill: none; stroke: url(#ringGrad); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-center b { font-size: 2.8rem; font-weight: 800; line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ring-center span { font-size: .85rem; color: var(--ink-500); margin-top: .2rem; }

.phase-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55em 1.2em; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
}
.phase-menstrual { background: var(--c-period-soft); color: var(--c-period); }
.phase-follicular { background: var(--c-safe-soft); color: #2a9d7c; }
.phase-ovulation  { background: var(--c-ovul-soft); color: var(--c-ovul); }
.phase-luteal     { background: var(--c-pms-soft); color: #d98a4a; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.qa-btn {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .92rem;
  transition: all .25s var(--ease-bounce);
  text-align: right;
}
.qa-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qa-btn .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }

/* mini stat cards */
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1.2rem;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem;
}
.stat-card .ico-circle { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-card b { font-size: 1.5rem; display: block; font-weight: 800; }
.stat-card span { font-size: .82rem; color: var(--ink-500); }

/* list */
.soft-list { display: flex; flex-direction: column; gap: .6rem; }
.soft-list li {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg); font-size: .92rem;
}
.soft-list .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* =========================================================================
   Calendar
   ========================================================================= */
.cal-wrap {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; gap: 1rem; }
.cal-nav { display: flex; align-items: center; gap: .5rem; }
.cal-nav h3 { font-size: 1.3rem; }
.cal-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-grid-head div { text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-300); padding: .4rem 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600;
  position: relative; cursor: pointer;
  transition: all .2s var(--ease);
  color: var(--ink-700);
  background: var(--bg);
  border: 2px solid transparent;
}
.cal-cell:hover { background: var(--pink-100); transform: scale(1.05); }
.cal-cell.out { opacity: .35; cursor: default; }
.cal-cell.out:hover { background: var(--bg); transform: none; }
.cal-cell.today { border-color: var(--pink-400); font-weight: 800; }
.cal-cell.period { background: var(--c-period-soft); color: var(--c-period); }
.cal-cell.period::after { content:''; position:absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--c-period); }
.cal-cell.predicted { background: repeating-linear-gradient(45deg, var(--c-period-soft), var(--c-period-soft) 5px, #fff 5px, #fff 10px); color: var(--c-period); }
.cal-cell.fertile { background: var(--c-fertile-soft); color: var(--c-fertile); }
.cal-cell.ovulation { background: var(--c-ovul-soft); color: var(--c-ovul); font-weight: 800; box-shadow: inset 0 0 0 2px var(--c-ovul); }
.cal-cell.ovulation::before { content: '✦'; position: absolute; top: 3px; font-size: .6rem; }
.cal-cell.pms { background: var(--c-pms-soft); color: var(--c-pms); }
.cal-cell.selected { box-shadow: inset 0 0 0 2px var(--pink-500); }

.cal-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .82rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }

.cal-day-detail {
  background: var(--card-soft); border-radius: var(--radius); padding: 1.2rem;
  border: 1px solid var(--pink-100);
}

/* =========================================================================
   Partner / clinic / misc
   ========================================================================= */
.doctor-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: all .3s; border: 1px solid rgba(255,200,221,.3);
  display: flex; flex-direction: column;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doctor-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  display: grid; place-items: center; font-size: 3rem; color: #fff;
  margin-bottom: 1rem;
}
.doctor-card h3 { font-size: 1.15rem; }
.rating { display: flex; align-items: center; gap: .3rem; color: #ffb84d; font-weight: 700; }
.doc-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.slots { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.slot {
  padding: .35em .8em; border-radius: 8px; font-size: .8rem; font-weight: 600;
  background: var(--lilac-100); color: var(--lilac-500);
}

.partner-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* toggles / switches */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem; background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: .6rem;
}
.switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: var(--pink-100); border-radius: 999px;
  transition: .3s; cursor: pointer;
}
.slider::before {
  content:''; position: absolute; width: 20px; height: 20px; right: 4px; top: 4px;
  background: #fff; border-radius: 50%; transition: .3s; box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.switch input:checked + .slider { background: var(--grad-primary); }
.switch input:checked + .slider::before { transform: translateX(-22px); }

/* result box for calculators */
.result-box {
  background: var(--grad-soft); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.result-big { font-size: 3rem; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.timeline { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.timeline-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  text-align: right;
}
.timeline-item .ti-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }

/* progress bar */
.progress { height: 12px; background: var(--pink-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; transition: width 1s var(--ease); }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 140px; padding-top: 1rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; justify-content: flex-end; }
.bar .bar-fill {
  width: 70%; background: var(--grad-primary); border-radius: 8px 8px 0 0;
  transition: height .8s var(--ease-bounce); min-height: 4px;
}
.bar span { font-size: .72rem; color: var(--ink-500); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(60, 30, 50, .45);
  backdrop-filter: blur(4px); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.show { display: flex; animation: fadeUp .3s var(--ease); }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 1.8rem;
  animation: popIn .35s var(--ease-bounce);
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-close { font-size: 1.4rem; color: var(--ink-300); width: 36px; height: 36px; border-radius: 50%; }
.modal-close:hover { background: var(--pink-100); color: var(--pink-600); }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.toast {
  background: #fff; color: var(--ink-900); padding: .9rem 1.4rem;
  border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; gap: .5rem;
  animation: toastIn .4s var(--ease-bounce);
  border: 1px solid var(--pink-100);
}
.toast svg { color: #6bbf9e; }
@keyframes toastIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* empty state */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-500); }
.empty .emoji { font-size: 2.6rem; display: block; margin-bottom: .6rem; }

/* tabs */
.tabs { display: flex; gap: .4rem; background: var(--bg); padding: .4rem; border-radius: 999px; margin-bottom: 1.4rem; width: fit-content; }
.tab {
  padding: .6em 1.3em; border-radius: 999px; font-weight: 700; font-size: .9rem;
  color: var(--ink-500); transition: all .25s;
}
.tab.active { background: #fff; color: var(--pink-600); box-shadow: var(--shadow-sm); }

/* section title */
.sect-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; gap: 1rem; }
.sect-title h2 { font-size: 1.4rem; }

/* color helper backgrounds */
.bg-pink { background: var(--pink-100); color: var(--pink-600); }
.bg-lilac { background: var(--lilac-100); color: var(--lilac-500); }
.bg-mint { background: var(--c-safe-soft); color: #2a9d7c; }
.bg-peach { background: var(--peach-100); color: #d98a4a; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-4, .col-8 { grid-column: span 6; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; right: 0; top: 0; width: 280px; height: 100vh;
    transform: translateX(100%); transition: transform .35s var(--ease);
    z-index: 80;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(60,30,50,.4); z-index: 70;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 0; margin-bottom: 1rem; position: sticky; top: 0; z-index: 30;
    background: var(--bg); border-radius: var(--radius);
  }
  .hamburger { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 1.3rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; padding: 1rem; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  }
  .menu-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .col-4, .col-6, .col-8 { grid-column: span 12; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .cal-cell { font-size: .75rem; }
  .app-search { display: none; }
  .dash-grid { gap: .9rem; }
  .ring-wrap { width: 170px; height: 170px; }
  .ring-center b { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* utility */
.hidden { display: none !important; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--pink-100); border-top-color: var(--pink-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* float anim */
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--pink-50); }
::-webkit-scrollbar-thumb { background: var(--pink-200); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink-300); }
