/*
  Member app, after the BJJAA prototype (rivens.me/bjjaa): blue gradient, smoked glass, photography
  that dissolves into the page. Club branding comes in through the --rv-club-* tokens (ClubTheme).
*/

:root {
    --m-accent: var(--rv-club-accent, #e9f2ff);
    --m-bg: var(--rv-club-bg, #0a1830);
    --m-muted: #b7c7de;
    --m-line: rgba(219, 235, 255, .21);
    --m-glass: linear-gradient(125deg, rgba(198, 220, 252, .19), rgba(128, 165, 214, .07) 76%);
    --m-ink: #102139;
    --m-safe-top: env(safe-area-inset-top, 0px);
    --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body { background: #080e1c; }

.member-ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 73% 22%, color-mix(in srgb, var(--rv-club-surface, #13294b) 60%, #1e477b), transparent 48%),
        radial-gradient(ellipse at 20% 78%, #223754, transparent 55%),
        #080e1c;
}

/* ---------- device column ---------- */

.member-device {
    position: relative;
    isolation: isolate;
    width: min(100%, 430px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding-bottom: calc(108px + var(--m-safe-bottom));
    background:
        radial-gradient(ellipse 650px 600px at 110% 430px, #446da65e, transparent 86%),
        radial-gradient(ellipse 800px 1200px at -20% 1200px, #30558499, transparent 82%),
        linear-gradient(150deg, #101b32, color-mix(in srgb, var(--rv-club-surface, #13294b) 70%, #1c3359) 48%, #0a1429);
    overflow-x: clip;
}

.member-device::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 84% 34%, #7699dd2a, transparent 43%), radial-gradient(ellipse at 8% 74%, #5989c02e, transparent 49%);
    pointer-events: none;
}

@media (min-width: 560px) {
    .member-device {
        min-height: 100vh;
        box-shadow: 0 25px 130px #0008;
        border-left: 1px solid #d4edff18;
        border-right: 1px solid #d4edff18;
    }
}

.member-top {
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(58px + var(--m-safe-top));
    padding: calc(15px + var(--m-safe-top)) 23px 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.member-top img { width: 31px; height: 31px; object-fit: contain; }
.member-top b { font-weight: 500; color: #92aebf; font-size: 9px; letter-spacing: .2em; margin-left: 5px; }
.member-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--m-ink);
    background: linear-gradient(130deg, #fff, var(--m-accent));
}
.demo-pill { margin-left: auto; font-size: 10px; letter-spacing: .08em; border: 1px solid #a7c8d52a; border-radius: 20px; padding: 4px 8px; color: #9cb7c5; }

/* the header floats over full-bleed photos */
.member-device:has(.cover, .profile-stage, .photo-head) .member-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: transparent;
}

.member-main { padding: 17px 21px 20px; outline: 0; }
@media (max-width: 360px) { .member-main { padding-left: 15px; padding-right: 15px; } }

.offline-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 21px 4px;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 12px;
    color: #dbe7f6;
    background: #c8dcff14;
    border: 1px solid #d6e7ff26;
}
.offline-bar .rv-icon { width: 16px; height: 16px; }

/* ---------- motion ---------- */

.page { animation: page-in .38s cubic-bezier(.18, .8, .2, 1); }
.page > .glass, .page > .section { animation: card-in .6s both; }
.page > :nth-child(3) { animation-delay: .045s; }
.page > :nth-child(4) { animation-delay: .09s; }
.page > :nth-child(5) { animation-delay: .13s; }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-arc { from { stroke-dashoffset: 345; } }
@keyframes bar-in { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes wallet-scan { 0%, 100% { transform: translateY(0); opacity: .15; } 50% { transform: translateY(147px); opacity: .65; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .scan-line { display: none; }
}

/* ---------- basics ---------- */

:where(.member-device, .sheet) button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
:where(.member-device, .sheet) button:disabled { opacity: .45; cursor: not-allowed; }
:is(.member-device, .sheet) button:active:not(:disabled) { transform: scale(.97); }
:is(.member-device, .sheet) :is(button, a) { transition: background .2s, transform .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
:where(.member-device, .sheet) a { text-decoration: none; color: inherit; }
:where(.member-device, .sheet) p { line-height: 1.6; }
:where(.member-device, .sheet) h1 { font-size: 34px; font-weight: 800; }
:where(.member-device, .sheet) h2 { font-size: 22px; font-weight: 750; }
:where(.member-device, .sheet) h3 { font-size: 18px; font-weight: 750; }
:is(.member-device, .sheet) small, .small { font-size: 13px; color: var(--m-muted); }

.eyebrow { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: .19em; line-height: 1.6; text-transform: uppercase; }
.kicker { font-size: 12px; color: var(--m-muted); margin-top: 4px; }
.muted { color: var(--m-muted); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-cols > * { min-width: 0; }
.center { text-align: center; }

.icon, :is(.member-device, .sheet) .rv-icon { width: 21px; height: 21px; flex-shrink: 0; stroke-width: 1.7; }

/* ---------- surfaces ---------- */

.glass {
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--m-line);
    background: var(--m-glass);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
    box-shadow: inset 0 1px 0 #f2f7ff1c, inset 1px 0 0 #e1eeff0a, 0 12px 28px #020b1a1f;
    overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse at 100% 100%, #b9d6e50e, transparent 68%); }
.glass p, .glass h1, .glass h2, .glass h3, .glass small, .glass strong { position: relative; }
.pad { padding: 21px; }
.section { margin-top: 25px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; gap: 12px; }
.section-title h2 { font-size: 18px; }
.divider { height: 1px; background: var(--m-line); margin: 18px 0; }

/* ---------- controls ---------- */

.round {
    height: 47px;
    width: 47px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--m-line) !important;
    border-radius: 50%;
    background: linear-gradient(140deg, #a7cede16, #ffffff05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}
.round:hover { background: #b1daee25 !important; }
.round.sm { width: 38px; height: 38px; }
.round.light { background: #eef4ff !important; color: #10243e; border-color: transparent !important; }
.round.has-dot::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #deedff; right: 12px; top: 10px; border: 2px solid #24314c; box-sizing: content-box; }

.text-button { font-size: 12px; font-weight: 600; color: #bcd0dc !important; padding: 9px 0 9px 9px !important; display: inline-flex; align-items: center; gap: 5px; }
.text-button .rv-icon { width: 15px; height: 15px; }

.button {
    border-radius: 22px;
    min-height: 49px;
    padding: 13px 19px !important;
    background: #bed9e915 !important;
    border: 1px solid var(--m-line) !important;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    color: inherit;
}
.button .rv-icon { width: 18px; height: 18px; }
.button:hover { background: #bed9e925 !important; }
.button.primary {
    background: linear-gradient(130deg, #ffffff, color-mix(in srgb, var(--m-accent) 85%, #b9d4f3)) !important;
    border-color: #ffffff55 !important;
    color: var(--m-ink);
    box-shadow: 0 6px 24px #01112622, inset 0 1px 0 #fff9;
}
.button.primary:hover { box-shadow: 0 6px 28px #bcdcff22; }
.button.danger { color: #dce6f3; border-color: #d2dff43b !important; }
.button.full { width: 100%; }
.button[aria-busy="true"] { color: transparent; }
.button[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: #9fb6d0 transparent; animation: rv-spin .8s linear infinite; }
.actions { display: flex; gap: 10px; margin-top: 13px; }
.actions > * { flex: 1; }
.sheet .button { margin-top: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 6px 10px; background: #cce5f316; font-size: 11px; font-weight: 600; border: 1px solid #d7f0ff15; line-height: 1.4; white-space: nowrap; }
.pill.warm { color: #d7e8ff; background: #c8e1ff1b; border-color: #d7e8ff30; }
.pill.success { color: #dbeafa; background: #c2ddfa10; }
.pill.alert { color: #ffd9c9; background: #ffb49a14; border-color: #ffc2a830; }
.pill .rv-icon { width: 13px; height: 13px; }

.segmented { padding: 4px; display: flex; gap: 3px; border: 1px solid var(--m-line); background: #071b2980; border-radius: 18px; }
.segmented button { flex: 1; border-radius: 14px; padding: 10px; font-size: 12px; color: var(--m-muted); }
.segmented button.selected { background: #c4dfe725; color: #fff; box-shadow: 0 2px 10px #0001; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border-radius: 20px; border: 1px solid var(--m-line) !important; padding: 9px 14px !important; font-size: 12px; color: #bfd0da !important; background: #bbdded06 !important; min-height: 38px; }
.chip.selected { background: #c1dfed23 !important; border-color: #d7f0ff55 !important; color: white !important; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -21px; padding: 0 21px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex-shrink: 0; }

.field { display: grid; gap: 7px; margin: 15px 0; text-align: left; }
.field label, .field-label { font-size: 12px; color: #bdcfd9; }
.field input, .field select, .field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #d7eaf72b;
    border-radius: 15px;
    background: #091c365c;
    color: #f0f5f9;
    font-size: 16px;
    outline-offset: 1px;
}
.field input:disabled { color: #acc0ce; }
.field textarea { min-height: 95px; resize: vertical; }
.field select option { background: #203858; }
.field .hint { font-size: 11px; color: #93adbc; }
.field .validation-message, .field-error { font-size: 12px; color: #ffc6b8; }

.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px !important; border: 1px solid #d7eaf72b !important; border-radius: 16px; background: linear-gradient(120deg, #b8d4f30d, #081b3540) !important; text-align: left; min-height: 49px; width: 100%; font-size: 14px; }
.select-trigger > .rv-icon { width: 17px; height: 17px; transform: rotate(90deg); }

.check-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.check-row label { font-size: 14px; line-height: 1.5; }
.check-row input { accent-color: var(--m-accent); width: 19px; height: 19px; flex-shrink: 0; }

.switch { position: relative; width: 42px; height: 26px; border: 1px solid #d4e9f22b !important; background: #799aa330 !important; border-radius: 20px; flex-shrink: 0; transition: .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #ccdde4; transition: .2s; }
.switch[aria-checked="true"] { background: #c7defa !important; border-color: #ffffff66 !important; }
.switch[aria-checked="true"]::after { left: 19px; background: #183351; }
.setting-row { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid #cbe6f218; }
.setting-row:last-child { border: 0; }
.setting-row b { font-size: 14px; font-weight: 600; }
.setting-row small { display: block; font-size: 11px; line-height: 1.5; margin-top: 4px; }

.info { font-size: 12px !important; padding: 14px 16px; background: #a2c5db0d; border: 1px solid #c1daec18; border-radius: 17px; line-height: 1.7 !important; color: #c6d6e6; }
.info.alert { border-color: #ffc2a830; background: #ffb49a0d; }
.section-note { font-size: 11px; color: #93adbc; line-height: 1.6; margin-top: 12px; }
.footnote { font-size: 11px; text-align: center; color: #9aacc5; margin-top: 25px; line-height: 1.7; }
.empty { text-align: center; padding: 33px 19px; }
.empty .rv-icon { width: 30px; height: 30px; color: #90afc3; margin: 0 auto 13px; display: block; }
.empty h3 { margin-bottom: 10px; }
.empty p { font-size: 13px; color: var(--m-muted); }
.empty .button { margin-top: 16px; }

.list-button { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 16px 2px !important; border-bottom: 1px solid #cee9f21a !important; color: inherit; }
.list-button:last-child { border-bottom: 0 !important; }
.list-button .grow > b { font-size: 15px; display: block; font-weight: 600; }
.list-button small { font-size: 11px; display: block; margin-top: 4px; }
.list-button .rv-icon { width: 19px; height: 19px; color: #bed3df; }
.list-button > .rv-icon:last-child { width: 15px; color: #819dab; }

/* ---------- page heads ---------- */

.page-head { margin-bottom: 25px; }
.page-head .eyebrow { color: #9db5c4; display: block; margin: 0 0 8px; }
.page-head .row { margin-bottom: 12px; }
.page-head p { font-size: 13px; color: var(--m-muted); margin-top: 9px; }
.back { width: 39px !important; height: 39px !important; }

.photo-head { height: 315px; position: relative; margin: -17px -21px 25px; overflow: hidden; background: transparent; }
.photo-head.short { height: 275px; }
.photo-head-media { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(#000 0%, #000 42%, #000a 68%, transparent 100%); -webkit-mask-image: linear-gradient(#000 0%, #000 42%, #000a 68%, transparent 100%); }
.photo-head-media > img { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: saturate(.45); object-position: 50% 35%; }
.photo-head.low-focus .photo-head-media > img { object-position: 50% 76%; }
.photo-head.belt-head .photo-head-media > img { height: 200%; object-position: center top; }
.photo-head-media.no-photo { background: radial-gradient(ellipse at 80% 20%, #4c78b566, transparent 70%), linear-gradient(160deg, #1a3358, transparent); }
.photo-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a162a77, transparent 35%), linear-gradient(90deg, #07182b44, transparent); mask-image: linear-gradient(#000 30%, transparent); -webkit-mask-image: linear-gradient(#000 30%, transparent); pointer-events: none; }
.photo-head .page-head { position: absolute; left: 21px; right: 21px; bottom: 10px; margin: 0; z-index: 1; text-shadow: 0 2px 20px #03102b77; }
.photo-head .page-head h1 { font-size: 32px; }
.photo-head.short .page-head h1 { font-size: 31px; }
.photo-head .page-head p { color: #d6e1f0; }
.photo-head .page-head .eyebrow { color: #c9d8eb; }
.photo-head .back { background: #c9ddf818 !important; }
@media (max-width: 360px) { .photo-head { margin-left: -15px; margin-right: -15px; height: 300px; } .photo-head .page-head { left: 15px; right: 15px; } }

/* ---------- home ---------- */

.home-page { margin: -17px -21px 0; }
.cover { height: clamp(410px, 55svh, 490px); position: relative; overflow: visible; background: transparent; }
.cover-photo { position: absolute; width: 100%; height: 115%; top: 0; object-fit: cover; object-position: 50% 15%; filter: saturate(.48) contrast(1.04); mask-image: linear-gradient(#000 0%, #000 42%, #000c 60%, #0004 82%, transparent 96%); -webkit-mask-image: linear-gradient(#000 0%, #000 42%, #000c 60%, #0004 82%, transparent 96%); }
.cover-photo.no-photo { background: radial-gradient(ellipse at 70% 30%, #5a86c455, transparent 60%), linear-gradient(170deg, #1d3a63, transparent 80%); }
.cover-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, #071227a6 0%, #0a173316 26%, transparent 44%, #0b204630 73%, transparent 100%); }
.cover-header { position: absolute; top: calc(86px + var(--m-safe-top)); left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; }
.cover-header p { font-size: 14px; color: #dfebf6; }
.cover-header h2 { font-size: 29px; font-weight: 600; margin-top: 2px; }
.cover-header .round { background: #d9e8ff14 !important; }
.cover-title { position: absolute; bottom: 46px; left: 25px; right: 25px; }
.cover-title > .eyebrow { font-size: 9px; color: #d6e5fa; }
.cover-title h1 { font-size: 47px !important; line-height: 1.05; font-weight: 600 !important; letter-spacing: -.065em; margin: 11px 0 18px; }
.cover-title .row { gap: 13px; }
.cover-title .pill { font-size: 10px; background: #c9dcff12; backdrop-filter: blur(20px); padding: 6px 9px; }
.cover-date { font-size: 9px; letter-spacing: .12em; color: #c5d5e8; text-transform: uppercase; }
.home-information { padding: 0 21px; position: relative; margin-top: -35px; }
.next-card { padding: 21px; border-radius: 28px; background: linear-gradient(125deg, #b8d1f735, #b9d1ee12); }
.next-card .eyebrow { font-size: 10px; color: #c6d8ed; }
.next-card h2 { font-size: 21px !important; font-weight: 650 !important; }
.next-card .kicker { font-size: 11px; margin-top: 7px; }
.next-card .round { height: 37px; width: 37px; }
.next-card .actions { margin-top: 23px; gap: 8px; }
.next-card .button { font-size: 12px; min-height: 45px; padding: 11px 12px !important; }
.week-card { margin-top: 22px; padding: 20px 21px 15px; background: radial-gradient(ellipse at 95% 94%, #b4cff047, transparent 67%), linear-gradient(135deg, #98b9e32e, #a5c0ec0c); }
.gauge { position: relative; height: 157px; margin: 9px 12px 0; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge-track { fill: none; stroke: #d9ecf321; stroke-width: 22; stroke-linecap: round; }
.gauge-value { fill: none; stroke: #e7f0ff; stroke-width: 22; stroke-linecap: round; stroke-dasharray: 345; filter: drop-shadow(0 1px 6px #d0e9ff22); animation: draw-arc 1.1s ease-out backwards; }
.gauge-label { position: absolute; inset: 64px 0 0; text-align: center; }
.gauge-label strong { font-size: 43px; letter-spacing: -.06em; line-height: 1.1; }
.gauge-label strong span { font-size: 21px; font-weight: 500; color: #b8cbd8; letter-spacing: 0; }
.gauge-label p { font-size: 12px; color: #d4e1e9; margin-top: 4px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.metric { padding: 14px; border-radius: 22px; border: 1px solid #d7edf721; background: #c7deeb0c; }
.metric .row { gap: 7px; color: #cfdee8; font-size: 11px; }
.metric .rv-icon { color: #d7e8ff; width: 17px; height: 17px; }
.metric strong { font-size: 25px; letter-spacing: -.04em; display: inline-block; margin-top: 8px; }
.metric strong small { font-size: 12px; font-weight: 500; color: #cedce4; letter-spacing: 0; }
.member-mini { padding: 17px 18px !important; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; }
.member-mini h3 { font-size: 13px !important; }
.member-mini small { font-size: 11px; }
.member-mini > .rv-icon { color: #c1d8e3; }
@media (max-width: 360px) { .home-page { margin-left: -15px; margin-right: -15px; } .home-information { padding: 0 15px; } .cover-title h1 { font-size: 42px !important; } .next-card { padding: 18px; } }

/* ---------- classes ---------- */

.class-row { padding: 19px 18px !important; display: flex; gap: 17px; align-items: center; text-align: left; width: 100%; border-radius: 24px; color: inherit; }
.class-row:hover { background-color: #cae7f310 !important; }
.time-box { min-width: 49px; align-self: flex-start; padding-top: 2px; }
.time-box b { font-size: 16px; }
.time-box small { display: block; margin-top: 3px; font-size: 11px; }
.class-row h3 { font-size: 16px !important; line-height: 1.35; letter-spacing: -.025em; }
.class-row p { font-size: 12px; color: var(--m-muted); margin-top: 4px; line-height: 1.4; }
.class-row .row { gap: 5px; flex-wrap: wrap; }
.class-row .pill { font-size: 10px; padding: 5px 9px; margin-top: 8px; }
.class-row > .rv-icon { width: 17px; }
.class-row.is-muted { opacity: .72; }
@media (max-width: 360px) { .class-row { padding: 16px !important; gap: 13px; } .class-row h3 { font-size: 15px !important; } .class-row .time-box { min-width: 44px; } }

.week-navigation { margin: 18px 0 10px; display: flex; flex-direction: column; }
.week-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.week-controls h2 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: -.02em; text-align: center; }
.week-controls .round { background: #c6d9f013 !important; width: 37px; height: 37px; }
.week-controls .rv-icon { width: 18px; height: 18px; }
.week-shortcuts { margin-top: 9px; min-height: 35px; }
.today-button { border: 1px solid #d8eaff2a !important; background: #c8e0ff0b !important; border-radius: 20px; padding: 7px 14px !important; font-size: 11px; color: #d9e8f8 !important; }
.week-shortcuts .text-button { font-size: 11px; }
.date-strip { display: flex; justify-content: space-between; gap: 3px; margin: 20px 0; }
.date-strip button { flex: 1; min-width: 0; padding: 10px 2px !important; border-radius: 22px; color: #9fbbcb !important; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; border: 1px solid transparent !important; }
.date-strip b { font-size: 17px; font-weight: 600; }
.date-strip .selected { background: #eef5ff !important; color: #0a203b !important; box-shadow: 0 7px 20px #c8e1ff25; border-color: #eaf4ff44 !important; }
.date-strip .dot { width: 3px; height: 3px; border-radius: 3px; background: currentColor; opacity: .28; }
.date-strip .dot.is-today { opacity: 1; width: 4px; height: 4px; }
.filters { margin: 15px 0; padding: 17px; }
.filters .field { margin: 12px 0; }
.filter-options { display: grid; gap: 10px; margin: 24px 0 10px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; text-align: left; padding: 16px 18px !important; border-radius: 20px; border: 1px solid #daeaff24 !important; background: linear-gradient(120deg, #c7dcf415, #c3dcff04) !important; font-size: 15px; }
.filter-option.chosen { background: linear-gradient(120deg, #d0e3fa2c, #7fabe425) !important; border-color: #daeaff66 !important; }
.option-check { width: 23px; height: 23px; border: 1px solid #d8e8ff50; border-radius: 50%; display: grid; place-items: center; }
.chosen .option-check { background: #eaf3ff; color: #152d49; border-color: transparent; }
.option-check .rv-icon { width: 15px; height: 15px; }
.detail-photo { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 17px; height: 220px; object-fit: cover; object-position: center 35%; filter: saturate(.4); mask-image: linear-gradient(#000 30%, #000b 65%, transparent 100%); -webkit-mask-image: linear-gradient(#000 30%, #000b 65%, transparent 100%); }
.detail-photo.no-photo { background: radial-gradient(ellipse at 70% 20%, #5a86c455, transparent 60%), linear-gradient(170deg, #25446f, transparent); }
.detail-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.detail-pairs small { display: block; font-size: 11px; margin-bottom: 5px; }
.detail-pairs b { font-size: 14px; }
.detail-pairs .text-button { padding: 0 !important; color: white !important; font-size: 14px; font-weight: 700; }
.modal-success { text-align: center; padding: 10px 0; }
.success-ring { width: 74px; height: 74px; border-radius: 50%; background: #cfdeff22; border: 1px solid #d1e2ff55; display: grid; place-items: center; margin: 0 auto 22px; color: #e6f0ff; }
.success-ring .rv-icon { width: 31px; height: 31px; }

/* ---------- training ---------- */

.stat-big { font-size: 63px; font-weight: 700; letter-spacing: -.065em; line-height: 1.15; }
.stat-big small { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.stats-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stats-three .metric { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 7px; min-height: 94px; text-align: center; }
.stat-value { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; }
.stats-three .stat-value strong { margin: 0; line-height: 1; font-size: 25px; }
.stats-three .stat-value .rv-icon { width: 17px; height: 17px; }
.stats-three .metric > small { width: 100%; margin-top: 9px; font-size: 10px; line-height: 1.35; }
.bar-chart { height: 150px; display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.bar-column { flex: 1; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #a9c1cf; font-size: 10px; }
.bar-column i { display: block; border-radius: 8px; background: linear-gradient(#b6d1e142, #acc9dc14); height: var(--h); min-height: 4px; animation: bar-in .8s ease-out; transform-origin: bottom; }
.bar-column.current i { background: linear-gradient(#eff6ff, #9bbdec); }
.split-bar { display: flex; gap: 5px; height: 9px; margin: 20px 0 14px; }
.split-bar i { display: block; border-radius: 10px; background: #e3eeff; }
.split-bar i + i { background: #a4c6d9; }
.history-row { padding: 15px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #c5e3ef13; }
.history-row:last-child { border: 0; }
.history-row h3 { font-size: 13px !important; margin-bottom: 4px; }
.history-row p { font-size: 12px; color: var(--m-muted); }
.favourite-heart { color: #9db8c8; }
.favourite-heart.on { color: #e9f4ff; }
.favourite-heart.on .rv-icon { fill: currentColor; }

/* ---------- belts ---------- */

.belt {
    --belt: #3875ab;
    --belt-dark: #2f689d;
    --bar: #14202a;
    height: 46px;
    width: calc(100% + 120px);
    margin: 30px -60px;
    background: repeating-linear-gradient(0deg, var(--belt), var(--belt) 3px, var(--belt-dark) 3px, var(--belt-dark) 5px);
    box-shadow: 0 15px 35px #00101c77;
    position: relative;
    transform: rotate(-7deg);
}
.belt::after { content: ""; position: absolute; width: 65px; right: 76px; top: 0; bottom: 0; background: var(--bar); }
.belt .stripe { position: absolute; top: 0; bottom: 0; width: 7px; background: #eaf0f6; z-index: 1; }
.belt-white { --belt: #e0e2e3; --belt-dark: #c3c8d1; }
.belt-grey { --belt: #9ea3aa; --belt-dark: #858a92; }
.belt-yellow { --belt: #e1c03c; --belt-dark: #c7a62b; }
.belt-orange { --belt: #de8a3a; --belt-dark: #c47128; }
.belt-green { --belt: #4f9a5c; --belt-dark: #3c7f48; }
.belt-blue { --belt: #3875ab; --belt-dark: #2f689d; }
.belt-purple { --belt: #8b67b7; --belt-dark: #705096; }
.belt-brown { --belt: #886248; --belt-dark: #674733; }
.belt-black { --belt: #292d37; --belt-dark: #171d25; --bar: #8c3542; }
.belt-swatch { display: block; width: 35px; height: 10px; border-radius: 2px; box-shadow: 0 3px 8px #0003; background: var(--belt, #347bb3); }
.belt-swatch.belt-black { border: 1px solid #69768b; }
.current-belt-card { cursor: pointer; padding-bottom: 26px; }
.current-belt-card h2 { font-size: 35px !important; margin-top: 19px; }
.belt-card-links { display: flex; gap: 16px; border-top: 1px solid #e1edff27; margin-top: 21px; padding-top: 17px; justify-content: space-between; }
.belt-card-links button { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #d0e0f4 !important; font-weight: 600; }
.belt-card-links .rv-icon { width: 13px; height: 13px; }
.belt-journey-trigger { display: flex; align-items: center; gap: 7px; text-align: left; }
.belt-journey-trigger .rv-icon { width: 15px; height: 15px; color: #d4e5fb; }
.belt-journey-trigger .eyebrow { font-size: 10px; letter-spacing: .14em; }
.belt-preview-card { position: relative; height: clamp(254px, 36dvh, 310px); padding: 19px 20px 22px; margin-top: 20px; background: radial-gradient(ellipse at 100% 80%, #8eabda36, transparent 80%), linear-gradient(125deg, #bdd2f526, #7e98b212); }
.belt-preview-card .eyebrow { font-size: 9px; letter-spacing: .14em; }
.belt-preview-card h3 { font-size: 30px !important; margin-top: 15px; font-weight: 650 !important; }
.belt-preview-card > p { font-size: 12px !important; margin-top: 8px; line-height: 1.6; }
.belt-preview-card > .belt { position: absolute; top: 60%; left: 0; margin: 0 -60px; height: 43px; }
.belt-preview-caption { position: absolute; left: 20px; right: 20px; bottom: 19px; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #c0d1e4; }
.belt-preview-caption b { color: #ecf4fd; font-weight: 500; }
.belt-browser { display: flex; align-items: center; justify-content: space-between; margin: 13px 0; }
.belt-browser > span { font-size: 13px; font-weight: 650; }
.belt-browser > span > span { color: #aebed3; font-weight: 400; }
.belt-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.belt-stages > button { display: flex; align-items: center; flex-direction: column; gap: 8px; min-width: 0; font-size: 10px; color: #c3d2e5 !important; padding: 10px 3px 7px !important; border-radius: 16px; border: 1px solid transparent !important; }
.belt-stages > button.selected { background: #c8dfff13 !important; border-color: #e2edff45 !important; }
.belt-stages small { font-size: 8px; color: #9bb7d5; margin-top: -4px; }
.belt-journey-note { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid #d9e7ff22; margin-top: 15px; padding-top: 13px; }
.belt-journey-note > .rv-icon { width: 19px; height: 19px; color: #aac2e0; margin-top: 3px; }
.belt-journey-note > p { font-size: 11px !important; line-height: 1.7 !important; }
.belt-history-current { display: flex; align-items: center; gap: 14px; border-radius: 21px; padding: 14px; margin: 16px 0 18px; }
.belt-history-current > div { flex: 1; }
.belt-history-current b { font-size: 13px; }
.belt-history-current small { display: block; font-size: 10px; margin-top: 5px; }
.belt-history-current .belt-swatch { width: 34px; transform: rotate(-10deg); }
.timeline { border-left: 1px solid #ccdfeb2a; margin-left: 9px; padding-left: 22px; }
.timeline-item { position: relative; padding: 0 0 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -27px; top: 4px; width: 8px; height: 8px; border: 3px solid #244257; background: #9bb7c6; border-radius: 50%; }
.timeline-item:first-child::before { background: #ebf5ff; }
.timeline-item.future::before { background: #9472c8; border-color: #31446a; }
.timeline-item.future h3 { color: #e1d3fa; }
.timeline-item h3 { font-size: 14px !important; margin-bottom: 4px; }
.timeline-item p { font-size: 11px !important; color: var(--m-muted); }
.timeline-item small { display: block; font-size: 10px; line-height: 1.65; margin-top: 7px; }
.quote { font-size: 16px !important; line-height: 1.75 !important; font-weight: 500; }
.coach-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid #e2efff2b; filter: saturate(.35); }
.coach-initial { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #c9dcff1f; border: 1px solid #e2efff2b; }
.goal { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.goal p { font-size: 14px; flex: 1; min-width: 0; }
.goal > button:first-child { border: 1px solid #a9c9d657 !important; border-radius: 50%; height: 24px; width: 24px; min-width: 24px; display: grid; place-items: center; }
.goal > button:first-child .rv-icon { width: 16px; height: 16px; }
.goal.done > button:first-child { background: #c8e1ff !important; color: #132940; border-color: #c8e1ff !important; }
.goal.done p { text-decoration: line-through; color: #9ab2c1; }
.goal .remove { color: #8ea8bd; }
.goal .remove .rv-icon { width: 15px; height: 15px; }
.achievement { padding: 19px; }
.achievement h3 { font-size: 16px !important; margin-top: 16px; }
.achievement .pill { margin-top: 13px; }

/* ---------- profile ---------- */

.profile-page { margin: -17px -21px 0; }
.profile-stage { position: relative; padding-top: 375px; isolation: isolate; }
.profile-portrait { position: absolute; inset: 0 0 -75px; z-index: -1; overflow: hidden; mask-image: linear-gradient(#000 0%, #000 61%, #000b 78%, transparent 99%); -webkit-mask-image: linear-gradient(#000 0%, #000 61%, #000b 78%, transparent 99%); }
.profile-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.42) brightness(.86); }
.profile-portrait.no-photo { background: radial-gradient(ellipse at 50% 35%, #5d86c466, transparent 60%), linear-gradient(180deg, #213e66, #1c3359); }
.profile-portrait .initials { position: absolute; top: 150px; left: 0; right: 0; text-align: center; font-size: 96px; font-weight: 700; letter-spacing: -.06em; color: #dce9fb44; }
.profile-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#07132366, transparent 24%, transparent 39%, #14233f77 61%, #183253d9 85%, #1c3359); }
.portrait-blur { position: absolute; inset: 260px 0 0; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); mask-image: linear-gradient(transparent, #000 48%); -webkit-mask-image: linear-gradient(transparent, #000 48%); }
.profile-tools { position: absolute; top: calc(83px + var(--m-safe-top)); left: 21px; right: 21px; display: flex; justify-content: space-between; }
.profile-tools .round { width: 38px; height: 38px; background: #bfd8f023 !important; border-color: #deedff2e !important; }
.profile-tools .rv-icon { width: 19px; height: 19px; }
.profile-identity { padding: 0 23px; text-align: center; }
.profile-identity h1 { font-size: 35px !important; font-weight: 600 !important; letter-spacing: -.045em; text-shadow: 0 2px 20px #0a122922; }
.profile-identity > p { font-size: 14px; color: #d0d9e9; margin-top: 8px; }
.profile-actions { display: flex; gap: 10px; margin: 24px 0 26px; align-items: center; }
.profile-actions > .button { flex: 1; font-size: 14px; font-weight: 650; }
.profile-actions > .round { width: 49px; height: 49px; background: #aec4e520 !important; }
.profile-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-numbers a, .profile-numbers button { display: block; color: inherit; }
.profile-numbers strong { display: block; font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.profile-numbers strong span { font-size: 17px; letter-spacing: 0; }
.profile-numbers small { display: block; margin-top: 6px; color: #c4d0e0; font-size: 12px; }
.profile-lower { padding: 27px 21px 0; }
.profile-since { display: flex; align-items: center; justify-content: center; gap: 9px; color: #b8c8dc; font-size: 11px; padding: 0 0 9px; }
.profile-since img { width: 22px; height: 22px; opacity: .8; filter: grayscale(1); object-fit: contain; }
.profile-since b { color: #e2ecf7; font-weight: 500; }
.profile-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.profile-shortcut { min-height: 125px; padding: 19px !important; text-align: left; border-radius: 23px; display: flex !important; flex-direction: column; align-items: flex-start; gap: 18px; background: radial-gradient(ellipse at 90% 0%, #8eadcf45, transparent 90%), linear-gradient(135deg, #16253d55, #7698c228) !important; color: inherit; }
.profile-shortcut > span { font-size: 14px; font-weight: 650; }
.profile-shortcut > .rv-icon:last-child { position: absolute; right: 17px; top: 19px; width: 17px; height: 17px; }
.profile-signout { margin: 24px auto 0; display: flex !important; }
@media (max-width: 360px) { .profile-page { margin-left: -15px; margin-right: -15px; } .profile-stage { padding-top: 350px; } .profile-lower { padding-left: 15px; padding-right: 15px; } .profile-identity h1 { font-size: 31px !important; } }

/* ---------- membership ---------- */

.price { font-size: 46px; letter-spacing: -.06em; margin: 20px 0 15px; font-weight: 700; }
.price small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.benefit { display: flex; gap: 9px; align-items: center; font-size: 13px; margin: 13px 0; }
.benefit .rv-icon { width: 15px; height: 15px; color: #d7e8ff; }
.plan-option { padding: 21px; margin-top: 14px; }
.plan-option .price { font-size: 34px; margin: 12px 0 8px; }
.plan-option p { font-size: 13px; color: #bfced9; }

/* ---------- coaches and news ---------- */

.coach-card { padding: 0 21px 21px; }
.coach-card-photo { position: relative; height: 280px; margin: 0 -21px; overflow: hidden; }
.coach-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.2); mask-image: linear-gradient(#000 45%, #0008 72%, transparent 100%); -webkit-mask-image: linear-gradient(#000 45%, #0008 72%, transparent 100%); }
.coach-card-photo.no-photo { background: radial-gradient(ellipse at 60% 30%, #5f86bd55, transparent 70%); }
.coach-card-photo > div { position: absolute; left: 23px; right: 23px; bottom: 10px; }
.coach-card h2 { font-size: 32px !important; font-weight: 650 !important; }
.coach-card-photo p { font-size: 11px; margin-top: 5px; color: #e5eef9; }
.coach-card .pill { margin-top: 6px; }
.coach-card > p { font-size: 13px; margin: 15px 0; color: var(--m-muted); }
.coach-card .button { width: 100%; justify-content: space-between; }
.coach-detail-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px 27px; border-bottom: 1px solid #d8e6ff22; margin-bottom: 24px; }
.coach-detail-portrait { display: block; width: 112px; height: 132px; object-fit: cover; object-position: center 20%; border-radius: 26px; border: 1px solid #e1eeff55; filter: saturate(.25); margin: 0 auto 20px; box-shadow: 0 14px 38px #0310272b; }
.coach-detail-header .eyebrow { font-size: 10px; letter-spacing: .12em; color: #c5d6ed; }
.coach-detail-header h2 { margin: 9px 0 15px; font-size: 34px !important; }
.coach-detail-body > small { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; display: block; margin-top: 22px; }
.coach-detail-body > p { margin-top: 8px; }

.article-tag { font-size: 10px; letter-spacing: .12em; color: #d1e5ff; text-transform: uppercase; }
.news-card { padding: 0 !important; overflow: hidden; text-align: left; width: 100%; display: block !important; color: inherit; }
.news-photo-wrap { height: 165px; overflow: hidden; mask-image: linear-gradient(#000 45%, transparent); -webkit-mask-image: linear-gradient(#000 45%, transparent); }
.news-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; filter: saturate(.5); }
.news-photo-wrap.no-photo { background: radial-gradient(ellipse at 70% 10%, #6590cc44, transparent 70%); height: 70px; }
.news-card-content { padding: 0 21px 21px; margin-top: -30px; position: relative; }
.news-card h2 { font-size: 24px !important; margin: 11px 0 12px; }
.news-card p { font-size: 14px; color: var(--m-muted); }
.news-card small { font-size: 11px; display: block; margin-top: 16px; }
.news-strip { padding: 19px !important; display: flex; gap: 13px; text-align: left; width: 100%; align-items: flex-start; color: inherit; }
.news-strip .rv-icon { color: #d4e8ff; }
.news-strip h3 { font-size: 14px !important; margin: 3px 0 7px; letter-spacing: -.02em; }
.news-strip p { font-size: 14px; color: var(--m-muted); }
.news-strip.unread::after { content: ""; position: absolute; right: 15px; top: 19px; width: 6px; height: 6px; background: #d0e5ff; border-radius: 50%; }
.home-news-photo { display: block !important; position: relative; min-height: 235px; padding: 120px 25px 25px !important; }
.home-news-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.4); mask-image: linear-gradient(#000a, transparent 90%); -webkit-mask-image: linear-gradient(#000a, transparent 90%); }
.home-news-photo > div { position: relative; }
.home-news-photo h3 { font-size: 25px !important; max-width: 250px; line-height: 1.14; margin: 10px 0; }
.home-news-photo p { font-size: 12px; }
.article-photo-wrap { position: relative; height: 220px; overflow: hidden; margin: 0 -24px 18px; mask-image: linear-gradient(#000 35%, transparent); -webkit-mask-image: linear-gradient(#000 35%, transparent); }
.article-photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; filter: saturate(.5); }

/* ---------- card ---------- */

.wallet-heading { display: flex; align-items: center; gap: 15px; margin: 7px 0 23px; }
.wallet-heading .eyebrow { font-size: 9px; color: #b9cce2; }
.wallet-heading h1 { font-size: 27px !important; margin-top: 4px; }
.wallet-card { padding: 24px 24px 0; border-radius: 29px; text-align: center; background: radial-gradient(ellipse at 100% 0%, #b3cce34a, transparent 75%), radial-gradient(ellipse at 0% 76%, #4c7bb36b, transparent 70%), linear-gradient(145deg, #56769a33, #0d1e39a3); }
.wallet-brand { display: flex; align-items: center; text-align: left; gap: 10px; }
.wallet-brand > img { width: 36px; height: 36px; object-fit: contain; }
.wallet-brand > span:not(.pill) { font-size: 13px; letter-spacing: .13em; font-weight: 700; }
.wallet-brand small { display: block; font-size: 7px; letter-spacing: .2em; margin-top: 4px; font-weight: 500; text-transform: uppercase; }
.wallet-brand > .pill { margin-left: auto; font-size: 10px; padding: 6px 9px; }
.wallet-identity { margin: 25px 0 0; }
.wallet-identity h2 { font-size: 24px !important; font-weight: 600 !important; }
.wallet-identity p { font-size: 12px !important; color: #c2d2e5; margin-top: 5px; }
.qr-panel { background: #f5f8fa; padding: 16px; border-radius: 20px; width: 182px; aspect-ratio: 1; margin: 23px auto 17px; box-shadow: 0 9px 40px #030f1b44; position: relative; }
.qr-panel > div, .qr-panel svg { width: 100%; height: 100%; display: block; }
.scan-line { position: absolute; left: 15px; right: 15px; top: 15px; height: 2px; background: #acd5ff; box-shadow: 0 0 14px #a3caff; animation: wallet-scan 3s ease-in-out infinite; }
.card-number { font-size: 11px; letter-spacing: .18em; color: #aac1d0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.wallet-caption { font-size: 12px; color: #dce8f6; margin: 12px 0 24px; }
.wallet-valid { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; border-top: 1px solid #daeaff21; padding: 16px 0; }
.wallet-valid span { color: #b8c9df; }
.wallet-valid b { font-size: 11px; font-weight: 600; }

/* ---------- navigation ---------- */

.member-nav {
    position: fixed;
    bottom: max(12px, var(--m-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(min(100vw, 430px) - 30px);
    z-index: 20;
    display: flex;
    gap: 3px;
    justify-content: space-between;
    padding: 8px 9px 7px;
    border-radius: 32px;
    border: 1px solid #dceaff36;
    background: linear-gradient(135deg, #9bb8e34d, #324b7470);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 12px 38px #0006, inset 0 1px 0 #f1f8ff24;
}
.member-nav a { width: 69px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #b9ccd7; font-size: 9px; letter-spacing: .015em; }
.member-nav .nav-icon { display: grid; place-items: center; border-radius: 50%; width: 43px; height: 43px; transition: all .3s; background: #d6edf506; border: 1px solid transparent; position: relative; }
.member-nav a.active { color: #fff; }
.member-nav a.active .nav-icon { background: linear-gradient(135deg, #f7faff, color-mix(in srgb, var(--m-accent) 70%, #cbdff4)); border: 1px solid #ffffff70; box-shadow: 0 4px 17px #82b3f74d; color: #0d223d; }
.member-nav .nav-badge { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #deedff; border: 2px solid #2b4266; }
@media (max-width: 360px) { .member-nav a { width: 58px; font-size: 8px; } }

/* ---------- sheet ---------- */

.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: #020b1499; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .2s ease-out; }
.sheet {
    position: fixed;
    z-index: 61;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(430px, 100vw);
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    border-radius: 32px 32px 0 0;
    border: 1px solid #d7eaf736;
    border-bottom: 0;
    padding: 66px 24px calc(30px + var(--m-safe-bottom));
    background: radial-gradient(ellipse at 100% 8%, #7394c255, transparent 65%), linear-gradient(145deg, #233a60f7, #101f3af7);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    box-shadow: 0 -10px 80px #0007;
    animation: sheet-in .28s ease-out;
    outline: 0;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.with-photo { padding-top: 0; }
.sheet.tall { max-height: 96dvh; }
.sheet-handle { position: absolute; top: 12px; left: calc(50% - 17px); z-index: 30; width: 34px; height: 4px; border-radius: 5px; background: #dfecfb80; box-shadow: 0 1px 8px #06122b55; }
.sheet-close { position: absolute !important; top: 20px; right: 17px; z-index: 35; width: 34px !important; height: 34px !important; background: #14233ea6 !important; border-color: #d6e9ff44 !important; }
.sheet-close .rv-icon { width: 16px; height: 16px; }
.sheet > h2, .sheet .sheet-title { font-size: 27px !important; max-width: calc(100% - 26px); margin-bottom: 14px; }
.sheet > p, .sheet .sheet-text { font-size: 14px; color: #bfced9; }
.sheet .detail-photo ~ h2 { margin-top: 17px; }

/* ---------- toasts ---------- */

.member-device ~ .rv-toasts, .rv-toasts {
    position: fixed;
    left: 50%;
    bottom: calc(114px + var(--m-safe-bottom));
    transform: translateX(-50%);
    z-index: 80;
    display: grid;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 35px);
}
.rv-toast { background: #e8f3f5 !important; color: #153345 !important; border: 1px solid #fff7 !important; padding: 13px 19px !important; border-radius: 20px !important; box-shadow: 0 12px 40px #0004; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.rv-toast .rv-icon { width: 16px; height: 16px; }

/* ---------- auth pages ---------- */

.auth-page { min-height: calc(100dvh - 180px); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: 12px; }
.auth-page h1 { font-size: 40px !important; font-weight: 650 !important; line-height: 1.05; letter-spacing: -.055em; }
.auth-page .auth-intro p { color: #c7d5e6; margin-top: 12px; font-size: 14px; }
.auth-card { padding: 21px; }
.auth-card .field:first-child { margin-top: 0; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.install-steps { display: grid; gap: 12px; margin-top: 18px; }
.install-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #d4e0ee; }
.install-step b { display: grid; place-items: center; width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: #c9dcff1f; font-size: 12px; }

/* Headings take focus after navigation (screen readers); no ring for that. */
.member-main h1:focus, .member-main h1:focus-visible { outline: none; }
