:root {
    --ink: #261d24;
    --muted: #7f6f78;
    --subtle: #a898a3;
    --rose: #ff6f91;
    --rose-deep: #e94873;
    --lilac: #b388ff;
    --mint: #6ee7d8;
    --cream: #fff7ef;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --line: rgba(80, 48, 76, 0.10);
    --shadow: 0 20px 60px rgba(82, 45, 76, 0.14), 0 2px 10px rgba(82, 45, 76, 0.06);
    --soft-shadow: 0 10px 32px rgba(82, 45, 76, 0.10);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

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

html { min-height: 100%; background: #fff7f5; }

body {
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 111, 145, 0.28), transparent 32%),
        radial-gradient(circle at 92% 6%, rgba(179, 136, 255, 0.22), transparent 30%),
        radial-gradient(circle at 70% 92%, rgba(110, 231, 216, 0.20), transparent 28%),
        linear-gradient(135deg, #fffaf4 0%, #fff1f6 46%, #f5f0ff 100%);
    overflow-x: hidden;
}

button, input { font: inherit; }
button { border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { border: none; outline: none; }

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(28px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.ambient-rose { width: 240px; height: 240px; left: -80px; top: 70px; background: rgba(255, 111, 145, .26); }
.ambient-lilac { width: 260px; height: 260px; right: -120px; bottom: 70px; background: rgba(179, 136, 255, .22); }

.phone-shell {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 14px 28px;
    position: relative;
    z-index: 1;
}

.app-card {
    min-height: calc(100vh - 36px);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.70);
    box-shadow: var(--shadow);
    border-radius: 38px;
    overflow: hidden;
    backdrop-filter: blur(22px);
}

.hero-header {
    padding: 24px 22px 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.42)),
        radial-gradient(circle at 12% 0%, rgba(255,111,145,.30), transparent 38%),
        radial-gradient(circle at 95% 10%, rgba(179,136,255,.24), transparent 42%);
    border-bottom: 1px solid rgba(255,255,255,.75);
}

.top-row { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 52px; height: 52px; border-radius: 19px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #ff7c9c, #b388ff);
    color: white;
    box-shadow: 0 14px 28px rgba(255, 111, 145, .26);
}
.moon { font-size: 30px; transform: translateY(-1px); }
.brand-copy { flex: 1; }
.eyebrow, .mini-label, .section-kicker {
    display: inline-flex;
    color: var(--rose-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.brand-copy h1 { font-size: 25px; line-height: 1; letter-spacing: -.04em; margin-top: 3px; }
.icon-btn {
    min-width: 62px; height: 42px; border-radius: 16px;
    padding: 0 12px;
    background: rgba(255,255,255,.72);
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(82,45,76,.10);
}

.hero-copy { margin-top: 28px; }
.hero-copy h2 {
    margin-top: 6px;
    max-width: 330px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 850;
}
.hero-subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    max-width: 360px;
}

.quick-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}
.quick-metrics div {
    padding: 12px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.72);
}
.quick-metrics strong { display: block; font-size: 15px; line-height: 1; letter-spacing: -.03em; }
.quick-metrics span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }

.tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 250, 252, .78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(80,48,76,.06);
}
.nav-btn {
    padding: 13px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
    background: transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--lilac));
    box-shadow: 0 12px 24px rgba(255, 111, 145, .22);
}
.nav-btn:active { transform: scale(.96); }

.tab { display: none; padding: 14px 14px 22px; animation: fadeUp .28s ease both; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.card, .glass-card, .premium-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}
.card { padding: 18px; margin-bottom: 14px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card h3, .glass-card h3, .premium-card h3 {
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 850;
    margin-top: 4px;
}
.soft-badge, .badge {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--rose-deep);
    background: rgba(255,111,145,.11);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
}

.cycle-dashboard { display: grid; gap: 14px; }
.cycle-ring-card { padding: 18px; display: grid; place-items: center; }
.cycle-ring { position: relative; width: 210px; height: 210px; }
.cycle-ring svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.82); stroke-width: 16; }
.ring-progress {
    fill: none;
    stroke: url(#cycleGradient);
    stroke-width: 16;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    filter: drop-shadow(0 8px 10px rgba(255,111,145,.18));
}
.cycle-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.cycle-day { font-size: 32px; font-weight: 900; letter-spacing: -.07em; }
.cycle-phase { margin-top: 4px; color: var(--rose-deep); font-weight: 800; }
.phase-pills { display: flex; gap: 8px; margin-top: -6px; }
.phase-pill { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.70); color: var(--muted); font-size: 12px; font-weight: 800; }
.phase-pill.active { color: #fff; background: var(--rose); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group { display: grid; gap: 7px; }
.input-group.wide { grid-column: 1 / -1; }
.input-group span { color: var(--muted); font-size: 12px; font-weight: 750; }
.input-group input {
    width: 100%;
    padding: 15px 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.78);
    color: var(--ink);
    border: 1px solid rgba(80,48,76,.08);
    font-weight: 750;
    transition: border .2s ease, box-shadow .2s ease;
}
.input-group input:focus { border-color: rgba(255,111,145,.45); box-shadow: 0 0 0 4px rgba(255,111,145,.10); }
.helper-copy {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}
button:focus-visible, .meditation-item:focus-visible {
    outline: 3px solid rgba(255,111,145,.34);
    outline-offset: 3px;
}

.btn-primary, .btn-secondary {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
    margin-top: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), #ff8a6b 48%, var(--lilac));
    box-shadow: 0 16px 28px rgba(255,111,145,.24);
}
.btn-secondary {
    color: var(--ink);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(80,48,76,.10);
}
.btn-primary:active, .btn-secondary:active { transform: scale(.98); }

.prediction-grid { display: grid; gap: 10px; }
.prediction-item {
    display: flex; gap: 12px; align-items: center;
    padding: 13px;
    border-radius: 19px;
    background: rgba(255,255,255,.64);
}
.pred-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 15px; font-size: 18px; }
.pred-icon.blood { background: rgba(255,111,145,.15); color: var(--rose); }
.pred-icon.egg { background: rgba(179,136,255,.15); color: var(--lilac); }
.pred-icon.flower { background: rgba(110,231,216,.17); color: #20a897; }
.prediction-item strong, .prediction-item span:not(.pred-icon) { display: block; }
.prediction-item strong { font-size: 14px; }
.prediction-item div span { color: var(--muted); font-size: 13px; margin-top: 2px; }

.moods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mood {
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(80,48,76,.08);
    color: var(--ink);
    font-weight: 800;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mood:hover { background: rgba(255,255,255,.90); box-shadow: 0 6px 16px rgba(82,45,76,.08); }
.mood:active { transform: scale(.97); }
.mood.selected, .mood.active { color: #fff; background: linear-gradient(135deg, var(--rose), var(--lilac)); }
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.symptom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.58);
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}
.symptom input { accent-color: var(--rose); }

.meditate-hero {
    padding: 22px 18px;
    display: grid;
    grid-template-columns: 148px 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}
.breathing-orb {
    width: 142px;
    height: 142px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 18px;
    font-weight: 900;
    background:
        radial-gradient(circle at 32% 22%, rgba(255,255,255,.50), transparent 18%),
        linear-gradient(135deg, #ff8aa8, #b388ff 55%, #6ee7d8);
    box-shadow: 0 22px 45px rgba(179,136,255,.30);
    animation: breathe 4.8s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
.meditate-copy p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.meditation-list { display: grid; gap: 10px; }
.meditation-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr 46px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 22px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(80,48,76,.07);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.meditation-item:hover { background: rgba(255,255,255,.88); box-shadow: 0 8px 20px rgba(82,45,76,.08); }
.meditation-item:active { transform: scale(.99); }
.meditation-item.premium { background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,244,248,.82)); }
.med-icon { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; }
.moon-bg { background: #fff0c9; } .water-bg { background: #dff7ff; } .sleep-bg { background: #efe7ff; } .power-bg { background: #f4ddff; } .womb-bg { background: #ffe0ed; }
.med-info h4 { font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
.med-info p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.med-info .badge { display: inline-block; margin-top: 7px; padding: 5px 8px; }
.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--lilac));
    box-shadow: 0 10px 20px rgba(179,136,255,.22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.play-btn:hover { transform: scale(1.08); box-shadow: 0 14px 28px rgba(179,136,255,.32); }
.play-btn:active { transform: scale(.95); }
.play-btn.locked { color: var(--rose-deep); background: rgba(255,111,145,.12); box-shadow: none; cursor: not-allowed; }
.play-btn.locked:hover { transform: none; }

.timer-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(38, 29, 36, .38);
    backdrop-filter: blur(20px);
}
.timer-card {
    width: min(100%, 360px);
    padding: 28px;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.timer-card h2 { font-size: 24px; letter-spacing: -.04em; }
.timer-display { margin: 22px 0; font-size: 54px; font-weight: 900; letter-spacing: -.07em; color: var(--rose-deep); }
.timer-progress { height: 10px; background: #f7e8ef; border-radius: 999px; overflow: hidden; }
.timer-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--rose), var(--lilac)); border-radius: inherit; }
.timer-guide { margin: 18px 0 6px; color: var(--muted); }
.audio-status { margin: 0 0 18px; color: var(--subtle); font-size: 12px; font-weight: 800; }
.timer-controls { display: flex; gap: 12px; justify-content: center; }
.timer-controls button { width: 52px; height: 52px; border-radius: 50%; background: #fff1f6; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
    text-align: center;
    padding: 16px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}
.stat-value { display: block; font-size: 27px; font-weight: 950; letter-spacing: -.07em; color: var(--rose-deep); }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; margin-top: 4px; }
.simple-chart { height: 190px; display: flex; align-items: flex-end; gap: 9px; padding-top: 16px; }
.chart-bar {
    flex: 1;
    min-height: 36px;
    border-radius: 999px 999px 13px 13px;
    background: linear-gradient(180deg, var(--rose), var(--lilac));
    position: relative;
    box-shadow: 0 12px 20px rgba(179,136,255,.16);
}
.chart-bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 11px; font-weight: 800; }
.chart-card { padding-bottom: 42px; }

.data-tools-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: -4px 0 14px;
}
.data-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.data-actions .btn-secondary { margin: 0; min-height: 48px; font-size: 13px; }
.data-actions .danger {
    color: #9f3146;
    background: rgba(255,111,145,.10);
    border-color: rgba(255,111,145,.22);
}

.premium-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    margin-bottom: 14px;
    color: white;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.24), transparent 26%),
        linear-gradient(145deg, #2c1d32, #6f3f83 52%, #ff6f91 130%);
}
.premium-card .section-kicker { color: #ffd6df; }
.premium-card h3 { font-size: 28px; max-width: 300px; }
.premium-card p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; margin: 10px 0 14px; }
.feature-list { list-style: none; display: grid; gap: 9px; margin: 14px 0 18px; }
.feature-list li { color: rgba(255,255,255,.90); font-size: 13px; font-weight: 700; }
.feature-list li::before { content: '✓'; margin-right: 9px; color: var(--mint); font-weight: 900; }
.premium-card .btn-secondary { margin-top: 10px; color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.save { color: var(--mint); font-size: 12px; margin-left: 6px; }

@media (min-width: 760px) {
    .phone-shell { max-width: 520px; }
    .app-card { min-height: auto; }
}

@media (max-width: 390px) {
    .phone-shell { padding-left: 8px; padding-right: 8px; }
    .hero-header { padding: 20px 16px 16px; }
    .quick-metrics { grid-template-columns: 1fr; }
    .meditate-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .moods, .symptoms, .data-actions { grid-template-columns: 1fr; }
}

/* --- LOGIN --- */
.login-screen {
    min-height: calc(100vh - 36px);
    display: grid;
    place-items: center;
}
.login-screen.hidden { display: none; }
.login-card {
    width: 100%;
    min-height: calc(100vh - 36px);
    border-radius: 38px;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.50)),
        radial-gradient(circle at 15% 0%, rgba(255,111,145,.34), transparent 38%),
        radial-gradient(circle at 100% 12%, rgba(179,136,255,.28), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(110,231,216,.18), transparent 36%);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}
.login-brand { text-align: center; display: grid; gap: 12px; justify-items: center; }
.brand-mark.large { width: 76px; height: 76px; border-radius: 27px; }
.brand-mark.large .moon { font-size: 42px; }
.login-brand h1 {
    max-width: 330px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: .94;
    letter-spacing: -.07em;
    font-weight: 900;
}
.login-brand p {
    max-width: 340px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.login-form { display: grid; gap: 13px; }
.login-form .btn-primary, .login-form .btn-secondary, .login-form .google-login { width: 100%; }
.google-login {
    height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    color: #33263a;
    font-weight: 900;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(82,45,76,.10);
    border: 1px solid rgba(255,255,255,.82);
}
.google-login:active { transform: scale(.99); }
.google-login[disabled] { opacity: .6; pointer-events: none; }
.google-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(from -45deg, #4285f4, #34a853 25%, #fbbc05 50%, #ea4335 75%, #4285f4);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.login-divider::before, .login-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(82,45,76,.13);
}
.login-note { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.45; }
.login-form .demo-login { margin-top: 0; }
.login-form .btn-secondary { margin-top: 0; }
.firebase-status { color: #8c6588; text-align: center; font-size: 11px; font-weight: 800; margin-top: -16px; }
.app-card.locked { display: none; }
.app-card.unlocked { display: block; }
.logout-btn {
    border-radius: 999px;
    padding: 10px 12px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-weight: 800;
    font-size: 11px;
    box-shadow: 0 8px 20px rgba(82,45,76,.08);
}
.logout-btn:active { transform: scale(.98); }


/* --- UX PASS: premium mobile polish, clearer hierarchy, thumb navigation --- */
:root {
    --shadow-natural: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 8px, rgba(82,45,76,0.13) 0 16px 38px;
    --safe-bottom: max(18px, env(safe-area-inset-bottom));
}
html { scroll-behavior: smooth; }
button { touch-action: manipulation; }
.phone-shell { padding-bottom: calc(104px + var(--safe-bottom)); }
.app-card { box-shadow: var(--shadow-natural); }
.login-card, .card, .glass-card, .premium-card { box-shadow: var(--shadow-natural); }
.trust-strip {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2px;
}
.trust-chip, .session-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.82);
    color: #6e5966;
    font-size: 11px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(82,45,76,.07);
}
.login-divider span { text-transform: uppercase; letter-spacing: .08em; }
.login-note {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(255,255,255,.72);
}
.firebase-status { color: #9d7b95; }
.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.btn-inline {
    min-height: 46px;
    border-radius: 17px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-inline.primary {
    color: #fff;
    background: #261d24;
    box-shadow: 0 12px 24px rgba(38,29,36,.18);
}
.btn-inline.ghost {
    color: var(--rose-deep);
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(255,255,255,.78);
}
.btn-inline:active { transform: scale(.98); }
.guidance-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}
.guidance-step {
    min-width: 0;
    padding: 10px 7px;
    border-radius: 18px;
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(255,255,255,.70);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.guidance-step strong {
    flex: 0 0 auto;
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(38,29,36,.08);
    color: var(--ink);
    font-size: 11px;
}
.guidance-step span { min-width: 0; font-size: 10.5px; font-weight: 850; white-space: nowrap; letter-spacing: -.02em; }
.guidance-step.active { background: rgba(255,111,145,.13); color: var(--rose-deep); }
.tab-nav {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: var(--safe-bottom);
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 432px);
    z-index: 30;
    border-radius: 28px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 18px 48px rgba(82,45,76,.20);
    background: rgba(255, 250, 252, .82);
}
.nav-btn {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px 8px;
    font-size: 12px;
}
.nav-btn::before { font-size: 18px; line-height: 1; }
.nav-btn[data-tab="cycle"]::before { content: '◐'; }
.nav-btn[data-tab="meditate"]::before { content: '☾'; }
.nav-btn[data-tab="insights"]::before { content: '✦'; }
.tab { padding-bottom: calc(86px + var(--safe-bottom)); }
.section-subcopy {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}
.helper-copy {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.52);
}
.input-group input { min-height: 52px; }
.input-group span { color: #705f69; font-size: 12.5px; }
.btn-primary, .btn-secondary, .google-login { min-height: 54px; }
.mood, .symptom, .prediction-item, .meditation-item { min-height: 52px; }
.med-info p { font-size: 12.5px; line-height: 1.35; }
.session-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.session-tags span { min-height: 28px; background: rgba(255,255,255,.58); }
.timer-card {
    background:
        radial-gradient(circle at 20% 0%, rgba(255,111,145,.10), transparent 32%),
        #fff;
}
#flow-toast { bottom: calc(92px + var(--safe-bottom)) !important; }
@media (max-width: 390px) {
    .guidance-strip { grid-template-columns: 1fr; }
    .hero-actions { grid-template-columns: 1fr; }
    .tab-nav { width: min(calc(100% - 16px), 432px); }
}
@media (max-height: 720px) {
    .login-card { justify-content: flex-start; gap: 18px; padding-top: 22px; }
    .login-brand h1 { font-size: clamp(31px, 9vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* --- Button reliability + clearer disabled states --- */
#login-form button[disabled] {
    opacity: .62;
    cursor: progress;
    transform: none !important;
}
.google-login {
    background: rgba(255,255,255,.92);
}
.google-login::after {
    content: 'demo';
    margin-left: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255,111,145,.10);
    color: var(--rose-deep);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.premium-card .btn-primary, .premium-card .btn-secondary { margin-top: 10px; }
