/* ============================================================
   LEGACI RESERVE — CONCIERGE PORTAL
   Internal Studio · v1.0
   Light-mode portal with dark ceremonial moments (login, presentation)
   ============================================================ */

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

:root {
    /* — Brand palette (matched to legacireserve.com) — */
    --navy:    #0C1A2C;
    --navy2:   #102236;
    --navy3:   #1A3050;
    --navy4:   #0A1522;
    --navy5:   #060F1A;
    --gold:    #B8892A;
    --gold2:   #C9A040;
    --gold3:   #DFC070;
    --gold4:   #EDD898;
    --gold5:   #F5E4B8;
    --cream:   #F4EDD8;
    --ivory:   #FAF6E9;
    --white:   #FFFFFF;
    --mid:     #5A6878;
    --slate:   #8A98A8;
    --red:     #C0392B;
    --green:   #1A4A2A;

    /* — Light-mode surfaces — */
    --bg:        #F7F2E4;   /* portal canvas */
    --bg-soft:   #FBF7EB;
    --surface:   #FFFFFF;
    --surface-2: #FAF6E9;
    --border:    rgba(12, 26, 44, 0.10);
    --border-2:  rgba(12, 26, 44, 0.06);
    --text:      #0C1A2C;
    --text-2:    #3F4D5E;
    --text-3:    #768494;

    /* — Type — */
    --fd: 'Cinzel', serif;
    --fe: 'Cormorant Garamond', serif;
    --fb: 'Barlow', sans-serif;
    --fl: 'Barlow Condensed', sans-serif;

    /* — Shadows — */
    --sh-1: 0 1px 2px rgba(12,26,44,0.04), 0 1px 1px rgba(12,26,44,0.03);
    --sh-2: 0 2px 8px rgba(12,26,44,0.06), 0 1px 3px rgba(12,26,44,0.04);
    --sh-3: 0 8px 32px rgba(12,26,44,0.08), 0 2px 8px rgba(12,26,44,0.04);
    --sh-gold: 0 0 0 1px var(--gold2), 0 8px 32px rgba(184,137,42,0.18);
}

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

body {
    font-family: var(--fb);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   OVERLAY SHELL — full-screen portal on top of legacireserve.com
   ============================================================ */
.lr-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: overlayIn 0.4s ease;
}
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lr-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 100;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(12, 26, 44, 0.06);
    color: var(--text-2);
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.lr-close:hover {
    background: rgba(12, 26, 44, 0.12);
    color: var(--text);
    transform: rotate(90deg);
}
.lr-close.on-dark {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}
.lr-close.on-dark:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

/* ============================================================
   LOGIN / AUTH (dark navy ceremonial)
   ============================================================ */
.auth-stage {
    flex: 1;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 40px 32px;
    position: relative;
    overflow-y: auto;
}
.auth-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 25%, rgba(184,137,42,0.10), transparent 60%);
    pointer-events: none;
}
.auth-stage > * { position: relative; z-index: 1; }

.auth-mark {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-mark img { width: 56px; height: auto; opacity: 0.95; }
.auth-mark-text {
    font-family: var(--fd);
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--gold3);
    text-transform: uppercase;
}
.auth-mark-sub {
    font-family: var(--fe);
    font-style: italic;
    font-size: 13px;
    color: var(--gold3);
    margin-top: 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.auth-center {
    max-width: 760px;
    margin: 64px auto 0;
    text-align: center;
    width: 100%;
}

.auth-h {
    font-family: var(--fe);
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--white);
    margin: 0;
}
.auth-h em {
    font-style: italic;
    color: var(--gold3);
    background: linear-gradient(90deg, var(--gold3), var(--gold4), var(--gold3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-sub {
    font-family: var(--fe);
    font-size: 18px;
    font-style: italic;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    margin: 18px 0 0;
}

.auth-rule {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold4), transparent);
    margin: 32px auto 38px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 540px;
    margin: 0 auto;
}
.profile-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 26px 18px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}
.profile-card:hover {
    border-color: rgba(201,160,64,0.45);
    background: rgba(184,137,42,0.04);
    transform: translateY(-2px);
}
.profile-card.selected {
    border-color: var(--gold2);
    background: rgba(184,137,42,0.08);
    box-shadow: 0 0 0 1px var(--gold2), 0 0 36px rgba(184,137,42,0.25);
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--navy3);
    background-size: cover;
    background-position: center top;
    border: 2px solid rgba(255,255,255,0.10);
    transition: border-color 0.25s ease;
}
.profile-card.selected .profile-avatar {
    border-color: var(--gold2);
    box-shadow: 0 0 24px rgba(201,160,64,0.4);
}
.profile-name {
    font-family: var(--fe);
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.01em;
    margin: 0;
}
.profile-title {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.32em;
    color: var(--gold3);
    text-transform: uppercase;
    margin: 6px 0 0;
}

.pin-block {
    max-width: 420px;
    margin: 36px auto 0;
}
.pin-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
    white-space: nowrap;
}
.pin-label-row .who { color: var(--gold3); }

.pin-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.pin-box {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--fe);
    font-size: 32px;
    text-align: center;
    transition: all 0.2s;
}
.pin-box:focus {
    border-color: var(--gold2);
    background: rgba(184,137,42,0.08);
    box-shadow: 0 0 0 1px var(--gold2);
    outline: none;
}
.pin-block.error .pin-box {
    border-color: var(--red);
    animation: shake 0.4s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold2);
    color: var(--navy5);
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.32em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1px solid var(--gold2);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-gold:hover:not(:disabled) {
    background: var(--gold3);
    border-color: var(--gold3);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184,137,42,0.35);
}
.btn-gold:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
    background: transparent;
    color: var(--gold2);
    border: 1px solid rgba(184,137,42,0.5);
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.28em;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    transition: all 0.2s;
}
.btn-ghost:hover {
    border-color: var(--gold2);
    color: var(--gold3);
    background: rgba(184,137,42,0.06);
}

.auth-actions { margin-top: 28px; display: flex; justify-content: center; }

.auth-foot {
    margin-top: auto;
    padding-top: 56px;
    text-align: center;
    font-family: var(--fe);
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.02em;
}
.auth-foot .mark {
    display: block;
    font-family: var(--fl);
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.4em;
    color: rgba(201,160,64,0.55);
    margin-top: 10px;
}

/* — Mode Selector (luxury) — */
.mode-grid-lux {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 38px auto 0;
    max-width: 820px;
}
.mode-card-lux {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    padding: 48px 38px 40px;
    text-align: left;
    cursor: pointer;
    transition: all 0.35s ease;
    overflow: hidden;
}
.mode-card-lux::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold2), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mode-card-lux::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(184,137,42,0);
    border-radius: 2px;
    pointer-events: none;
    transition: border-color 0.35s ease;
}
.mode-card-lux:hover {
    border-color: var(--gold2);
    background: linear-gradient(180deg, rgba(184,137,42,0.06), rgba(184,137,42,0.015));
    transform: translateY(-3px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,160,64,0.2);
}
.mode-card-lux:hover::before { opacity: 1; }
.mode-card-lux:hover::after { border-color: rgba(184,137,42,0.18); }

.mc-num {
    font-family: var(--fd);
    font-size: 11px;
    letter-spacing: 0.42em;
    color: var(--gold3);
    margin-bottom: 28px;
    opacity: 0.85;
}
.mc-eye {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.42em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mc-h {
    font-family: var(--fe);
    font-size: 36px;
    font-weight: 300;
    color: var(--white);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.005em;
}
.mc-h em {
    font-style: italic;
    color: var(--gold3);
    background: linear-gradient(90deg, var(--gold3), var(--gold4), var(--gold3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mc-rule {
    width: 36px;
    height: 1px;
    background: var(--gold2);
    margin: 18px 0;
    opacity: 0.5;
    transition: width 0.35s ease, opacity 0.35s ease;
}
.mode-card-lux:hover .mc-rule { width: 80px; opacity: 1; }
.mc-p {
    font-family: var(--fe);
    font-size: 16px;
    font-style: italic;
    color: rgba(255,255,255,0.62);
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 360px;
}
.mc-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--gold3);
    text-transform: uppercase;
    transition: gap 0.25s ease, color 0.25s ease;
}
.mode-card-lux:hover .mc-cta { gap: 16px; color: var(--gold4); }

/* — Legacy mode grid (kept for safety, unused) — */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 680px;
    margin: 36px auto 0;
}
.mode-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 44px 32px;
    text-align: left;
    transition: all 0.25s;
    cursor: pointer;
}
.mode-card:hover {
    border-color: var(--gold2);
    background: rgba(184,137,42,0.05);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.mode-icon {
    width: 48px;
    height: 48px;
    color: var(--gold2);
    margin-bottom: 24px;
}
.mode-title {
    font-family: var(--fe);
    font-size: 32px;
    font-weight: 400;
    color: var(--white);
    margin: 0 0 8px;
}
.mode-desc {
    font-family: var(--fe);
    font-size: 16px;
    font-style: italic;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ============================================================
   MANAGEMENT SHELL
   ============================================================ */
.mgmt-app {
    flex: 1;
    display: grid;
    grid-template-columns: 252px 1fr;
    background: var(--bg);
    overflow: hidden;
}

.sidebar {
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    min-height: 0;
}
.sidebar-foot { flex-shrink: 0; }
.sidebar-brand {
    padding: 24px 24px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-brand img { width: 38px; height: auto; }
.sidebar-brand-text {
    font-family: var(--fd);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold3);
}
.sidebar-brand-sub {
    font-family: var(--fe);
    font-style: italic;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.sidebar-section {
    padding: 18px 24px 6px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.32em;
    color: rgba(255,255,255,0.32);
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 12px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255,255,255,0.72);
    font-family: var(--fb);
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.nav-item .nav-num {
    font-family: var(--fd);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.32);
    width: 18px;
    flex-shrink: 0;
}
.nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--white);
}
.nav-item:hover .nav-num { color: var(--gold3); }
.nav-item.active {
    background: rgba(184,137,42,0.10);
    color: var(--gold3);
}
.nav-item.active .nav-num { color: var(--gold2); }

.sidebar-foot {
    margin-top: auto;
    padding: 18px 20px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.sidebar-user .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background-size: cover; background-position: center top;
    border: 1px solid var(--gold3);
}
.sidebar-user .meta { line-height: 1.2; }
.sidebar-user .label {
    font-family: var(--fl);
    font-size: 8px;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}
.sidebar-user .nm {
    font-family: var(--fe);
    font-size: 16px;
    color: var(--gold3);
}
.sidebar-user .ti {
    font-family: var(--fl);
    font-size: 8px;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
}
.lock-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.7);
    padding: 9px 14px;
    border-radius: 6px;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.lock-btn:hover {
    border-color: var(--gold2);
    color: var(--gold3);
    background: rgba(184,137,42,0.06);
}

.mgmt-main {
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 0 28px;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* — Daily Verse Banner (gold-bordered navy band — PDF reference) — */
.verse-banner {
    background: var(--navy);
    color: var(--cream);
    border-bottom: 1px solid var(--gold);
    border-top: 1px solid rgba(184,137,42,0.3);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 44px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 11;
    overflow: hidden;
}
.vb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 0 24px;
    height: 100%;
    background: linear-gradient(90deg, var(--navy5), var(--navy));
    border-right: 1px solid rgba(184,137,42,0.3);
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.34em;
    color: var(--gold3);
    text-transform: uppercase;
    white-space: nowrap;
}
.vb-glyph {
    width: 6px; height: 6px;
    background: var(--gold3);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(223,192,112,0.7);
}
.vb-bible {
    font-family: var(--fd);
    font-size: 8px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 2px 6px;
    letter-spacing: 0.22em;
    border-radius: 2px;
}
.vb-track-wrap { overflow: hidden; position: relative; height: 100%; }
.vb-track {
    display: flex;
    align-items: center;
    gap: 80px;
    height: 100%;
    white-space: nowrap;
    animation: vbTick 90s linear infinite;
    padding-left: 24px;
}
.vb-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.vb-text {
    font-family: var(--fe);
    font-style: italic;
    font-size: 15px;
    color: var(--cream);
    opacity: 0.92;
}
.vb-ref {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--gold3);
    text-transform: uppercase;
    border-left: 1px solid var(--gold);
    padding-left: 16px;
}
@keyframes vbTick {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

.topbar-secondary {
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 18px;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    z-index: 10;
}
.tb-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fd);
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--text-2);
    text-transform: uppercase;
}
.tb-eyebrow em {
    font-family: var(--fe);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.005em;
    color: var(--gold);
    font-size: 14px;
}
.tb-eyebrow img { height: 22px; opacity: 0.85; }

.verse-ticker {
    overflow: hidden;
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.verse-ticker .track {
    display: flex;
    gap: 96px;
    white-space: nowrap;
    animation: tick 80s linear infinite;
    font-family: var(--fe);
    font-style: italic;
    font-size: 14px;
    color: var(--text-2);
}
.verse-ticker .ref {
    font-family: var(--fl);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-left: 10px;
    text-transform: uppercase;
}
@keyframes tick {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.topbar-date {
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--text-2);
    text-transform: uppercase;
    white-space: nowrap;
}
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-2);
    display: grid;
    place-items: center;
    transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg); color: var(--gold); }

.page {
    padding: 28px 32px 64px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.page-eyebrow {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.36em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.page-h {
    font-family: var(--fe);
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.05;
}
.page-h em {
    font-style: italic;
    color: var(--gold);
}
.page-sub {
    font-family: var(--fe);
    font-size: 18px;
    font-style: italic;
    color: var(--text-2);
    margin: 0 0 28px;
    font-weight: 300;
    max-width: 720px;
    line-height: 1.5;
}

/* — Common UI primitives — */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--sh-1);
}
.card-h {
    font-family: var(--fe);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 4px;
}
.card-sub {
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary:hover {
    background: var(--navy3);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(12,26,44,0.18);
}
.btn-cta {
    background: var(--gold2);
    color: var(--navy5);
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.btn-primary, .btn-ln { white-space: nowrap; }
.btn-cta:hover {
    background: var(--gold3);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184,137,42,0.32);
}
.btn-ln {
    background: transparent;
    color: var(--text);
    padding: 11px 20px;
    border-radius: 8px;
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-ln:hover {
    border-color: var(--gold2);
    color: var(--gold);
    background: rgba(184,137,42,0.04);
}

.badge {
    display: inline-block;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
}
.badge-reserve { background: rgba(12,26,44,0.08); color: var(--navy); }
.badge-estate  { background: rgba(184,137,42,0.14); color: var(--gold); }
.badge-legaci  { background: var(--navy); color: var(--gold3); }
.badge-soft    { background: var(--bg); color: var(--text-2); }

.status-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold2);
    margin-right: 6px;
}
.status-dot.green { background: #2E8B57; }
.status-dot.red   { background: var(--red); }
.status-dot.gold  { background: var(--gold2); }
.status-dot.grey  { background: var(--text-3); }

/* — Form controls — */
.field { margin-bottom: 16px; }
.field-label {
    display: block;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--text-2);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.field-input,
.field-select,
.field-textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: var(--fb);
    font-size: 14px;
    color: var(--text);
    transition: all 0.15s;
}
.field-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: var(--gold2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184,137,42,0.10);
}

/* The Calendly inline widget box has pointer-events:none while empty (see
   management.jsx) so a click meant for the fallback "open in new tab" link
   underneath doesn't get silently swallowed by an invisible, unpopulated
   box sitting on top of it. Once Calendly's script actually loads and
   inserts its real iframe inside, this re-enables clicking on that iframe
   specifically, so the working widget is never accidentally unclickable. */
.calendly-inline-widget iframe {
    pointer-events: auto;
}

/* Modal */
.modal-back {
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 44, 0.45);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 28px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--sh-3);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
}
.modal-wide { max-width: 820px; }

/* Answer sheet printing — hides everything except the printable
   content when the user hits Print/Save as PDF on the answer sheet.
   .print-header is hidden on screen (the modal's own header already
   shows the client name) but shown on the printed page, since the
   modal chrome itself is hidden there. */
@media print {
    body * { visibility: hidden; }
    .answer-sheet, .answer-sheet * { visibility: visible; }
    .answer-sheet .no-print { display: none !important; }
    .answer-sheet .print-header { display: block !important; margin-bottom: 20px; }
    .modal-back { position: static !important; background: none !important; padding: 0 !important; }
    .answer-sheet { position: static !important; max-width: 100% !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
}

.modal-h {
    font-family: var(--fe);
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 4px;
}
.modal-sub {
    font-family: var(--fe);
    font-style: italic;
    font-size: 14px;
    color: var(--text-2);
    margin: 0 0 20px;
}
.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--fl);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 300;
    box-shadow: var(--sh-3);
    border: 1px solid var(--gold2);
    animation: toastIn 0.3s ease;
}
.toast .check {
    display: inline-block;
    color: var(--gold3);
    margin-right: 8px;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   HOME DASHBOARD — luxury layout per PDF screenshot
   ============================================================ */
.page-home { padding-top: 36px; }

.home-hero-lux {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-2);
}
.home-h {
    font-family: var(--fe);
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 300;
    letter-spacing: -0.012em;
    line-height: 1.02;
    color: var(--text);
    margin: 10px 0 16px;
}
.home-h em {
    font-style: italic;
    color: var(--gold);
}
.home-sub {
    font-family: var(--fe);
    font-size: 18px;
    font-style: italic;
    color: var(--text-2);
    margin: 0 0 22px;
    font-weight: 300;
    max-width: 640px;
    line-height: 1.55;
}

.home-cipher {
    text-align: right;
    padding-top: 6px;
    min-width: 220px;
}
.cipher-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--fe);
    font-size: 88px;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--gold);
    background: linear-gradient(180deg, var(--gold2) 0%, var(--gold3) 60%, var(--gold4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.cipher-amp {
    font-size: 56px;
    opacity: 0.8;
    margin: 0 2px;
}
.cipher-tag {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.34em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-top: 10px;
    line-height: 1.7;
}

.home-grid-lux {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.home-tiles-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.home-aside-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* — Tile (h-tile, luxury) — */
.htile {
    position: relative;
    border-radius: 4px;
    padding: 30px 28px 26px;
    cursor: pointer;
    transition: all 0.35s ease;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}
.htile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.htile::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 2px;
    pointer-events: none;
    transition: all 0.35s ease;
    opacity: 0;
}
.htile.navy {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy4) 100%);
    color: var(--cream);
    border: 1px solid var(--gold);
    box-shadow: 0 4px 22px rgba(12,26,44,0.18);
}
.htile.navy::before { background: linear-gradient(90deg, transparent, var(--gold3), transparent); }
.htile.cream {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.htile.cream::before { background: linear-gradient(90deg, transparent, var(--gold2), transparent); }

.htile:hover { transform: translateY(-3px); }
.htile:hover::before { opacity: 1; }
.htile:hover::after { opacity: 1; }
.htile.navy:hover {
    box-shadow: 0 18px 48px rgba(12,26,44,0.28), 0 0 32px rgba(184,137,42,0.18);
}
.htile.navy:hover::after { border: 1px solid rgba(184,137,42,0.25); }
.htile.cream:hover {
    border-color: var(--gold2);
    box-shadow: 0 14px 36px rgba(12,26,44,0.08);
}
.htile.cream:hover::after { border: 1px solid rgba(184,137,42,0.18); }

.htile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}
.htile-eye {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
}
.htile.navy .htile-eye { color: var(--gold3); opacity: 0.85; }
.htile.cream .htile-eye { color: var(--gold); }

.htile-num {
    font-family: var(--fd);
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
}
.htile.navy .htile-num { color: var(--gold3); opacity: 0.65; }
.htile.cream .htile-num { color: var(--gold); opacity: 0.55; }
.htile-h {
    font-family: var(--fe);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.05;
    margin: 0 0 12px;
}
.htile.navy .htile-h { color: var(--white); }
.htile.cream .htile-h { color: var(--text); }
.htile-h em {
    font-style: italic;
    color: var(--gold);
    margin-left: 2px;
}
.htile.navy .htile-h em {
    color: var(--gold3);
    background: linear-gradient(90deg, var(--gold3), var(--gold4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.htile-p {
    font-family: var(--fe);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    font-weight: 300;
    flex: 1;
}
.htile.navy .htile-p { color: rgba(244,237,216,0.7); }
.htile.cream .htile-p { color: var(--text-2); }

.htile-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid;
}
.htile.navy .htile-foot { border-top-color: rgba(184,137,42,0.2); }
.htile.cream .htile-foot { border-top-color: var(--border-2); }
.htile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    transition: gap 0.25s ease;
}
.htile.navy .htile-cta { color: var(--gold3); }
.htile.cream .htile-cta { color: var(--gold); }
.htile:hover .htile-cta { gap: 14px; }
.htile-ic {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    transition: all 0.3s ease;
}
.htile.navy .htile-ic {
    background: rgba(184,137,42,0.12);
    color: var(--gold3);
    border: 1px solid rgba(184,137,42,0.25);
}
.htile.cream .htile-ic {
    background: var(--bg);
    color: var(--gold);
    border: 1px solid var(--border-2);
}
.htile:hover .htile-ic {
    transform: rotate(-3deg) scale(1.05);
}
.htile.navy:hover .htile-ic {
    background: var(--gold2);
    color: var(--navy5);
    border-color: var(--gold2);
}
.htile.cream:hover .htile-ic {
    background: var(--gold2);
    color: var(--navy5);
    border-color: var(--gold2);
}
.home-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-2);
}
.home-mark {
    text-align: right;
}
.home-mark img { width: 96px; opacity: 0.85; }
.home-mark .tag {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.34em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-top: 8px;
    max-width: 200px;
    margin-left: auto;
    line-height: 1.6;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px 24px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.tile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold2), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tile:hover {
    border-color: var(--gold2);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(12,26,44,0.08), 0 2px 8px rgba(184,137,42,0.06);
}
.tile:hover::before { opacity: 1; }
.tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.tile-num {
    font-family: var(--fd);
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--gold);
    margin: 0;
}
.tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--gold);
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
    border: 1px solid var(--border-2);
}
.tile:hover .tile-icon {
    background: var(--gold2);
    color: var(--navy);
    border-color: var(--gold2);
    transform: rotate(-3deg);
}
.tile-h {
    font-family: var(--fe);
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.tile-sub {
    font-family: var(--fb);
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
    letter-spacing: 0.005em;
}
.tile-rule {
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
    margin: 12px 0 12px;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.tile:hover .tile-rule { width: 52px; opacity: 0.8; }

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}
.widget-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.widget-h .t {
    font-family: var(--fe);
    font-size: 18px;
    color: var(--text);
}
.widget-h .more {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.26em;
    color: var(--gold);
    text-transform: uppercase;
    cursor: pointer;
}
.widget-h .more:hover { color: var(--gold2); }

.todo-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
}
.todo-row:last-child { border-bottom: none; }
.todo-row .prio { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.todo-row .body { flex: 1; }
.todo-row .ttl { font-size: 13px; color: var(--text); margin: 0 0 2px; font-weight: 500; }
.todo-row .meta { font-family: var(--fl); font-size: 10px; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }

.appt-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
}
.appt-row:last-child { border-bottom: none; }
.appt-row .dt {
    width: 52px;
    text-align: center;
    flex-shrink: 0;
}
.appt-row .dt .d { font-family: var(--fe); font-size: 22px; color: var(--gold); line-height: 1; }
.appt-row .dt .m { font-family: var(--fl); font-size: 9px; letter-spacing: 0.22em; color: var(--text-3); text-transform: uppercase; }
.appt-row .body { flex: 1; }
.appt-row .nm { font-family: var(--fe); font-size: 17px; color: var(--text); }
.appt-row .tm { font-family: var(--fb); font-size: 12px; color: var(--text-3); }

/* ============================================================
   DATA TABLES
   ============================================================ */
.tbl-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--fb);
    font-size: 13px;
}
.tbl thead th {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.26em;
    color: var(--text-3);
    text-transform: uppercase;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    font-weight: 500;
}
.tbl tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-2);
    color: var(--text);
    vertical-align: middle;
}
.tbl tbody tr { transition: background 0.15s; cursor: pointer; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl tbody tr:last-child td { border-bottom: none; }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.search-input input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px 10px 38px;
    font-size: 13px;
}
.search-input .ic {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    width: 16px; height: 16px;
}
.tab-strip {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    overflow-x: auto;
}
.tab-strip .tab {
    padding: 12px 16px;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--text-3);
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.tab-strip .tab:hover { color: var(--text); }
.tab-strip .tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold2);
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
}
.empty-state .ic {
    width: 48px; height: 48px;
    color: var(--text-3);
    margin: 0 auto 16px;
}
.empty-state h3 {
    font-family: var(--fe);
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 6px;
}
.empty-state p {
    font-family: var(--fe);
    font-style: italic;
    font-size: 15px;
    color: var(--text-2);
    margin: 0 0 18px;
}

/* ============================================================
   CLIENT FLOW
   ============================================================ */
.client-stage {
    flex: 1;
    background: var(--ivory);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.client-header {
    padding: 22px 32px 18px;
    border-bottom: 1px solid var(--border-2);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.client-header img { height: 36px; }
.client-header .date {
    font-family: var(--fe);
    font-style: italic;
    font-size: 18px;
    color: var(--gold);
    white-space: nowrap;
}

.client-page {
    padding: 36px 32px 64px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.appt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}
.appt-card:hover {
    border-color: var(--gold2);
    transform: translateY(-2px);
    box-shadow: var(--sh-3);
}
.appt-card .nm {
    font-family: var(--fe);
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
    margin: 6px 0 4px;
    line-height: 1.1;
}
.appt-card .tm {
    font-family: var(--fb);
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 6px;
}
.appt-card .pr {
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--text-3);
    text-transform: uppercase;
}
.appt-card .arrow {
    width: 32px; height: 32px;
    color: var(--gold);
    opacity: 0.5;
    transition: all 0.2s;
}
.appt-card:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ============================================================
   PRESENTATION (ceremonial dark)
   ============================================================ */
.pres-stage {
    position: fixed;
    inset: 0;
    background: var(--navy);
    color: var(--white);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pres-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(184,137,42,0.08), transparent 60%);
    pointer-events: none;
}
.pres-content {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 80px 60px;
    position: relative;
    overflow-y: auto;
}
.pres-slide {
    max-width: 1080px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.45s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Applied to the SAME element as .pres-slide (not a separate wrapper —
   presentation.jsx renders one div with className="pres-slide out")
   for the ~320ms *before* the slide index actually changes (see
   Presentation's goTo/transitioning in presentation.jsx). Must come
   after .pres-slide in the stylesheet so `animation: none` overrides
   the entrance animation instead of replaying it on already-visible
   content — that replay is what caused the "flicker" bug. */
.pres-slide.out {
    animation: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.pres-eyebrow {
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.42em;
    color: var(--gold2);
    text-transform: uppercase;
    margin-bottom: 32px;
}
.pres-h {
    font-family: var(--fe);
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin: 0 0 24px;
    letter-spacing: -0.005em;
}
.pres-h em {
    font-style: italic;
    color: var(--gold3);
    background: linear-gradient(90deg, var(--gold3), var(--gold4), var(--gold3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pres-p {
    font-family: var(--fe);
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
    margin: 0 auto 18px;
    max-width: 780px;
}
.pres-p em { font-style: italic; color: var(--gold3); }
.pres-quote {
    font-family: var(--fe);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 28px);
    color: var(--gold3);
    margin: 28px auto 0;
    max-width: 720px;
}

.pres-controls {
    padding: 20px 60px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.pres-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    flex: 1;
}
.pres-dots .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    transition: all 0.2s;
}
.pres-dots .dot.active {
    background: var(--gold2);
    width: 22px;
    border-radius: 4px;
}
.pres-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--gold3);
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.pres-arrow:hover:not(:disabled) {
    border-color: var(--gold2);
    background: rgba(184,137,42,0.10);
    color: var(--gold2);
}
.pres-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

.pres-mark {
    position: absolute;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}
.pres-mark img { width: 36px; opacity: 0.85; }
.pres-mark .t {
    font-family: var(--fd);
    font-size: 9px;
    letter-spacing: 0.32em;
    color: var(--gold3);
    text-transform: uppercase;
}

.pres-counter {
    position: absolute;
    top: 36px;
    right: 36px;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.32em;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    z-index: 3;
    white-space: nowrap;
}

.pres-script {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 360px;
    max-height: 50vh;
    background: rgba(6,15,26,0.92);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 18px 18px 14px;
    overflow-y: auto;
    color: rgba(255,255,255,0.82);
    font-family: var(--fb);
    font-size: 12px;
    line-height: 1.65;
    z-index: 5;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.pres-script .lbl {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.32em;
    color: var(--gold3);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.pres-script .lbl .x { cursor: pointer; color: rgba(255,255,255,0.5); }
.pres-script-toggle {
    position: fixed;
    bottom: 22px;
    right: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--gold3);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    z-index: 6;
    backdrop-filter: blur(6px);
}
.pres-script-toggle:hover { background: rgba(184,137,42,0.16); }

.pres-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 32px auto 0;
    max-width: 740px;
}
.pres-stat {
    text-align: left;
    padding: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.pres-stat .n {
    font-family: var(--fe);
    font-size: 58px;
    font-weight: 300;
    color: var(--gold3);
    line-height: 1;
}
.pres-stat .ctx {
    font-family: var(--fb);
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    margin-top: 8px;
}

.pres-bullets {
    list-style: none;
    padding: 0;
    margin: 24px auto;
    max-width: 720px;
    text-align: left;
}
.pres-bullets li {
    font-family: var(--fe);
    font-style: italic;
    font-size: 22px;
    color: rgba(255,255,255,0.78);
    padding: 10px 0 10px 26px;
    position: relative;
    line-height: 1.4;
}
.pres-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold3);
    font-style: normal;
}

.pres-people {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 30px;
    justify-content: center;
    margin-bottom: 28px;
}
.pres-people .p {
    text-align: center;
}
.pres-people .p .av {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background-size: cover;
    background-position: center top;
    border: 2px solid var(--gold2);
    box-shadow: 0 0 24px rgba(184,137,42,0.25);
}
.pres-people .p .nm {
    font-family: var(--fe);
    font-size: 20px;
    color: var(--white);
}
.pres-people .p .ti {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--gold3);
    text-transform: uppercase;
    margin-top: 4px;
}

.pres-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0;
    position: relative;
}
.pres-steps::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold2), var(--gold2), transparent);
    z-index: 0;
}
.pres-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.pres-step .num {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--gold2);
    color: var(--gold3);
    font-family: var(--fe);
    font-size: 28px;
    display: grid; place-items: center;
    margin: 0 auto 14px;
}
.pres-step h4 {
    font-family: var(--fe);
    font-size: 18px;
    color: var(--white);
    margin: 0 0 8px;
}
.pres-step p {
    font-family: var(--fb);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
}

.pres-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 0;
}
.pres-pkg {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}
.pres-pkg.selected {
    border-color: var(--gold2);
    background: rgba(184,137,42,0.08);
    box-shadow: 0 0 36px rgba(184,137,42,0.20);
}
.pres-pkg .tier {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.32em;
    color: var(--gold3);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.pres-pkg .nm {
    font-family: var(--fe);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 10px;
}
.pres-pkg .pr {
    font-family: var(--fe);
    font-size: 18px;
    color: var(--gold3);
    font-style: italic;
    margin-bottom: 14px;
}
.pres-pkg ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    text-align: left;
}
.pres-pkg li {
    font-family: var(--fb);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    padding: 5px 0 5px 16px;
    position: relative;
    line-height: 1.4;
}
.pres-pkg li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--gold3);
    font-size: 18px;
    top: 0;
}
.pres-pkg.selected::after {
    content: "PRE-SELECTED";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold2);
    color: var(--navy5);
    font-family: var(--fl);
    font-size: 8px;
    letter-spacing: 0.3em;
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.pres-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.pres-testi {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 22px 20px;
    text-align: left;
}
.pres-testi .stars {
    color: var(--gold3);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 12px;
}
.pres-testi p {
    font-family: var(--fe);
    font-style: italic;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin: 0 0 14px;
    line-height: 1.55;
}
.pres-testi .nm {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    color: var(--gold3);
    text-transform: uppercase;
}

.pres-guarantees {
    list-style: none;
    padding: 0;
    margin: 28px auto;
    max-width: 720px;
    text-align: left;
}
.pres-guarantees li {
    padding: 14px 0 14px 36px;
    position: relative;
    font-family: var(--fe);
    font-size: 19px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pres-guarantees li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--gold3);
    font-size: 22px;
}
.pres-guarantees li:last-child { border-bottom: none; }

.pres-callout {
    background: rgba(184,137,42,0.08);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 22px 28px;
    margin: 28px auto 0;
    max-width: 620px;
    font-family: var(--fe);
    font-size: 22px;
    color: var(--gold3);
    font-style: italic;
}

.pres-yes-btn {
    background: var(--gold2);
    color: var(--navy5);
    padding: 24px 60px;
    border-radius: 12px;
    font-family: var(--fe);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.04em;
    box-shadow: 0 0 40px rgba(184,137,42,0.35), 0 0 80px rgba(184,137,42,0.15);
    transition: all 0.25s;
    margin-top: 24px;
    border: 1px solid var(--gold2);
}
.pres-yes-btn:hover {
    background: var(--gold3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(184,137,42,0.5), 0 0 120px rgba(184,137,42,0.25);
}

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
.q-stage {
    flex: 1;
    background: var(--ivory);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.q-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    position: sticky; top: 0; z-index: 10;
}
.q-header .who {
    font-family: var(--fe);
    font-size: 18px;
    font-style: italic;
    color: var(--text);
}
.q-header .who .small {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    font-style: normal;
    display: block;
    margin-top: 2px;
}
.q-progress {
    width: 100%;
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    overflow: hidden;
}
.q-progress .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold3));
    transition: width 0.3s ease;
}
.q-pct {
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--text-3);
    text-align: right;
    text-transform: uppercase;
}
.q-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    position: sticky;
    top: 73px;
    z-index: 9;
}
.q-tab {
    padding: 14px 14px;
    font-family: var(--fl);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-3);
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}
.q-tab .n { color: var(--gold); margin-right: 6px; }
.q-tab:hover { color: var(--text); }
.q-tab.active { color: var(--text); border-bottom-color: var(--gold2); }
.q-tab.locked { opacity: 0.35; cursor: not-allowed; }

.q-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 32px 80px;
    width: 100%;
}
.q-section-h {
    font-family: var(--fe);
    font-size: 36px;
    font-weight: 400;
    margin: 0 0 6px;
}
.q-section-sub {
    font-family: var(--fe);
    font-style: italic;
    font-size: 16px;
    color: var(--text-2);
    margin: 0 0 28px;
}

.q-field {
    margin-bottom: 18px;
}
.q-field-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.q-field-row .q-field { flex: 1; margin-bottom: 0; }
.q-input-wrap {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.q-input-wrap input,
.q-input-wrap textarea,
.q-input-wrap select {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: var(--fb);
    font-size: 14px;
    color: var(--text);
    transition: all 0.15s;
}
.q-input-wrap textarea { min-height: 64px; resize: vertical; }
.q-input-wrap input:focus,
.q-input-wrap textarea:focus,
.q-input-wrap select:focus {
    border-color: var(--gold2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184,137,42,0.10);
}
.q-input-wrap.flagged input,
.q-input-wrap.flagged textarea,
.q-input-wrap.flagged select {
    background: rgba(184,137,42,0.06);
    border-color: var(--gold2);
}
.q-flag-btn {
    flex-shrink: 0;
    width: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-3);
    display: grid;
    place-items: center;
    transition: all 0.15s;
}
.q-flag-btn:hover {
    color: var(--gold);
    border-color: var(--gold2);
}
.q-flag-btn.active {
    background: var(--gold2);
    border-color: var(--gold2);
    color: var(--navy);
}

.q-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.q-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   MONOGRAM
   ============================================================ */
.mono-stage {
    flex: 1;
    background: var(--ivory);
    overflow-y: auto;
    padding: 60px 32px;
}
.mono-wrap {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.mono-card {
    width: 420px;
    height: 540px;
    margin: 32px auto;
    border-radius: 6px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 20px 60px rgba(12,26,44,0.18);
}
.mono-card.light {
    background: var(--cream);
    color: var(--navy);
}
.mono-card.light .mono-rule { background: var(--gold); }
.mono-card.dark {
    background: var(--navy);
    color: var(--cream);
}
.mono-card.dark .mono-rule { background: var(--gold3); }
.mono-card .mono-mark {
    font-family: var(--fl);
    font-size: 8px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
}
.mono-card.light .mono-mark { color: var(--gold); }
.mono-card.dark .mono-mark { color: var(--gold3); }
.mono-card .mono-rule {
    width: 80%;
    height: 1px;
    opacity: 0.7;
}
.mono-card .mono-rule2 {
    width: 80%;
    height: 1px;
    margin-top: 4px;
    opacity: 0.4;
}
.mono-card .mono-rule2.is-rule { background: var(--gold); }
.mono-card.dark .mono-rule2.is-rule { background: var(--gold3); }
.mono-card .mono-letter {
    font-family: var(--fe);
    font-size: 220px;
    font-weight: 400;
    line-height: 1;
    font-style: italic;
}
.mono-card.light .mono-letter { color: var(--navy); }
.mono-card.dark .mono-letter { color: var(--gold2); }
.mono-card .mono-name {
    font-family: var(--fd);
    font-size: 11px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
}

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm-stage {
    position: fixed;
    inset: 0;
    background: var(--navy);
    color: var(--white);
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 32px;
    overflow: hidden;
}
.confirm-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(184,137,42,0.14), transparent 60%);
}
.confirm-card {
    text-align: center;
    max-width: 640px;
    position: relative;
    z-index: 1;
}
.confirm-card img { width: 96px; margin-bottom: 28px; }
.confirm-card h1 {
    font-family: var(--fe);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 300;
    margin: 0 0 18px;
    line-height: 1.05;
}
.confirm-card h1 em { font-style: italic; color: var(--gold3); }
.confirm-card p {
    font-family: var(--fe);
    font-style: italic;
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 520px;
}
.confirm-rule {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold3), transparent);
    margin: 28px auto;
}

/* ============================================================
   CALENDAR
   ============================================================ */
.cal-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.cal-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.cal-h h3 {
    font-family: var(--fe);
    font-size: 22px;
    margin: 0;
    font-weight: 400;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.cal-dow {
    padding: 12px 8px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    color: var(--text-3);
    text-align: center;
    text-transform: uppercase;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.cal-day {
    min-height: 96px;
    border-right: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    padding: 8px;
    position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day .num {
    font-family: var(--fe);
    font-size: 16px;
    color: var(--text-2);
}
.cal-day.today .num {
    background: var(--gold2);
    color: var(--navy);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 500;
}
.cal-day.muted .num { color: var(--text-3); opacity: 0.5; }
.cal-event {
    margin-top: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: var(--fb);
    font-size: 10px;
    cursor: pointer;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-event.reserve { background: rgba(12,26,44,0.08); color: var(--navy); }
.cal-event.estate  { background: rgba(184,137,42,0.18); color: var(--gold); }
.cal-event.legaci  { background: var(--navy); color: var(--gold3); }

/* ============================================================
   VAULT
   ============================================================ */
.vault-lock {
    flex: 1;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
}
.vault-lock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: var(--sh-3);
}
.vault-ico {
    width: 56px; height: 56px;
    background: var(--navy);
    color: var(--gold3);
    border-radius: 50%;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
}
.vault-pin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 24px 0 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.vault-pin input {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-family: var(--fe);
    font-size: 28px;
    color: var(--text);
    width: 100%;
}
.vault-pin input:focus {
    border-color: var(--gold2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184,137,42,0.10);
}

.vault-entry {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-2);
}
.vault-entry:last-child { border-bottom: none; }
.vault-entry .site { font-family: var(--fe); font-size: 18px; color: var(--text); }
.vault-entry .user { font-family: var(--fb); font-size: 13px; color: var(--text-2); }
.vault-entry .pw {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: 0.05em;
}
.vault-entry .acts {
    display: flex;
    gap: 6px;
}

/* ============================================================
   SOCIAL & PHOTO STUDIO
   ============================================================ */
.studio-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}
.preview-canvas {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.preview-canvas.dark {
    background: var(--navy);
    color: var(--white);
}
.preview-canvas.light-grain {
    background: var(--cream);
    color: var(--navy);
}
.preview-canvas .post-h {
    font-family: var(--fe);
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    line-height: 1.2;
    max-width: 80%;
}
.preview-canvas .post-mark {
    position: absolute;
    bottom: 18px;
    right: 22px;
    font-family: var(--fd);
    font-size: 9px;
    letter-spacing: 0.32em;
    opacity: 0.6;
    text-transform: uppercase;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.photo-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center top;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-cell:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.photo-cell .tag {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(12,26,44,0.7);
    color: var(--white);
    font-family: var(--fl);
    font-size: 8px;
    letter-spacing: 0.22em;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.photo-cell .dl {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.9);
    color: var(--navy);
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.photo-cell:hover .dl { opacity: 1; }

/* ============================================================
   LIBRARY
   ============================================================ */
.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.lib-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s;
    cursor: pointer;
}
.lib-card:hover {
    border-color: var(--gold2);
    transform: translateY(-2px);
    box-shadow: var(--sh-3);
}
.lib-thumb {
    aspect-ratio: 8.5/11;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.lib-thumb .l-mark {
    font-family: var(--fd);
    font-size: 7px;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.lib-thumb .l-rule {
    width: 60%;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 12px;
    opacity: 0.5;
}
.lib-thumb .l-h {
    font-family: var(--fe);
    font-size: 14px;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 8px;
}
.lib-thumb .l-lines {
    width: 80%;
    margin: 6px auto 0;
    text-align: left;
}
.lib-thumb .l-lines div {
    height: 4px;
    background: rgba(12,26,44,0.10);
    margin: 4px 0;
    border-radius: 1px;
}
.lib-thumb .l-lines div:nth-child(3n) { width: 70%; }
.lib-thumb .l-foot {
    margin-top: auto;
    font-family: var(--fl);
    font-size: 6px;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
}
.lib-card h4 {
    font-family: var(--fe);
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--text);
    font-weight: 400;
}
.lib-card .meta {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.24em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.lib-card .dls {
    display: flex;
    gap: 6px;
}
.lib-card .dls button {
    flex: 1;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--text-2);
    text-transform: uppercase;
    transition: all 0.15s;
}
.lib-card .dls button:hover {
    border-color: var(--gold2);
    color: var(--gold);
}

/* ============================================================
   PRAYER MODAL
   ============================================================ */
.prayer-card {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--gold2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    text-align: center;
    border-radius: 16px;
    padding: 48px 36px;
    max-width: 420px;
    width: 100%;
}
.prayer-card .dove {
    width: 56px; height: 56px;
    color: var(--gold3);
    margin: 0 auto 18px;
}
.prayer-card h2 {
    font-family: var(--fe);
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 10px;
}
.prayer-card p {
    font-family: var(--fe);
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin: 0 0 28px;
}

/* — Demo data toggle (small chrome button bottom-left) — */
.demo-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.28em;
    color: var(--text-2);
    text-transform: uppercase;
    z-index: 80;
    cursor: pointer;
    box-shadow: var(--sh-2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.demo-toggle:hover { border-color: var(--gold2); color: var(--gold); }
.demo-toggle .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold2);
}
.demo-toggle.empty .dot { background: var(--text-3); }

/* — Misc — */
.divider-rule {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold2), transparent);
    margin: 16px auto;
}
.kicker {
    font-family: var(--fl);
    font-size: 9px;
    letter-spacing: 0.36em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.softline { color: var(--text-2); }

@media (max-width: 1024px) {
    .mgmt-app { grid-template-columns: 1fr; }
    .home-grid { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .studio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE — phone-first refinements (iPhone, tablet portrait)
   ============================================================ */
.mobile-bar {
    display: none;
}
.mobile-scrim {
    display: none;
}

@media (max-width: 900px) {
    /* Home dashboard's tiles + widgets layout was a fixed 2-column grid
       with no mobile override, so on a narrow screen the browser still
       tried to fit both columns side by side — squeezing the left tiles
       column down to a sliver and wrapping every word onto its own line,
       which is the "overlapping boxes" glitch on the Home page. */
    .home-grid-lux {
        grid-template-columns: 1fr;
    }
    .home-aside-col {
        order: -1; /* tasks/appointments widgets read more naturally first on mobile */
    }
    body { font-size: 13px; }

    /* — Auth screens — */
    .auth-stage { padding: 24px 20px 24px; }
    .auth-mark img { width: 42px; }
    .auth-mark-text { font-size: 10px; letter-spacing: 0.22em; }
    .auth-mark-sub { font-size: 11px; white-space: normal; }
    .auth-center { margin-top: 28px; }
    .auth-h { font-size: clamp(32px, 9vw, 44px); }
    .auth-sub { font-size: 15px; margin-top: 12px; }
    .auth-rule { margin: 20px auto 24px; }
    .profile-grid { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
    .profile-card { padding: 18px 10px; border-radius: 10px; }
    .profile-avatar { width: 64px; height: 64px; margin-bottom: 10px; }
    .profile-name { font-size: 18px; }
    .profile-title { font-size: 8px; letter-spacing: 0.24em; }
    .pin-block { margin-top: 22px; }
    .pin-inputs { gap: 8px; }
    .pin-box { font-size: 24px; border-radius: 6px; }
    .auth-foot { font-size: 13px; padding-top: 28px; }

    /* — Mode selector — */
    .mode-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
    .mode-card { padding: 28px 22px; border-radius: 12px; }
    .mode-icon { width: 36px; height: 36px; margin-bottom: 14px; }
    .mode-title { font-size: 24px; }
    .mode-desc { font-size: 14px; }

    /* — Management shell becomes hamburger — */
    .mgmt-app { grid-template-columns: 1fr; position: relative; }
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 260px; max-width: 80vw;
        height: 100%;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 8px 0 32px rgba(0,0,0,0.35);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(12,26,44,0.5);
        z-index: 190;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .mobile-scrim.show { opacity: 1; pointer-events: auto; }

    /* hamburger / mobile top bar */
    .mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        background: var(--navy);
        color: var(--white);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        position: sticky;
        top: 0;
        z-index: 50;
    }
    .mobile-bar .hamb {
        width: 36px; height: 36px; border-radius: 8px;
        background: rgba(255,255,255,0.08);
        display: grid; place-items: center;
        color: var(--gold3);
    }
    .mobile-bar .brand {
        display: flex; align-items: center; gap: 10px;
        font-family: var(--fd); font-size: 10px;
        letter-spacing: 0.22em; color: var(--gold3);
    }
    .mobile-bar .brand img { width: 28px; }
    .mobile-bar .right { display: flex; gap: 4px; }
    .mobile-bar .right a { color: rgba(255,255,255,0.7); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
    .mobile-bar .right a:hover { background: rgba(255,255,255,0.08); color: var(--gold3); }

    /* hide desktop topbar on mobile */
    .topbar { display: none; }
    /* the verse ticker also needs hiding here — it was left visible and,
       since it's also position:sticky/top:0, it fights the mobile-bar
       above for the same spot as you scroll, which is the "text visible
       above the ribbon" glitch. */
    .verse-banner { display: none; }

    .page { padding: 20px 16px 80px; }
    .page-h { font-size: 32px; }
    .page-sub { font-size: 15px; margin-bottom: 20px; }
    .home-hero { grid-template-columns: 1fr; gap: 14px; }
    .home-mark { display: none; }
    /* — Home tiles — */
    .home-grid { grid-template-columns: 1fr; gap: 18px; }
    .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tile { padding: 18px 16px 16px; border-radius: 12px; }
    .tile-head { margin-bottom: 12px; }
    .tile-num { font-size: 9px; letter-spacing: 0.3em; }
    .tile-icon { width: 28px; height: 28px; }
    .tile-h { font-size: 18px; }
    .tile-sub { font-size: 11px; }
    .tile-rule { margin: 8px 0 8px; width: 20px; }

    /* — Vault PIN scoped — */
    .vault-pin { max-width: 240px; gap: 8px; }
    .vault-pin input { font-size: 24px; border-radius: 6px; }

    /* — Tables — horizontal scroll wrapper — */
    .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tbl { min-width: 680px; }
    .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-bar > * { width: 100% !important; }
    .filter-bar .tab-strip { flex-direction: row; width: 100%; overflow-x: auto; }

    /* — Modals fill more screen — */
    .modal-back { padding: 12px; }
    .modal { max-width: 100%; max-height: 92vh; padding: 20px 18px; }
    .modal-h { font-size: 22px; }
    .modal-row { grid-template-columns: 1fr; }

    /* — Calendar — */
    .cal-day { min-height: 72px; padding: 4px; }
    .cal-day .num { font-size: 13px; }
    .cal-event { font-size: 9px; padding: 2px 4px; }
    .cal-h h3 { font-size: 18px; }

    /* — Vault — */
    .vault-entry { grid-template-columns: 1fr; gap: 4px; }
    .vault-entry .acts { justify-content: flex-end; }
    .vault-lock-card { padding: 32px 22px; }

    /* — Studio — */
    .studio-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .lib-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

    /* — Client today's sessions — */
    .client-header { padding: 14px 18px; }
    .client-header img { height: 28px; }
    .client-header .date { font-size: 14px; }
    .client-page { padding: 22px 18px 64px; }
    .appt-card { padding: 18px 18px; border-radius: 12px; }
    .appt-card .nm { font-size: 24px; }
    .appt-card .arrow { width: 24px; height: 24px; }

    /* — Presentation — */
    .pres-mark { top: 14px; left: 16px; }
    .pres-mark img { width: 26px; }
    .pres-mark .t { font-size: 8px; }
    .pres-counter { top: 18px; right: 56px; font-size: 9px; }
    .pres-content { padding: 60px 22px 24px; }
    .pres-h { font-size: clamp(28px, 8vw, 44px); line-height: 1.12; margin-bottom: 16px; }
    .pres-p { font-size: 16px; }
    .pres-quote { font-size: 18px; }
    .pres-eyebrow { margin-bottom: 18px; font-size: 9px; letter-spacing: 0.32em; }
    .pres-bullets li { font-size: 16px; padding-left: 18px; }
    .pres-stat-grid { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
    .pres-stat { padding: 16px; }
    .pres-stat .n { font-size: 42px; }
    .pres-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pres-steps::before { display: none; }
    .pres-step .num { width: 44px; height: 44px; font-size: 20px; }
    .pres-step h4 { font-size: 14px; }
    .pres-step p { font-size: 11px; }
    .pres-packages { grid-template-columns: 1fr; gap: 12px; }
    .pres-pkg { padding: 18px 16px; }
    .pres-pkg .nm { font-size: 22px; }
    .pres-testimonials { grid-template-columns: 1fr; gap: 12px; }
    .pres-callout { font-size: 16px; padding: 16px 18px; }
    .pres-yes-btn { padding: 18px 36px; font-size: 20px; }
    .pres-people { grid-template-columns: 1fr 1fr; gap: 14px; }
    .pres-people .p .av { width: 88px; height: 88px; }
    .pres-controls { padding: 12px 16px 18px; }
    .pres-arrow { width: 40px; height: 40px; }
    .pres-script {
        position: fixed;
        bottom: 70px; left: 12px; right: 12px;
        width: auto;
        max-height: 35vh;
        font-size: 11px;
        padding: 14px;
    }
    .pres-script-toggle { right: 12px; bottom: 14px; }

    /* — Questionnaire — */
    .q-header { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
    .q-header .who { font-size: 15px; }
    .q-pct { text-align: left; }
    .q-tabs { top: 110px; padding: 0 16px; }
    .q-tab { padding: 12px 10px; font-size: 9px; letter-spacing: 0.14em; }
    .q-content { padding: 22px 16px 60px; }
    .q-section-h { font-size: 24px; }
    .q-section-sub { font-size: 14px; margin-bottom: 18px; }
    .q-content > div[style*="grid"] { grid-template-columns: 1fr !important; }
    .q-field { grid-column: 1 !important; }
    .q-actions { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
    .q-actions button { width: 100%; justify-content: center; }
    .q-actions > div { text-align: center; }

    /* — Monogram — */
    .mono-stage { padding: 30px 16px; }
    .mono-card { width: 92vw; max-width: 360px; height: auto; aspect-ratio: 7/9; padding: 40px 26px; }
    .mono-card .mono-letter { font-size: 150px; }
    .mono-card .mono-name { font-size: 9px; letter-spacing: 0.28em; }

    /* — Confirmation — */
    .confirm-card img { width: 72px; }
    .confirm-card h1 { font-size: clamp(32px, 9vw, 44px); }
    .confirm-card p { font-size: 15px; }

    /* — Demo toggle — */
    .demo-toggle { bottom: 10px; right: 10px; font-size: 8px; padding: 6px 12px; }

    /* — Close button — */
    .lr-close { top: 14px; right: 14px; width: 34px; height: 34px; }

    /* — Sidebar foot user — */
    .sidebar-foot { padding: 14px 18px 18px; }
    .sidebar-brand { padding: 18px 18px 16px; }
    .sidebar-section { padding: 14px 18px 4px; }

    /* — Prayer card — */
    .prayer-card { padding: 36px 24px; max-width: 320px; }
    .prayer-card h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .page-h { font-size: 26px; }
    .tiles { grid-template-columns: 1fr; }
    .pres-h { font-size: clamp(26px, 8.5vw, 36px); }
    .pres-people { grid-template-columns: 1fr; }
    .pres-steps { grid-template-columns: 1fr; }
    .pres-people .p .av { width: 96px; height: 96px; }
    .lib-grid { grid-template-columns: 1fr 1fr; }
}
