@import url('/fonts.css');
:root{font-family:Arial,Helvetica,sans-serif;color:#352c36;background:#f8f7f9;font-synthesis:none;--plum:#613955;--rose:#d75279;--muted:#756d79;--line:#eae5eb}*{box-sizing:border-box}body{margin:0;background:#faf7f9;min-height:100vh;position:relative;overflow-x:hidden}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:var(--plum)}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh;position:relative;z-index:1}.sidebar{background:rgba(255,255,255,0.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font:48px Georgia;color:var(--plum);letter-spacing:-3px;margin:0 14px 5px}.brand span{color:#d75279}.tagline{font-size:12px;letter-spacing:1.5px;color:var(--muted);margin:0 14px 48px}.nav{display:grid;gap:9px}.nav button{text-align:left;padding:15px 18px;border-radius:12px;font-size:15px;display:flex;align-items:center;gap:14px}.nav button.active{background:#f3eaf1;color:var(--plum);font-weight:700}.nav svg{width:20px;height:20px}.sidefoot{margin-top:auto;padding:22px 12px 0;font-size:13px;line-height:1.7;color:var(--muted)}.sidefoot strong{color:var(--plum)}main{max-width:1350px;width:100%;padding:32px 44px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.eyebrow{font-size:12px;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);font-weight:700}.device{border:1px solid var(--line);border-radius:30px;padding:10px 16px;font-size:13px;background:rgba(255,255,255,0.92)}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}h1{font:38px/1.2 Georgia;margin:0 0 9px;letter-spacing:-1px}h2{font:25px/1.3 Georgia;margin:0 0 14px}h3{font-size:16px;margin:0 0 12px}p{line-height:1.6;margin:8px 0;color:var(--muted)}.btn{background:var(--plum);color:white;border-radius:12px;padding:14px 22px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.light{background:#f3edf2;color:var(--plum)}.btn.danger{background:#a6384f}.grid{display:grid;grid-template-columns:1.13fr 1fr;gap:24px}.card{background:rgba(255,255,255,0.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 4px 20px rgba(97,57,85,0.03)}.cycle-card{background:rgba(245,237,243,0.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);position:relative;overflow:hidden;min-height:375px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.pill{font-size:12px;background:#fff9;border:1px solid #fff;border-radius:30px;padding:7px 10px;color:var(--plum)}.ring{width:248px;height:248px;position:relative;margin:12px auto 18px;display:grid;place-items:center}.ring svg{width:100%;height:100%;position:absolute;transform:rotate(-90deg)}.ring-inner{background:#fff9;border-radius:50%;width:188px;height:188px;text-align:center;display:flex;flex-direction:column;justify-content:center}.ring-inner strong{font:65px Georgia;color:var(--plum);line-height:1.1}.ring-inner span{font-size:13px;color:var(--muted)}.cycle-caption{text-align:center;font-size:14px;color:var(--plum)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat{padding:21px}.stat small{color:var(--muted);font-size:13px}.stat strong{font:22px Georgia;display:block;margin:12px 0 8px;color:var(--plum)}.stat p{font-size:13px;margin:0}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.calendar-head h2{margin:0}.month-buttons{display:flex;gap:5px}.iconbtn{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;font-size:20px}.week,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.week{font-size:12px;color:var(--muted);text-align:center;margin-bottom:14px}.day{aspect-ratio:1;min-height:34px;max-height:47px;border-radius:50%;font-size:14px;margin:auto;width:100%;position:relative}.day.today{outline:2px solid var(--plum);outline-offset:2px}.day.period{background:#f5bfd0;color:#76283e}.day.fertile{background:#e9dcf2;color:#613777}.day.ovulation{background:#765287;color:white}.day.predicted{border:1px dashed #ba4b6e;background:#fff3f7;color:#8b3250}.day.safe-deep,.day.safe{background:#c8edd6;color:#0b5327;font-weight:700;border:1px solid #7bc698}.day.safe-deep:hover,.day.safe:hover{background:#b1e4c2}.day.safe-faint{background:#f1f9f4;color:#276840;border:1.5px dashed #8ecfaa;font-weight:500}.day.safe-faint:hover{background:#e0f3e7}.day.selected{box-shadow:0 0 0 3px #cfc4ce}.legend{display:flex;flex-wrap:wrap;gap:15px;font-size:12px;color:var(--muted);margin-top:24px}.legend span:before{content:'';display:inline-block;width:8px;height:8px;background:#f5bfd0;border-radius:50%;margin-right:6px}.legend span:nth-child(2):before{background:#e9dcf2}.legend span:nth-child(3):before{background:#765287}.legend span.legend-faint:before{background:#a4dcbc;border:1px dashed #5ea67e}.legend span.legend-deep:before,.legend span.legend-safe:before{background:#1e824c}.selected-info{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;font-size:13px;line-height:1.5;color:var(--muted)}.selected-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;flex-wrap:wrap}.forecast-summary{margin:6px 0 10px;font-size:13px;line-height:1.5;color:var(--muted)}.saved-tag{font-size:12px;color:#1e5e3a;margin:4px 0;font-weight:600}.text-safe-deep,.text-safe{color:#0b5327 !important}.text-safe-faint{color:#276840 !important}.text-fertile{color:#613777 !important}.text-ovulation{color:#765287 !important}.text-plum{color:var(--plum) !important}.ring-sub{font-size:12px !important;font-weight:600;color:var(--plum)}.status-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:16px;white-space:nowrap}.status-badge.safe-deep,.status-badge.safe{background:#c8edd6;color:#0b5327;border:1px solid #7bc698}.status-badge.safe-faint{background:#f1f9f4;color:#276840;border:1.5px dashed #8ecfaa}.status-badge.fertile{background:#e9dcf2;color:#613777;border:1px solid #d8c2e6}.status-badge.ovulation{background:#765287;color:white}.status-badge.period{background:#f5bfd0;color:#76283e;border:1px solid #e8a5ba}.status-badge.predicted{background:#fff3f7;color:#8b3250;border:1px dashed #ba4b6e}.status-badge.unknown{background:#ede8ec;color:#756d79}.lower{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.chips{display:flex;flex-wrap:wrap;gap:9px;margin:19px 0}.chip{border:1px solid var(--line);padding:11px 15px;border-radius:24px;font-size:14px}.chip.on{background:#f0e5ee;border-color:#b899ae;color:var(--plum)}.callout{border-left:3px solid #ab86a1;padding:4px 0 4px 15px;margin-top:24px;font-size:13px;line-height:1.6;color:var(--muted)}.textbtn{color:var(--plum);text-decoration:underline;padding:6px 0;font-size:14px}.note{font-size:13px;line-height:1.7}.empty{text-align:center;padding:28px 20px}.empty p{max-width:390px;margin:12px auto 20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:grid;gap:8px;font-size:14px;line-height:1.4;margin-bottom:18px}input,select,textarea{width:100%;padding:12px;border:1px solid #d9ced8;border-radius:9px;background:#fff;color:#352c36;min-width:0}textarea{resize:vertical;min-height:85px}dialog{border:1px solid var(--line);border-radius:22px;padding:30px;width:min(520px,92vw);max-height:90vh;box-shadow:0 30px 90px #30233333}dialog::backdrop{background:#20142366;backdrop-filter:blur(3px)}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modalhead h2{margin:0}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.error{color:#a32d48;font-size:14px}.row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.row small{display:block;color:var(--muted);margin-top:7px}.wide{max-width:850px}.reading{margin:20px 0;line-height:1.75}.reading summary{font-weight:600;cursor:pointer;padding:12px 0;color:var(--plum)}.reading p{font-size:15px}.meter{height:8px;background:#efe8ee;border-radius:6px;overflow:hidden;margin:12px 0}.meter div{height:100%;background:#a37294}.privacy-box{background:#f4eef3;border-radius:14px;padding:20px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#352c36;color:white;padding:14px 22px;border-radius:12px;z-index:5;display:none;max-width:90vw}.footer{font-size:12px;margin:28px 0 0;color:var(--muted)}.mobile-brand{display:none}.checklabel{display:flex;align-items:flex-start}.checklabel input{width:auto;margin-top:3px}.muted{color:var(--muted)}@media(min-width:1500px){main{padding:45px 60px}}@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}main{padding:25px}.sidebar{padding:28px 12px}.grid{gap:16px}.card{padding:21px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat strong{font-size:20px}}@media(max-width:800px){.shell{display:block}.sidebar{height:auto;position:fixed;top:auto;bottom:0;width:100%;padding:7px;background:white;z-index:3;border-top:1px solid var(--line)}.sidebar .brand,.tagline,.sidefoot{display:none}.nav{display:flex;justify-content:space-around;gap:0}.nav button{flex:1;padding:9px 2px;flex-direction:column;gap:6px;font-size:11px;border-radius:9px}.nav svg{width:20px}.mobile-brand{display:block;font:32px Georgia;color:var(--plum)}main{padding:24px 20px 105px}.topbar{margin-bottom:25px}.topbar .eyebrow{display:none}.heading{align-items:flex-start}h1{font-size:32px}.heading p{font-size:14px}.heading .btn{padding:12px 15px;white-space:nowrap}.grid,.lower{grid-template-columns:1fr}.stats{grid-template-columns:1fr;gap:10px;margin:16px 0}.stat{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:7px}.stat strong{margin:0;text-align:right}.stat p{grid-column:1/-1}.cycle-card{min-height:350px}.day{max-height:44px}.formgrid{grid-template-columns:1fr}.device{font-size:12px}.ring{width:230px;height:230px}.ring-inner{width:175px;height:175px}}
.btn.google{background:#fff;color:#3c4043;border:1px solid #dadce0;width:100%;margin-bottom:16px;box-shadow:0 1px 2px rgba(60,64,67,.08);transition:background .2s,box-shadow .2s;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:600}.btn.google:hover{background:#f8f9fa;box-shadow:0 1px 3px rgba(60,64,67,.2)}.btn.google svg{width:18px;height:18px;flex-shrink:0}.auth-divider{display:flex;align-items:center;text-align:center;margin:16px 0;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px}.auth-divider::before,.auth-divider::after{content:'';flex:1;border-bottom:1px solid var(--line)}.auth-divider:not(:empty)::before{margin-right:.8em}.auth-divider:not(:empty)::after{margin-left:.8em}.verify-box{background:#fdf6e9;border:1px solid #f5d799;border-radius:12px;padding:16px;margin:14px 0;font-size:13px;line-height:1.5;color:#855a00}
.email-optin-card{background:#faf6f9;border:1px solid #ebdbe5;border-radius:16px;padding:22px;margin-top:20px}.email-toggle-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f0e4ec}.email-toggle-row:last-child{border-bottom:none}.email-toggle-row label{margin:0;display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}.email-preview-frame{width:100%;height:380px;border:1px solid var(--line);border-radius:12px;background:#f8f7f9;margin-top:14px}
.oracle-hero{background:linear-gradient(135deg,#fcf8fb 0%,#f5eaf2 50%,#f0f7f3 100%);border:1px solid #ebdbe5;border-radius:22px;padding:32px 30px;margin-bottom:26px;position:relative;overflow:hidden}.oracle-hero h1{font:36px Georgia,serif;color:var(--plum);margin:0 0 10px}.oracle-hero p{font-size:15px;line-height:1.7;color:var(--muted);max-width:750px;margin:0 0 18px}.oracle-badges{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.oracle-badge{background:#ffffffcc;border:1px solid #e2d2de;border-radius:20px;padding:6px 14px;font-size:12px;font-weight:600;color:var(--plum);display:inline-flex;align-items:center;gap:6px}.oracle-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.oracle-chip{background:#fff;border:1px solid #e5d7e2;border-radius:20px;padding:9px 15px;font-size:13px;color:var(--plum);cursor:pointer;transition:all .18s ease;display:inline-flex;align-items:center;gap:6px}.oracle-chip:hover{background:#f3e8f1;border-color:var(--plum);transform:translateY(-1px)}.oracle-stream{display:grid;gap:20px;margin-bottom:24px}.oracle-bubble{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 3px 14px rgba(97,57,85,0.03);scroll-margin-top:20px}.oracle-bubble.user{background:#f7eef5;border-color:#ebd1e2;margin-left:auto;max-width:85%}.oracle-bubble.ai{background:#ede0eb;border-left:4px solid var(--plum);max-width:100%}.oracle-bubble-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px;font-weight:700;color:var(--plum);text-transform:uppercase;letter-spacing:1px}.oracle-content{font-size:15px;line-height:1.75;color:#352c36}.oracle-content h2,.oracle-content h3{font-family:Georgia,serif;color:var(--plum);margin:18px 0 8px}.oracle-content ul{padding-left:22px;margin:10px 0}.oracle-content li{margin-bottom:7px}.oracle-content strong{color:var(--plum)}.oracle-content blockquote{margin:14px 0;padding:10px 16px;background:#faf5f9;border-left:3px solid var(--rose);font-style:italic;color:#613955;border-radius:0 10px 10px 0}.oracle-input-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 20px;box-shadow:0 6px 24px rgba(97,57,85,0.06);position:sticky;bottom:20px;z-index:2}.oracle-form{display:flex;gap:12px;align-items:center}.oracle-textarea{flex:1;border:1px solid #ddd1db;border-radius:12px;padding:12px 16px;font-size:15px;line-height:1.4;outline:none;background:#faf8f9;transition:border .2s}.oracle-textarea:focus{border-color:var(--plum);background:#fff}.oracle-pulse{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--plum);font-style:italic;padding:12px 0}

/* ── PREGNANCY & CONCEPTION STYLING (FLOWERR LUXURY) ────────────────────────── */
.pregnancy-home-banner{background:linear-gradient(135deg,#fcf8fb 0%,#f5eaf2 50%,#eef8f2 100%);border:1px solid #ebdbe5;border-radius:22px;padding:26px 28px;margin-bottom:26px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;box-shadow:0 6px 24px rgba(97,57,85,0.04)}
.preg-banner-left{flex:1;min-width:280px}
.preg-badge-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.preg-badge{background:#ffffffcc;border:1px solid #e2d2de;border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;color:var(--plum);display:inline-flex;align-items:center;gap:5px}
.preg-badge.trimester{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
.preg-badge.due{background:#fef3c7;color:#92400e;border-color:#fde68a}
.preg-hero-title{font:26px Georgia,serif;color:var(--plum);margin:0 0 8px;line-height:1.3}
.preg-hero-sub{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 16px;max-width:680px}
.preg-banner-actions{display:flex;gap:10px;flex-wrap:wrap}
.preg-banner-visual{display:flex;justify-content:center;align-items:center}
.preg-circle{width:130px;height:130px;border-radius:50%;background:linear-gradient(135deg,#ffffff 0%,#faf4f8 100%);border:2px solid #ebdbe5;display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:0 8px 24px rgba(97,57,85,0.08)}
.preg-circle-emoji{font-size:42px;line-height:1;margin-bottom:4px}
.preg-circle-week{font-size:12px;font-weight:700;color:var(--plum)}
.preg-circle-pct{font-size:11px;color:var(--muted)}

.journey-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:22px 0 10px}
.journey-feature-box{background:#ffffffcc;border:1px solid #ebdbe5;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:6px}
.journey-feature-box .jfb-icon{font-size:26px}
.journey-feature-box strong{font-size:14px;color:var(--plum)}
.journey-feature-box p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}

.preg-status-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.preg-progress-track{width:100%;height:14px;background:#ede7ec;border-radius:10px;position:relative;margin:18px 0 24px;overflow:hidden}
.preg-progress-fill{height:100%;background:linear-gradient(90deg,var(--rose) 0%,#a855f7 50%,#059669 100%);border-radius:10px;transition:width .4s ease}
.preg-trimester-markers{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.preg-trimester-markers .marker.active{color:var(--plum);font-weight:700}

.week-nav-bar{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.week-nav-title{display:flex;align-items:center;font-size:15px;color:var(--plum)}

.preg-baby-hero{display:flex;gap:20px;align-items:center;padding:12px 0}
.preg-baby-avatar{width:96px;height:96px;border-radius:24px;background:#faf3f8;border:1px solid #ecdbe6;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.preg-baby-meta{flex:1}

.preg-body-section p{margin:4px 0 12px;font-size:14px;line-height:1.65;color:#4a3f49}

.preg-roadmap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:16px}
.roadmap-item{background:#faf8f9;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:5px;position:relative}
.roadmap-item.done{background:#f0fdf4;border-color:#bbf7d0}
.roadmap-item .rm-week{font-size:11px;font-weight:700;color:var(--plum);text-transform:uppercase;letter-spacing:.8px}
.roadmap-item.done .rm-week{color:#059669}
.roadmap-item strong{font-size:13px;color:#352c36;line-height:1.3}
.roadmap-item small{font-size:12px;color:var(--muted);line-height:1.4}

.preg-tab-toggle{display:flex;gap:8px;background:#faf5f9;border:1px solid #ebdbe5;border-radius:12px;padding:4px;margin-bottom:18px}
.preg-radio-label{flex:1;text-align:center;margin:0;cursor:pointer}
.preg-radio-label input{display:none}
.preg-radio-label span{display:block;padding:8px 6px;border-radius:8px;font-size:13px;font-weight:600;color:var(--muted);transition:all .2s}
.preg-radio-label input:checked + span{background:#fff;color:var(--plum);box-shadow:0 2px 6px rgba(97,57,85,0.08)}
.preg-calc-field{margin-bottom:14px}

/* ── SMART FAMILY PROFILES & CYCLE RING ENHANCEMENTS ────────────────────────── */
.profile-selector-pill{display:inline-flex;align-items:center;gap:8px;background:#ffffff;border:1px solid #ebdbe5;padding:7px 15px;border-radius:24px;font-size:13px;font-weight:600;color:var(--plum);cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px rgba(97,57,85,0.04)}
.profile-selector-pill:hover{background:#fdf6fa;border-color:var(--plum);transform:translateY(-1px);box-shadow:0 4px 12px rgba(97,57,85,0.08)}
.profile-avatar-emoji{font-size:16px;line-height:1}
.profile-badge-small{font-size:12px;font-weight:600;background:#ffffffd4;border:1px solid #ebdbe5;color:var(--plum);padding:4px 10px;border-radius:14px;display:inline-flex;align-items:center;gap:5px}
.profile-item-card{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#faf7f9;border:1px solid #ebdbe5;border-radius:16px;margin-bottom:12px;gap:12px;transition:all .2s ease}
.profile-item-card.active{background:#fff;border:2px solid var(--plum);box-shadow:0 6px 18px rgba(97,57,85,0.08)}
.profile-item-left{display:flex;align-items:center;gap:14px}
.profile-item-avatar{width:46px;height:46px;border-radius:50%;background:#f3e8f1;display:flex;align-items:center;justify-content:center;font-size:22px}
.profile-relation-pill{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;padding:3px 8px;border-radius:10px;background:#ebdbe5;color:var(--plum)}
.avatar-picker-grid{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 16px}
.avatar-choice-btn{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}
.avatar-choice-btn.selected{border:2px solid var(--plum);background:#f3e8f1;transform:scale(1.1)}
.today-dashboard-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin-bottom:24px}
@media(max-width:1000px){.today-dashboard-grid{grid-template-columns:1fr}}

/* ── AMBIENT FLOWER & PINK BALLOON-BUBBLE BACKGROUND ────────────────────────── */
.flower-ambient-bg{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
  background:
    radial-gradient(ellipse at 10% 12%,rgba(255,225,236,0.55) 0%,transparent 45%),
    radial-gradient(ellipse at 90% 18%,rgba(254,215,226,0.5) 0%,transparent 42%),
    radial-gradient(ellipse at 50% 88%,rgba(255,232,243,0.55) 0%,transparent 55%),
    #faf7f9;
}

.bg-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(65px);
  pointer-events:none;
  opacity:0.65;
}
.bg-glow.g1{
  width:460px;
  height:460px;
  top:-120px;
  right:6%;
  background:radial-gradient(circle,rgba(255,182,193,0.38) 0%,rgba(255,222,235,0.18) 60%,transparent 80%);
  animation:ambientPulse 18s ease-in-out infinite alternate;
}
.bg-glow.g2{
  width:420px;
  height:420px;
  bottom:4%;
  left:-80px;
  background:radial-gradient(circle,rgba(248,187,208,0.34) 0%,rgba(254,215,226,0.15) 60%,transparent 80%);
  animation:ambientPulse 24s ease-in-out infinite alternate-reverse;
}
.bg-glow.g3{
  width:360px;
  height:360px;
  top:42%;
  left:44%;
  background:radial-gradient(circle,rgba(255,225,235,0.4) 0%,transparent 70%);
  animation:ambientPulse 28s ease-in-out infinite alternate;
}



/* Gentle floating flower blossoms & petals */
.bg-flower{
  position:absolute;
  pointer-events:none;
  will-change:transform;
  filter:drop-shadow(0 4px 10px rgba(215,82,121,0.08));
}
.bg-flower.f1{left:14%;top:26%;animation:flowerDrift1 25s ease-in-out infinite}
.bg-flower.f2{right:8%;top:11%;animation:flowerDrift2 30s ease-in-out infinite}
.bg-flower.f3{left:30%;top:76%;animation:flowerDrift3 22s ease-in-out infinite}
.bg-flower.f4{right:26%;top:82%;animation:flowerDrift1 27s ease-in-out infinite reverse}
.bg-flower.f5{left:6%;top:84%;animation:flowerDrift2 24s ease-in-out infinite}
.bg-flower.f6{right:20%;top:40%;animation:flowerDrift3 29s ease-in-out infinite}

@keyframes ambientPulse{
  0%{transform:scale(1) translate(0,0);opacity:0.6}
  100%{transform:scale(1.15) translate(20px,15px);opacity:0.8}
}
@keyframes flowerDrift1{
  0%{transform:translateY(0) translateX(0) rotate(0deg)}
  50%{transform:translateY(-28px) translateX(15px) rotate(22deg)}
  100%{transform:translateY(0) translateX(0) rotate(0deg)}
}
@keyframes flowerDrift2{
  0%{transform:translateY(0) translateX(0) rotate(0deg)}
  50%{transform:translateY(-35px) translateX(-18px) rotate(-28deg)}
  100%{transform:translateY(0) translateX(0) rotate(0deg)}
}
@keyframes flowerDrift3{
  0%{transform:translateY(0) translateX(0) rotate(0deg)}
  50%{transform:translateY(-22px) translateX(12px) rotate(18deg)}
  100%{transform:translateY(0) translateX(0) rotate(0deg)}
}

@media (prefers-reduced-motion: reduce){
  .bg-flower,.bg-glow{
    animation:none !important;
  }
}


.trust-bar{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;padding:16px 20px;margin-bottom:24px;border:1px solid #ddd3df;border-radius:14px;background:#f3eef5;font-size:13px}.trust-bar span{flex:1;min-width:190px}.trust-bar a{font-weight:700}.day.outside:not([class*="safe-gradient"]),.status-badge.outside:not([class*="safe-gradient"]){background:#eeebf1;color:#514657;border:1px solid #dad2df}.legend-deep:before{background:#23864a!important}.legend-faint:before{background:#a8ddb9!important;border:1px dashed #5ea67e!important}.day{min-height:44px}.trust-page{max-width:860px;margin:auto;padding:28px 20px}.trust-page section{margin:24px 0}.trust-page h1{font-size:36px}.trust-page li{line-height:1.7;margin:8px 0}@media(max-width:600px){.trust-bar{padding:12px;gap:8px}.trust-bar a{width:100%}}

/* ── SMART GREEN GRADIENT: FROM SAFER (DEEP GREEN) TO LIKELY TO CONCEIVE (FAINT GREEN) ── */
.day.safe-gradient-5 {
  background: #23864a !important;
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid #1a6b39 !important;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25);
}
.day.safe-gradient-5:hover { background: #1c723e !important; }

.day.safe-gradient-4 {
  background: #38a564 !important;
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid #2a8a50 !important;
}
.day.safe-gradient-4:hover { background: #309457 !important; }

.day.safe-gradient-3 {
  background: #73c792 !important;
  color: #0b4522 !important;
  font-weight: 600;
  border: 1px solid #5bb57c !important;
}
.day.safe-gradient-3:hover { background: #64bd85 !important; }

.day.safe-gradient-2 {
  background: #b5e6c7 !important;
  color: #124b27 !important;
  font-weight: 500;
  border: 1px solid #9cd8b2 !important;
}
.day.safe-gradient-2:hover { background: #a2ddb5 !important; }

.day.safe-gradient-1 {
  background: #edf8f1 !important;
  color: #1e5e34 !important;
  font-weight: 500;
  border: 1.5px dashed #7fcb9a !important;
}
.day.safe-gradient-1:hover { background: #ddf2e3 !important; }

/* Status Badges for Smart Gradient */
.status-badge.safe-gradient-5 { background: #23864a; color: #ffffff; border: 1px solid #1a6b39; font-weight: 700; }
.status-badge.safe-gradient-4 { background: #38a564; color: #ffffff; border: 1px solid #2a8a50; font-weight: 600; }
.status-badge.safe-gradient-3 { background: #73c792; color: #0b4522; border: 1px solid #5bb57c; font-weight: 600; }
.status-badge.safe-gradient-2 { background: #b5e6c7; color: #124b27; border: 1px solid #9cd8b2; font-weight: 500; }
.status-badge.safe-gradient-1 { background: #edf8f1; color: #1e5e34; border: 1.5px dashed #7fcb9a; font-weight: 500; }

/* Gradient Key Card (Safer to Likely to Conceive) */
.gradient-key-card {
  margin-top: 18px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(97,57,85,0.03);
}
.gradient-key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.gradient-key-header strong { color: var(--plum); font-family: Georgia, serif; font-size: 14px; }
.gradient-key-header span { color: var(--muted); font-size: 12px; }
.gradient-track {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #23864a 0%, #38a564 25%, #73c792 50%, #b5e6c7 75%, #edf8f1 100%);
  border: 1px solid #a8ddb9;
  margin-bottom: 8px;
}
.gradient-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 6px;
}
.gradient-scale-labels .label-safe { color: #1c723e; font-weight: 700; }
.gradient-scale-labels .label-caution { color: #5a7564; }
.gradient-scale-labels .label-fertile { color: #765287; font-weight: 700; }

.gradient-legend-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid #f0eaf0;
  padding-top: 10px;
}
.gradient-legend-pills .pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gradient-legend-pills .pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.pill-dot.g5 { background: #23864a; }
.pill-dot.g4 { background: #38a564; }
.pill-dot.g3 { background: #73c792; }
.pill-dot.g2 { background: #b5e6c7; }
.pill-dot.g1 { background: #edf8f1; border: 1px dashed #7fcb9a; }
.pill-dot.period { background: #f5bfd0; }
.pill-dot.fertile { background: #e9dcf2; }
.pill-dot.ovulation { background: #765287; }



/* ═══════════════════════════════════════════════════════════
   MOBILE UX POLISH — Top-Notch Mobile Experience
   ═══════════════════════════════════════════════════════════ */

/* ── Tap targets: minimum 44×44px on all interactive elements ── */
@media(max-width:800px){
  .btn{min-height:48px;padding:13px 20px;font-size:15px;border-radius:14px}
  .day{min-height:40px;font-size:13px}
  .nav button{min-height:52px;padding:10px 4px}
  input,select,textarea{padding:14px;font-size:16px;border-radius:11px}
  .textbtn{padding:10px 0;font-size:15px;min-height:44px;display:inline-flex;align-items:center}
  .week,.days{gap:4px}
  .day{max-height:42px;min-height:36px;font-size:12px}
  .calendar-head h2{font-size:18px}
  .iconbtn{width:40px;height:40px;font-size:22px}
  .card{padding:18px 16px;border-radius:16px}
  .gradient-key-header{flex-direction:column;align-items:flex-start;gap:4px}
  .gradient-key-header span{font-size:11px}
  .gradient-legend-pills{gap:8px;flex-wrap:wrap}
  .pill-item{font-size:11px}
  .selected-info{padding-top:14px;margin-top:14px}
  .forecast-summary{font-size:14px;line-height:1.6}
  .status-badge{font-size:11px;padding:4px 10px}
  .cycle-colour-guide{margin:12px 0 0;padding:14px;font-size:13px;line-height:1.7}
  .heading{flex-direction:column;align-items:stretch;gap:12px}
  .heading .btn{width:100%;justify-content:center}
  h1{font-size:28px;letter-spacing:-0.5px}
  h2{font-size:20px}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:14px;border-radius:14px}
  .stat strong{font-size:18px}
  .ring{width:220px;height:220px}
  .ring-inner{width:165px;height:165px}
  .ring-inner strong{font-size:52px}
  .reading summary{padding:14px 0;font-size:15px}
  .reading p{font-size:14px;line-height:1.75}
  .oracle-bubble.user{max-width:95%;margin-left:0}
  .oracle-input-box{position:sticky;bottom:0;border-radius:14px 14px 0 0;padding:12px 14px}
  .oracle-form{gap:8px}
  .oracle-textarea{padding:12px;font-size:15px}
  .oracle-chips{gap:7px}
  .oracle-chip{padding:8px 13px;font-size:12px}
  .topbar{gap:8px;flex-wrap:wrap;margin-bottom:20px}
  .profile-selector-pill{padding:6px 12px;font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .device{font-size:11px;padding:8px 12px;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .formgrid{grid-template-columns:1fr}
  .actions{flex-direction:column}
  .actions .btn,.actions button{width:100%;justify-content:center}
  .footer{font-size:11px;padding-bottom:8px;text-align:center}
  #toast{bottom:80px;width:90vw;text-align:center}
  .wide{max-width:100%;overflow-x:hidden}
  dialog{width:96vw;padding:22px 18px;border-radius:18px;max-height:85vh;overflow-y:auto}
}

/* ── Very small phones (iPhone SE, 375px) ── */
@media(max-width:390px){
  main{padding:18px 14px 100px}
  .day{max-height:36px;min-height:30px;font-size:11px}
  .week,.days{gap:3px}
  .ring{width:195px;height:195px}
  .ring-inner{width:145px;height:145px}
  .ring-inner strong{font-size:46px}
  h1{font-size:25px}
  .btn{font-size:14px;padding:12px 16px}
  .cycle-colour-guide{font-size:12px;padding:12px}
}

/* ── Safe area insets for notched iPhones ── */
@supports(padding-bottom:env(safe-area-inset-bottom)){
  .sidebar{padding-bottom:calc(7px + env(safe-area-inset-bottom))}
  #toast{bottom:calc(80px + env(safe-area-inset-bottom))}
}

/* ── Smooth momentum scroll & prevent text zoom on rotate ── */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
main{-webkit-overflow-scrolling:touch}
.oracle-stream{-webkit-overflow-scrolling:touch}
*{-webkit-tap-highlight-color:transparent}

/* ── Focus rings: accessible ── */
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2.5px solid var(--plum);outline-offset:3px;border-radius:8px
}
