:root {
  --my-pink: #C45C7A;
  --my-pink-light: #F8E8EE;
  --my-rose: #E8B4C4;
  --my-white: #FFFFFF;
  --my-offwhite: #FBF7F8;
  --my-ink: #2C2426;
  --my-green: #7BA686;
  --my-orange: #E8A87C;
  --bg: var(--my-offwhite);
  --ink: var(--my-ink);
  --brand: var(--my-pink);
  --brand-dark: #A24B66;
  --gold: var(--my-rose);
  --card: var(--my-white);
  --err: #b42318;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

html, body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 92, 122, 0.18), transparent 50%),
    radial-gradient(900px 500px at 110% 10%, rgba(232, 180, 196, 0.28), transparent 45%),
    var(--bg);
  color: var(--ink);
}

.mud-appbar {
  backdrop-filter: blur(24px) saturate(140%);
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(196, 92, 122, 0.12);
}

.fluent-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(44, 36, 38, 0.06);
  padding: 1rem 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(196, 92, 122, 0.12);
  box-shadow: 0 6px 18px rgba(44, 36, 38, 0.05);
}

.feature-tile strong { color: var(--brand-dark); font-size: .98rem; }
.feature-tile span { color: #6b5e62; font-size: .82rem; line-height: 1.4; }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 520px) {
  .chip-grid { grid-template-columns: repeat(4, 1fr); }
}

.fluent-chip {
  border: 1px solid rgba(196, 92, 122, 0.18);
  background: rgba(255,255,255,.82);
  border-radius: 12px;
  padding: 12px 10px;
  font: inherit;
  cursor: pointer;
  min-height: 52px;
}
.fluent-chip.active {
  background: var(--my-pink);
  color: #fff;
  border-color: transparent;
}

.app-bottom-nav {
  position: fixed;
  inset-inline: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  padding: .35rem .4rem;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(196, 92, 122, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(44, 36, 38, 0.12);
}

.app-page { padding-bottom: 6.2rem; max-width: 720px; margin-inline: auto; }

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--my-pink-light);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--my-pink);
  border-radius: 999px;
}

.page-wrap {
  padding: 1.25rem;
}

.landing {
  background: linear-gradient(160deg, #ffffff 0%, var(--my-pink-light) 100%);
  border-radius: 1.25rem;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--my-pink-light) 0%, #fff 55%, var(--my-rose) 100%);
}

.auth-card {
  width: min(420px, 92vw);
  background: var(--card);
  border-radius: 1.1rem;
  padding: 1.75rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.auth-card-login { gap: 0.85rem; }
.auth-brand h1 { margin: 0; color: var(--brand-dark); text-align: center; }
.auth-brand .muted { text-align: center; margin: .25rem 0 0; }

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--my-pink-light);
  padding: 6px;
  border-radius: 14px;
}
.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .88rem;
  -webkit-tap-highlight-color: transparent;
}
.auth-tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(196, 92, 122, 0.18);
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}
.auth-hint { margin: 0; line-height: 1.5; }
.auth-foot { text-align: center; margin: .35rem 0 0; }

.auth-card h1 { margin: 0; color: var(--brand-dark); }
.auth-card label { font-size: .9rem; }
.auth-card input[type=text],
.auth-card input[type=password],
.auth-card input[type=email],
.auth-card input[type=tel],
.auth-card input:not([type=checkbox]) {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid #e0c8d0;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}

.auth-card button,
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  margin-top: .15rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
}
.auth-btn-primary,
.auth-card button[type=submit] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 92, 122, 0.28);
}
.auth-btn-primary:active,
.auth-card button[type=submit]:active {
  transform: scale(0.98);
  background: var(--brand-dark);
}
.auth-btn-google {
  background: #fff;
  color: #1f2a2e;
  border: 1px solid #e0c8d0 !important;
  box-shadow: 0 2px 8px rgba(44, 36, 38, 0.06);
}
.auth-btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid #e0c8d0 !important;
  font-weight: 600;
}

.auth-error {
  background: #fdecea;
  color: var(--err);
  padding: .6rem .7rem;
  border-radius: .5rem;
}

.muted { color: #5b6d72; font-size: .9rem; }
.muted a, .lang-links a { color: var(--brand); }
.row-check { display: flex; gap: .4rem; align-items: center; min-height: 44px; }

.auth-google-wrap {
  margin-top: 0.75rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8a9aa0;
  font-size: .85rem;
  margin: 0.4rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d5e1e4;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  border: 1px solid #d5e1e4;
  border-radius: 14px;
  background: #fff;
  color: #1f2a2e;
  text-decoration: none;
  font-weight: 700;
}
.google-btn:hover { background: #f7fbfc; }
.lang-links { display: flex; gap: .75rem; justify-content: center; }

#blazor-error-ui {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  background: #fff3cd;
  padding: .6rem 1rem;
  z-index: 9999;
}
#blazor-error-ui.show { display: block; }

.pwa-banner {
  display: none;
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  z-index: 40;
  align-items: center;
  gap: 8px;
}
.pwa-banner.pwa-banner-visible { display: flex; }
html.mahyar-android .pwa-banner { display: none !important; }
.legal-page { max-width: 40rem; text-align: start; }
.legal-page h2 { font-size: 1.05rem; color: var(--brand-dark); margin: 1.2rem 0 .4rem; }
.legal-page ul { padding-inline-start: 1.2rem; line-height: 1.7; }
.pwa-btn {
  margin-inline-start: auto;
  background: var(--my-pink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}
.pwa-dismiss { background: transparent; color: #fff; border: 0; font-size: 1.2rem; }

.hero-kicker { letter-spacing: .04em; color: var(--brand-dark); font-size: .85rem; }

.status-hero {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, #C45C7A 0%, #A24B66 55%, #E8B4C4 130%);
  box-shadow: 0 14px 32px rgba(196, 92, 122, 0.28);
}
.status-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.status-kicker { font-size: .8rem; opacity: .9; }
.status-days {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  margin: .35rem 0;
}
.status-title { font-size: 1.05rem; font-weight: 600; }
.status-sub { font-size: .82rem; opacity: .92; margin-top: .2rem; }
.status-hero .progress-track { background: rgba(255,255,255,.28); margin-top: .9rem; }
.status-hero .progress-fill { background: #fff; }

.app-search {
  width: 100%;
  border: 1px solid rgba(196, 92, 122, 0.16);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: .7rem 1rem;
  font: inherit;
  margin-bottom: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}
@media (max-width: 380px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  min-height: 96px;
}
.service-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #f7eef5 0%, #ebe4f7 100%);
  box-shadow: 0 10px 22px rgba(123, 107, 154, 0.14), inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
}
.service-icon.is-soft {
  padding: 0;
  background: linear-gradient(160deg, #f8eef6, #e8e6fb);
}
.service-icon .mud-icon-root { color: #fff !important; }
.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-tile span {
  font-size: .72rem;
  text-align: center;
  line-height: 1.25;
  color: #4a3f43;
  font-weight: 600;
}
.service-badge {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-start: -4px;
  background: #C45C7A;
  color: #fff;
  font-size: .62rem;
  border-radius: 999px;
  padding: 1px 6px;
  z-index: 2;
}

/* Flo-like soft chips (mood / symptoms) */
.soft-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 76px;
}
.soft-chip-disk {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(165deg, #f4eefc 0%, #f7e8f1 55%, #ebe7fb 100%);
  box-shadow: 0 8px 18px rgba(140, 120, 160, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.soft-chip:hover .soft-chip-disk,
.soft-chip.is-selected .soft-chip-disk {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(140, 120, 160, 0.22);
}
.soft-chip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.soft-chip-check {
  position: absolute;
  inset-inline-end: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5fbf7a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.soft-chip-badge {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-start: -4px;
  background: #C45C7A;
  color: #fff;
  font-size: .62rem;
  border-radius: 999px;
  padding: 1px 6px;
}
.soft-chip-label {
  font-size: .7rem;
  text-align: center;
  line-height: 1.2;
  color: #5a4d52;
  font-weight: 600;
}
.soft-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  justify-items: center;
}
@media (min-width: 520px) {
  .soft-chip-grid { grid-template-columns: repeat(5, 1fr); }
}
.soft-section {
  background: #fff7fa;
  border-radius: 18px;
  padding: 14px 12px 16px;
  margin-bottom: 14px;
}
.soft-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #5a3f4a;
  margin: 0 0 12px;
}
.soft-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.soft-summary-card {
  background: #ffe8f0;
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.soft-summary-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.soft-summary-card strong {
  font-size: .78rem;
}
.soft-summary-card span {
  font-size: .72rem;
  color: #7a6670;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #8a7a7e;
  font-size: .68rem;
  padding: .25rem 0;
}
.nav-item.active { color: var(--brand-dark); font-weight: 700; }
.nav-item-main .nav-fab {
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 14px;
  background: var(--my-pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 18px rgba(196, 92, 122, .35);
}
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } }

.app-page:has(.cal-page) {
  max-width: 960px;
  padding-block-start: .4rem;
  padding-inline: .45rem;
}
.cal-page {
  min-height: calc(100dvh - 7.8rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-title {
  text-align: center;
}
.cal-title .mud-typography { margin: 0; }
.cal-today-link {
  display: block;
  margin-inline: auto;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  padding: 0;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: .75rem;
  color: #8a7a7e;
  font-weight: 600;
}
.cal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  min-height: 22rem;
}
.cal-cell {
  position: relative;
  min-height: 3.4rem;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--my-white);
  color: var(--my-ink);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: .35rem .15rem .3rem;
  box-shadow: inset 0 0 0 1px rgba(196, 92, 122, 0.08);
}
.cal-empty {
  background: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.cal-num { font-weight: 700; line-height: 1.15; font-size: 1rem; }
.cal-num-g {
  font-size: .68rem;
  font-weight: 500;
  opacity: .72;
  line-height: 1.1;
  margin-top: 1px;
}
.cal-num-cycle {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 3px;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
  opacity: .78;
  pointer-events: none;
}
.cal-period .cal-num-g,
.cal-ovulation .cal-num-g,
.cal-period .cal-num-cycle,
.cal-ovulation .cal-num-cycle { opacity: .9; }
.cal-period .cal-num-cycle { color: #fff; }
.cal-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: auto;
  min-height: 8px;
}
.cal-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.mark-symptom { background: #A24B66; }
.mark-mood { background: #D97890; }
.mark-water { background: #5B9BD5; }
.mark-med { background: #C45C7A; }
.mark-note { background: #E8A87C; }
.mark-fertility { background: #7BA686; }
.mark-sleep { background: #7B6B9A; }
.cal-period .cal-mark { box-shadow: 0 0 0 1px #fff; }
.cal-today { box-shadow: inset 0 0 0 2px var(--my-pink); }
.cal-selected { box-shadow: inset 0 0 0 2px #7B4B9A; }
.cal-period { background: var(--my-rose); color: #fff; }
.cal-predicted {
  background: repeating-linear-gradient(-45deg, #F8E8EE, #F8E8EE 5px, #fff 5px, #fff 9px);
  color: var(--brand-dark);
}
.cal-fertile { background: #F6E7A8; }
.cal-ovulation {
  background: #C5E4CC;
  box-shadow: inset 0 0 0 2px var(--my-green);
}
.cal-cell.cal-selected {
  box-shadow: inset 0 0 0 2px #7B4B9A;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: .72rem;
  color: #4a3f43;
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.swatch-period { background: var(--my-rose); }
.swatch-predicted {
  background: repeating-linear-gradient(-45deg, #F8E8EE, #F8E8EE 3px, #fff 3px, #fff 6px);
  box-shadow: inset 0 0 0 1px #E8B4C4;
}
.swatch-fertile { background: #F6E7A8; }
.swatch-ovulation { background: #C5E4CC; box-shadow: inset 0 0 0 1px var(--my-green); }
.cal-day-panel {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(196, 92, 122, 0.14);
  border-radius: 14px;
  padding: .85rem .95rem;
}
.cal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cal-day-date { font-weight: 700; }
.cal-day-sub { font-size: .8rem; color: #6b5e62; }
.cal-day-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .65rem; }
.cal-tag {
  font-size: .72rem;
  background: var(--my-pink-light);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 8px;
}
.tag-period { background: var(--my-rose); color: #fff; }
.tag-predicted { background: #F8E8EE; }
.tag-fertile { background: #F6E7A8; color: #5a4a20; }
.tag-ovulation { background: #C5E4CC; }
.cal-day-empty { font-size: .8rem; color: #8a7a7e; }

.cal-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(44, 36, 38, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.cal-sheet {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  padding: 1.1rem 1rem 1rem;
  box-shadow: 0 -8px 40px rgba(44, 36, 38, 0.18);
  display: grid;
  gap: 0.75rem;
}
.cal-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #e0c8d0;
  margin: 0 auto .2rem;
}
.cal-sheet-title { font-weight: 700; font-size: 1.05rem; color: var(--brand-dark); text-align: center; }
.cal-sheet-sub { font-size: .85rem; color: #6b5e62; text-align: center; margin: 0; }
.cal-sheet-actions { display: grid; gap: 10px; }
.cal-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cal-sheet-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 92, 122, 0.28);
}
.cal-sheet-btn-secondary {
  background: var(--my-pink-light);
  color: var(--brand-dark);
}
.cal-sheet-btn-ghost {
  background: transparent;
  color: #6b5e62;
  font-weight: 600;
}
.onboard-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: #6b5e62;
  font-weight: 600;
}
.onboard-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--my-pink-light);
  overflow: hidden;
}
.onboard-progress-bar > div {
  height: 100%;
  background: var(--my-pink);
  border-radius: 999px;
  transition: width .25s ease;
}
.onboard-actions {
  display: grid;
  gap: 10px;
  margin-top: 1rem;
}
.onboard-spin {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0;
}
.onboard-spin-logo {
  animation: onboard-spin 1.1s linear infinite;
}
@keyframes onboard-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.auth-onboard { max-width: 28rem; margin: 0 auto; }
.onboard-prev {
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(196, 92, 122, 0.12);
}
.analysis-hint {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(196, 92, 122, 0.16);
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.analysis-hint strong { color: var(--brand-dark); display: block; margin-bottom: .35rem; }
.analysis-hint p { margin: 0; color: #6b5e62; font-size: .88rem; line-height: 1.55; }

/* Adaptive date: calendar on tablet/desktop, cylinder wheel on phone */
.adaptive-date { margin-bottom: 1rem; }
.adaptive-date-label {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-dark, #5a3a44);
}
.adaptive-date-clear {
  border: 0;
  background: transparent;
  color: var(--my-pink);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.adaptive-date-clear-desktop {
  display: inline-block;
  margin-top: .25rem;
}
.adaptive-date-mobile { display: none; }
.adaptive-date-desktop { display: block; }

.date-wheel {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 40%, #fff7f9 100%);
  border: 1px solid rgba(196, 92, 122, 0.18);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.date-wheel-cols {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 0;
  direction: rtl;
}
.date-wheel-col-wrap { min-width: 0; }
.date-wheel-col-caption {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: #9a7a84;
  padding: .55rem 0 .15rem;
  letter-spacing: .02em;
}
.date-wheel-col {
  height: 200px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}
.date-wheel-col::-webkit-scrollbar { display: none; }
.date-wheel-spacer { height: 80px; flex-shrink: 0; }
.date-wheel-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: #a89299;
  transition: color .15s ease, transform .15s ease, font-weight .15s ease;
}
.date-wheel-item.is-active {
  color: var(--brand-dark, #5a3a44);
  font-weight: 800;
  transform: scale(1.06);
}
.date-wheel-center {
  pointer-events: none;
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(28px + 80px);
  height: 40px;
  border-radius: 12px;
  background: rgba(196, 92, 122, 0.12);
  border: 1px solid rgba(196, 92, 122, 0.2);
  z-index: 1;
}
.date-wheel-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 2;
}
.date-wheel-fade-top {
  top: 28px;
  background: linear-gradient(180deg, rgba(255,247,249,.96), rgba(255,247,249,0));
}
.date-wheel-fade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255,247,249,.96), rgba(255,247,249,0));
}
.date-wheel-empty {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px dashed rgba(196, 92, 122, 0.35);
  background: rgba(255,255,255,.65);
  color: #8a6f78;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .adaptive-date-desktop { display: none !important; }
  .adaptive-date-mobile { display: block; }
  .adaptive-date-label { display: flex; }
}

/* Gender / choice chips */
.sex-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.sex-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 1.5px solid rgba(196, 92, 122, 0.2);
  background: rgba(255,255,255,.75);
  color: #6b5e62;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sex-pick .mud-icon-root { font-size: 1.75rem !important; }
.sex-pick:active { transform: scale(.98); }
.sex-pick.is-selected {
  border-color: var(--my-pink);
  background: linear-gradient(160deg, rgba(196, 92, 122, 0.14), rgba(255,255,255,.9));
  color: var(--brand-dark, #5a3a44);
  box-shadow: 0 8px 18px rgba(196, 92, 122, 0.18);
}
.sex-pick-female.is-selected { border-color: #C45C7A; }
.sex-pick-male.is-selected { border-color: #7BA6C4; background: linear-gradient(160deg, rgba(123, 166, 196, 0.16), rgba(255,255,255,.9)); }
