@font-face {
    font-family: "BoxBMS Sans";
    src: local("SF Pro Text"), local("Inter"), local("Segoe UI");
}

:root {
    --brand: #0b5d55;
    --accent: #d6a85f;
    --brand-rgb: 11, 93, 85;
    --bg: #f4f6f4;
    --surface: #ffffff;
    --surface-soft: #eef5f2;
    --surface-accent: #fbf6ec;
    --text: #18302c;
    --muted: #6f7e7b;
    --line: #dfe7e4;
    --success: #23886d;
    --danger: #c84f5d;
    --warning: #ad741e;
    --shadow-sm: 0 6px 20px rgba(23, 48, 44, .07);
    --shadow-md: 0 18px 50px rgba(23, 48, 44, .13);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "BoxBMS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.app-frame {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
}
.app-content { min-height: 100vh; padding-bottom: calc(94px + var(--safe-bottom)); }
.page-padding { margin-left: 16px; margin-right: 16px; }

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50% 50% 44% 56%;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: .08em;
}
.brand-mark--small { width: 36px; height: 36px; font-size: 13px; }
.brand-mark--large { width: 78px; height: 78px; font-size: 23px; }
.brand-mark--image { overflow: hidden; }
.brand-mark img { width: 78%; height: 78%; display: block; object-fit: contain; }
.brand-mark__fallback { display: inline; }
.brand-mark--image .brand-mark__fallback { display: none; }
.brand-mark--image.is-broken img { display: none; }
.brand-mark--image.is-broken .brand-mark__fallback { display: inline; }
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .02em; }
.brand-lockup > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-accent);
    color: var(--brand);
    border: 2px solid rgba(255, 255, 255, .7);
    font-weight: 800;
}
.avatar--button { box-shadow: 0 5px 16px rgba(0, 0, 0, .14); }
.avatar--large { width: 72px; height: 72px; font-size: 21px; border: 4px solid var(--surface); box-shadow: var(--shadow-sm); }
.avatar--image { overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.avatar__fallback { display: inline; }
.avatar--image .avatar__fallback { display: none; }
.avatar--image.is-broken img { display: none; }
.avatar--image.is-broken .avatar__fallback { display: inline; }

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    border: 0;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { color: var(--surface); background: var(--brand); box-shadow: 0 8px 18px rgba(var(--brand-rgb), .18); }
.btn--soft { color: var(--brand); background: var(--surface-soft); }
.btn--block { width: 100%; }
.btn--large { min-height: 54px; border-radius: 16px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.topbar {
    height: 72px;
    padding: max(10px, env(safe-area-inset-top)) 12px 6px;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(223, 231, 228, .8);
}
.topbar h1 { margin: 0; text-align: center; font-size: 18px; line-height: 1.2; }
.topbar .icon-button { color: var(--brand); }
.topbar-spacer { width: 42px; }

.bottom-nav {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(72px + var(--safe-bottom));
    padding: 6px max(8px, env(safe-area-inset-left)) var(--safe-bottom) max(8px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(23, 48, 44, .06);
    backdrop-filter: blur(16px);
}
.bottom-nav__item {
    height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.bottom-nav__icon { width: 38px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 22px; }
.bottom-nav__item.is-active { color: var(--brand); }
.bottom-nav__item.is-active .bottom-nav__icon { background: var(--surface-soft); }

.home-hero {
    min-height: 230px;
    padding: max(18px, env(safe-area-inset-top)) 20px 54px;
    color: var(--surface);
    background: var(--brand);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
}
.home-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -92px;
    bottom: -116px;
    border: 34px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}
.home-hero__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.home-hero > p { margin: 0 0 2px; color: rgba(255, 255, 255, .72); }
.home-hero h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; }
.rank-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--surface); background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; font-size: 14px; line-height: 1.2; font-weight: 750; white-space: nowrap; }
.home-hero .avatar { color: var(--surface); background: rgba(255, 255, 255, .16); }
.home-hero .brand-mark, .login-brand-lockup .brand-mark { color: var(--surface); }
.home-overlap { margin-top: -30px; position: relative; z-index: 2; }

.membership-card {
    margin: 0 16px 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.stat { padding: 12px 4px; display: flex; flex-direction: column; gap: 3px; }
.membership-card > .stat:not(.stat--wide) + .stat:not(.stat--footer) { border-left: 1px solid var(--line); padding-left: 16px; }
.stat--wide { grid-column: 1 / -1; padding: 2px 4px 16px 50px; border-bottom: 1px solid var(--line); position: relative; }
.stat--wide .stat__icon { position: absolute; left: 0; top: 2px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--surface-accent); border-radius: 12px; font-size: 19px; }
.stat__label { color: var(--muted); font-size: 14px; }
.stat strong { font-size: 18px; }
.stat--wide strong { font-size: 22px; }
.stat--footer { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 7px; padding: 12px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.section-block { margin: 0 16px 18px; padding: 18px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading > div h2 { margin-top: 3px; font-size: 20px; }
.section-kicker { color: var(--muted); font-size: 14px; }
.section-heading--inline { align-items: center; }
.section-heading--inline > a { color: var(--brand); font-size: 14px; font-weight: 750; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status--success { color: var(--success); background: rgba(35, 136, 109, .1); }
.status--neutral { color: var(--muted); background: var(--bg); }
.status--warning { color: var(--warning); background: var(--surface-accent); }

.appointment-card { display: grid; grid-template-columns: 62px 1fr; gap: 13px; padding: 14px; margin-bottom: 14px; background: var(--surface-soft); border-radius: 16px; }
.appointment-card__date, .calendar-tile { min-height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--surface); background: var(--brand); border-radius: 13px; }
.appointment-card__date span, .calendar-tile span { font-size: 22px; line-height: 1; font-weight: 850; }
.appointment-card__date small, .calendar-tile small { margin-top: 5px; font-size: 12px; font-weight: 700; }
.appointment-card__content { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.appointment-card__content > strong { font-size: 16px; }
.appointment-card__content > span { display: flex; gap: 6px; color: var(--muted); font-size: 13px; }

.treatment-snapshots { display: flex; flex-direction: column; gap: 10px; }
.treatment-snapshot { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 11px; padding: 11px 0; }
.treatment-snapshot + .treatment-snapshot { border-top: 1px solid var(--line); }
.service-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 13px; font-size: 19px; flex: 0 0 auto; }
.service-icon--large { width: 50px; height: 50px; font-size: 22px; }
.treatment-snapshot__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.treatment-snapshot__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.treatment-snapshot__main > span:not(.progress) { color: var(--muted); font-size: 13px; }
.progress { display: block; width: 100%; height: 5px; margin-top: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.progress--large { height: 8px; margin: 9px 0 12px; }
.treatment-snapshot > .bi { color: var(--muted); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid a { min-height: 92px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 15px; font-size: 15px; font-weight: 720; }
.action-grid i { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 10px; font-size: 19px; }

.page-intro { padding: 14px 20px 2px; color: var(--muted); background: var(--surface); }
.page-intro p { margin: 0; }
.form-stack { display: flex; flex-direction: column; gap: 20px; padding-top: 18px; }
.choice-section { min-width: 0; padding: 0; margin: 0; border: 0; }
.choice-section legend { width: 100%; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.choice-section legend > span { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 50%; font-size: 14px; }
.branch-options, .purpose-options { display: flex; flex-direction: column; gap: 10px; }
.choice-card { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; position: relative; cursor: pointer; }
.choice-card > input, .purpose-card > input, .date-chip > input, .time-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 12px; font-size: 18px; }
.choice-card__content { display: flex; flex-direction: column; min-width: 0; }
.choice-card__content strong { font-size: 16px; }
.choice-card__content small { margin: 3px 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-card__content em { color: var(--brand); font-size: 13px; font-style: normal; font-weight: 700; }
.choice-card__check { grid-column: 3; grid-row: 1; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; }
.choice-card input:checked ~ .choice-card__check { color: var(--surface); background: var(--brand); border-color: var(--brand); }
.choice-card:has(input:checked), .purpose-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.date-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 8px; padding: 2px 1px 7px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.date-scroller::-webkit-scrollbar { display: none; }
.date-chip { min-height: 92px; padding: 9px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; scroll-snap-align: start; position: relative; cursor: pointer; }
.date-chip span, .date-chip small { color: var(--muted); font-size: 12px; }
.date-chip strong { margin: 3px 0; font-size: 22px; }
.date-chip:has(input:checked) { color: var(--surface); background: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.date-chip:has(input:checked) span, .date-chip:has(input:checked) small { color: rgba(255, 255, 255, .72); }
.period-tabs { padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface); border-radius: 14px; }
.period-tabs button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 14px; cursor: pointer; }
.period-tabs button.is-active { color: var(--surface); background: var(--brand); font-weight: 750; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.time-grid label { position: relative; cursor: pointer; }
.time-grid label > span { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; font-size: 15px; font-weight: 750; }
.time-grid label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.time-grid label:has(input:checked) > span { color: var(--brand); border-color: var(--brand); background: var(--surface-soft); box-shadow: 0 0 0 1px var(--brand); }
.time-grid label:has(input:checked) small { color: var(--brand); }
.purpose-card { display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); position: relative; cursor: pointer; }
.purpose-card > span:nth-of-type(2) { display: flex; flex-direction: column; }
.purpose-card strong { font-size: 15px; }
.purpose-card small { color: var(--muted); font-size: 13px; }
.purpose-card__check { color: var(--line); font-size: 19px; }
.purpose-card:has(input:checked) .purpose-card__check { color: var(--brand); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 15px; font-weight: 750; }
.field > small { color: var(--muted); font-size: 13px; }
.input-wrap, .select-wrap { min-height: 52px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.input-wrap:focus-within, .select-wrap:focus-within, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .08); }
.input-wrap > i:first-child, .select-wrap > i:first-child { color: var(--brand); font-size: 17px; }
.input-wrap input, .select-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.input-wrap input::placeholder, textarea::placeholder { color: #9ba7a4; }
.input-wrap.is-disabled { background: #eef0ef; }
.input-action { width: 36px; height: 36px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.select-wrap select { appearance: none; font-size: 16px; }
textarea { width: 100%; resize: vertical; padding: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; outline: 0; }
.sticky-action { position: sticky; bottom: calc(76px + var(--safe-bottom)); z-index: 15; padding: 8px 0 14px; background: linear-gradient(180deg, transparent, var(--bg) 24%); }

.segmented-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-top: 14px; margin-bottom: 14px; background: #e8edeb; border-radius: 14px; }
.segmented-nav a, .segmented-nav button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: var(--muted); background: transparent; border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer; }
.segmented-nav .is-active { color: var(--brand); background: var(--surface); box-shadow: 0 2px 8px rgba(23, 48, 44, .08); }
.segmented-nav span, .count-badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--surface); background: var(--brand); border-radius: 999px; font-size: 12px; }
.card-list { display: flex; flex-direction: column; gap: 14px; }
.treatment-card { padding: 17px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.treatment-card__head { display: grid; grid-template-columns: 50px 1fr; gap: 12px; }
.treatment-card__head > div { min-width: 0; }
.treatment-card__head > div > span { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.treatment-card__head h2 { margin: 3px 0; font-size: 18px; }
.treatment-card__head small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.treatment-progress { margin: 15px 0; padding: 13px; background: var(--bg); border-radius: 14px; }
.treatment-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.treatment-counts { display: grid; grid-template-columns: 1fr 1fr; }
.treatment-counts > span { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.treatment-counts > span + span { border-left: 1px solid var(--line); }
.treatment-counts small { color: var(--muted); font-size: 12px; }
.treatment-counts strong { font-size: 18px; }
.next-date-card { margin-bottom: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; color: var(--brand); background: var(--surface-soft); border-radius: 13px; }
.next-date-card > i { font-size: 20px; }
.next-date-card > span { display: flex; flex-direction: column; }
.next-date-card small { font-size: 12px; }
.next-date-card strong { font-size: 15px; }

.timeline { padding-top: 5px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 21px; bottom: 22px; left: 31px; width: 2px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; position: relative; margin-bottom: 13px; }
.timeline-marker { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--surface); background: var(--brand); border: 5px solid var(--bg); border-radius: 50%; z-index: 1; font-size: 13px; }
.timeline-card { padding: 15px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }
.timeline-card__date { color: var(--muted); font-size: 13px; }
.timeline-card h2 { margin: 4px 0 8px; font-size: 17px; }
.session-chip { display: inline-flex; padding: 5px 8px; color: var(--brand); background: var(--surface-soft); border-radius: 99px; font-size: 12px; font-weight: 700; }
.timeline-card dl { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.timeline-card dl > div { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 13px; }
.timeline-card dt { color: var(--muted); font-weight: 500; }
.timeline-card dt i { margin-right: 5px; }
.timeline-card dd { margin: 0; font-weight: 700; }

.offer-hero { margin-top: 14px; padding: 18px; display: grid; grid-template-columns: 60px 1fr; gap: 13px; color: var(--surface); background: var(--brand); border-radius: var(--radius); overflow: hidden; position: relative; }
.offer-hero::after { content: ""; position: absolute; width: 100px; height: 100px; right: -40px; bottom: -45px; border: 18px solid rgba(255,255,255,.08); border-radius: 50%; }
.offer-hero__icon { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; color: var(--surface); background: rgba(0,0,0,.18); border-radius: 17px; font-size: 27px; }
.offer-hero span { color: rgba(255,255,255,.84); font-size: 13px; }
.offer-hero h2 { margin: 1px 0; font-family: Georgia, serif; color: var(--surface); font-size: 25px; }
.offer-hero p { margin: 3px 0 0; color: rgba(255,255,255,.9); font-size: 13px; }
.page-offers .section-heading { margin-top: 20px; }
.offer-list { display: flex; flex-direction: column; gap: 13px; }
.offer-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.offer-card__ticket { padding: 11px 14px; display: flex; justify-content: space-between; color: var(--surface); background: var(--brand); font-size: 13px; font-weight: 750; }
.offer-card__body { padding: 14px; }
.offer-card__body h3 { margin: 0 0 5px; font-size: 18px; }
.offer-card__body p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.offer-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-meta span { color: var(--muted); font-size: 12px; }
.offer-meta span i { margin-right: 4px; }
.offer-meta strong { padding: 5px 7px; color: var(--brand); background: var(--surface-soft); border-radius: 7px; font-size: 12px; letter-spacing: .04em; }
.text-button { width: 100%; min-height: 46px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); color: var(--brand); background: transparent; font-size: 14px; font-weight: 750; cursor: pointer; }
.benefits-card { margin-top: 16px; margin-bottom: 20px; padding: 17px; background: var(--surface-accent); border-radius: var(--radius); }
.benefits-card ul { margin: 0; padding: 0; list-style: none; }
.benefits-card li { display: flex; gap: 8px; margin-top: 9px; font-size: 14px; }
.benefits-card li i { color: var(--brand); }

.bottom-sheet { position: fixed; inset: 0; z-index: 90; }
.bottom-sheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(9, 27, 24, .48); backdrop-filter: blur(3px); }
.bottom-sheet__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 20px calc(22px + var(--safe-bottom)); background: var(--surface); border-radius: 26px 26px 0 0; animation: sheetUp .24s ease-out; }
.bottom-sheet__handle { width: 42px; height: 4px; display: block; margin: 0 auto 18px; background: var(--line); border-radius: 99px; }
.bottom-sheet__content h2 { margin: 12px 0 6px; font-size: 19px; }
.bottom-sheet__content > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.coupon-code { padding: 13px; display: flex; align-items: center; justify-content: space-between; background: var(--surface-soft); border: 1px dashed var(--brand); border-radius: 13px; }
.coupon-code span { color: var(--muted); font-size: 13px; }
.coupon-code strong { color: var(--brand); letter-spacing: .07em; }
.rule-list { margin: 16px 0; padding: 0; list-style: none; }
.rule-list li { display: flex; gap: 8px; margin-top: 9px; font-size: 14px; }
.rule-list i { color: var(--success); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.appointment-list { display: flex; flex-direction: column; gap: 13px; }
.appointment-list-card { padding: 15px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.appointment-list-card__head { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 11px; }
.calendar-tile { min-height: 56px; }
.calendar-tile span { font-size: 18px; }
.appointment-list-card__head > div:nth-child(2) > span { color: var(--muted); font-size: 13px; }
.appointment-list-card__head h2 { margin: 0; font-size: 19px; }
.appointment-list-card__body { margin: 13px 0; padding: 12px 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.appointment-list-card__body strong { font-size: 16px; }
.appointment-list-card__body span, .appointment-list-card__body small { color: var(--muted); font-size: 13px; }
.appointment-list-card__body i { margin-right: 5px; }
.appointment-list-card--past { opacity: .86; }
.appointment-list-card .text-button { padding: 7px 0 0; border: 0; }

.invoice-list { padding-top: 15px; display: flex; flex-direction: column; gap: 11px; }
.invoice-card { display: grid; grid-template-columns: 42px 1fr auto 14px; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }
.invoice-card__icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 12px; font-size: 18px; }
.invoice-card__main { display: flex; flex-direction: column; min-width: 0; }
.invoice-card__main > span { color: var(--muted); font-size: 12px; }
.invoice-card__main strong { margin: 2px 0; font-size: 17px; }
.invoice-card__main small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-card__status { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--success); font-size: 12px; }
.invoice-card__status i { font-size: 15px; }
.invoice-card > .bi { color: var(--muted); font-size: 12px; }
.receipt-card { margin-top: 16px; padding: 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.receipt-card__status { padding: 15px; display: flex; flex-direction: column; align-items: center; background: var(--surface-soft); border-radius: 14px; }
.receipt-card__status i { color: var(--success); font-size: 35px; }
.receipt-card__status strong { margin-top: 4px; color: var(--success); }
.receipt-card__status span { color: var(--muted); font-size: 12px; }
.receipt-meta, .receipt-total { margin: 15px 0; }
.receipt-meta > div, .receipt-total > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; }
.receipt-meta dt, .receipt-total dt { color: var(--muted); }
.receipt-meta dd, .receipt-total dd { margin: 0; text-align: right; font-weight: 700; }
.receipt-items { padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.receipt-items h2 { margin: 0 0 10px; font-size: 16px; }
.receipt-items > div { display: flex; justify-content: space-between; gap: 15px; margin-top: 10px; font-size: 14px; }
.receipt-items > div > span { display: flex; flex-direction: column; }
.receipt-items small { color: var(--muted); }
.receipt-total > div:last-child { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.receipt-total > div:last-child dd { color: var(--brand); }

.rating-box { margin: 0; padding: 20px 14px; text-align: center; background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rating-box legend { float: left; width: 100%; margin-bottom: 14px; font-weight: 750; }
.stars { display: flex; align-items: center; justify-content: center; gap: 7px; clear: both; }
.stars button { padding: 2px; border: 0; color: var(--line); background: transparent; font-size: 31px; cursor: pointer; }
.stars button.is-active { color: var(--accent); }
.rating-box > strong { display: block; margin-top: 8px; color: var(--warning); font-size: 14px; }
.quick-notes { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-notes button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); border-radius: 99px; font-size: 13px; cursor: pointer; }
.quick-notes button.is-active { color: var(--brand); border-color: var(--brand); background: var(--surface-soft); }

.account-hero { padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; color: var(--surface); background: var(--brand); border-radius: 0 0 26px 26px; margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }
.account-hero h2 { margin: 0; font-size: 22px; }
.account-hero p { margin: 3px 0 8px; color: rgba(255,255,255,.9); font-size: 15px; }
.account-hero div > span { display: inline-flex; align-items: center; gap: 6px; color: var(--surface); font-size: 14px; font-weight: 650; }
.account-summary { margin-top: 14px; padding: 17px 14px; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }
.account-summary > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.account-summary > div + div { border-left: 1px solid var(--line); }
.account-summary span { color: var(--muted); font-size: 14px; }
.account-summary strong { color: var(--brand); font-size: 18px; }
.menu-card { margin-top: 14px; padding: 0 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.menu-card > a, .menu-card > button { width: 100%; min-height: 82px; padding: 13px 0; display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.menu-card > * + * { border-top: 1px solid var(--line); }
.menu-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--surface-soft); border-radius: 13px; font-size: 22px; }
.menu-card > * > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.menu-card strong { font-size: 16px; }
.menu-card small { margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-card > * > .bi { color: var(--muted); font-size: 16px; }
.logout-form { margin-top: 16px; margin-bottom: 10px; }
.logout-form button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: var(--danger); background: rgba(200, 79, 93, .08); border-radius: 14px; font-weight: 750; cursor: pointer; }
.profile-avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

.toast-message {
    position: fixed;
    z-index: 100;
    top: max(14px, env(safe-area-inset-top));
    left: 50%;
    width: calc(100% - 32px);
    max-width: 400px;
    min-height: 50px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--surface);
    background: var(--text);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transform: translateX(-50%);
    animation: toastIn .25s ease-out;
    font-size: 14px;
}
.toast-message i { color: #7bdbc0; }
.toast-message--danger i { color: #ff9aa6; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -15px); } to { opacity: 1; transform: translate(-50%, 0); } }

.login-body { min-height: 100vh; background: var(--bg); }
.login-shell { width: 100%; max-width: 480px; min-height: 100vh; min-height: 100svh; margin: 0 auto; background: var(--surface); position: relative; overflow-x: hidden; }
.login-hero { min-height: 330px; padding: max(24px, env(safe-area-inset-top)) 24px 72px; color: var(--surface); background: var(--brand); border-radius: 0 0 36px 36px; position: relative; overflow: hidden; }
.login-hero::before, .login-hero::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; pointer-events: none; }
.login-hero::before { width: 260px; height: 260px; right: -120px; top: -95px; }
.login-hero::after { width: 180px; height: 180px; right: -82px; top: -55px; }
.login-brand-lockup { min-width: 0; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; font-size: 18px; font-weight: 800; }
.login-brand-lockup .brand-mark--large { width: 54px; height: 54px; font-size: 16px; }
.login-brand-lockup > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-welcome { margin-top: 42px; position: relative; z-index: 1; }
.login-welcome .eyebrow { margin: 0 0 8px; color: rgba(255, 255, 255, .88); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-welcome h1 { margin: 0; font-size: 30px; line-height: 1.16; letter-spacing: -.02em; }
.login-welcome > p:last-child { max-width: 350px; margin: 10px 0 0; color: rgba(255, 255, 255, .9); font-size: 15px; }
.login-card { width: calc(100% - 32px); min-height: calc(100vh - 288px); min-height: calc(100svh - 288px); margin: -42px 16px 0; padding: 24px 18px calc(24px + var(--safe-bottom)); background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .btn { margin-top: 4px; }
.login-help { margin-top: 22px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: var(--surface-soft); border-radius: 14px; }
.login-help strong { font-size: 14px; }
.login-help span { color: var(--muted); font-size: 13px; }
.login-help a { margin-top: 2px; color: var(--brand); font-size: 15px; font-weight: 750; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 17px; color: var(--muted); font-size: 12px; text-align: center; }
.alert { margin-bottom: 15px; padding: 12px; display: flex; gap: 9px; align-items: center; border-radius: 13px; font-size: 14px; }
.alert--danger { color: var(--danger); background: rgba(200,79,93,.08); border: 1px solid rgba(200,79,93,.18); }

.empty-state {
    min-height: 180px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state > i { color: var(--brand); font-size: 30px; }
.empty-state p { max-width: 300px; margin: 0; font-size: 15px; }
.empty-state .btn { margin-top: 4px; }
.empty-state--compact { min-height: 120px; padding: 16px; box-shadow: none; }
.empty-state--compact > i { font-size: 24px; }

@media (min-width: 600px) {
    .app-frame { max-width: 480px; box-shadow: 0 0 50px rgba(23, 48, 44, .12); }
    .login-shell { box-shadow: 0 0 50px rgba(23, 48, 44, .12); }
    .bottom-nav { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
    .home-hero, .account-hero { padding-top: 24px; }
    .bottom-sheet__content { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
    @keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
