/* ============================================
   SHEFA — Warm Sanctuary Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg: #FAF8F5;
    --bg-page: #F3F0EB;
    --bg-card: #FFFFFF;
    --bg-inset: #F5F2ED;
    --bg-overlay: rgba(60, 50, 40, 0.4);

    --text-primary: #15120F;
    --text-secondary: #3D3429;
    --text-tertiary: #5C5248;
    --text-muted: #8A7F73;

    --sage: #5C7250;
    --sage-soft: #E4EBE0;
    --sage-bg: rgba(92,114,80,0.08);
    --terra: #C4876B;
    --terra-soft: #F5E6DE;
    --gold: #B89B5E;
    --gold-soft: #F5EDD8;
    --gold-bg: rgba(184,155,94,0.08);
    --plum: #8E6B8A;
    --plum-soft: #EDE4EC;
    --blue: #6B8EB0;
    --blue-soft: #D4E3F0;
    --rose: #C47B7B;
    --rose-soft: #F5E0E0;
    --sky: #6BA8B0;
    --sky-soft: #DFF0F2;

    --border: rgba(44,37,32,0.10);
    --border-strong: rgba(44,37,32,0.18);
    --shadow-sm: 0 1px 3px rgba(44,37,32,0.06);
    --shadow-md: 0 4px 16px rgba(44,37,32,0.08);
    --shadow-lg: 0 8px 32px rgba(44,37,32,0.10);
    --green: #5FA365;
    --green-bg: rgba(95,163,101,0.08);
    --red: #C45B5B;

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; height: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 420;
    line-height: 1.6;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Typography */
.large-title { font-family: var(--font-heading); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.title-1 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; line-height: 1.2; }
.title-2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }
.title-3 { font-family: var(--font-heading); font-size: 19px; font-weight: 500; }
.headline { font-size: 16px; font-weight: 600; }
.body-text { font-size: 16px; font-weight: 400; }
.callout { font-size: 15px; font-weight: 430; color: var(--text-secondary); }
.subhead { font-size: 14px; font-weight: 430; color: var(--text-secondary); }
.footnote { font-size: 13px; font-weight: 430; color: var(--text-tertiary); }
.caption-1 { font-size: 12px; font-weight: 500; }

/* Beginner Helper Text */
.helper-intro {
    font-size: 14px;
    font-weight: 430;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(92,114,80,0.04);
    border-radius: var(--radius);
    border-left: 3px solid var(--sage);
}
.helper-text {
    font-size: 13px;
    font-weight: 430;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0 0 14px 0;
    padding: 0 2px;
    opacity: 0.85;
}
.helper-example {
    font-size: 12px;
    font-weight: 450;
    color: var(--sage);
    line-height: 1.5;
    margin: -4px 0 10px 0;
    padding: 6px 10px;
    background: rgba(92,114,80,0.04);
    border-radius: 6px;
    font-style: italic;
}
.helper-inline {
    font-size: 12px;
    font-weight: 420;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 2px 0 6px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
/* Reveal helper when its input/select sibling is focused, or when parent row is tapped */
.ios-input-row:focus-within .helper-inline,
.ios-input-row.helper-open .helper-inline {
    max-height: 80px;
    opacity: 1;
    margin: 4px 0 8px 0;
}
/* Always show helpers that are marked essential */
.helper-inline.always-show {
    max-height: none;
    opacity: 1;
    margin: 2px 0 6px 0;
}
.wizard-progress-note {
    font-size: 12px;
    font-weight: 450;
    color: var(--sage);
    text-align: center;
    margin-top: 8px;
    opacity: 0.75;
}

/* Wizard micro-reward — dopamine hit after Step 1 */
.wizard-micro-reward {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(139,162,131,0.06));
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,0.15);
    animation: wmr-enter 0.5s ease-out;
    transition: opacity 0.8s ease;
}
.wizard-micro-reward.wmr-fade { opacity: 0; }
.wmr-icon {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
}
.wmr-text {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 430;
    color: var(--text-primary);
    line-height: 1.5;
}
@keyframes wmr-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ritual-step-helper {
    font-size: 13px;
    font-weight: 430;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: -4px 0 8px 0;
}

/* App Shell */
#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100dvh;
    padding-bottom: calc(88px + var(--safe-bottom));
    background: var(--bg);
}

/* Dashboard silence — breathing room between all cards */
#dash-body > * {
    margin-bottom: 16px;
}
#dash-body > .living-vessel-card {
    margin-bottom: 20px;
}
#dash-body > .ritual-banner {
    margin-top: 4px;
    margin-bottom: 20px;
}

.screen {
    display: none;
    padding: 0 20px 20px;
    animation: fadeUp 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.screen.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.ios-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.ios-group-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 24px 4px 8px;
}

.ios-group-footer {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 6px 4px 0;
    line-height: 1.45;
    font-style: italic;
    font-family: var(--font-heading);
    font-weight: 400;
}

.ios-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    min-height: 48px;
    gap: 12px;
    position: relative;
}

.ios-row + .ios-row::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: var(--border);
}

.ios-row-content { flex: 1; min-width: 0; }
.ios-row-title { font-size: 16px; font-weight: 500; }
.ios-row-sub { font-size: 14px; color: var(--text-tertiary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 24px;
    height: 52px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-tint {
    background: var(--sage);
    color: #fff;
    box-shadow: 0 2px 12px rgba(92,114,80,0.25);
}
.btn-gray {
    background: var(--bg-inset);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-plain {
    background: none;
    color: var(--sage);
    height: auto;
    padding: 8px 0;
    font-weight: 500;
}
.btn-danger {
    background: none;
    color: var(--red);
    height: auto;
    padding: 8px 0;
    font-weight: 500;
}
.btn-block { display: flex; width: 100%; }

/* Forms */
.ios-input-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.ios-input-row {
    padding: 0 16px;
    position: relative;
}

.ios-input-row + .ios-input-row::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: var(--border);
}

.ios-input-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding-top: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ios-input-row input,
.ios-input-row textarea,
.ios-input-row select {
    width: 100%;
    padding: 8px 0 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    resize: none;
}

.ios-input-row textarea { min-height: 56px; line-height: 1.5; }

.ios-input-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239C8E80' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

::placeholder { color: #A0968B; }

/* Sliders */
.ios-slider { padding: 14px 16px; }
.ios-slider-row { display: flex; align-items: center; gap: 14px; }

.ios-slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--bg-inset);
    border-radius: 3px;
    outline: none;
}

.ios-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px; height: 26px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(44,37,32,0.15), 0 0 0 1px rgba(44,37,32,0.05);
}

.ios-slider-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--sage);
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-heading);
}

/* ===== LOGIN ===== */
.login-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 40px 32px;
    text-align: center;
    background: var(--bg);
}

.login-icon {
    margin-bottom: 20px;
    font-size: 52px;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 52px;
    letter-spacing: 0.06em;
}

.login-form { width: 100%; max-width: 320px; }

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.login-input:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-bg);
}

.login-input.code {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 8px;
    font-variant-numeric: tabular-nums;
}

.login-footer {
    margin-top: 64px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
    font-style: italic;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ===== HEADER ===== */
.screen-header {
    padding: 20px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.screen-header .large-title { flex: 1; }

.streak-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-bg);
    border: 1px solid rgba(184,155,94,0.15);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
}
.streak-pill .num {
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ===== RITUAL BANNER ===== */
.ritual-banner {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.ritual-banner:active { transform: scale(0.985); }

.ritual-banner-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ritual-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
}
.ritual-banner-text p { font-size: 13px; color: var(--text-tertiary); }

.ritual-banner.pending .ritual-banner-icon { background: var(--sage-soft); color: var(--sage); }
.ritual-banner.done .ritual-banner-icon { background: var(--green-bg); color: var(--green); }
.ritual-banner.done h3 { color: var(--green); }

/* ===== ASK CARDS ===== */
.ask-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.ask-card:active { transform: scale(0.985); }

.ask-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pill-wealth { background: var(--gold-soft); color: var(--gold); }
.pill-love { background: var(--rose-soft); color: var(--rose); }
.pill-health { background: var(--sage-soft); color: var(--sage); }
.pill-purpose { background: var(--blue-soft); color: var(--blue); }
.pill-protection { background: var(--plum-soft); color: var(--plum); }
.pill-peace { background: var(--sky-soft); color: var(--sky); }

.ask-card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ask-card-body {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.ask-card-footer {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ===== LADDER ===== */
.ladder-list { margin: 4px 0; }

.ladder-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.ladder-row:active { opacity: 0.7; }

.ladder-row + .ladder-row::before {
    content: '';
    position: absolute;
    top: 0; left: 46px; right: 16px;
    height: 1px;
    background: var(--border);
}

.ladder-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}

.ladder-row.done .ladder-dot { background: var(--sage); border-color: var(--sage); }
.ladder-row.current .ladder-dot { border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-bg); }

.ladder-name { flex: 1; font-size: 15px; font-weight: 500; }
.ladder-name small { font-size: 12px; color: var(--text-muted); margin-left: 6px; font-weight: 400; }
.ladder-heb { font-size: 14px; color: var(--text-muted); }

/* ===== COMMITMENT ROWS ===== */
.korban-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.korban-item:active { transform: scale(0.985); }

.korban-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    color: transparent;
    transition: all 0.2s;
}

.korban-item.on .korban-circle { background: var(--green); border-color: var(--green); color: #fff; }

.korban-detail { flex: 1; min-width: 0; }
.korban-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.korban-desc { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

/* ===== RITUAL STEPS ===== */
.ritual-step-wrap { margin-bottom: 28px; }

.ritual-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ritual-step-badge {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--sage-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sage);
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.ritual-step-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.ritual-textarea {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    resize: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
    box-shadow: var(--shadow-sm);
}
.ritual-textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-bg); }

.seal-box {
    background: var(--sage-bg);
    border: 1px solid rgba(92,114,80,0.12);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
    text-align: center;
    font-size: 15px;
    color: var(--sage);
    line-height: 1.65;
    font-style: italic;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ===== STATS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-big {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-small {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 52px;
    margin: 16px 0;
    padding: 0 4px;
}

.bars-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
    background: var(--bg-inset);
}
.bars-bar.on { background: var(--sage); }

/* ===== SIGN TYPES ===== */
.sign-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.sign-type {
    padding: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.sign-type.active { border-color: var(--sage); color: var(--sage); background: var(--sage-bg); }

/* ===== TAB BAR ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.88);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + var(--safe-bottom));
    z-index: 100;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}

.tab svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.tab.active { color: var(--sage); }

/* ===== FAB ===== */
.fab {
    position: fixed;
    bottom: calc(72px + var(--safe-bottom));
    right: calc(50% - 198px);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--sage);
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(92,114,80,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.2s;
}
.fab:active { transform: scale(0.92); }
@media (max-width: 430px) { .fab { right: 18px; } }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: calc(16px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== MODAL ===== */
.modal-wrap {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 150;
    display: none;
    align-items: flex-end;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.modal-wrap.show { display: flex; }

.modal-sheet {
    background: var(--bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 8px 24px calc(24px + var(--safe-bottom));
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    overflow-y: auto;
    animation: sheetUp 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

.modal-handle {
    width: 36px; height: 5px;
    background: var(--border-strong);
    border-radius: 3px;
    margin: 8px auto 20px;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== NAV BACK ===== */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--sage);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 0;
}

/* ===== EMPTY STATE ===== */
.empty-box { text-align: center; padding: 48px 24px; }
.empty-box-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.2; }
.empty-box p { font-size: 15px; color: var(--text-tertiary); line-height: 1.55; }

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--sage);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading { display: flex; justify-content: center; padding: 48px 0; }

/* ===== FAB MENU ===== */
.fab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44,37,32,0.15);
    z-index: 88;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.15s ease;
}

.fab-menu {
    position: fixed;
    bottom: calc(132px + var(--safe-bottom));
    right: calc(50% - 198px);
    z-index: 91;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fabMenuUp 0.2s cubic-bezier(0.2,0.8,0.2,1);
}
@media (max-width: 430px) { .fab-menu { right: 18px; } }

@keyframes fabMenuUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.fab-option:active { transform: scale(0.97); }

.fab-option-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.fab-option-urgent {
    background: linear-gradient(135deg, #FFF8F0, #FFF3E8);
    border-color: rgba(196,135,107,0.2);
    color: var(--terra);
    font-weight: 600;
}

/* ===== FLASH / URGENT CARDS ===== */
.flash-section {
    margin-bottom: 20px;
}

.flash-section-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--terra);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flash-card {
    background: linear-gradient(135deg, #FFFAF6, #FFF6F0);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(196,135,107,0.18);
    box-shadow: 0 2px 12px rgba(196,135,107,0.08);
    position: relative;
    overflow: hidden;
}
.flash-card:active { transform: scale(0.985); }

.flash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--terra);
    border-radius: 3px 0 0 3px;
}

.flash-deadline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--terra);
    background: rgba(196,135,107,0.1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.flash-deadline.expired {
    color: var(--red);
    background: rgba(196,91,91,0.08);
}

.flash-countdown {
    font-family: var(--font-heading);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ===== IDENTITY CARD ===== */
.identity-card {
    background: linear-gradient(135deg, #F0EDE8, #EDE8E1);
    border: 1px solid rgba(92,114,80,0.12);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.identity-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.identity-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.55;
}

/* ===== IDENTITY LOOP 2: CONFIRMATION TAP ===== */
.id-confirm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.id-confirm-card:active {
    transform: scale(0.98);
    border-color: var(--gold);
}
.id-confirm-prompt {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 430;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.id-confirm-tap {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.03em;
}
.id-confirm-card.confirming {
    animation: id-confirm-pulse 0.4s ease;
}
.id-confirm-card.confirmed {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(139,162,131,0.04));
    border-color: rgba(201,168,76,0.15);
    cursor: default;
    padding: 14px 16px;
}
.id-confirm-icon {
    font-size: 16px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
}
.id-confirm-text {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 430;
    color: var(--text-secondary);
    line-height: 1.5;
}
@keyframes id-confirm-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); border-color: var(--gold); background: rgba(201,168,76,0.08); }
    100% { transform: scale(1); opacity: 0; }
}
.id-confirm-fresh {
    animation: id-confirm-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes id-confirm-appear {
    0% { transform: scale(0.95); opacity: 0; }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== IDENTITY LOOP 3: EVENING INTEGRATION ===== */
.evening-integration-card {
    background: linear-gradient(135deg, rgba(92,114,80,0.04), rgba(201,168,76,0.03));
    border: 1px solid rgba(92,114,80,0.1);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.ei-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.ei-evidence {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.ei-tomorrow {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 430;
    color: var(--text-secondary);
    line-height: 1.55;
    font-style: italic;
}

/* ===== STREAK CELEBRATIONS ===== */
.first-welcome-card {
    background: linear-gradient(135deg, rgba(92,114,80,0.06), rgba(201,168,76,0.04));
    border: 1px solid rgba(92,114,80,0.12);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.fw-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.fw-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.fw-step {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}
.fw-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}
.streak-celebration {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(139,162,131,0.05));
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    animation: sc-enter 0.6s ease;
}
.sc-icon {
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
}
.sc-text {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 430;
    color: var(--text-primary);
    line-height: 1.5;
}
@keyframes sc-enter {
    0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== SURPRISE DELIGHT ===== */
.surprise-delight {
    background: var(--bg-card);
    border: 1px dashed rgba(92,114,80,0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: opacity 0.5s ease;
}
.surprise-delight.sd-fade {
    opacity: 0;
}
.sd-text {
    font-size: 13px;
    font-weight: 450;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

/* ===== ALL-DONE CLOSURE CARD ===== */
.all-done-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(92,114,80,0.04), rgba(201,168,76,0.03));
    border: 1px solid rgba(92,114,80,0.08);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.adc-icon {
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0.7;
}
.adc-text {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 430;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== BREATH PAUSE CARD ===== */
.breath-pause-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: opacity 0.8s ease;
}
.breath-pause-card.bp-fade {
    opacity: 0;
}
.bp-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(92,114,80,0.06);
    border: 1.5px solid rgba(92,114,80,0.15);
    animation: bp-breathe 4s ease-in-out infinite;
}
.bp-text {
    font-size: 13px;
    font-weight: 430;
    color: var(--text-muted);
    text-align: center;
}
@keyframes bp-breathe {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ===== MOMENTUM PILL (header) ===== */
.momentum-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.momentum-pill.rising {
    background: var(--green-bg);
    border: 1px solid rgba(95,163,101,0.15);
    color: var(--green);
}

.momentum-pill.stable {
    background: var(--sage-bg);
    border: 1px solid rgba(92,114,80,0.1);
    color: var(--sage);
}

.momentum-pill.drifting {
    background: rgba(196,91,91,0.06);
    border: 1px solid rgba(196,91,91,0.12);
    color: var(--red);
}

/* ===== MOMENTUM BANNER (insights) ===== */
.momentum-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.momentum-banner-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.momentum-banner-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.momentum-banner.rising {
    background: linear-gradient(135deg, rgba(95,163,101,0.08), rgba(95,163,101,0.03));
    border: 1px solid rgba(95,163,101,0.15);
    color: var(--green);
}

.momentum-banner.stable {
    background: linear-gradient(135deg, rgba(92,114,80,0.08), rgba(92,114,80,0.03));
    border: 1px solid rgba(92,114,80,0.12);
    color: var(--sage);
}

.momentum-banner.drifting {
    background: linear-gradient(135deg, rgba(196,91,91,0.06), rgba(196,91,91,0.02));
    border: 1px solid rgba(196,91,91,0.12);
    color: var(--red);
}

/* ===== MINIMUM VESSEL ACTION ===== */
.min-vessel-card {
    background: var(--sage-bg);
    border: 1px dashed rgba(92,114,80,0.25);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.min-vessel-card:active { transform: scale(0.985); }

.min-vessel-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.min-vessel-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ===== REFLECTION PROMPT ===== */
.reflection-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.reflection-prompt:active { transform: scale(0.985); }

.reflection-prompt-icon { font-size: 24px; flex-shrink: 0; }

.reflection-prompt-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.reflection-prompt-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 1px;
}

/* ===== 5 LAWS CARD ===== */
.laws-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.laws-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.laws-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.law-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.law-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sage-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--sage);
    flex-shrink: 0;
}

/* ===== CORRELATION CARDS ===== */
.correlation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sage);
    border-radius: 4px var(--radius) var(--radius) 4px;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

/* ===== FLASH RELEASE MESSAGE ===== */
.flash-release-msg {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(196,135,107,0.2);
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--sage);
    text-align: center;
}

/* ===== DETAIL TAG LABELS ===== */
.detail-tag-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== RITUAL CENTERING SCREEN ===== */
.ritual-centering {
    text-align: center;
    padding: 48px 24px 32px;
    animation: fadeUp 0.5s ease;
}

.centering-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0;
    animation: centerFadeIn 0.6s ease forwards;
}

.centering-text:nth-child(1) { animation-delay: 0.3s; }
.centering-text:nth-child(2) { animation-delay: 1.0s; }
.centering-text:nth-child(3) { animation-delay: 1.8s; }

.centering-emphasis {
    font-size: 18px;
    font-style: italic;
    color: var(--sage);
    line-height: 1.6;
    margin-top: 20px;
}

@keyframes centerFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RITUAL COMPLETION REWARD ===== */
.ritual-reward-sheet {
    text-align: center;
    padding: 60px 32px;
    animation: rewardPulse 0.5s cubic-bezier(0.2,0.8,0.2,1);
}

.ritual-reward-icon {
    font-size: 56px;
    color: var(--sage);
    margin-bottom: 20px;
    animation: rewardGlow 2s ease-in-out infinite alternate;
}

@keyframes rewardGlow {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.08); }
}

@keyframes rewardPulse {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.ritual-reward-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 8px;
}

.ritual-reward-sub {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ritual-reward-msg {
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
    font-family: var(--font-heading);
}

/* ===== FORM STEP INDICATOR ===== */
.form-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px 0;
}

.form-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 3px solid var(--border);
    transition: all 0.25s ease;
}

.form-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-inset);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.form-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.form-step.active {
    border-color: var(--sage);
}
.form-step.active .form-step-num {
    background: var(--sage);
    color: #fff;
}
.form-step.active .form-step-label {
    color: var(--sage);
}

.form-step.done {
    border-color: var(--sage);
}
.form-step.done .form-step-num {
    background: var(--sage-soft);
    color: var(--sage);
}
.form-step.done .form-step-label {
    color: var(--sage);
}

/* ===== DAILY WISDOM CARD ===== */
.wisdom-card {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-tertiary);
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 16px;
    line-height: 1.55;
}

/* ===== FLASH LOCKED STATE ===== */
.flash-card.flash-locked {
    cursor: default;
    opacity: 0.85;
}
.flash-card.flash-locked:active { transform: none; }
.flash-card.flash-locked .ask-card-title,
.flash-card.flash-locked .ask-card-body {
    opacity: 0.5;
}

/* ===== VESSEL LEVEL BAR ===== */
.vessel-level-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.vessel-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vessel-level-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.vessel-level-num {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--sage);
}

.vessel-level-track {
    height: 6px;
    background: var(--bg-inset);
    border-radius: 3px;
    overflow: hidden;
}

.vessel-level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-soft), var(--sage));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ===== RESISTANCE BANNER ===== */
.resistance-banner {
    background: var(--terra-soft);
    border: 1px solid var(--terra);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    cursor: pointer;
}

.resistance-banner-text {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.resistance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.resistance-btn {
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.resistance-btn:active {
    background: var(--sage-soft);
    border-color: var(--sage);
}

/* ===== SACRED PAUSE CARD ===== */
.sacred-pause-card {
    background: var(--gold-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.sacred-pause-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.sacred-pause-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===== SOMATIC GROUNDING STEP ===== */
.somatic-step {
    text-align: center;
    padding: 20px 16px;
    margin: 12px 0;
    background: var(--sage-bg);
    border-radius: var(--radius);
}

.somatic-icon {
    font-size: 28px;
    color: var(--sage);
    margin-bottom: 8px;
    animation: somaticPulse 3s ease-in-out infinite;
}

@keyframes somaticPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.somatic-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: var(--sage);
    line-height: 1.6;
}

/* ===== DETAIL METRICS ROW ===== */
.detail-metrics {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-metric {
    display: flex;
    flex-direction: column;
    background: var(--bg-inset);
    border-radius: 10px;
    padding: 8px 12px;
    flex: 1;
    min-width: 80px;
}

.detail-metric-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-metric-val {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== SHADOW DIALOGUE ===== */
.shadow-voice {
    padding: 10px 0;
    line-height: 1.5;
    font-size: 14px;
}

.shadow-voice + .shadow-voice {
    border-top: 1px solid var(--border);
}

.shadow-voice.fear {
    color: var(--terra);
}

.shadow-voice.higher {
    color: var(--sage);
}

.shadow-label {
    font-weight: 600;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* ===== LADDER UPGRADES ===== */
.ladder-info {
    flex: 1;
}

.ladder-question {
    font-size: 12px;
    font-style: italic;
    color: var(--sage);
    margin-top: 2px;
    line-height: 1.4;
}

.ladder-reverse-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-style: italic;
}

.ladder-reverse-note:active {
    color: var(--terra);
}

/* ===== FLASH ACTION COUNTDOWN ===== */
.flash-timer-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
}

.flash-timer-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--sage);
}

/* ===== IDENTITY TREND CARD ===== */
.identity-trend-card {
    background: var(--sage-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 12px 0 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: var(--sage);
    line-height: 1.5;
    text-align: center;
}

/* ===== BECOMING TRACKER ===== */
.becoming-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.becoming-card::before {
    content: '→ ';
    color: var(--sage);
    font-weight: 600;
}

/* ===== MOMENTUM PHASE MESSAGE ===== */
.phase-message {
    font-family: var(--font-heading);
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    text-align: center;
}

.phase-message.rising {
    background: var(--green-bg);
    color: var(--green);
}

.phase-message.drifting {
    background: var(--terra-soft);
    color: var(--terra);
}

.phase-message.stable {
    background: var(--sage-bg);
    color: var(--sage);
}

.phase-message.embodiment {
    background: var(--gold-bg);
    color: var(--gold);
}

/* ===== DUAL SCORE CARD ===== */
.dual-score-card {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.score-half {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.score-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.score-num {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--sage);
}

.vessel-level-fill.becoming {
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

/* ===== PHASE BANNER (Insights) ===== */
.phase-banner {
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.phase-banner.rising { background: var(--green-bg); }
.phase-banner.drifting { background: var(--terra-soft); }
.phase-banner.stable { background: var(--sage-bg); }
.phase-banner.embodiment { background: var(--gold-bg); }

.phase-banner-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.phase-banner.rising .phase-banner-label { color: var(--green); }
.phase-banner.drifting .phase-banner-label { color: var(--terra); }
.phase-banner.stable .phase-banner-label { color: var(--sage); }
.phase-banner.embodiment .phase-banner-label { color: var(--gold); }

.phase-banner-msg {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== MIRROR MOMENT ===== */
.mirror-moment-card {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.mirror-moment-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.mirror-moment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* ===== PROTECTOR BADGE ===== */
.protector-badge {
    display: inline-block;
    background: var(--terra-soft);
    color: var(--terra);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* ===== REAL COST ROW ===== */
.real-cost-row {
    padding: 12px 16px;
}

.real-cost-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.real-cost-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sage);
}

/* ===== FLOW PILL (header) ===== */
.flow-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.flow-pill.high { background: var(--green-bg); color: var(--green); }
.flow-pill.mid { background: var(--gold-bg); color: var(--gold); }
.flow-pill.low { background: var(--terra-soft); color: var(--terra); }

/* ===== SACRED RANDOMNESS CARD ===== */
.sacred-random-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.sacred-random-symbol {
    font-size: 28px;
    margin-bottom: 8px;
}

.sacred-random-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FUTURE SELF CARD ===== */
.future-self-card {
    background: linear-gradient(135deg, var(--gold-bg), var(--sage-bg));
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.future-self-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.future-self-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ===== SILENT MOMENTUM CARD ===== */
.silent-momentum-card {
    background: var(--bg-card);
    border-left: 3px solid var(--sage);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* ===== PROGRESSIVE REVELATION ===== */
.reveal-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
}

.reveal-section.revealed {
    opacity: 1;
    max-height: 2000px;
}

/* ===== RESISTANCE INSIGHT BUBBLE ===== */
.resistance-insight {
    background: var(--terra-soft);
    color: var(--terra);
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 6px;
    animation: fadeInUp 0.4s ease;
}

.ri-icon {
    margin-right: 4px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PULLING DOWN VISUALIZATION ===== */
.pulling-down-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin: 16px 0;
    text-align: center;
}

.pulling-down-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pulling-down-stages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pd-stage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.pd-stage.lit {
    opacity: 1;
    background: var(--gold-bg);
}

.pd-dot {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.4s;
}

.pd-stage.lit .pd-dot {
    color: var(--gold);
}

.pd-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.pd-connector {
    width: 1px;
    height: 12px;
    background: var(--border);
}

.pulling-down-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== SOUL LANGUAGE CARD (detail) ===== */
.soul-language-card {
    background: linear-gradient(135deg, var(--sage-bg), var(--gold-bg));
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.soul-language-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sage);
    margin-bottom: 6px;
}

.soul-language-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ===== 3-LAYER CARD (detail) ===== */
.three-layer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.layer-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

.layer-row + .layer-row {
    border-top: 1px solid var(--border);
}

.layer-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.layer-tag.physical { background: var(--sage-bg); color: var(--sage); }
.layer-tag.emotional { background: var(--gold-bg); color: var(--gold); }
.layer-tag.spiritual { background: var(--plum-bg, #f3eef8); color: var(--plum); }

.layer-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== FULLSCREEN OVERLAY (state shift / soul reveal) ===== */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.fullscreen-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* State Shift */
.state-shift-content {
    text-align: center;
    padding: 32px 24px;
    max-width: 340px;
}

.state-shift-step {
    display: none;
}

.state-shift-step.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.state-shift-icon {
    font-size: 40px;
    color: var(--sage);
    margin-bottom: 20px;
}

.state-shift-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Soul Reveal */
.soul-reveal-content {
    text-align: center;
    padding: 32px 24px;
    max-width: 360px;
}

.soul-reveal-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage);
    margin-bottom: 12px;
}

.soul-reveal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.soul-reveal-divider {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 16px;
}

.soul-reveal-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.soul-reveal-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    color: var(--gold);
    line-height: 1.6;
    margin-bottom: 24px;
}

.soul-reveal-layers {
    text-align: left;
}

.soul-layer {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    align-items: flex-start;
}

.soul-layer-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--sage-bg);
    color: var(--sage);
    margin-top: 1px;
}

/* ===== REALITY SHIFT TIMELINE ===== */
.reality-shift-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.shift-then, .shift-now {
    padding: 8px 0;
}

.shift-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.shift-then .shift-label { color: var(--terra); }
.shift-now .shift-label { color: var(--sage); }

.shift-quote {
    font-family: var(--font-heading);
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
}

.shift-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px 0;
}

.shift-insight {
    font-size: 13px;
    color: var(--sage);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ===== FLOW METER (Insights) ===== */
.flow-meter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.flow-meter-track {
    height: 8px;
    background: var(--bg-inset);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.flow-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.flow-meter-fill.high { background: linear-gradient(90deg, var(--sage), var(--green)); }
.flow-meter-fill.mid { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.flow-meter-fill.low { background: linear-gradient(90deg, var(--terra-soft), var(--terra)); }

.flow-meter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== v13: WIZARD FORM ===== */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.35s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.wizard-step-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wizard-step-footer {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.wizard-nav .btn-tint {
    flex: 1;
    text-align: center;
}

.wizard-nav .btn-gray {
    min-width: 80px;
}

/* Seal Summary */
.wizard-seal-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.seal-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seal-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.seal-summary-row:last-child { border-bottom: none; }

.seal-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 80px;
    padding-top: 2px;
}

.seal-summary-val {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    line-height: 1.4;
}

.seal-coherence {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.seal-coherence-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Make form steps clickable in wizard mode */
.form-step {
    cursor: pointer;
}

/* ===== v13: CLARITY GATE RESULT ===== */
.gate-clarity-result {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.clarity-score-display {
    text-align: center;
}

.clarity-bar {
    height: 6px;
    background: var(--bg-inset);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.clarity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.clarity-score-display.ready .clarity-fill { background: var(--sage); }
.clarity-score-display.blocked .clarity-fill { background: var(--terra); }

.clarity-label {
    font-size: 14px;
    font-weight: 600;
}

.clarity-score-display.ready .clarity-label { color: var(--sage); }
.clarity-score-display.blocked .clarity-label { color: var(--terra); }

/* ===== v13: VESSEL CLARIFICATION GATE ===== */
.gate-warning {
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.gate-warn-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.gate-warn-item:last-child { border-bottom: none; }

.gate-limit-warning {
    background: var(--terra-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--terra);
    line-height: 1.5;
}

.gate-limit-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ===== v13: COMPRESSION PROMPT + MODAL ===== */
.compression-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
}

.compression-prompt-icon {
    font-size: 24px;
    color: var(--plum);
    flex-shrink: 0;
}

.compression-prompt-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.compression-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.compression-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.compression-item-cat {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.compression-actions {
    display: flex;
    gap: 8px;
}

.compression-question {
    font-size: 13px;
    font-style: italic;
    color: var(--plum);
    text-align: center;
    padding-top: 12px;
    margin-top: 4px;
}

/* ===== v13: VESSEL COHERENCE CARD ===== */
.coherence-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.coherence-bar {
    height: 4px;
    background: var(--bg-inset);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.coherence-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.coherence-card.coherent .coherence-fill { background: var(--sage); }
.coherence-card.building .coherence-fill { background: var(--gold); }
.coherence-card.cloudy .coherence-fill { background: var(--terra); }

.coherence-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coherence-card.coherent .coherence-label { color: var(--sage); }
.coherence-card.building .coherence-label { color: var(--gold); }
.coherence-card.cloudy .coherence-label { color: var(--terra); }

/* ===== v13: PWA INSTALL BANNER ===== */
.pwa-install-banner {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 68px);
    left: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.pwa-install-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.pwa-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
}

/* iOS Safari install banner */
.pwa-ios {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 4px;
    animation: iosSlideUp 0.4s ease;
}
.pwa-ios .pwa-install-text {
    text-align: center;
}
.pwa-ios .pwa-install-text span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.pwa-ios .pwa-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
}
.ios-share-icon {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    color: var(--gold);
}
/* iOS banner arrow pointing down to Safari toolbar */
.pwa-ios::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}
@keyframes iosSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ===== v13: OFFLINE BAR ===== */
.offline-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--terra);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px 16px;
    z-index: 10000;
}

/* ===== v12: IDENTITY EVOLUTION CARD ===== */
.identity-evolution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.evo-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.evo-before, .evo-after {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.evo-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.evo-tag.before { background: var(--terra-soft); color: var(--terra); }
.evo-tag.after { background: var(--sage-bg); color: var(--sage); }

.evo-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px 0;
}

/* ===== v12: DYNAMIC PROTECTOR CARD ===== */
.dynamic-protector-card {
    background: var(--bg-card);
    border-left: 3px solid var(--terra);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.dp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--terra);
    margin-bottom: 6px;
}

.dp-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.dp-teshuvah {
    font-size: 13px;
    font-style: italic;
    color: var(--sage);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ===== v12: FLOW PILL ENERGETIC LABELS ===== */
.flow-pill.dormant { background: var(--terra-soft); color: var(--terra); }
.flow-pill.opening { background: var(--gold-bg); color: var(--gold); }
.flow-pill.building { background: var(--sage-bg); color: var(--sage); }
.flow-pill.alignment { background: var(--green-bg); color: var(--green); }
.flow-pill.embodiment { background: linear-gradient(135deg, var(--gold-bg), var(--sage-bg)); color: var(--sage); }

/* ===== v12: FLOW METER HEADER ===== */
.flow-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.flow-meter-state {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.flow-meter-state.dormant { color: var(--terra); }
.flow-meter-state.opening { color: var(--gold); }
.flow-meter-state.building { color: var(--sage); }
.flow-meter-state.alignment { color: var(--green); }
.flow-meter-state.embodiment { color: var(--sage); }

.flow-meter-num {
    font-size: 12px;
    color: var(--text-muted);
}

.flow-meter-fill.dormant { background: linear-gradient(90deg, var(--terra-soft), var(--terra)); }
.flow-meter-fill.opening { background: linear-gradient(90deg, var(--gold-soft, #e8d5a0), var(--gold)); }
.flow-meter-fill.building { background: linear-gradient(90deg, var(--sage-bg), var(--sage)); }
.flow-meter-fill.alignment { background: linear-gradient(90deg, var(--sage), var(--green)); }
.flow-meter-fill.embodiment { background: linear-gradient(90deg, var(--gold), var(--sage)); }

/* ===== v12: PHYSICAL ANCHOR ===== */
.physical-anchor {
    text-align: center;
    padding: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.anchor-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.anchor-text {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== v12: PREDICTIVE CARD ===== */
.predictive-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.predictive-icon {
    font-size: 18px;
    color: var(--plum);
    flex-shrink: 0;
}

.predictive-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== v12: EXCITEMENT INSIGHT ===== */
.excitement-insight {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.excitement-dot {
    margin-right: 4px;
}

.excitement-dot.high { color: var(--gold); }
.excitement-dot.steady { color: var(--sage); }
.excitement-dot.low { color: var(--terra); }

/* ===== v12: EXCITEMENT PULSE SLIDER ===== */
.excitement-pulse-slider {
    background: linear-gradient(180deg, transparent, var(--gold-bg));
}

/* ===== v14: DELAY GATE (Incubation) ===== */
.delay-gate-option {
    margin-top: 12px;
}

.delay-gate-option .btn-plain {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.delay-gate-bonus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(182,167,120,0.12), rgba(106,127,96,0.08));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    margin-top: 12px;
}

.delay-gate-bonus-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.delay-gate-bonus-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1.4;
}

.incubation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.incubation-card.ready {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(182,167,120,0.06), transparent);
}

.incubation-card.waiting {
    opacity: 0.7;
}

.incubation-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.incubation-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== v14: CONTRADICTION DETECTION ===== */
.contradiction-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(182,167,120,0.08), rgba(189,127,90,0.06));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    margin-top: 16px;
    animation: wizardFadeIn 0.4s ease;
}

.contradiction-icon {
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contradiction-text {
    flex: 1;
}

.contradiction-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.contradiction-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 4px 0;
    border-bottom: 1px solid rgba(182,167,120,0.15);
}

.contradiction-item:last-of-type { border-bottom: none; }

.contradiction-footer {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* ===== v14: MALKHUT ANCHOR ===== */
.malkhut-anchor {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.malkhut-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.malkhut-icon {
    font-size: 18px;
    color: var(--gold);
}

.malkhut-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold);
}

.malkhut-prompt {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.malkhut-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-inset);
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    resize: vertical;
    min-height: 60px;
}

.malkhut-detail-icon {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 4px;
}

/* ===== v14: HIDDEN PROGRESS PATTERN ===== */
.hidden-progress-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(106,127,96,0.08), rgba(182,167,120,0.06));
    border: 1px solid var(--sage);
    border-radius: var(--radius);
    margin: 12px 0;
    animation: wizardFadeIn 0.5s ease;
}

.hidden-progress-icon {
    font-size: 20px;
    color: var(--sage);
    flex-shrink: 0;
}

.hidden-progress-text {
    font-size: 13px;
    color: var(--sage);
    line-height: 1.5;
    font-weight: 500;
}

/* ===== v14: NO NEW ASK DAY (Sabbath) ===== */
.no-ask-day-card {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(182,167,120,0.06), rgba(106,127,96,0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.no-ask-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 8px;
}

.no-ask-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-ask-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== v14: FORGET PHASE (Non-Attachment) ===== */
.forget-phase-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    opacity: 0.65;
}

.forget-phase-icon {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.forget-phase-dashboard-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    font-style: italic;
}

.forget-phase-message {
    text-align: center;
    padding: 20px 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.forget-icon {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.forget-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

/* ===== v15: REALITY RECOGNITION LOOP ===== */
.recognition-loop {
    background: var(--bg-card);
    border: 1px solid var(--sage);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.recognition-prompt {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.recognition-context {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.recognition-context strong {
    color: var(--sage);
}

/* ===== v15: IDENTITY COMPRESSION ===== */
.identity-compression {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.identity-compression-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--terra);
    margin-bottom: 6px;
}

.identity-compression-prompt {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.identity-compression-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-inset);
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    resize: vertical;
    min-height: 60px;
}

/* ===== v15: SILENT MODE ===== */
.silent-day {
    text-align: center;
    padding: 48px 24px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.silent-day-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.silent-day-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.silent-day-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 24px;
}

.silent-day-date {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.silent-day-journal {
    width: 100%;
    max-width: 320px;
    text-align: left;
}

.silent-day-journal-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ===== v15: TEMPORAL COLLAPSE ===== */
.temporal-collapse-reminder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 16px 0;
    background: rgba(106,127,96,0.06);
    border-radius: var(--radius);
    border-left: 3px solid var(--sage);
}

.temporal-icon {
    font-size: 16px;
    color: var(--sage);
    flex-shrink: 0;
}

.temporal-text {
    font-size: 13px;
    color: var(--sage);
    font-style: italic;
    line-height: 1.4;
}

.temporal-collapse-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    background: rgba(106,127,96,0.04);
    border-radius: var(--radius);
}

.temporal-collapse-icon {
    font-size: 14px;
    color: var(--sage);
    flex-shrink: 0;
    opacity: 0.7;
}

.temporal-collapse-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

/* ===== v17: LIVING VESSEL — Visit-Aware Dashboard ===== */
.living-vessel-card {
    padding: 18px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    animation: wizardFadeIn 0.4s ease;
}

.living-vessel-card.lv-morning {
    background: linear-gradient(135deg, rgba(106,127,96,0.08), rgba(106,127,96,0.02));
    border-color: var(--sage);
}

.living-vessel-card.lv-midday {
    background: linear-gradient(135deg, rgba(182,167,120,0.08), rgba(182,167,120,0.02));
    border-color: var(--gold);
}

.living-vessel-card.lv-evening {
    background: linear-gradient(135deg, rgba(189,127,90,0.08), rgba(189,127,90,0.02));
    border-color: var(--terra);
}

.living-vessel-card.lv-night {
    background: linear-gradient(135deg, rgba(92,92,92,0.06), rgba(92,92,92,0.01));
    border-color: var(--border);
}

.lv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lv-time-icon {
    font-size: 16px;
    opacity: 0.7;
}

.lv-time-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.lv-message {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.lv-micro {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(128,128,128,0.15);
}

/* ===== v17: MICRO-RECOGNITION ===== */
.micro-recognition {
    animation: wizardFadeIn 0.3s ease;
}

.micro-q {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.micro-q strong {
    color: var(--text-primary);
}

.micro-btns {
    display: flex;
    gap: 8px;
}

.micro-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.15s ease;
}

.micro-btn.yes {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

.micro-btn.no {
    background: var(--bg-inset);
}

.micro-btn:active {
    transform: scale(0.97);
}

.micro-input-row {
    display: flex;
    gap: 8px;
}

.micro-word {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-inset);
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.micro-submit {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--sage);
    background: var(--sage);
    color: white;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.micro-done {
    font-size: 13px;
    color: var(--sage);
    font-style: italic;
}

/* ===== v17: VESSEL TEMPERATURE ===== */
.vessel-temp-card {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.vessel-temp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.vessel-temp-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vessel-temp-num {
    font-size: 14px;
    font-weight: 600;
}

.vessel-temp-bar {
    height: 3px;
    background: var(--bg-inset);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.vessel-temp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.vessel-temp-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===== SACRED PROGRESS RING ===== */
.sacred-ring-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.sacred-ring-visual {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.sacred-ring-svg {
    width: 64px;
    height: 64px;
}
.sacred-ring-fill {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sacred-ring-temp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
}
.sacred-ring-info {
    flex: 1;
}
.sacred-ring-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.sacred-ring-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== ENERGY BURST OVERLAY ===== */
.energy-burst-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15,12,10,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.energy-burst-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.eb-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eb-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.eb-ring-svg {
    width: 160px;
    height: 160px;
    position: absolute;
    top: 0;
    left: 0;
}
.eb-ring-fill {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px currentColor);
}
.eb-temp-display {
    text-align: center;
    z-index: 1;
}
.eb-temp-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}
.eb-temp-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
@keyframes eb-scale-in {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== QUALITY EMERGENCE ===== */
.qualities-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.qualities-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.qualities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.quality-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-inset);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
}
.quality-tag.quality-new {
    border-color: var(--gold);
    background: rgba(184,155,94,0.06);
    animation: quality-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quality-icon {
    font-size: 10px;
    opacity: 0.6;
}
.quality-name {
    font-weight: 600;
}
.quality-new-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    animation: quality-dot-pulse 1.5s ease-in-out infinite;
}
.quality-emergence {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 430;
    color: var(--gold);
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}
@keyframes quality-appear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes quality-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== ADVANCEMENT OVERLAY ===== */
.advancement-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15,12,10,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.advancement-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.adv-container {
    text-align: center;
    padding: 40px 32px;
    max-width: 320px;
    animation: adv-rise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.adv-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: adv-glow 2s ease-in-out infinite;
}
.adv-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: #FAF8F5;
    margin-bottom: 12px;
    line-height: 1.3;
}
.adv-sub {
    font-size: 14px;
    font-weight: 430;
    color: rgba(250,248,245,0.6);
    line-height: 1.55;
    margin-bottom: 28px;
}
.adv-dismiss {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    letter-spacing: 0.03em;
}
@keyframes adv-rise {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes adv-glow {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(184,155,94,0.3); }
    50% { opacity: 0.8; text-shadow: 0 0 20px rgba(184,155,94,0.5); }
}

/* ===== v16: IDENTITY GRAVITY ===== */
.identity-gravity-prompt {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.gravity-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* ===== v16: VESSEL PRESSURE ===== */
.vessel-pressure-card {
    padding: 10px 16px;
    margin: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.vessel-pressure-bar {
    height: 4px;
    background: var(--bg-inset);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.vessel-pressure-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.vessel-pressure-text {
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
}

/* ===== v16: EVOLUTION REVEAL ===== */
.evolution-reveal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(182,167,120,0.08), rgba(106,127,96,0.06));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    animation: wizardFadeIn 0.8s ease;
}

.evolution-reveal-icon {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
}

.evolution-reveal-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1.5;
}

/* ===== v17: LIVING RHYTHM — Time-Aware Dashboard ===== */
.rhythm-phase-icon {
    margin-right: 6px;
    opacity: 0.7;
}

.rhythm-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    animation: wizardFadeIn 0.4s ease;
}

.rhythm-card.rhythm-morning { border-left: 3px solid var(--gold); }
.rhythm-card.rhythm-midday { border-left: 3px solid var(--sage); }
.rhythm-card.rhythm-evening { border-left: 3px solid var(--terra); }
.rhythm-card.rhythm-night { border-left: 3px solid var(--text-muted); }

.rhythm-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rhythm-content {
    flex: 1;
    min-width: 0;
}

.rhythm-prompt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.rhythm-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.rhythm-input-row {
    display: flex;
    gap: 8px;
}

.rhythm-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-inset);
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.rhythm-submit {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--sage);
    color: white;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rhythm-saved {
    font-size: 14px;
    color: var(--sage);
    font-style: italic;
    line-height: 1.4;
    padding: 6px 0;
}

/* ===== v17: PULSE CHECK ===== */
.pulse-check {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.pulse-question {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pulse-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pulse-option {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-inset);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.pulse-option:active {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

.pulse-done {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 12px;
}

.pulse-done-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pulse-done-text {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== v17: BREATH MOMENT ===== */
.breath-moment {
    margin-bottom: 12px;
}

.breath-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.breath-trigger:active {
    background: rgba(106,127,96,0.06);
    border-color: var(--sage);
}

.breath-circle {
    font-size: 22px;
    color: var(--sage);
    opacity: 0.6;
}

.breath-label {
    font-size: 14px;
    color: var(--text-muted);
}

.breath-active {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg-card);
    border: 1px solid var(--sage);
    border-radius: var(--radius);
}

.breath-expanding {
    font-size: 48px;
    color: var(--sage);
    animation: breathPulse 8s ease-in-out;
}

@keyframes breathPulse {
    0% { transform: scale(0.8); opacity: 0.4; }
    35% { transform: scale(1.3); opacity: 1; }
    60% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

.breath-instruction {
    font-size: 16px;
    color: var(--sage);
    margin-top: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.breath-complete {
    text-align: center;
    padding: 20px 16px;
    background: rgba(106,127,96,0.04);
    border-radius: var(--radius);
    animation: wizardFadeIn 0.6s ease;
}

.breath-wisdom {
    font-size: 14px;
    color: var(--sage);
    font-style: italic;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== v17: DAY MAP ===== */
.day-map {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.day-map-phase {
    flex: 1;
    text-align: center;
    position: relative;
}

.day-map-phase:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 0;
    width: 50%;
    height: 1px;
    background: var(--border);
}

.day-map-phase + .day-map-phase::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 50%;
    height: 1px;
    background: var(--border);
}

.day-map-phase.past::after,
.day-map-phase.past + .day-map-phase::before {
    background: var(--sage);
}

.day-map-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 4px;
    transition: all 0.3s ease;
}

.day-map-phase.current .day-map-dot {
    background: var(--sage);
    box-shadow: 0 0 0 3px rgba(106,127,96,0.2);
}

.day-map-dot.active {
    background: var(--sage);
}

.day-map-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.day-map-phase.current .day-map-label {
    color: var(--sage);
    font-weight: 600;
}

.day-map-state {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== UTILS ===== */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.tc { text-align: center; }
.hidden { display: none !important; }

/* ============================================
   v18: UPGRADE A — VESSEL MATURATION EVENT
   ============================================ */
.maturation-event {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: maturationFadeIn 2s ease;
}
.maturation-space { flex: 1; }
.maturation-text {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.6;
    opacity: 0;
    animation: maturationReveal 2s ease forwards;
}
.maturation-delay {
    margin-top: 24px;
    font-size: 18px;
    color: var(--text-secondary);
    animation-delay: 2.5s;
}
.maturation-dismiss {
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    animation: maturationReveal 1.5s ease 5s forwards;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@keyframes maturationFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes maturationReveal {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   v18: INTEGRATION MOMENT — Sacred Pause After Seal
   ============================================ */
.integration-moment {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}
.integration-moment.show {
    opacity: 1;
    pointer-events: auto;
}
.integration-space { flex: 1; }
.integration-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: integrationPulse 3s ease infinite;
}
.integration-moment.show .integration-icon {
    animation: integrationReveal 1.5s ease forwards, integrationPulse 3s ease 1.5s infinite;
}
.integration-msg {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    white-space: pre-line;
    opacity: 0;
    max-width: 300px;
}
.integration-moment.show .integration-msg {
    animation: integrationReveal 1.5s ease 0.8s forwards;
}
@keyframes integrationReveal {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes integrationPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   v18: UPGRADE B — QUIET DAY
   ============================================ */
.quiet-day-card {
    background: var(--card);
    border: 1px solid var(--gold-dim);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 16px;
}
.quiet-day-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 12px;
}
.quiet-day-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
}
.quiet-day-body {
    font-size: 14px;
    font-weight: 430;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.quiet-day-option {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-style: italic;
    padding: 8px;
}
.quiet-day-option:active { color: var(--gold-dim); }

/* ============================================
   v18: UPGRADE C — REVERSE ASKING (Radiant)
   ============================================ */
.lv-radiant {
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02)) !important;
}
.reverse-ask-label {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}
.lv-radiant .lv-message {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--gold);
}

/* ============================================
   v18: UPGRADE D — ALREADY BEING INSIGHT
   ============================================ */
.being-insight-card {
    background: transparent;
    border: 1px solid var(--gold-dim);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    animation: beingFadeIn 1.5s ease;
}
.being-insight-icon {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.being-insight-text {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 450;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}
@keyframes beingFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================
   v18: STAGE-4 — VESSEL MIRROR (State Reading)
   ============================================ */
.vessel-mirror-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
    animation: mirrorFadeIn 1.2s ease;
}
.vessel-mirror-text {
    font-size: 14px;
    font-weight: 450;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: center;
    font-style: italic;
}
/* Mirror modes — subtle border color shifts */
.mirror-holding { border-left: 3px solid var(--sage); }
.mirror-calming { border-left: 3px solid #5a6a7a; }
.mirror-affirming { border-left: 3px solid var(--gold); }
.mirror-honoring { border-left: 3px solid #8a7a5a; }
.mirror-mirroring { border-left: 3px solid var(--sage); }
.mirror-radiant { border-left: 3px solid var(--gold); }
.mirror-returning { border-left: 3px solid #6a7a6a; }
.mirror-resting { border-left: 3px solid var(--text-muted); }
.mirror-grounding { border-left: 3px solid #7a6a5a; }
.mirror-noticing { border-left: 3px solid var(--sage); }
.mirror-integrating { border-left: 3px solid #5a5a7a; }
.mirror-reframing { border-left: 3px solid var(--text-secondary); }
.mirror-present { border-left: 3px solid var(--border); }
.mirror-reflection {
    border-left: 3px solid var(--gold);
    background: linear-gradient(135deg, rgba(201,168,76,0.04), transparent);
}
.mirror-reflection .vessel-mirror-text {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-style: normal;
}

@keyframes mirrorFadeIn {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ANCHOR STATS CARD
   ============================================ */
.anchor-stats-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 12px 0;
    text-align: center;
    border: 1px solid var(--border);
}
.anchor-stats-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.anchor-stats-rate {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.1;
}
.anchor-stats-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.anchor-stats-note {
    font-size: 12px;
    font-weight: 430;
    color: var(--text-tertiary);
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   IOS TOGGLE (checkbox)
   ============================================ */
.ios-toggle {
    -webkit-appearance: none;
    appearance: none;
    width: 51px;
    height: 31px;
    border-radius: 16px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
}
.ios-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}
.ios-toggle:checked {
    background: var(--sage);
}
.ios-toggle:checked::after {
    transform: translateX(20px);
}
.anchor-done-label {
    font-size: 14px;
    font-weight: 450;
    color: var(--text-secondary);
}

/* ============================================
   KABBALAH WISDOM TEACHING CARDS
   ============================================ */
.kab-wisdom {
    background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 14px 0;
}
.kab-wisdom-concept {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
    opacity: 0.8;
}
.kab-wisdom-teaching {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 430;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Inline variant for wizard steps */
.kab-wisdom-inline {
    margin: 12px 0 4px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), transparent);
}
.kab-wisdom-inline .kab-wisdom-teaching {
    font-size: 13px;
}

/* Ladder wisdom explanation */
.ladder-wisdom {
    font-size: 12px;
    font-weight: 420;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(201,168,76,0.04);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--gold);
}

/* Ladder saved answers */
.ladder-answer {
    font-size: 12px;
    font-weight: 420;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-top: 5px;
    padding: 6px 10px;
    background: rgba(139,162,131,0.06);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--sage);
}
.ladder-answer-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sage);
    display: block;
    margin-bottom: 2px;
}

/* Future ladder stages — dimmed, not yet reachable */
.ladder-row.future {
    opacity: 0.35;
    pointer-events: none;
}

/* Ladder modal stage-specific content */
.ladder-modal-question {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 430;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 0 12px;
}
.ladder-modal-wisdom {
    font-size: 12px;
    font-weight: 420;
    color: var(--gold);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 8px 16px;
    opacity: 0.75;
    font-style: italic;
}

/* Ritual step wisdom hints */
.ritual-wisdom-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--gold);
    opacity: 0.7;
    margin-top: 5px;
    font-style: italic;
}

/* Ritual reward wisdom */
.ritual-reward-wisdom {
    font-size: 13px;
    font-weight: 420;
    color: var(--gold);
    margin-top: 16px;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 320px;
}
.ritual-reward-wisdom .rw-concept {
    font-weight: 600;
    letter-spacing: 0.5px;
}
