@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Dark cosmic palette */
    --color-bg:          #07070d;
    --color-surface:     rgba(255, 255, 255, 0.05);
    --color-surface-md:  rgba(255, 255, 255, 0.08);
    --color-border:      rgba(255, 255, 255, 0.1);
    --color-text:        #f0f0f0;
    --color-text-muted:  rgba(255, 255, 255, 0.45);
    --color-accent:      #e8341c;         /* bold red — primary action only */
    --color-accent-soft: rgba(232, 52, 28, 0.15);
    --color-gold:        #f0b429;         /* saffron-gold — mantras & highlights */
    --color-gold-soft:   rgba(240, 180, 41, 0.12);
    --color-error:       #ff5252;
    --color-success:     #4caf7d;

    /* Typography */
    --font-sans:  'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Lora', Georgia, serif;

    /* Type scale */
    --text-display: 1.875rem; /* 30px */
    --text-title:   1.25rem;  /* 20px */
    --text-body:    1rem;     /* 16px */
    --text-small:   0.875rem; /* 14px */
    --text-caption: 0.8125rem;/* 13px */

    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;

    /* Radius */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-pill: 100px;
}

/* Light mode override */
body.light-mode {
    --color-bg:          #f5f3ef;
    --color-surface:     rgba(0, 0, 0, 0.04);
    --color-surface-md:  rgba(0, 0, 0, 0.07);
    --color-border:      rgba(0, 0, 0, 0.12);
    --color-text:        #1a1a1a;
    --color-text-muted:  rgba(0, 0, 0, 0.45);
    --color-gold-soft:   rgba(190, 120, 10, 0.1);
}

body.light-mode #starfield {
    opacity: 0.08;
}

/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 300ms ease, color 300ms ease;
}

/* ─── Starfield Canvas ──────────────────────────────────────────── */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── Landing Page ──────────────────────────────────────────────── */
.landing-view {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease;
}

.landing-hero {
    text-align: center;
}

.landing-hero h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.landing-tagline {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.landing-subtext {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.landing-actions {
    max-width: 300px;
    margin: 0 auto;
}

.landing-actions .auth-switch-text {
    margin-top: 1.5rem;
}

.landing-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.landing-how-it-works {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.landing-how-it-works h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    text-align: center;
}

.how-it-works-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-it-works-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.step-num {
    background: var(--color-accent);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.landing-footer,
.app-footer {
    text-align: center;
    padding: 1.1rem var(--space-3) 1.4rem;
    border-top: 1px solid var(--color-border);
}

.landing-footer a,
.app-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.landing-footer a:hover,
.app-footer a:hover {
    color: var(--color-text);
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.app-footer-invocation,
.app-footer-lineage,
.app-footer-credit {
    margin: 0;
}

.app-footer-invocation {
    max-width: 34rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.02em;
}

.app-footer-lineage {
    max-width: 33rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.app-footer-lineage a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-footer-lineage a:hover {
    color: var(--color-text);
}

.app-footer-credit {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.app-footer > a[href^="mailto:"] {
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.app-footer .footer-links {
    margin-top: 0.15rem;
}

@media (max-width: 600px) {
    .landing-footer,
    .app-footer {
        padding: 1rem var(--space-2) 1.2rem;
    }

    .app-footer {
        gap: 0.6rem;
    }

    .app-footer-invocation {
        font-size: 0.92rem;
    }

    .app-footer-lineage,
    .app-footer-credit {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .app-footer > a[href^="mailto:"] {
        font-size: 0.76rem;
        margin-top: 0.35rem;
    }

    .landing-footer a,
    .app-footer a,
    .footer-links {
        font-size: 0.76rem;
    }
}

@media (max-width: 400px) {
    .app-footer-invocation {
        font-size: 0.88rem;
    }

    .app-footer-lineage,
    .app-footer-credit {
        font-size: 0.74rem;
    }

    .footer-links {
        gap: 0.35rem;
    }
}

/* ── New landing sections ── */
.sy-container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.sy-about,
.sy-importance { padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.08); }

.sy-eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0b429;
    margin-bottom: 10px;
}

.sy-about h2,
.sy-importance h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.sy-about p,
.sy-importance p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

.sy-benefits {
    margin-top: 18px;
    padding-left: 0;
    list-style: none;
}
.sy-benefits li {
    position: relative;
    padding-left: 22px;
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
}
.sy-benefits li::before {
    content: "◦";
    position: absolute;
    left: 0;
    top: 0;
    color: #e8341c;
    font-size: 18px;
    line-height: 1.4;
}

.sy-guru {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sy-guru-salutation {
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #f0b429;
    margin-bottom: 10px;
}
.sy-guru p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    max-width: 620px;
    margin: 0 auto;
}
.sy-guru a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sy-guru a:hover { color: #fff; }

.sy-built-by {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.02em;
}

.dot-sep {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ─── Container ─────────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.container > header,
.container > main,
.container > .app-footer {
    width: 100%;
}

.container > main {
    flex: 1 0 auto;
}

.container > .app-footer {
    flex-shrink: 0;
}

/* ─── Header ────────────────────────────────────────────────────── */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--space-3) var(--space-3) var(--space-2);
    min-height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

header h1 {
    font-family: var(--font-serif);
    font-size: var(--text-title);
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

header h1 .logo-btn {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

header h1 .logo-btn:hover {
    opacity: 0.82;
}

header h1 .logo-btn:active {
    transform: scale(0.98);
}

header h1 .logo-btn:focus-visible {
    outline: 1px solid rgba(240, 180, 41, 0.55);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Mixed italic style: "Swara *Yoga*" */
header h1 em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

body.light-mode header h1 em {
    color: rgba(0, 0, 0, 0.55);
}

header .selected-date-label {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin-top: 2px;
    display: block;
}

/* ─── Main ──────────────────────────────────────────────────────── */
main {
    padding: var(--space-2) var(--space-3) var(--space-4);
}

/* ─── Super Admin Dashboard ────────────────────────────────────── */
.admin-shell {
    display: grid;
    gap: 1rem;
    animation: viewFadeIn 300ms ease-out both;
}

.admin-sidebar,
.admin-panel,
.admin-metric-card,
.admin-placeholder-card,
.admin-user-card {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-sidebar {
    padding: 1.25rem;
}

.admin-kicker,
.admin-panel-kicker,
.admin-metric-label,
.admin-user-meta {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-title {
    margin: 0.25rem 0 0;
    font-family: var(--font-serif);
    font-size: 1.75rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.admin-nav-item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.admin-nav-label {
    text-align: left;
    font-size: 0.95rem;
}

.admin-nav-badge {
    min-width: 28px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-sidebar-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1.25rem 0;
}

.admin-user-toggle {
    justify-content: center;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-metric-card {
    padding: 1rem;
}

.admin-metric-value {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-panel {
    display: none;
    padding: 1.25rem;
}

.admin-panel.active {
    display: block;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-panel-header h3 {
    margin: 0.25rem 0 0;
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

.admin-toolbar,
.admin-bulk-bar,
.admin-toolbar-actions,
.admin-inline-actions,
.admin-chart-grid,
.admin-detail-grid {
    display: flex;
    gap: 0.75rem;
}

.admin-toolbar,
.admin-bulk-bar {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-search-input,
.admin-select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    padding: 0.75rem 0.9rem;
}

.admin-search-input {
    min-width: 260px;
    flex: 1;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-row-muted {
    opacity: 0.75;
}

.admin-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    font-weight: 700;
}

.admin-inline-actions {
    flex-wrap: wrap;
}

.admin-callout {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(240, 180, 41, 0.08);
    color: var(--color-gold);
    border: 1px solid rgba(240, 180, 41, 0.18);
}

.admin-overview-revenue {
    margin-bottom: 1rem;
}

.admin-chart-grid,
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.admin-chart-title,
.admin-detail-card h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.admin-simple-chart {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.admin-chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.admin-chart-bar-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: end;
}

.admin-chart-bar {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-accent));
}

.admin-chart-value,
.admin-chart-label,
.admin-detail-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.admin-detail-card {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-link-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-risk-row {
    background: rgba(255, 82, 82, 0.06);
}

.admin-modal-sheet {
    max-width: 720px;
    width: calc(100% - 2rem);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-user-card,
.admin-placeholder-card {
    padding: 1rem;
}

.admin-user-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-user-header,
.admin-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-user-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.admin-user-email {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.07);
}

.admin-status-pill.pending_approval {
    color: var(--color-gold);
    background: rgba(240, 180, 41, 0.12);
}

.admin-status-pill.approved_unpaid {
    color: #8ec5ff;
    background: rgba(80, 160, 255, 0.16);
}

.admin-status-pill.active {
    color: var(--color-success);
    background: rgba(76, 175, 125, 0.14);
}

.admin-status-pill.rejected,
.admin-status-pill.suspended {
    color: var(--color-error);
    background: rgba(255, 82, 82, 0.14);
}

.admin-empty-state {
    padding: 1rem;
    border: 1px dashed var(--color-border);
    border-radius: 16px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ─── Pending Approval View ─────────────────────────────────────── */
.pending-wrapper {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    animation: fade-in 0.6s ease forwards;
}

.pending-content {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pending-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

#pending-headline {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.pending-body-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.pending-contact-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    text-align: center;
}

.pending-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.pending-signout-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.pending-signout-link:hover {
    color: var(--color-text);
}

.highlight-text {
    color: var(--color-text);
    font-weight: 600;
}

/* ─── View Transitions ──────────────────────────────────────────── */
.view-enter {
    animation: viewFadeIn 300ms ease-out both;
}

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

/* ─── Login Container & Auth Screens ────────────────────────────── */
#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5) var(--space-3);
    min-height: calc(100vh - 220px);
    justify-content: center;
}

.auth-view {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    animation: viewFadeIn 300ms ease-out both;
}

.login-step-sub {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 var(--space-2);
    line-height: 1.6;
}

.auth-instruction {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.login-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-caption);
    margin: var(--space-1) 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.auth-switch-text {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
    text-align: center;
}

.auth-switch-text a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
}

.auth-switch-text a:hover {
    color: var(--color-gold);
}

.forgot-password-link {
    text-align: right;
    margin-top: 6px;
}

.forgot-password-link a {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.forgot-password-link a:hover {
    color: var(--color-text);
}

.auth-message {
    width: 100%;
    max-width: 360px;
    margin-top: var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    text-align: center;
    line-height: 1.5;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}

.auth-message.success {
    border-color: rgba(76, 175, 125, 0.3);
    color: var(--color-success);
    background-color: rgba(76, 175, 125, 0.1);
}

.auth-message.error {
    border-color: rgba(255, 82, 82, 0.3);
    color: var(--color-error);
    background-color: rgba(255, 82, 82, 0.1);
}

/* ─── Form Elements ─────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-3);
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.label-optional {
    font-weight: 300;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.form-group input {
    width: 100%;
    padding: 14px var(--space-2);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-body);
    font-family: var(--font-sans);
    box-sizing: border-box;
    background-color: var(--color-surface);
    color: var(--color-text);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group input.error-border {
    border-color: var(--color-error);
}

/* Password Group & Eye Icon */
.password-group {
    position: relative;
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 14px;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    height: auto;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 200ms ease;
}

.btn-eye:hover {
    opacity: 1;
}

/* Inline Validation Errors */
.inline-error {
    display: block;
    color: var(--color-error);
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.inline-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Password Strength Meter */
.password-strength {
    height: 4px;
    background-color: var(--color-surface-md);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.strength-meter {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 300ms ease, background-color 300ms ease;
}

.strength-meter.weak {
    width: 33%;
    background-color: var(--color-error);
}

.strength-meter.medium {
    width: 66%;
    background-color: var(--color-gold);
}

.strength-meter.strong {
    width: 100%;
    background-color: var(--color-success);
}

body.light-mode .form-group input:focus {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Date/time inputs — light text on dark */
input[type="date"],
input[type="time"] {
    color-scheme: dark;
}

body.light-mode input[type="date"],
body.light-mode input[type="time"] {
    color-scheme: light;
}

/* ─── Button System ─────────────────────────────────────────────── */
button {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0 var(--space-4);
    height: 56px;
    min-width: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    transition: background-color 180ms ease, opacity 180ms ease, transform 120ms ease;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.01em;
}

button:active {
    transform: scale(0.97);
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Primary — bold red pill */
.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
    background-color: #ff3d22;
}

/* Secondary — outlined white pill */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    height: 48px;
    font-weight: 400;
    font-size: var(--text-small);
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text);
}

/* Google Sign In Button */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    font-size: 14px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: var(--radius-pill);
    transition: background-color 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-google:hover:not(:disabled) {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Ghost — minimal */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-muted);
    height: 44px;
    padding: 0 var(--space-2);
    font-size: var(--text-small);
    font-weight: 400;
}

.btn-ghost:hover:not(:disabled) {
    color: var(--color-text);
}

/* Nav ghost — compact header buttons */
.btn-nav-ghost {
    background-color: transparent;
    color: var(--color-text-muted);
    height: 36px;
    padding: 0 var(--space-1);
    font-size: var(--text-small);
    font-weight: 500;
    border-radius: var(--radius-pill);
}

.btn-nav-ghost:hover:not(:disabled) {
    color: var(--color-text);
}

/* Icon-only button */
.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Danger button — sign out */
.btn-danger {
    background-color: transparent;
    color: var(--color-error);
    border: 1.5px solid rgba(255, 82, 82, 0.3);
    height: 48px;
    font-weight: 500;
    font-size: var(--text-small);
}

.btn-danger:hover:not(:disabled) {
    background-color: rgba(255, 82, 82, 0.08);
}

/* Full-width modifier */
.btn-full {
    width: 100%;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ─── Auth Loading Overlay ──────────────────────────────────────── */
.auth-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--color-accent);
    animation: btnSpin 0.8s linear infinite;
}

/* ─── Home Screen Greeting ──────────────────────────────────────── */
.home-greeting {
    padding: var(--space-3) 0 var(--space-4);
}

.home-greeting-text {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
}

.home-date-display {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-1);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.home-context-line {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Sadhana Streak Bar ────────────────────────────────────────── */
.home-sadhana-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sadhana-streak-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sadhana-streak-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.sadhana-streak-label {
    font-size: var(--text-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* Day Zero State */
.sadhana-zero-state {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 4px 0;
}

.zero-state-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.zero-state-text {
    display: flex;
    flex-direction: column;
}

.zero-state-text strong {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
}

.zero-state-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Standard Streak State */
.sadhana-standard-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sadhana-dots {
    display: flex;
    gap: 8px; /* Slightly increased gap to fit labels */
    align-items: flex-start; /* Align to top to fit labels underneath */
}

.sadhana-dot-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sadhana-dot-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.sadhana-dot-label.today {
    color: var(--color-gold);
    font-weight: 700;
}

.sadhana-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    transition: background-color 200ms ease, transform 200ms ease;
}

.sadhana-dot.completed {
    background-color: var(--color-gold);
    transform: scale(1.15);
}

.sadhana-dot.today {
    border: 1.5px solid var(--color-gold);
    background-color: transparent;
}

.sadhana-dot.today.completed {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

/* ─── Date Selection & Past Practice ────────────────────────────── */
#date-selection {
    text-align: left;
    padding-top: var(--space-1);
}

.button-container {
    margin-top: var(--space-3);
}

.past-practice-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.toggle-past-practice-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.toggle-past-practice-link:hover {
    color: var(--text-color);
}

#past-practice-fields {
    text-align: left;
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Practice Cards ────────────────────────────────────────────── */
.practice-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.practice-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3) var(--space-3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: border-color 200ms ease;
}

.practice-card:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
}

.practice-card-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.practice-card-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.practice-card-body {
    flex: 1;
    min-width: 0;
}

.practice-card-title {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 2px;
}

.practice-card-desc {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ─── Pooja secondary row ────────────────────────────────────────── */
.pooja-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    opacity: 0.72;
    transition: opacity 200ms ease;
}

.pooja-secondary-row:hover {
    opacity: 1;
}

.pooja-secondary-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}

.pooja-secondary-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pooja-secondary-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pooja-secondary-title {
    font-family: var(--font-serif);
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--color-text);
}

.pooja-secondary-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.pooja-secondary-btn {
    font-size: var(--text-caption);
    padding: 6px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.practice-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-gold-soft);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: var(--text-caption);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

/* ─── Error ─────────────────────────────────────────────────────── */
.error {
    color: var(--color-error);
    font-size: var(--text-small);
    margin-top: var(--space-2);
    min-height: 20px;
    text-align: center;
}

/* ─── Stepper ───────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    gap: 0;
}

/* Connector line */
.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% / 14);
    right: calc(100% / 14);
    height: 1px;
    background-color: var(--color-border);
    z-index: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: default;
}

.step-indicator-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 250ms ease;
    position: relative;
    z-index: 1;
}

.step-indicator-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 250ms ease;
}

.step-indicator.active .step-indicator-circle {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(232, 52, 28, 0.5);
}

.step-indicator.active .step-indicator-label {
    color: var(--color-accent);
    font-weight: 600;
}

.step-indicator.completed .step-indicator-circle {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.step-indicator.completed .step-indicator-label {
    color: var(--color-gold);
}

/* ─── Step Content ──────────────────────────────────────────────── */
.steps-container .step {
    display: none;
    animation: stepFadeIn 250ms ease-out both;
}

.steps-container .step.active {
    display: block;
}

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

.step {
    padding: var(--space-4) 0 var(--space-2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    justify-content: center;
}

.step-meta {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-2);
    text-align: center;
}

/* Step icon */
.step-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--space-3);
    display: block;
}

/* Large serif title */
.step h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Info chips — centered row */
.step-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    justify-content: center;
}

.chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-surface-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px var(--space-2);
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chip-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.chip-value {
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.chip.chip-gold {
    border-color: rgba(240, 180, 41, 0.3);
    background-color: var(--color-gold-soft);
}

.chip.chip-gold .chip-value {
    color: var(--color-gold);
}

/* Instruction — muted subtitle below the title */
.step-instruction {
    font-size: var(--text-body);
    line-height: 1.75;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 36ch;
    text-align: center;
}

.step p {
    font-size: var(--text-body);
    line-height: 1.75;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 36ch;
    text-align: center;
}

.step .highlight {
    color: var(--color-gold);
    font-weight: 600;
}

/* Mantra blockquote */
.step blockquote {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-gold);
    border: 1px solid rgba(240, 180, 41, 0.25);
    background-color: var(--color-gold-soft);
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-style: italic;
    max-width: 38ch;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Action list — left-aligned numbered steps */
.step-actions {
    list-style: none;
    margin: var(--space-3) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 38ch;
}

.step-actions li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--text-small);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.step-actions li::before {
    content: attr(data-n);
    min-width: 24px;
    height: 24px;
    background-color: rgba(232, 52, 28, 0.15);
    border: 1px solid rgba(232, 52, 28, 0.3);
    color: var(--color-accent);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── Navigation ────────────────────────────────────────────────── */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-5);
    gap: var(--space-2);
}

/* ─── Pooja Journey ─────────────────────────────────────────────── */
#pooja-journey h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.01em;
}

/* Tighter top padding in pooja journey — progress dots sit close to card */
#pooja-journey .steps-container .step {
    padding-top: var(--space-2);
}

/* Mixed italic — "Pooja *Steps*" */
#pooja-journey h2 em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Stats row */
.stats-row {
    display: flex;
    align-items: stretch;
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    padding: var(--space-2) var(--space-1);
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--color-border);
}

.stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    display: block;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    display: block;
}

.stat-value em {
    font-style: normal;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    margin-left: 2px;
}

/* ─── Pooja Progress Dots ───────────────────────────────────────── */
.pooja-progress {
    margin-bottom: var(--space-2);
}

.unified-progress-dots {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin-top: var(--space-1);
    margin-bottom: var(--space-3);
}

.unified-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.unified-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background-color: var(--color-border);
    transition: background-color 300ms ease, transform 200ms ease;
    margin-bottom: 6px;
}

.unified-bar.filled {
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
}

.unified-bar.active {
    transform: scaleY(1.35);
    background: var(--color-gold);
}

.unified-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.unified-label.active {
    color: var(--color-text);
    font-weight: 600;
}

.unified-num {
    margin-bottom: 2px;
}

.unified-title {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unified-status {
    height: 12px;
    margin-top: 2px;
    font-size: 0.6rem;
    color: var(--color-gold);
}

/* ─── Pooja step hint ───────────────────────────────────────────── */
.pooja-step-hint {
    margin-top: var(--space-3);
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    text-align: center;
    letter-spacing: 0.01em;
    opacity: 0.6;
}

/* ─── Sadhana Log Modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 200ms ease-out both;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-sheet {
    background: #111118;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    padding: var(--space-2) var(--space-3) var(--space-5);
    animation: sheetSlideUp 280ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    border: 1px solid var(--color-border);
    border-bottom: none;
}

body.light-mode .modal-sheet {
    background: #faf9f7;
}

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

.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
    margin: 0 auto var(--space-3);
}

.modal-header {
    margin-bottom: var(--space-3);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}

.modal-title em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

body.light-mode .modal-title em {
    color: rgba(0, 0, 0, 0.5);
}

.modal-subtitle {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.modal-body {
    margin-bottom: var(--space-3);
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sadhana-field {
    margin-bottom: var(--space-3);
}

.sadhana-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-1);
}

/* Mood rating buttons */
.mood-rating {
    display: flex;
    gap: var(--space-1);
}

.mood-btn {
    flex: 1;
    height: 48px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    font-weight: 600;
    padding: 0;
    transition: all 180ms ease;
}

.mood-btn:hover:not(:disabled) {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: var(--color-gold-soft);
    transform: none;
}

.mood-btn.selected {
    background: var(--color-gold-soft);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ─── History View ──────────────────────────────────────────────── */
.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.history-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
.history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-width: 90px;
    font-family: var(--font-mono);
}

.history-dots {
    display: flex;
    gap: 2px;
}
.history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
}
.history-dot.filled {
    background-color: var(--color-gold);
}

.history-snippet {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}


/* Sadhana note textarea */
.sadhana-textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-small);
    line-height: 1.6;
    padding: 14px var(--space-2);
    resize: none;
    box-sizing: border-box;
    transition: border-color 200ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.sadhana-textarea::placeholder {
    color: var(--color-text-muted);
}

.sadhana-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Settings Panel ────────────────────────────────────────────── */
.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 200ms ease-out both;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: #0d0d18;
    z-index: 201;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid var(--color-border);
    animation: panelSlideIn 280ms cubic-bezier(0.4, 0, 0.2, 1) both;
    padding-bottom: var(--space-6);
}

body.light-mode .settings-panel {
    background: #faf9f7;
}

@keyframes panelSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes panelSlideOut {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}

.settings-title {
    font-family: var(--font-serif);
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.settings-section {
    padding: var(--space-3);
}

.settings-section-title {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 4px;
}

.settings-section-desc {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
    line-height: 1.5;
}

.settings-hint {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    margin: var(--space-1) 0 0;
    line-height: 1.5;
    opacity: 0.7;
}

.settings-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0 var(--space-3);
}

/* Profile row */
.settings-profile {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
}

.settings-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-gold-soft));
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gold);
    flex-shrink: 0;
}

.settings-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-profile-name {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-profile-email {
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Location row — two inputs side by side */
.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.settings-form-group {
    margin-bottom: var(--space-2);
}

.settings-location-btn {
    height: 40px;
    font-size: var(--text-caption);
    padding: 0 var(--space-2);
    margin-top: var(--space-1);
}

/* Toggle switch */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-1) 0;
}

.settings-toggle-label {
    font-size: var(--text-small);
    color: var(--color-text);
}

.toggle-switch {
    width: 48px;
    height: 28px;
    background: var(--color-surface-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: background-color 220ms ease, border-color 220ms ease;
    flex-shrink: 0;
    height: 28px;
}

.toggle-switch[aria-checked="true"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 220ms ease;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch[aria-checked="true"] .toggle-thumb {
    transform: translateX(20px);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .container {
        max-width: 100%;
    }

    main {
        padding: var(--space-2) var(--space-2) var(--space-5);
    }

    header {
        padding: var(--space-2) var(--space-2);
    }

    .step h3 {
        font-size: 1.5rem;
    }

    .step-indicator-label {
        display: none;
    }

    .stepper::before {
        top: 20px;
    }

    .settings-panel {
        max-width: 100%;
        border-left: none;
    }

    .home-date-display {
        font-size: 1.4rem;
    }
}

@media (max-width: 400px) {
    .step-indicator-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .stepper::before {
        top: 16px;
    }
}

/* ─── Payment / Activation Screen ──────────────────────────────── */
.payment-content {
    max-width: 440px;
    padding: 2.5rem 1.5rem;
}

.payment-headline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.payment-subheadline {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.payment-box {
    background: var(--color-surface-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.payment-box-header h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-gold);
}

.payment-box-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

.payment-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.price-monthly, .price-yearly {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.price-monthly small, .price-yearly small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.price-or {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
    font-style: italic;
}

.payment-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-features li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.promo-code-section {
    margin-bottom: 2rem;
    text-align: left;
}

.toggle-promo-btn {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.toggle-promo-btn:hover {
    color: var(--color-text);
}

.promo-code-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.promo-code-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.promo-code-container button {
    height: auto;
    padding: 0 1rem;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-footer-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* ─── Onboarding Screens ────────────────────────────────────────── */
.onboarding-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    animation: fade-in 0.6s ease forwards;
}

.onboarding-content {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.onboarding-step {
    animation: fade-in 0.4s ease forwards;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.onboarding-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.3s ease;
}

.onboarding-dots .dot.active {
    background: var(--color-gold);
}

.onboarding-headline {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-align: center;
}

.onboarding-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-features-list li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    background: var(--color-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.onboarding-features-list li strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
}

.onboarding-desc-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.onboarding-actions-split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}

.onboarding-actions-split button {
    flex: 1;
    white-space: normal;
}

@media (max-width: 600px) {
    .onboarding-actions-split {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .onboarding-actions-split button {
        width: 100%;
        height: auto;
        min-height: 56px;
    }
}

.onboarding-location-btn {
    margin-bottom: 1.5rem;
}

.onboarding-location-fields {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.onboarding-time-group {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.onboarding-time-group input {
    max-width: 200px;
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.onboarding-status-text {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
    min-height: 1.5rem;
}

.onboarding-status-text.success {
    color: var(--color-success);
}

.onboarding-status-text.error {
    color: var(--color-error);
}

@media (min-width: 768px) {
    .container {
        max-width: 1120px;
    }

    .admin-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }

    .admin-sidebar {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 767px) {
    .admin-overview {
        grid-template-columns: 1fr;
    }

    .admin-chart-grid,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-actions .btn-secondary,
    .admin-user-actions .btn-primary,
    .admin-user-actions .btn-ghost {
        width: 100%;
    }

    .admin-search-input,
    .admin-select {
        width: 100%;
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESONATE LANDING — full redesign
   Prefix: rs-
   All rules are additive; zero existing rules are modified.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Keyframes ─────────────────────────────────────────────────── */
@keyframes rs-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rs-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rs-pulse-line {
    0%, 100% { transform: scaleY(1);   opacity: 0.35; }
    50%       { transform: scaleY(1.5); opacity: 0.65; }
}

@keyframes rs-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
    50%       { box-shadow: 0 0 32px 4px rgba(240, 180, 41, 0.22); }
}

/* ─── Override landing-view gap for Resonate layout ────────────── */
#landing-container.landing-view {
    gap: 0;
    padding: 0;
}

/* ─── Shared containers ─────────────────────────────────────────── */
.rs-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.rs-container-narrow {
    max-width: 380px;
}

/* ─── Shared typography ─────────────────────────────────────────── */
.rs-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 var(--space-2);
    display: block;
}

.rs-gold {
    color: var(--color-gold);
}

.rs-gold-inline {
    color: var(--color-gold);
    font-weight: 600;
}

.rs-body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(240, 240, 240, 0.72);
    margin: 0 0 var(--space-3);
}

.rs-body-text em {
    font-style: italic;
    color: rgba(240, 240, 240, 0.9);
}

/* ─── Section base ──────────────────────────────────────────────── */
.rs-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── BEAT 1: Hero ──────────────────────────────────────────────── */
.rs-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-3);
    position: relative;
    text-align: center;
    border-top: none;
}

.rs-hero-inner {
    max-width: 420px;
    margin: 0 auto;
    padding: 120px 0 80px;
}

.rs-overline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 180, 41, 0.6);
    margin: 0 0 var(--space-4);
    display: block;
}

.rs-hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 0.06em;
}

.rs-headline-line {
    display: block;
}

.rs-headline-italic {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* Staggered entrance animations */
.rs-animate-line-1 {
    animation: rs-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.rs-animate-line-2 {
    animation: rs-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.rs-animate-line-3 {
    animation: rs-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.rs-animate-fade {
    animation: rs-fade-in 1s ease 0.7s both;
}

.rs-hero-subline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(240, 240, 240, 0.5);
    margin: 0 0 var(--space-6);
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll hint — animated vertical line */
.rs-hero-scroll-hint {
    display: flex;
    justify-content: center;
    padding-top: var(--space-2);
}

.rs-scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
    animation: rs-pulse-line 2.4s ease-in-out infinite;
}

/* ─── BEAT 2: Call ──────────────────────────────────────────────── */
.rs-section-call {
    padding: 88px 0;
}

.rs-section-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
}

.rs-section-headline-sm {
    font-size: 1.375rem;
    line-height: 1.35;
}

/* ─── BEAT 3: A morning, lived twice ────────────────────────────── */
.rs-section-story {
    padding: 96px 0;
    background: rgba(255, 255, 255, 0.02);
}

.rs-section-story .rs-container {
    text-align: center;
}

.rs-story-headline {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-5);
}

.rs-story {
    max-width: 640px;
    margin: var(--space-5) auto 0;
    text-align: left;
}

.rs-story-time {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 var(--space-4);
}

.rs-story-para {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0;
}

.rs-story-muted {
    color: rgba(240, 240, 240, 0.5);
}

.rs-story-muted em {
    font-style: italic;
    color: rgba(240, 240, 240, 0.72);
}

.rs-story-warm {
    color: rgba(240, 240, 240, 0.9);
}

.rs-story-warm em.rs-gold-inline {
    font-style: italic;
    color: var(--color-gold);
}

.rs-story-turn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.rs-story-turn-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(240, 180, 41, 0) 0%,
        rgba(240, 180, 41, 0.28) 50%,
        rgba(240, 180, 41, 0) 100%
    );
}

.rs-story-turn-text {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: rgba(240, 180, 41, 0.62);
    white-space: nowrap;
}

/* ─── BEAT 4: Practice glimpse ──────────────────────────────────── */
.rs-section-glimpse {
    padding: 88px 0;
}

.rs-moment {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rs-moment:first-of-type {
    border-top: none;
    padding-top: 0;
}

.rs-moment-marker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3px;
}

.rs-moment-num {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(240, 180, 41, 0.45);
    line-height: 1;
}

.rs-moment-title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.rs-moment-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.62);
    margin: 0;
}

.rs-moment-text .rs-gold-inline {
    font-style: italic;
}

/* ─── BEAT 5: Star moment ───────────────────────────────────────── */
.rs-section-star {
    padding: 96px 0;
    background: linear-gradient(
        180deg,
        rgba(240, 180, 41, 0.03) 0%,
        rgba(7, 7, 13, 0) 100%
    );
    border-top: 1px solid rgba(240, 180, 41, 0.1);
    border-bottom: 1px solid rgba(240, 180, 41, 0.1);
    text-align: center;
}

.rs-star-quote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.rs-star-line {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
    line-height: 1.4;
    color: var(--color-gold);
    margin: 0;
    letter-spacing: -0.01em;
}

.rs-star-line-2 {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    color: rgba(240, 180, 41, 0.7);
}

/* ─── BEAT 6: CTA ───────────────────────────────────────────────── */
.rs-section-cta {
    padding: 96px 0;
    text-align: center;
    border-top: none;
}

.rs-cta-overline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 var(--space-2);
    display: block;
}

.rs-cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.625rem, 6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 var(--space-5);
}

.rs-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

/* The threshold button — gold glow, not the standard red pill */
.rs-btn-threshold {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #07070d;
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0 var(--space-5);
    height: 60px;
    min-width: 280px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    transition: background-color 200ms ease, transform 120ms ease;
    -webkit-tap-highlight-color: transparent;
    animation: rs-glow-pulse 3s ease-in-out infinite;
}

.rs-btn-threshold:hover:not(:disabled) {
    background-color: #f5c04a;
    transform: translateY(-1px);
}

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

.rs-cta-signin {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.rs-cta-signin a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    transition: color 180ms ease;
}

.rs-cta-signin a:hover {
    color: var(--color-gold);
}

/* ─── BEAT 7: Guru credit ───────────────────────────────────────── */
.rs-guru {
    padding: 56px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.rs-guru-salutation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: rgba(240, 180, 41, 0.6);
    margin: 0 0 var(--space-2);
}

.rs-guru-body {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.45);
    max-width: 360px;
    margin: 0 auto var(--space-3);
}

.rs-guru-body a {
    color: rgba(240, 240, 240, 0.6);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.rs-guru-body a:hover {
    color: var(--color-gold);
}

.rs-built-by {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}

.rs-built-by a {
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 180ms ease;
}

.rs-built-by a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Responsive overrides ──────────────────────────────────────── */
@media (max-width: 400px) {
    .rs-hero-inner {
        padding: 96px 0 72px;
    }

    .rs-story-para {
        font-size: 1rem;
        line-height: 1.75;
    }

    .rs-story-turn-text {
        font-size: 0.8rem;
        white-space: normal;
        text-align: center;
    }

    .rs-btn-threshold {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    .rs-moment {
        grid-template-columns: 32px 1fr;
        gap: var(--space-2);
    }
}

@media (max-width: 600px) {
    .rs-section {
        padding: 64px 0;
    }

    .rs-section-star {
        padding: 72px 0;
    }

    .rs-section-cta {
        padding: 72px 0;
    }

    .rs-hero-headline {
        gap: 0.04em;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   GRAPHICS LAYER — rs-gfx-
   All rules are additive. Zero existing rules are modified.
   All animations wrapped in prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Beat 1: Hero SVG ──────────────────────────────────────────── */

/* Atmospheric hero background image hook.
   Drop hero-bg.jpg into static/img/ and it appears automatically. */
.rs-hero {
    background-image: url('/static/img/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

/* Layered gradient overlay — subtle vignette only behind headline,
   letting the atmospheric hero image remain cinematic and visible. */
.rs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 50% 45%, rgba(7,7,13,0.55) 0%, rgba(7,7,13,0) 70%),
        linear-gradient(180deg, rgba(7,7,13,0.15) 0%, rgba(7,7,13,0) 40%, rgba(7,7,13,0.55) 100%);
    z-index: 0;
    pointer-events: none;
}

/* SVG container — absolutely fills the hero, centred */
.rs-gfx-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rs-gfx-hero-svg {
    width: min(480px, 90vw);
    height: min(480px, 90vw);
    opacity: 0.28;
    flex-shrink: 0;
    mix-blend-mode: screen;
}

/* Travelling dots — separate overlay so they don't inherit the dimmed mandala opacity */
.rs-gfx-hero-dots {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.rs-gfx-hero-dots-svg {
    width: min(480px, 90vw);
    height: min(480px, 90vw);
    opacity: 1;
    flex-shrink: 0;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

/* Hero inner must sit above both the bg-image overlay and the SVG */
.rs-hero-inner {
    position: relative;
    z-index: 2;
}

/* ── Orbit ring slow spin ── */
.rs-gfx-ring-1 { transform-origin: 240px 240px; }
.rs-gfx-ring-2 { transform-origin: 240px 240px; }
.rs-gfx-ring-3 { transform-origin: 240px 240px; }

/* ── Lotus breath pulse ── */
.rs-gfx-lotus {
    transform-origin: 240px 240px;
}

/* ── Sun group slow pulse ── */
.rs-gfx-sun-group {
    transform-origin: 308px 80px;
}

/* ── Moon group slow breathe ── */
.rs-gfx-moon-group {
    transform-origin: 172px 80px;
}

@media (prefers-reduced-motion: no-preference) {
    /* Outermost ring — very slow clockwise */
    @keyframes rs-gfx-spin-cw {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }
    @keyframes rs-gfx-spin-ccw {
        from { transform: rotate(0deg); }
        to   { transform: rotate(-360deg); }
    }
    @keyframes rs-gfx-lotus-breathe {
        0%, 100% { transform: scale(1);    opacity: 0.22; }
        50%       { transform: scale(1.04); opacity: 0.30; }
    }
    @keyframes rs-gfx-sun-pulse {
        0%, 100% { transform: scale(1);    opacity: 0.65; }
        50%       { transform: scale(1.08); opacity: 0.85; }
    }
    @keyframes rs-gfx-moon-breathe {
        0%, 100% { transform: translateY(0px); }
        50%       { transform: translateY(-4px); }
    }
    @keyframes rs-gfx-star-twinkle {
        0%, 100% { opacity: 0.6; }
        50%       { opacity: 1.0; }
    }

    .rs-gfx-ring-1 { animation: rs-gfx-spin-cw  120s linear infinite; }
    .rs-gfx-ring-2 { animation: rs-gfx-spin-ccw  90s linear infinite; }
    .rs-gfx-ring-3 { animation: rs-gfx-spin-cw   60s linear infinite; }
    .rs-gfx-lotus  { animation: rs-gfx-lotus-breathe 7s ease-in-out infinite; }
    .rs-gfx-sun-group  { animation: rs-gfx-sun-pulse   5s ease-in-out infinite; }
    .rs-gfx-moon-group { animation: rs-gfx-moon-breathe 9s ease-in-out infinite; }
    .rs-gfx-stars  { animation: rs-gfx-star-twinkle 4s ease-in-out infinite; }
}

/* Reduce hero SVG opacity on very small screens so it doesn't crowd text */
@media (max-width: 400px) {
    .rs-gfx-hero-svg {
        width: min(320px, 88vw);
        height: min(320px, 88vw);
        opacity: 0.32;
    }
}

/* ─── Beat 2: Nadi diagram ──────────────────────────────────────── */

.rs-gfx-nadi-figure {
    margin: var(--space-5) auto var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.rs-gfx-nadi-svg {
    width: 160px;
    height: 214px;
    display: block;
}

.rs-gfx-nadi-caption {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes rs-gfx-nadi-ida-glow {
        0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 2px rgba(168,200,232,0)); }
        50%       { opacity: 1.00; filter: drop-shadow(0 0 5px rgba(168,200,232,0.4)); }
    }
    @keyframes rs-gfx-nadi-pingala-glow {
        0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 2px rgba(240,180,41,0)); }
        50%       { opacity: 1.00; filter: drop-shadow(0 0 5px rgba(240,180,41,0.35)); }
    }
    .rs-gfx-nadi-ida     { animation: rs-gfx-nadi-ida-glow     6s ease-in-out infinite; }
    .rs-gfx-nadi-pingala { animation: rs-gfx-nadi-pingala-glow  6s ease-in-out 1.5s infinite; }
}

/* ─── Beat 4: Moment icons ──────────────────────────────────────── */

.rs-gfx-moment-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

/* Flame flicker on icon 02 */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rs-gfx-flame-flicker {
        0%   { transform: scaleX(1)   scaleY(1)   translateY(0); }
        25%  { transform: scaleX(0.9) scaleY(1.05) translateY(-1px); }
        50%  { transform: scaleX(1.1) scaleY(0.97) translateY(0); }
        75%  { transform: scaleX(0.92) scaleY(1.04) translateY(-1px); }
        100% { transform: scaleX(1)   scaleY(1)   translateY(0); }
    }
    .rs-gfx-flame {
        transform-origin: 16px 18px;
        animation: rs-gfx-flame-flicker 2.4s ease-in-out infinite;
    }
}

/* Adjust moment-marker to stack icon above number */
.rs-moment-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0;
}

/* ─── Section dividers ──────────────────────────────────────────── */

.rs-gfx-divider {
    display: flex;
    justify-content: center;
    padding: 0;
    line-height: 0;
}

.rs-gfx-divider svg {
    display: block;
}

/* ─── Beat 5: Yantra background ─────────────────────────────────── */

.rs-section-star {
    position: relative;
    overflow: hidden;
}

.rs-section-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 960px;
    height: 960px;
    max-width: 110vw;
    max-height: 120%;
    transform: translate(-50%, -50%);
    background-image: url('/static/img/yantra-texture.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.68;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

/* Soft radial vignette so the centered text stays readable against the dominant yantra */
.rs-section-star::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(7, 7, 13, 0.55) 0%,
        rgba(7, 7, 13, 0.25) 40%,
        rgba(7, 7, 13, 0) 75%
    );
    pointer-events: none;
    z-index: 0;
}

.rs-gfx-yantra-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.rs-gfx-yantra-svg {
    width: min(480px, 92vw);
    height: min(480px, 92vw);
    opacity: 0.18;
    flex-shrink: 0;
}

/* Container inside star section must sit above the yantra */
.rs-section-star .rs-container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes rs-gfx-yantra-breathe {
        0%, 100% { transform: scale(1);    opacity: 0.18; }
        50%       { transform: scale(1.03); opacity: 0.26; }
    }
    .rs-gfx-yantra-svg {
        transform-origin: center;
        animation: rs-gfx-yantra-breathe 12s ease-in-out infinite;
    }
}

/* ─── Beat 6: CTA portal glow ───────────────────────────────────── */

.rs-section-cta {
    position: relative;
}

.rs-gfx-cta-glow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
    pointer-events: none;
    overflow: hidden;
}

.rs-gfx-cta-glow-svg {
    width: min(320px, 90vw);
    height: auto;
    flex-shrink: 0;
}

.rs-section-cta .rs-container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes rs-gfx-portal-pulse {
        0%, 100% { opacity: 1;    transform: scale(1); }
        50%       { opacity: 0.75; transform: scale(1.06); }
    }
    .rs-gfx-cta-glow-svg {
        transform-origin: center bottom;
        animation: rs-gfx-portal-pulse 5s ease-in-out infinite;
    }
}

/* ─── Responsive: mobile adjustments for graphics ───────────────── */
@media (max-width: 480px) {
    .rs-gfx-nadi-svg {
        width: 128px;
        height: 171px;
    }
    .rs-gfx-yantra-svg {
        width: min(380px, 92vw);
        height: min(380px, 92vw);
    }
    .rs-gfx-moment-icon {
        width: 24px;
        height: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Landing layout polish — full-bleed hero, tighter spacing,
   persistent header CTAs
   ═══════════════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll from 100vw breakout */
html, body {
    overflow-x: hidden;
}

/* When landing is active, remove container/main constraints so the
   hero can breathe edge-to-edge. Container keeps centering the header. */
body.landing-active .container {
    max-width: none;
    padding-bottom: 0;
}
body.landing-active main {
    padding: 0;
}
body.landing-active header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    max-width: 860px;
    margin: 0 auto;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

body.landing-active .header-left,
body.landing-active .header-right {
    flex: 1 1 0;
    min-width: 0;
}

body.landing-active .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-self: center;
    pointer-events: none;
}

body.landing-active .header-center > * {
    pointer-events: auto;
}

body.landing-active .header-right {
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

@media (max-width: 640px) {
    body.landing-active header {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 12px;
        max-width: 100%;
        padding-top: var(--space-2);
    }

    body.landing-active .header-left {
        display: none;
    }

    body.landing-active .header-center {
        position: static;
        transform: none;
        order: 1;
        pointer-events: auto;
    }

    body.landing-active .header-right {
        order: 2;
        margin-left: 0;
        justify-content: center;
        flex: 0 1 auto;
        flex-wrap: wrap;
    }
}

/* Full-bleed landing container — each rs-container inside keeps its
   own 480px content max-width, so only backgrounds/images go edge-to-edge. */
.landing-view {
    padding: 0;
    gap: 0;
}

/* Widen hero to full viewport so the image goes edge-to-edge */
.rs-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: calc(100vh - 64px);
}

/* Same full-bleed treatment for sections whose backgrounds matter */
.rs-section-story,
.rs-section-star,
.rs-section-cta,
.rs-guru,
.rs-section-call,
.rs-section-glimpse {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* On landing, stretch the footer full-bleed to match the edge-to-edge sections above it */
body.landing-active .app-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Tighter vertical rhythm — previous 80-96px was excessive on mobile */
.rs-section { padding: 56px 0; }
.rs-section-call,
.rs-section-glimpse { padding: 56px 0; }
.rs-section-story { padding: 64px 0; }
.rs-section-star { padding: 64px 0; }
.rs-section-cta { padding: 56px 0; }
.rs-hero-inner { padding: 64px 0 48px; }

/* ── Header CTAs (only visible on landing) ── */
.landing-header-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 200ms ease;
    white-space: nowrap;
    height: 36px;
}
.landing-header-link:hover {
    color: var(--color-gold);
}

.landing-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: #1a1208;
    border: none;
    border-radius: 100px;
    padding: 7px 16px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
    box-shadow: 0 0 18px rgba(240, 180, 41, 0.22);
    white-space: nowrap;
}
.landing-header-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 0 26px rgba(240, 180, 41, 0.4);
}
.landing-header-cta:active {
    transform: translateY(0);
}

/* Hide landing header buttons by default — JS shows them on landing.
   This prevents flash on other views during load. */
body:not(.landing-active) #landing-header-signin,
body:not(.landing-active) #landing-header-begin {
    display: none !important;
}

@media (max-width: 400px) {
    body.landing-active header {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    body.landing-active .header-right {
        gap: 8px;
    }

    .landing-header-link {
        font-size: 0.8125rem;
    }
    .landing-header-cta {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
}
