:root {
    --ink: #101312;
    --ink-soft: #4f5653;
    --paper: #ffffff;
    --paper-soft: #f6f7f6;
    --paper-mint: #e9f7f1;
    --mint: #63c4a1;
    --mint-dark: #26775b;
    --line: #dfe4e1;
    --danger: #9b3e3e;
    --danger-soft: #fff0f0;
    --shadow: 0 20px 60px rgba(16, 19, 18, .08);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --display: "DM Sans", sans-serif;
    --body: "DM Sans", sans-serif;
    --mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Referral — the booking link is treated as the primary shareable object. */
.referral-page { --referral-ink:#163b31; --referral-mint:#dff5e9; --referral-green:#2c8a66; padding-bottom:130px; }
.referral-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; margin-bottom:42px; }
.referral-heading > div:first-child { max-width:720px; }
.referral-heading h1 { margin:0 0 14px; font-size:clamp(2.7rem,6vw,5rem); letter-spacing:-.055em; line-height:.96; }
.referral-heading p { max-width:620px; margin:0; color:var(--ink-soft); font-size:.94rem; line-height:1.65; }
.referral-points { min-width:180px; padding-left:24px; border-left:1px solid var(--line); }
.referral-points span,.referral-points small { display:block; color:var(--ink-soft); font-size:.65rem; }
.referral-points strong { display:block; margin:3px 0; color:var(--referral-green); font-size:2.4rem; letter-spacing:-.05em; line-height:1; }
.referral-share-card { position:relative; display:grid; grid-template-columns:70px minmax(0,1fr) auto; align-items:center; gap:20px 26px; overflow:hidden; padding:34px; border-radius:30px 10px 30px 10px; background:var(--referral-ink); color:#fff; box-shadow:0 24px 60px rgba(22,59,49,.2); }
.referral-share-card:after { position:absolute; right:-90px; bottom:-145px; width:300px; height:300px; border:1px solid rgba(129,218,180,.22); border-radius:50%; box-shadow:0 0 0 44px rgba(129,218,180,.045),0 0 0 90px rgba(129,218,180,.025); content:""; pointer-events:none; }
.referral-share-card__mark { position:relative; z-index:1; display:grid; width:70px; height:70px; place-items:center; border:1px solid rgba(162,229,201,.45); border-radius:50%; color:#9ce0c1; }
.referral-share-card__mark svg { width:34px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.5; }
.referral-share-card__copy { position:relative; z-index:1; min-width:0; }
.referral-share-card__copy h2 { margin:0 0 6px; font-size:1.45rem; letter-spacing:-.035em; }
.referral-share-card__copy p { max-width:570px; margin:0; color:#bfddd1; font-size:.72rem; line-height:1.55; }
.referral-link { position:relative; z-index:1; display:flex; grid-column:1/3; min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.17); border-radius:14px; background:rgba(255,255,255,.08); }
.referral-link input { width:100%; min-width:0; height:54px; padding:0 16px; overflow:hidden; border:0; outline:0; background:transparent; color:#fff; font-family:var(--mono); font-size:.72rem; text-overflow:ellipsis; }
.referral-link button { display:inline-flex; min-width:104px; align-items:center; justify-content:center; gap:8px; border:0; border-left:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.08); color:#fff; cursor:pointer; font-size:.72rem; font-weight:700; }
.referral-link button:hover { background:rgba(255,255,255,.15); }
.referral-link button:focus-visible,.referral-share-button:focus-visible { outline:3px solid rgba(156,224,193,.55); outline-offset:3px; }
.referral-link svg,.referral-share-button svg { width:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.referral-share-button { position:relative; z-index:1; display:inline-flex; min-height:54px; align-items:center; justify-content:center; gap:9px; grid-column:3; grid-row:2; padding:0 20px; border:0; border-radius:14px; background:#a2e5c7; color:#12382d; cursor:pointer; font-size:.76rem; font-weight:800; }
.referral-share-button:hover { background:#b7efd5; }
.referral-copy-status { position:relative; z-index:1; min-height:15px; grid-column:1/-1; margin:-10px 0 0; color:#a2e5c7; font-size:.64rem; }
.referral-how { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:34px 0 56px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.referral-how > h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.referral-how > div { display:grid; grid-template-columns:34px minmax(0,1fr); gap:12px; padding:23px 24px; }
.referral-how > div + div { border-left:1px solid var(--line); }
.referral-how > div > span { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; background:var(--referral-mint); color:var(--referral-green); font-size:.68rem; font-weight:800; }
.referral-how p { margin:0; color:var(--ink-soft); font-size:.68rem; line-height:1.5; }
.referral-how strong { display:block; margin-bottom:4px; color:var(--ink); font-size:.76rem; }
.referral-history { max-width:820px; }
.referral-history > header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.referral-history h2 { margin:0 0 5px; font-size:2rem; letter-spacing:-.04em; }
.referral-history header p { margin:0; color:var(--ink-soft); font-size:.72rem; }
.referral-history header > span { padding:7px 10px; border-radius:999px; background:var(--referral-mint); color:var(--referral-green); font-size:.66rem; font-weight:800; white-space:nowrap; }
.referral-history ol { margin:0; padding:0; border-top:1px solid var(--line); list-style:none; }
.referral-history li { display:grid; min-height:78px; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:15px; border-bottom:1px solid var(--line); }
.referral-avatar { display:grid; width:42px; height:42px; place-items:center; border-radius:50%; background:#edf7f2; color:var(--referral-green); font-size:.78rem; font-weight:800; }
.referral-history li div { display:flex; min-width:0; flex-direction:column; gap:3px; }
.referral-history li strong { overflow:hidden; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.referral-history time { color:var(--ink-soft); font-size:.64rem; }
.referral-history li > b { color:var(--referral-green); font-size:.85rem; white-space:nowrap; }
.referral-history li > b small { font-size:.58rem; }
.referral-empty { display:grid; min-height:240px; place-content:center; justify-items:center; padding:36px; border:1px dashed #cfdad5; border-radius:22px; text-align:center; }
.referral-empty > span { color:var(--referral-green); font-size:2rem; }
.referral-empty h3 { margin:10px 0 5px; font-size:1.2rem; }
.referral-empty p { max-width:390px; margin:0; color:var(--ink-soft); font-size:.7rem; line-height:1.6; }
.referral-unavailable { margin-top:28px; }

@media (max-width:1000px) {
    .referral-heading { align-items:flex-start; flex-direction:column; gap:24px; }
    .referral-points { padding:0; border:0; }
    .referral-share-card { grid-template-columns:58px minmax(0,1fr); padding:27px; }
    .referral-share-card__mark { width:58px; height:58px; }
    .referral-link { grid-column:1/-1; }
    .referral-share-button { grid-column:1/-1; grid-row:auto; }
    .referral-how { grid-template-columns:1fr; }
    .referral-how > div + div { border-top:1px solid var(--line); border-left:0; }
}

@media (max-width:600px) {
    .referral-page { width:min(100% - 32px,1120px); padding-top:42px; }
    .referral-heading h1 { font-size:2.65rem; }
    .referral-share-card { grid-template-columns:1fr; gap:16px; padding:24px 20px; }
    .referral-share-card__mark { width:52px; height:52px; }
    .referral-link { grid-column:1; }
    .referral-link input { font-size:.62rem; }
    .referral-link button { min-width:88px; }
    .referral-share-button,.referral-copy-status { grid-column:1; }
    .referral-history h2 { font-size:1.55rem; }
    .referral-history li { grid-template-columns:40px minmax(0,1fr) auto; gap:12px; }
    .referral-avatar { width:38px; height:38px; }
}

/* Bintang Kumaw — a level journey, intentionally distinct from wallet UI. */
.bintang-page {
    --night: #17142d;
    --night-soft: #282248;
    --starlight: #f0c66d;
    --violet: #7868d7;
    --kumaw-berry: #ad3452;
    --kumaw-berry-deep: #762238;
    --kumaw-blush: #ffd9e2;
    --kumaw-blush-soft: #f4c4d0;
    padding-bottom: 130px;
}

.bintang-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: flex-start;
    gap: 18px;
    margin: 12px 0 30px;
}

.bintang-heading__back,
.bintang-leaderboard-trigger {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
}

.bintang-heading__back:hover { background:#f7f7f6; }
.bintang-heading__back:focus-visible,
.bintang-leaderboard-trigger:focus-visible { outline: 3px solid rgba(120,104,215,.3); outline-offset: 3px; }
.bintang-heading__copy { min-width:0; }
.bintang-heading svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.bintang-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(2rem,5vw,3.4rem); letter-spacing: -.045em; line-height: 1; }
.bintang-heading p { max-width: 620px; margin: 8px 0 0; color: var(--ink-soft); font-size: .78rem; }

.bintang-leaderboard-trigger {
    padding: 0;
    border-color: rgba(120,104,215,.34);
    background: #f5f2ff;
    color: #6653ba;
    cursor: pointer;
}
.bintang-leaderboard-trigger:hover { border-color:#7868d7; background:#eee9ff; }
.bintang-leaderboard-trigger svg { width:23px; fill:currentColor; stroke:none; }

.bintang-leaderboard-dialog {
    --night: #17142d;
    --violet: #7868d7;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(23,20,45,.28);
}
.bintang-leaderboard-dialog::backdrop { background:rgba(23,20,45,.62); backdrop-filter:blur(5px); }
.bintang-leaderboard-dialog__card { display:grid; max-height:calc(100svh - 32px); grid-template-rows:auto minmax(0,1fr) auto; }
.bintang-leaderboard-dialog__header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:28px 28px 24px; background:var(--night); color:#fff; }
.bintang-leaderboard-dialog__header > div { min-width:0; }
.bintang-leaderboard-dialog__header span { color:#bbb6d4; font-size:.66rem; font-weight:700; }
.bintang-leaderboard-dialog__header h2 { margin:4px 0 6px; font-family:var(--display); font-size:2rem; font-weight:500; letter-spacing:-.04em; line-height:1; }
.bintang-leaderboard-dialog__header p { margin:0; color:#d1cde0; font-size:.69rem; line-height:1.5; }
.bintang-leaderboard-dialog__header button { display:grid; width:40px; height:40px; flex:0 0 auto; place-items:center; padding:0; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(255,255,255,.08); color:#fff; cursor:pointer; }
.bintang-leaderboard-dialog__header button:hover { background:rgba(255,255,255,.15); }
.bintang-leaderboard-dialog__header button:focus-visible { outline:3px solid rgba(240,198,109,.45); outline-offset:3px; }
.bintang-leaderboard-dialog__header svg { width:20px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:1.8; }
.bintang-leaderboard-list { margin:0; padding:10px 24px 14px; overflow:auto; list-style:none; overscroll-behavior:contain; }
.bintang-leaderboard-list li { display:grid; min-height:58px; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:13px; border-bottom:1px solid #eceeed; }
.bintang-leaderboard-list li:last-child { border-bottom:0; }
.bintang-leaderboard-list li.is-current { margin:0 -10px; padding:0 10px; border-bottom-color:transparent; border-radius:14px; background:#f5f2ff; }
.bintang-leaderboard-rank { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; background:#f0f1f0; color:#666d69; font-size:.67rem; font-weight:800; }
.bintang-leaderboard-list li:nth-child(1) .bintang-leaderboard-rank { background:#f6e5b8; color:#835b14; }
.bintang-leaderboard-list li:nth-child(2) .bintang-leaderboard-rank { background:#e7e9ed; color:#5c6470; }
.bintang-leaderboard-list li:nth-child(3) .bintang-leaderboard-rank { background:#f0d8ca; color:#81523a; }
.bintang-leaderboard-customer { display:flex; min-width:0; align-items:center; gap:8px; }
.bintang-leaderboard-customer strong { overflow:hidden; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.bintang-leaderboard-customer small { flex:0 0 auto; padding:3px 7px; border-radius:999px; background:#e5defc; color:#604caf; font-size:.52rem; font-weight:800; }
.bintang-leaderboard-exp { color:#29243f; font-size:.76rem; white-space:nowrap; }
.bintang-leaderboard-exp small { color:#817b91; font-size:.52rem; }
.bintang-leaderboard-dialog__card > footer { padding:13px 28px 16px; border-top:1px solid #eceeed; color:#777d79; font-size:.58rem; text-align:center; }
.bintang-leaderboard-empty { display:grid; min-height:260px; place-content:center; justify-items:center; padding:36px; text-align:center; }
.bintang-leaderboard-empty > span { color:var(--violet); font-size:1.8rem; }
.bintang-leaderboard-empty h3 { margin:12px 0 6px; font-family:var(--display); font-size:1.35rem; }
.bintang-leaderboard-empty p { max-width:300px; margin:0; color:var(--ink-soft); font-size:.68rem; line-height:1.6; }
.bintang-leaderboard-is-open { overflow:hidden; }

.bintang-constellation {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 22px;
    overflow: hidden;
    padding: clamp(24px,5vw,48px);
    border-radius: 32px 10px 32px 10px;
    background: var(--kumaw-berry-deep);
    color: #fff;
    box-shadow: 0 28px 70px rgba(109,29,50,.2);
}

.bintang-level-carousel { min-width:0; }
.bintang-constellation-track {
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding:0 0 18px;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
}
.bintang-constellation-track::-webkit-scrollbar { display:none; }
.bintang-constellation-track:focus-visible { outline:3px solid rgba(173,52,82,.28); outline-offset:5px; border-radius:32px 10px 32px 10px; }
.bintang-constellation-track .bintang-constellation { flex:0 0 100%; box-sizing:border-box; scroll-snap-align:start; scroll-snap-stop:always; }

.bintang-constellation:after { content:""; position:absolute; inset:auto -80px -130px auto; width:290px; height:290px; border:1px solid rgba(255,217,226,.2); border-radius:50%; box-shadow:0 0 0 42px rgba(255,217,226,.055),0 0 0 92px rgba(255,217,226,.03); }
.bintang-stars { position:absolute; inset:0; pointer-events:none; }
.bintang-stars i { position:absolute; width:3px; height:3px; border-radius:50%; background:var(--kumaw-blush); opacity:.75; }
.bintang-stars i:nth-child(1){top:17%;left:47%}.bintang-stars i:nth-child(2){top:25%;right:18%;width:5px;height:5px}.bintang-stars i:nth-child(3){bottom:24%;right:31%}.bintang-stars i:nth-child(4){top:12%;right:38%;opacity:.35}
.bintang-level-mark { display:grid; width:68px; height:68px; place-items:center; border:1px solid rgba(255,217,226,.48); border-radius:50%; background:rgba(255,255,255,.07); color:var(--kumaw-blush); }
.bintang-level-mark svg { width:34px; fill:none; stroke:currentColor; stroke-linejoin:round; stroke-width:1.2; }
.bintang-level-copy { position:relative; z-index:1; }
.bintang-level-copy > span { color:var(--kumaw-blush-soft); font-size:.7rem; font-weight:700; }
.bintang-level-copy h2 { margin:4px 0; font-family:var(--display); font-size:clamp(2rem,4vw,3rem); font-weight:500; letter-spacing:-.04em; }
.bintang-level-copy p { max-width:520px; margin:0; color:#f6dce2; font-size:.73rem; }
.bintang-total { position:relative; z-index:1; display:flex; align-items:flex-end; flex-direction:column; }
.bintang-total strong { color:var(--kumaw-blush); font-family:var(--display); font-size:clamp(2.5rem,5vw,4.2rem); font-weight:500; letter-spacing:-.05em; line-height:.9; }
.bintang-total span { margin-top:8px; color:#f2d4db; font-size:.68rem; }
.bintang-progress-block { position:relative; z-index:1; grid-column:1/-1; margin-top:8px; }
.bintang-progress-copy { display:flex; justify-content:space-between; margin-bottom:8px; color:#f7e1e6; font-size:.64rem; }
.bintang-progress { height:10px; overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:10px; background:rgba(255,255,255,.09); }
.bintang-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--kumaw-berry),var(--kumaw-blush)); }
.bintang-progress-block > p { margin:11px 0 0; color:#f7e1e6; font-size:.7rem; }
.bintang-progress-block > p strong { color:#fff; }
.bintang-progress-block .bintang-max { color:var(--kumaw-blush); }

.bintang-level-benefits {
    position:relative;
    z-index:1;
    grid-column:1/-1;
    margin-top:8px;
    padding:18px 20px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px 6px 18px 6px;
    background:rgba(255,255,255,.07);
}
.bintang-level-benefits > header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:11px; }
.bintang-level-benefits > header span { color:#fff; font-size:.75rem; font-weight:800; }
.bintang-level-benefits > header strong { color:var(--kumaw-blush); font-size:.6rem; }
.bintang-level-benefit { display:flex; align-items:flex-start; gap:11px; padding-top:11px; border-top:1px solid rgba(255,255,255,.1); }
.bintang-level-benefit > span { color:var(--kumaw-blush); }
.bintang-level-benefit h3 { margin:0; color:#fff; font-size:.73rem; }
.bintang-level-benefit p { max-width:680px; margin:4px 0 0; color:#f6dce2; font-size:.64rem; line-height:1.55; }
.bintang-level-benefits__empty { margin:0; color:#f6dce2; font-size:.67rem; }

.bintang-level-controls { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:16px; margin-top:0; }
.bintang-level-controls > button {
    display:grid;
    width:44px;
    height:44px;
    place-items:center;
    padding:0;
    border:1px solid rgba(173,52,82,.28);
    border-radius:50%;
    background:#fff1f4;
    color:var(--kumaw-berry);
    cursor:pointer;
}
.bintang-level-controls > button:hover { border-color:var(--kumaw-berry); background:#f9e8ed; }
.bintang-level-controls > button:disabled { opacity:.3; cursor:default; }
.bintang-level-controls > button:focus-visible,
.bintang-level-dots button:focus-visible { outline:3px solid rgba(173,52,82,.28); outline-offset:3px; }
.bintang-level-controls svg { width:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.bintang-level-position { display:grid; justify-items:center; gap:5px; color:var(--ink-soft); }
.bintang-level-position > span { font-size:.63rem; font-weight:800; }
.bintang-level-position > small { font-size:.59rem; }
.bintang-level-dots { display:flex; align-items:center; gap:7px; }
.bintang-level-dots button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#ead9dd; cursor:pointer; transition:width .18s ease,background .18s ease; }
.bintang-level-dots button.is-active { width:24px; border-radius:999px; background:var(--kumaw-berry); }

.bintang-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; }
.bintang-grid--single { grid-template-columns:1fr; }
.bintang-section { padding:26px; border:1px solid var(--line); border-radius:var(--radius-md); background:#fff; }
.bintang-section > header { position:relative; margin-bottom:18px; }
.bintang-section > header h2 { margin:0; font-family:var(--display); font-size:1.55rem; letter-spacing:-.035em; }
.bintang-section > header p { margin:5px 0 0; color:var(--ink-soft); font-size:.68rem; }
.bintang-section > header > span { position:absolute; top:7px; right:0; color:var(--ink-soft); font-size:.65rem; }
.bintang-benefit,.bintang-earn { display:flex; gap:13px; padding:15px 0; border-top:1px solid #eceeed; }
.bintang-benefit > span { color:#b17d22; }
.bintang-benefit h3,.bintang-earn h3 { margin:0; font-size:.8rem; }
.bintang-benefit p,.bintang-earn p { margin:5px 0 0; color:var(--ink-soft); font-size:.66rem; line-height:1.55; }
.bintang-earn { align-items:flex-start; justify-content:space-between; }
.bintang-earn > div { min-width:0; }
.bintang-earn > strong { flex:0 0 auto; color:#6653ba; font-size:.75rem; }
.bintang-empty { display:flex; align-items:flex-start; gap:12px; padding:18px; border-radius:15px; background:#f5f3fb; color:#555064; }
.bintang-empty > span { color:#8a75d2; }
.bintang-empty p { margin:0; font-size:.68rem; line-height:1.65; }
.bintang-history { margin-top:20px; }
.bintang-activity { margin:0; padding:0; list-style:none; }
.bintang-activity li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; align-items:center; padding:17px 0; border-top:1px solid #eceeed; }
.bintang-activity__mark { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; background:#f6eedb; color:#9d6d1e; }
.bintang-activity__mark.is-correction { background:#f9e9ec; color:#9b3e4d; }
.bintang-activity h3 { margin:0; font-size:.78rem; }
.bintang-activity time,.bintang-activity small { display:block; margin-top:3px; color:var(--ink-soft); font-size:.62rem; }
.bintang-activity > li > strong { color:#287552; font-size:.76rem; }
.bintang-activity > li > strong.is-correction { color:#a13649; }
.bintang-empty--history { display:grid; justify-items:center; text-align:center; }
.bintang-empty--history h3 { margin:0; font-size:.85rem; }
.bintang-footnote { max-width:620px; margin:18px auto 0; color:var(--ink-soft); font-size:.64rem; text-align:center; }
.bintang-unavailable > span { color:#8a75d2; }

@media (max-width: 760px) {
    .bintang-grid { grid-template-columns:1fr; }
    .bintang-constellation { grid-template-columns:auto 1fr; border-radius:24px 8px 24px 8px; }
    .bintang-total { grid-column:1/-1; align-items:flex-start; }
}

@media (max-width: 520px) {
    .bintang-heading { grid-template-columns:44px minmax(0,1fr) 44px; gap:10px; margin-top:0; }
    .bintang-heading h1 { font-size:clamp(1.8rem,8vw,2.25rem); }
    .bintang-heading p { line-height:1.55; }
    .bintang-constellation { gap:16px; padding:22px 20px; }
    .bintang-constellation-track { gap:10px; padding-bottom:14px; }
    .bintang-level-mark { width:52px; height:52px; }
    .bintang-level-mark svg { width:27px; }
    .bintang-level-benefits { padding:16px; }
    .bintang-level-controls { grid-template-columns:40px minmax(0,1fr) 40px; gap:10px; }
    .bintang-level-controls > button { width:40px; height:40px; }
    .bintang-level-position > small { max-width:180px; text-align:center; }
    .bintang-section { padding:20px; }
    .bintang-activity li { grid-template-columns:auto minmax(0,1fr); }
    .bintang-activity > li > strong { grid-column:2; }
    .bintang-leaderboard-dialog { width:calc(100% - 20px); max-height:calc(100svh - 20px); border-radius:24px; }
    .bintang-leaderboard-dialog__card { max-height:calc(100svh - 20px); }
    .bintang-leaderboard-dialog__header { padding:24px 20px 21px; }
    .bintang-leaderboard-list { padding-right:16px; padding-left:16px; }
    .bintang-leaderboard-list li { gap:10px; }
    .bintang-leaderboard-dialog__card > footer { padding-right:20px; padding-left:20px; }
}

@media (prefers-reduced-motion: reduce) {
    .bintang-progress i { transition:none; }
    .bintang-constellation-track { scroll-behavior:auto; }
    .bintang-level-dots button { transition:none; }
}

/* Mandatory first-login profile completion. */
.birth-date-setup-open {
    overflow: hidden;
}

.birth-date-dialog {
    width: min(100% - 32px, 520px);
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(16, 19, 18, .24);
}

.birth-date-dialog::backdrop {
    background: rgba(16, 19, 18, .62);
    backdrop-filter: blur(8px);
}

.birth-date-dialog__card {
    display: grid;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: inherit;
    background: #fff;
}

.birth-date-dialog__mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.birth-date-dialog__mark svg {
    width: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.birth-date-dialog .eyebrow {
    margin-bottom: 10px;
}

.birth-date-dialog h2 {
    margin: 0 0 14px;
    font-size: clamp(2.35rem, 7vw, 3.45rem);
    letter-spacing: -.05em;
    line-height: .98;
}

.birth-date-dialog h2 + p {
    margin: 0 0 26px;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.7;
}

.birth-date-dialog .notice {
    margin: -4px 0 20px;
}

.birth-date-dialog__field {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.birth-date-dialog__field span {
    font-size: .72rem;
    font-weight: 700;
}

.birth-date-dialog__field input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid #cbd1ce;
    border-radius: 11px;
    background: #fbfcfb;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.birth-date-dialog__field input:focus {
    border-color: var(--mint-dark);
    box-shadow: 0 0 0 4px rgba(99, 196, 161, .16);
}

.birth-date-dialog .primary-button {
    width: 100%;
    min-height: 56px;
    border-radius: 11px;
}

.birth-date-dialog form > small {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: .61rem;
    line-height: 1.55;
    text-align: center;
}

.birth-date-dialog__logout {
    width: fit-content;
    margin: 17px auto 0;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-size: .64rem;
    font-weight: 700;
}

.birth-date-dialog__logout:hover,
.birth-date-dialog__logout:focus-visible {
    color: var(--ink);
}

@media (max-width: 560px) {
    .birth-date-dialog {
        width: min(100% - 20px, 520px);
        max-height: calc(100svh - 20px);
        border-radius: 23px;
    }

    .birth-date-dialog__card {
        padding: 30px 24px 26px;
    }

    .birth-date-dialog__mark {
        width: 52px;
        height: 52px;
        margin-bottom: 21px;
    }
}

/* Customer points: a compact wallet balance followed by an auditable ledger. */
body.is-authenticated .page-shell.points-page {
    width: min(860px, calc(100% - 48px));
}

.points-page__heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
}

.points-page__heading > a {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.points-page__heading > a:hover {
    border-color: var(--ink);
}

.points-page__heading svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.points-page__heading h1 {
    margin: 0 0 4px;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: -.055em;
    line-height: 1;
}

.points-page__heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .78rem;
}

.points-balance-card {
    display: flex;
    min-height: 230px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 38px 42px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: white;
}

.points-balance-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .62);
    font-size: .73rem;
    font-weight: 600;
}

.points-balance-card strong {
    font-family: var(--display);
    font-size: clamp(4.5rem, 12vw, 7rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .72;
}

.points-balance-card span {
    margin-left: 8px;
    color: var(--mint);
    font-size: .78rem;
    font-weight: 700;
}

.points-balance-card > svg {
    width: 112px;
    flex: 0 0 auto;
    fill: none;
    opacity: .75;
    stroke: var(--mint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: .8;
}

.points-history {
    margin-top: 54px;
}

.points-history > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.points-history h2 {
    margin-bottom: 6px;
    font-size: 2.25rem;
}

.points-history header p,
.points-history header > span {
    margin: 0;
    color: var(--ink-soft);
    font-size: .7rem;
}

.points-activity-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.points-activity-list li {
    display: grid;
    min-height: 104px;
    align-items: center;
    padding: 20px 0;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.points-activity-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
    font-size: 1rem;
    font-weight: 700;
}

.points-activity-icon--down {
    background: var(--danger-soft);
    color: var(--danger);
}

.points-activity-list h3 {
    margin: 0 0 5px;
    font-size: .82rem;
}

.points-activity-list time,
.points-activity-list small {
    display: block;
    color: var(--ink-soft);
    font-size: .64rem;
    line-height: 1.55;
}

.points-activity-change {
    color: var(--mint-dark);
    font-size: 1rem;
}

.points-activity-change--down {
    color: var(--danger);
}

.points-empty-state {
    padding: 58px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}

.points-empty-state > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.points-empty-state h3 {
    margin-bottom: 7px;
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 500;
}

.points-empty-state p,
.points-help {
    margin: 0;
    color: var(--ink-soft);
    font-size: .7rem;
    line-height: 1.6;
}

.points-help {
    margin-top: 30px;
    text-align: center;
}

.points-service-state {
    margin-top: 30px;
}

@media (max-width: 600px) {
    body.is-authenticated .page-shell.points-page {
        width: min(100% - 30px, 860px);
        padding-top: 38px;
    }

    .points-page__heading {
        margin-bottom: 28px;
    }

    .points-page__heading h1 {
        font-size: 3rem;
    }

    .points-balance-card {
        min-height: 190px;
        padding: 30px 26px;
        border-radius: 24px;
    }

    .points-balance-card > svg {
        width: 76px;
    }

    .points-history {
        margin-top: 42px;
    }

    .points-activity-list li {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 13px;
    }

    .points-activity-icon {
        width: 36px;
        height: 36px;
    }
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body.is-authenticated {
    padding-bottom: 84px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 500;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 12px 16px;
    background: var(--ink);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(38, 119, 91, .42);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(28px, calc((100vw - 1120px) / 2));
    border-bottom: 1px solid rgba(223, 228, 225, .8);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.brand,
.guest-brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
}

.brand {
    min-height: 44px;
    align-items: center;
}

.brand img {
    width: 112px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.brand span,
.guest-brand span {
    margin-bottom: 2px;
    color: var(--mint-dark);
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.desktop-nav a {
    position: relative;
    padding: 14px 0;
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 600;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--mint-dark);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.desktop-nav a.is-active {
    color: var(--ink);
}

.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.quiet-button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
}

.quiet-button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.fixture-banner {
    padding: 8px 20px;
    background: #f1fbf6;
    color: #2e684f;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
}

.page-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 54px;
}

.page-heading h1 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: -.055em;
    line-height: .98;
}

.page-heading--home h1 {
    font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.eyebrow,
.section-label {
    margin-bottom: 12px;
    color: var(--mint-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.heading-copy {
    max-width: 580px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.member-since {
    display: flex;
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.member-since span {
    color: var(--ink-soft);
    font-size: .65rem;
}

.member-since strong {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 500;
}

.home-page {
    position: relative;
}

.home-wallet-card {
    display: grid;
    width: min(650px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
    padding: 20px 22px;
    border: 1px solid #e1e3e2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(27, 34, 30, .06);
}

.home-wallet-item {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

a.home-wallet-item {
    border-radius: 14px;
    transition: background-color 160ms ease;
}

a.home-wallet-item:hover {
    background: #fff7f9;
}

a.home-wallet-item:focus-visible {
    outline: 2px solid #c93f61;
    outline-offset: 5px;
}

.home-wallet-item + .home-wallet-item {
    padding-left: 22px;
}

.home-wallet-item + .home-wallet-item::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 1px;
    background: #e3e5e4;
    content: "";
}

.home-wallet-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
}

.home-wallet-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.home-wallet-icon--voucher {
    background: #fdebf0;
    color: #c93f61;
}

.home-wallet-icon--points {
    background: #eaf8ef;
    color: #24875a;
}

.home-wallet-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.home-wallet-copy strong {
    overflow: hidden;
    color: #171b19;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-wallet-copy b {
    font: inherit;
}

.home-wallet-copy small {
    color: #397058;
    font-size: .68rem;
    font-weight: 700;
}

.membership-thread {
    position: absolute;
    z-index: -1;
    top: 205px;
    right: 14%;
    width: 56%;
    height: 330px;
    border-top: 1px solid rgba(99, 196, 161, .58);
    border-radius: 50% 50% 0 0;
    transform: rotate(-8deg);
}

.membership-thread::before,
.membership-thread::after {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    content: "";
}

.membership-thread::before {
    top: -4px;
    left: 4%;
}

.membership-thread::after {
    top: 80px;
    right: 4%;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(310px, .9fr);
    gap: 64px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading .section-label {
    margin-bottom: 5px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.section-heading > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-top: 8px;
    border-bottom: 1px solid var(--ink);
    font-size: .78rem;
    font-weight: 600;
}

.appointment-card {
    position: relative;
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.appointment-card::after {
    position: absolute;
    top: 32px;
    right: -34px;
    width: 150px;
    height: 70px;
    border-top: 1px solid rgba(99, 196, 161, .65);
    border-radius: 50%;
    content: "";
    transform: rotate(-18deg);
}

.appointment-date {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: white;
}

.appointment-date span {
    color: var(--mint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.appointment-date strong {
    font-family: var(--display);
    font-size: 3.8rem;
    font-weight: 500;
    line-height: 1;
}

.appointment-main {
    position: relative;
    z-index: 1;
    padding: 34px 36px;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper-soft);
    color: var(--ink-soft);
    font-size: .66rem;
    font-weight: 700;
}

.status-pill.is-positive {
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.status-pill.is-pending {
    background: #fff6dc;
    color: #795f14;
}

.status-pill.is-muted {
    background: #ededed;
    color: #676767;
}

.appointment-main h3 {
    max-width: 380px;
    margin: 18px 0 28px;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.appointment-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.appointment-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.appointment-meta dt {
    color: var(--ink-soft);
    font-size: .66rem;
}

.appointment-meta dd {
    font-size: .84rem;
    font-weight: 700;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
    background: var(--ink);
    color: white;
}

.primary-button:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-1px);
}

.secondary-button {
    background: white;
    color: var(--ink);
}

.secondary-button:hover {
    background: var(--paper-soft);
}

.text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--mint-dark);
    font-size: .76rem;
    font-weight: 700;
}

.more-bookings {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 14px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
}

.more-bookings > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
    font-weight: 700;
}

.more-bookings p {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
}

.more-bookings small {
    margin-top: 4px;
    color: var(--ink-soft);
}

.loyalty-card {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper-mint);
}

.progress-ring {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--mint-dark) var(--progress), rgba(255, 255, 255, .72) 0);
}

.progress-ring::before {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--paper-mint);
    content: "";
}

.progress-ring {
    position: relative;
}

.progress-ring > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-ring strong {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}

.progress-ring span {
    color: var(--ink-soft);
    font-size: .62rem;
}

.progress-copy {
    margin-bottom: 8px;
    font-family: var(--display);
    font-size: 1.6rem;
    line-height: 1.15;
}

.loyalty-card > div:last-child > span {
    display: block;
    color: var(--ink-soft);
    font-size: .72rem;
    line-height: 1.55;
}

.reward-teaser {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.reward-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--mint);
    font-size: 1.25rem;
}

.reward-teaser p,
.reward-teaser h3 {
    margin-bottom: 3px;
}

.reward-teaser p {
    color: var(--mint-dark);
    font-size: .66rem;
    font-weight: 700;
}

.reward-teaser h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 500;
}

.reward-teaser a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    text-decoration: underline;
}

.empty-state,
.compact-state,
.service-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
}

.empty-state--wide,
.service-state {
    align-items: center;
    padding: 80px 30px;
    text-align: center;
}

.empty-state h2,
.empty-state h3,
.service-state h1,
.service-state h2,
.compact-state h3 {
    margin-bottom: 10px;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
}

.empty-state p,
.service-state p,
.compact-state p {
    max-width: 470px;
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-size: .84rem;
    line-height: 1.65;
}

.service-state > span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
    font-family: var(--display);
    font-size: 1.5rem;
}

.tab-list {
    display: flex;
    gap: 34px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.tab-list a {
    position: relative;
    min-height: 48px;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 700;
}

.tab-list a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--ink);
    content: "";
    transform: scaleX(0);
}

.tab-list a.is-active {
    color: var(--ink);
}

.tab-list a.is-active::after {
    transform: scaleX(1);
}

.booking-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.booking-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 28px;
    min-height: 158px;
    padding: 26px 30px;
    background: white;
}

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

.booking-row__date {
    display: flex;
    width: 76px;
    height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.booking-row__date strong {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1;
}

.booking-row__date span {
    color: var(--mint-dark);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.booking-row__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-row__top small {
    color: var(--ink-soft);
    font-size: .64rem;
}

.booking-row h2 {
    margin: 10px 0 7px;
    font-size: 1.75rem;
    letter-spacing: -.035em;
}

.booking-row p {
    margin-bottom: 3px;
    color: var(--ink-soft);
    font-size: .75rem;
}

.row-link {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background 160ms ease, color 160ms ease;
}

.row-link:hover {
    background: var(--ink);
    color: white;
}

.mobile-action {
    display: none;
}

.back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: .76rem;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    display: flex;
    min-height: 310px;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    padding: 44px 48px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: white;
}

.detail-hero::before {
    position: absolute;
    top: -20px;
    right: 80px;
    width: 380px;
    height: 170px;
    border-top: 1px solid rgba(99, 196, 161, .66);
    border-radius: 50%;
    content: "";
    transform: rotate(-12deg);
}

.detail-hero > div {
    position: relative;
    z-index: 1;
}

.detail-hero h1 {
    max-width: 650px;
    margin: 16px 0 10px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    letter-spacing: -.055em;
    line-height: 1;
}

.detail-hero .eyebrow {
    color: var(--mint);
}

.detail-hero .status-pill {
    background: rgba(99, 196, 161, .15);
    color: var(--mint);
}

.detail-date {
    display: flex;
    width: 126px;
    height: 126px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.detail-date span {
    color: var(--mint);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.detail-date strong {
    font-family: var(--display);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.detail-card {
    padding: 34px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.detail-card h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.detail-card > p:not(.section-label) {
    color: var(--ink-soft);
    font-size: .8rem;
    line-height: 1.6;
}

.detail-list {
    margin-bottom: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 12px 0;
}

.detail-list div + div {
    border-top: 1px solid var(--line);
}

.detail-list dt {
    color: var(--ink-soft);
    font-size: .72rem;
}

.detail-list dd {
    font-size: .76rem;
    font-weight: 700;
}

.booking-detail-summary {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.booking-detail-summary > h2 {
    margin-bottom: 20px;
    font-family: var(--display);
    font-size: 1.8rem;
}

.booking-detail-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking-detail-summary__card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.booking-detail-summary__card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.booking-detail-summary__card .detail-list div {
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr);
    gap: 12px;
}

.booking-detail-summary__card .detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .booking-detail-summary__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-detail-summary__card {
        padding: 20px;
    }

    .booking-detail-summary__card .detail-list div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

.preparation-card {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    margin-top: 18px;
    padding: 42px;
    border-radius: var(--radius-md);
    background: var(--paper-mint);
}

.preparation-card h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
}

.preparation-card ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: preparation;
}

.preparation-card li {
    position: relative;
    min-height: 44px;
    padding: 5px 0 14px 46px;
    color: var(--ink-soft);
    counter-increment: preparation;
    font-size: .8rem;
    line-height: 1.55;
}

.preparation-card li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--mint-dark);
    border-radius: 50%;
    color: var(--mint-dark);
    content: counter(preparation);
    font-size: .7rem;
    font-weight: 700;
}

.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 26px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.detail-footer > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-footer span {
    color: var(--ink-soft);
    font-size: .76rem;
}

.rewards-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

.rewards-progress {
    display: flex;
    min-height: 410px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    border-radius: var(--radius-lg);
    background: var(--paper-mint);
    text-align: center;
}

.progress-ring--large {
    width: 190px;
    height: 190px;
    margin-bottom: 30px;
}

.progress-ring--large::before {
    width: 152px;
    height: 152px;
}

.progress-ring--large strong {
    font-size: 4rem;
}

.rewards-progress h2 {
    margin-bottom: 12px;
    font-size: 2.4rem;
}

.rewards-progress p:last-child {
    max-width: 390px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: .8rem;
    line-height: 1.65;
}

.reward-card {
    display: flex;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.reward-card h3 {
    margin: 12px 0 6px;
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 500;
}

.reward-card p,
.reward-card small {
    color: var(--ink-soft);
    font-size: .73rem;
    line-height: 1.55;
}

.reward-card .claim-note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--mint-dark);
    font-size: .68rem;
}

.rewards-lower-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    margin-top: 64px;
}

.activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 78px;
}

.activity-list li:not(:last-child)::before {
    position: absolute;
    top: 18px;
    bottom: -3px;
    left: 5px;
    width: 1px;
    background: var(--line);
    content: "";
}

.activity-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 4px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--mint-dark);
    box-shadow: 0 0 0 1px var(--mint-dark);
}

.activity-list div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-list span,
.activity-list b {
    color: var(--ink-soft);
    font-size: .7rem;
}

.activity-list b {
    color: var(--mint-dark);
}

.redeemed-list {
    display: grid;
    gap: 10px;
}

.redeemed-list article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.redeemed-list h3 {
    margin-bottom: 5px;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 500;
}

.redeemed-list p,
.redeemed-list span {
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: .68rem;
}

.terms {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.terms summary {
    min-height: 60px;
    padding: 20px 0;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
}

.terms ul {
    margin: 0 0 28px;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: .73rem;
    line-height: 1.7;
}

.guest-shell {
    display: grid;
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 54px 0;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px 80px;
    align-items: center;
}

.guest-brand {
    align-self: start;
}

.guest-brand img {
    width: 132px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.guest-intro {
    align-self: center;
}

.guest-intro h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(4.2rem, 8vw, 7.5rem);
    letter-spacing: -.065em;
    line-height: .88;
}

.guest-intro > p:last-child {
    max-width: 500px;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.75;
}

.auth-card {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    max-width: 480px;
    justify-self: end;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
}

.auth-card::before {
    position: absolute;
    z-index: -1;
    top: -20px;
    right: -20px;
    width: 88%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--paper-mint);
    content: "";
}

.auth-card h1,
.auth-card h2 {
    margin-bottom: 22px;
    font-size: 2.7rem;
    letter-spacing: -.05em;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form label > span {
    font-size: .74rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 56px;
    padding: 0 17px;
    border: 1px solid #ccd3cf;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--ink);
    outline: none;
}

.auth-form input:focus {
    border-color: var(--mint-dark);
    box-shadow: 0 0 0 4px rgba(99, 196, 161, .16);
}

.auth-form input[name="pin"],
.auth-form input[name="pin_confirmation"] {
    font-size: 1.3rem;
    letter-spacing: .42em;
}

.auth-form small {
    color: var(--ink-soft);
    font-size: .65rem;
    line-height: 1.5;
}

.auth-form .primary-button {
    width: 100%;
    margin-top: 4px;
}

.notice {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #ddcda0;
    border-radius: 12px;
    background: #fff9e9;
    color: #725d24;
    font-size: .7rem;
    line-height: 1.55;
}

.notice.is-error {
    border-color: #e8b8b8;
    background: var(--danger-soft);
    color: var(--danger);
}

.notice.is-success {
    border-color: #b9decf;
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.recovery-note {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.recovery-note strong {
    font-size: .72rem;
}

.recovery-note p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: .66rem;
    line-height: 1.55;
}

.guest-footnote {
    align-self: end;
    margin: 0;
    color: var(--ink-soft);
    font-size: .62rem;
}

.guest-shell.guest-shell--login {
    display: flex;
    width: min(100% - 36px, 480px);
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 7vh, 68px) 0;
}

.guest-shell--login .guest-brand {
    align-self: center;
    justify-content: center;
    margin: 0 0 34px;
}

.guest-shell--login .guest-brand img {
    width: 146px;
    object-position: center;
    filter: brightness(0);
}

.guest-shell--login .guest-brand span {
    color: var(--ink);
}

.guest-shell--login .auth-card {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    justify-self: auto;
    margin: 0;
}

.guest-shell--login .guest-footnote {
    align-self: center;
    margin-top: 32px;
    text-align: center;
}

/*
 * Login
 * The customer login follows Kumaw's image-led booking identity: a quiet
 * utility panel alongside the same natural-lash photography.
 */
.login-experience {
    display: grid;
    min-height: calc(100svh - 28px);
    grid-template-columns: minmax(460px, 46%) minmax(0, 54%);
    overflow: hidden;
    background: var(--paper);
}

.login-panel {
    position: relative;
    z-index: 3;
    display: grid;
    min-width: 0;
    padding: clamp(34px, 5vw, 76px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.login-brand {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    gap: 13px;
}

.login-brand img {
    width: 128px;
    height: 45px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0);
}

.login-brand > span {
    width: 1px;
    height: 25px;
    background: #cbd1ce;
}

.login-brand b {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.login-content {
    width: min(100%, 430px);
    align-self: center;
    padding: clamp(42px, 8vh, 92px) 0 36px;
}

.login-heading {
    margin-bottom: 34px;
}

.login-heading h1 {
    margin-bottom: 18px;
    font-family: var(--display);
    font-size: clamp(3.8rem, 5.6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .78;
}

.login-heading > p:last-child {
    max-width: 370px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: .84rem;
    line-height: 1.7;
}

.login-form {
    gap: 18px;
}

.login-form label {
    gap: 9px;
}

.login-form label > span {
    font-size: .72rem;
}

.login-form input {
    min-height: 58px;
    padding: 0 18px;
    border-color: #cbd1ce;
    border-radius: 10px;
    background: #fbfcfb;
}

.login-form input:hover {
    border-color: #aeb7b2;
}

.login-form small {
    font-size: .62rem;
}

.login-form .login-submit {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 21px;
    border-radius: 10px;
}

.login-submit span:last-child {
    font-size: 1.15rem;
    transition: transform 180ms ease;
}

.login-submit:hover span:last-child {
    transform: translateX(4px);
}

.login-content .notice {
    margin: -10px 0 24px;
    border-radius: 8px;
}

.login-help {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 21px;
    color: var(--ink-soft);
    font-size: .65rem;
}

.login-help strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: inherit;
}

.login-help p {
    margin: 0;
    line-height: 1.5;
}

.login-footnote {
    align-self: end;
    margin: 0;
    color: #747b77;
    font-size: .61rem;
    line-height: 1.6;
}

.login-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--paper-soft);
}

.login-visual::before {
    position: absolute;
    z-index: 2;
    top: -9%;
    left: -150px;
    width: 255px;
    height: 118%;
    border-radius: 50%;
    background: var(--paper);
    content: "";
}

.login-visual::after {
    position: absolute;
    z-index: 1;
    inset: 48% 0 0;
    background: linear-gradient(180deg, transparent, rgba(10, 13, 12, .56));
    content: "";
}

.login-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
}

.login-visual figcaption {
    position: absolute;
    z-index: 2;
    right: clamp(28px, 5vw, 76px);
    bottom: clamp(34px, 6vw, 76px);
    color: white;
    text-align: right;
}

.login-visual figcaption span {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

@media (min-width: 861px) and (max-height: 800px) {
    .login-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .login-content {
        padding: 22px 0 18px;
    }

    .login-heading {
        margin-bottom: 22px;
    }

    .login-heading h1 {
        margin-bottom: 12px;
        font-size: clamp(3.5rem, 5vw, 4.5rem);
    }

    .login-form {
        gap: 12px;
    }

    .login-form input {
        min-height: 50px;
    }

    .login-form .login-submit {
        min-height: 52px;
        margin-top: 3px;
    }

    .login-help {
        margin-top: 14px;
    }
}

.guest-shell--activation {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guest-shell--activation .guest-brand {
    margin-bottom: 36px;
}

.guest-shell--activation .auth-card {
    max-width: 520px;
    align-self: center;
}

.activation-card {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    text-align: center;
}

.activation-mark {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--mint);
    font-family: var(--display);
    font-size: 2rem;
}

.activation-mark.is-muted {
    background: var(--paper-soft);
    color: var(--ink-soft);
}

.card-copy,
.security-caption {
    color: var(--ink-soft);
    font-size: .76rem;
    line-height: 1.65;
}

.activation-card .auth-form {
    margin-top: 26px;
    text-align: left;
}

.security-caption {
    margin: 22px 0 0;
    font-size: .65rem;
}

.message-page {
    display: grid;
    min-height: 80vh;
    place-items: center;
    padding: 40px 20px;
}

.message-page .service-state {
    width: min(600px, 100%);
}

.mobile-nav {
    position: fixed;
    z-index: 30;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    display: none;
    height: 70px;
    align-items: center;
    justify-content: space-around;
    padding: 5px 4px 7px;
    border: 1px solid rgba(223, 228, 225, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 40px rgba(16, 19, 18, .14);
    backdrop-filter: blur(16px);
}

.mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    color: #7a807d;
    font-size: .59rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.mobile-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.mobile-nav a.is-active {
    color: var(--mint-dark);
}

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

.page-shell > *,
.auth-card {
    animation: settleIn 380ms ease both;
}

@media (max-width: 860px) {
    body.is-authenticated {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }

    .site-header {
        position: static;
        min-height: 70px;
        padding: 14px 20px;
    }

    .site-header .desktop-nav,
    .site-header form {
        display: none;
    }

    .brand img {
        width: 104px;
    }

    .mobile-nav {
        display: flex;
    }

    .page-shell {
        width: min(100% - 32px, 680px);
        padding: 42px 0 42px;
    }

    .page-heading,
    .page-heading--home {
        align-items: flex-start;
        margin-bottom: 34px;
    }

    .page-heading h1,
    .page-heading--home h1 {
        font-size: clamp(2.75rem, 12vw, 4.4rem);
    }

    .heading-copy {
        font-size: .82rem;
    }

    .member-since {
        width: 82px;
        height: 82px;
    }

    .member-since span {
        font-size: .53rem;
    }

    .member-since strong {
        font-size: 1.35rem;
    }

    .membership-thread {
        top: 150px;
        right: 8%;
        width: 70%;
    }

    .home-grid,
    .rewards-overview,
    .rewards-lower-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .guest-shell {
        display: flex;
        width: min(100% - 36px, 520px);
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 34px 0 60px;
    }

    .guest-brand {
        margin-bottom: 50px;
    }

    .guest-intro h1 {
        font-size: clamp(4rem, 20vw, 6.2rem);
    }

    .auth-card {
        width: 100%;
        max-width: none;
        margin-top: 24px;
        padding: 32px 26px;
    }

    .guest-footnote {
        align-self: center;
        margin-top: 30px;
    }

    .guest-shell--activation .auth-card {
        margin-top: 0;
    }

    .login-experience {
        min-height: calc(100svh - 27px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(205px, 29svh) auto;
        overflow: visible;
    }

    .login-panel {
        grid-row: 2;
        padding: 28px max(24px, calc((100vw - 520px) / 2));
    }

    .login-brand {
        position: absolute;
        z-index: 4;
        top: -185px;
        left: max(24px, calc((100vw - 520px) / 2));
        padding: 7px 11px;
        border-radius: 8px;
        background: rgba(255, 255, 255, .93);
        box-shadow: 0 8px 28px rgba(16, 19, 18, .1);
    }

    .login-brand img {
        width: 102px;
        height: 36px;
    }

    .login-brand > span {
        height: 21px;
    }

    .login-brand b {
        font-size: 1.12rem;
    }

    .login-content {
        width: 100%;
        padding: 34px 0 30px;
    }

    .login-heading h1 {
        font-size: clamp(3.7rem, 15vw, 5.1rem);
        line-height: .8;
    }

    .login-footnote {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .login-visual {
        grid-row: 1;
        min-height: 205px;
    }

    .login-visual::before {
        top: auto;
        bottom: -90px;
        left: -8%;
        width: 116%;
        height: 130px;
        border-radius: 50%;
    }

    .login-visual::after {
        inset: 0;
        background: linear-gradient(90deg, rgba(10, 13, 12, .12), transparent 58%);
    }

    .login-visual > img {
        object-position: 54% 37%;
    }

    .login-visual figcaption {
        display: none;
    }
}

@media (max-width: 600px) {
    .fixture-banner {
        padding: 7px 14px;
        font-size: .59rem;
    }

    .page-heading {
        gap: 16px;
    }

    .page-heading .desktop-action {
        display: none;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .appointment-card {
        grid-template-columns: 76px minmax(0, 1fr);
        border-radius: 26px;
    }

    .appointment-date {
        min-height: 326px;
    }

    .appointment-date strong {
        font-size: 2.7rem;
    }

    .appointment-main {
        padding: 26px 22px;
    }

    .appointment-main h3 {
        margin: 16px 0 24px;
        font-size: 2rem;
    }

    .appointment-meta {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 22px;
    }

    .card-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .text-link {
        justify-content: center;
    }

    .loyalty-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 18px;
    }

    .progress-ring {
        width: 100px;
        height: 100px;
    }

    .progress-ring::before {
        width: 78px;
        height: 78px;
    }

    .booking-list {
        border: 0;
        border-radius: 0;
    }

    .booking-row {
        grid-template-columns: 60px minmax(0, 1fr) 40px;
        gap: 14px;
        min-height: 142px;
        padding: 22px 0;
    }

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

    .booking-row__date {
        width: 60px;
        height: 70px;
    }

    .booking-row__date strong {
        font-size: 1.8rem;
    }

    .booking-row h2 {
        font-size: 1.4rem;
    }

    .booking-row__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .row-link {
        width: 44px;
        height: 44px;
    }

    .mobile-action {
        display: flex;
        width: 100%;
        margin-top: 24px;
    }

    .detail-hero {
        min-height: 340px;
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 26px;
    }

    .detail-hero h1 {
        font-size: 3rem;
    }

    .detail-date {
        width: 90px;
        height: 90px;
        align-self: flex-end;
    }

    .detail-date strong {
        font-size: 2.4rem;
    }

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

    .detail-card {
        padding: 28px 24px;
    }

    .detail-list div {
        grid-template-columns: 112px 1fr;
    }

    .preparation-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 24px;
    }

    .detail-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .rewards-progress {
        min-height: 390px;
        padding: 32px 22px;
    }

    .reward-card {
        padding: 22px 18px;
    }

    .activity-list li {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .activity-list b {
        grid-column: 2;
        margin-top: -18px;
    }

    .guest-shell {
        width: calc(100% - 28px);
    }

    .guest-intro h1 {
        font-size: 4.2rem;
    }

    .auth-card::before {
        display: none;
    }

    .login-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .login-brand {
        left: 22px;
    }

    .login-content {
        padding-top: 18px;
    }

    .login-heading {
        margin-bottom: 28px;
    }

    .login-heading h1 {
        margin-bottom: 15px;
    }

    .login-help {
        display: block;
    }

    .login-help p {
        margin-top: 4px;
    }
}

/* Authenticated portal — quiet, editorial, and deliberately card-light. */
body.is-authenticated {
    padding-bottom: 0;
    background: #fff;
}

body.is-authenticated .site-header {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom-color: #e5e8e6;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
}

body.is-authenticated .brand img {
    width: 106px;
    filter: brightness(0);
}

body.is-authenticated .brand span {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
}

body.is-authenticated .desktop-nav {
    gap: 30px;
}

body.is-authenticated .desktop-nav a {
    color: #646a67;
    font-size: .75rem;
}

body.is-authenticated .desktop-nav a::after {
    bottom: 7px;
    height: 1px;
    background: var(--ink);
}

body.is-authenticated .quiet-button {
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .72rem;
    text-decoration: underline;
    text-decoration-color: #c4cac7;
    text-underline-offset: 5px;
}

body.is-authenticated .fixture-banner {
    padding: 6px 18px;
    background: #f3faf7;
    font-size: .62rem;
}

body.is-authenticated .page-shell {
    width: min(1080px, calc(100% - 56px));
    padding: 58px 0 96px;
}

body.is-authenticated .page-shell.home-page {
    padding-top: 10px;
}

body.is-authenticated .page-shell > * {
    animation: none;
}

body.is-authenticated .page-heading {
    align-items: flex-end;
    margin-bottom: 46px;
}

body.is-authenticated .page-heading h1,
body.is-authenticated .page-heading--home h1 {
    max-width: 720px;
    margin-bottom: 10px;
    font-family: var(--display);
    font-size: clamp(3.4rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .88;
}

body.is-authenticated .heading-copy {
    max-width: 520px;
    color: #626865;
    font-size: .82rem;
    line-height: 1.65;
}

.member-note {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 0 3px;
    color: #757b78;
    font-size: .61rem;
    line-height: 1.45;
}

.member-note strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 500;
}

body.is-authenticated .membership-thread,
body.is-authenticated .appointment-card::after,
body.is-authenticated .detail-hero::before {
    display: none;
}

body.is-authenticated .home-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .75fr);
    gap: clamp(46px, 7vw, 82px);
}

body.is-authenticated .section-heading {
    min-height: 32px;
    align-items: center;
    margin-bottom: 14px;
}

body.is-authenticated .section-heading h2 {
    margin: 0;
    font-family: var(--body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0;
}

body.is-authenticated .section-heading > a {
    min-height: 32px;
    padding: 0;
    border: 0;
    color: #646a67;
    font-size: .67rem;
    text-decoration: underline;
    text-decoration-color: #c5cbc8;
    text-underline-offset: 5px;
}

body.is-authenticated .appointment-card {
    grid-template-columns: 96px minmax(0, 1fr);
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

body.is-authenticated .appointment-date {
    min-height: 256px;
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

body.is-authenticated .appointment-date span {
    color: var(--mint-dark);
    font-size: .59rem;
}

body.is-authenticated .appointment-date strong {
    font-family: var(--display);
    font-size: 3.6rem;
}

body.is-authenticated .appointment-main {
    padding: 28px 0 28px 32px;
}

body.is-authenticated .status-pill {
    min-height: 0;
    gap: 7px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #626865;
    font-size: .6rem;
}

body.is-authenticated .status-pill::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8c938f;
    content: "";
}

body.is-authenticated .status-pill.is-positive {
    background: transparent;
    color: var(--mint-dark);
}

body.is-authenticated .status-pill.is-positive::before {
    background: var(--mint);
}

body.is-authenticated .status-pill.is-pending {
    background: transparent;
    color: #876d25;
}

body.is-authenticated .status-pill.is-pending::before {
    background: #c6a84c;
}

body.is-authenticated .status-pill.is-muted {
    background: transparent;
    color: #707572;
}

body.is-authenticated .appointment-main h3 {
    margin: 18px 0 24px;
    font-family: var(--display);
    font-size: clamp(2.1rem, 3.5vw, 2.8rem);
}

body.is-authenticated .appointment-meta {
    margin-bottom: 24px;
}

body.is-authenticated .appointment-meta dt {
    font-size: .58rem;
}

body.is-authenticated .appointment-meta dd {
    font-size: .76rem;
}

body.is-authenticated .primary-button,
body.is-authenticated .secondary-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: .7rem;
    transition: background 160ms ease, color 160ms ease;
}

body.is-authenticated .primary-button:hover {
    background: #252826;
    border-color: #252826;
    transform: none;
}

body.is-authenticated .text-link {
    color: #535956;
    font-size: .68rem;
    text-decoration: underline;
    text-decoration-color: #c5cbc8;
    text-underline-offset: 5px;
}

body.is-authenticated .more-bookings {
    min-height: 68px;
    margin-top: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .more-bookings > span {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: .68rem;
}

body.is-authenticated .more-bookings p {
    font-size: .68rem;
}

body.is-authenticated .more-bookings small {
    font-size: .61rem;
}

body.is-authenticated .loyalty-card {
    display: block;
    padding: 24px 0 26px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.loyalty-score {
    margin-bottom: 24px;
}

.loyalty-score > p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.loyalty-score strong {
    font-family: var(--display);
    font-size: 3.4rem;
    font-weight: 500;
    line-height: .8;
}

.loyalty-score span {
    color: #626865;
    font-size: .64rem;
}

.loyalty-track {
    height: 5px;
    overflow: hidden;
    background: #e4e8e6;
}

.loyalty-track i {
    display: block;
    width: var(--progress);
    height: 100%;
    background: var(--mint-dark);
}

body.is-authenticated .progress-copy {
    margin-bottom: 7px;
    font-family: var(--display);
    font-size: 1.45rem;
}

body.is-authenticated .loyalty-card > div:last-child > span {
    font-size: .66rem;
}

body.is-authenticated .reward-teaser {
    gap: 14px;
    margin-top: 0;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .reward-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
}

body.is-authenticated .reward-teaser p {
    color: #646a67;
    font-size: .57rem;
}

body.is-authenticated .reward-teaser h3 {
    font-family: var(--display);
    font-size: 1.3rem;
}

body.is-authenticated .reward-teaser a {
    min-height: 30px;
    font-size: .61rem;
}

body.is-authenticated .tab-list {
    gap: 28px;
    margin-bottom: 12px;
}

body.is-authenticated .tab-list a {
    min-height: 44px;
    font-size: .7rem;
}

body.is-authenticated .tab-list a::after {
    height: 1px;
}

body.is-authenticated .booking-list {
    border: 0;
    border-top: 1px solid var(--ink);
    border-radius: 0;
}

body.is-authenticated .booking-row {
    grid-template-columns: 68px minmax(0, 1fr) 44px;
    gap: 24px;
    min-height: 142px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

body.is-authenticated .booking-row + .booking-row {
    border-top: 0;
}

body.is-authenticated .booking-row__date {
    width: 68px;
    height: auto;
    min-height: 74px;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

body.is-authenticated .booking-row__date strong {
    font-family: var(--display);
    font-size: 2.5rem;
}

body.is-authenticated .booking-row h2 {
    margin: 9px 0 5px;
    font-family: var(--display);
    font-size: 1.7rem;
}

body.is-authenticated .booking-row p,
body.is-authenticated .booking-row__top small {
    font-size: .65rem;
}

body.is-authenticated .row-link {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
}

body.is-authenticated .row-link:hover {
    background: transparent;
    color: var(--mint-dark);
}

body.is-authenticated .back-link {
    margin-bottom: 20px;
    font-size: .67rem;
}

body.is-authenticated .detail-hero {
    min-height: 238px;
    padding: 38px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
}

body.is-authenticated .detail-hero h1 {
    margin: 16px 0 7px;
    font-family: var(--display);
    font-size: clamp(3.2rem, 6vw, 5rem);
}

body.is-authenticated .detail-hero > div > p {
    color: #6a706d;
    font-size: .64rem;
}

body.is-authenticated .detail-date {
    width: 100px;
    height: 100px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .detail-date span {
    color: var(--mint-dark);
}

body.is-authenticated .detail-date strong {
    color: var(--ink);
    font-family: var(--display);
}

body.is-authenticated .detail-grid {
    gap: 0;
    margin-top: 0;
    border-bottom: 1px solid var(--line);
}

body.is-authenticated .detail-card {
    padding: 34px 0;
    border: 0;
    border-radius: 0;
}

body.is-authenticated .detail-card:first-child {
    padding-right: 38px;
    border-right: 1px solid var(--line);
}

body.is-authenticated .detail-card:last-child {
    padding-left: 38px;
}

body.is-authenticated .section-label {
    margin-bottom: 14px;
    color: #6d736f;
    font-size: .58rem;
    letter-spacing: .12em;
}

body.is-authenticated .detail-card h2 {
    font-family: var(--display);
    font-size: 1.8rem;
}

body.is-authenticated .detail-list div {
    padding: 10px 0;
}

body.is-authenticated .preparation-card {
    gap: 60px;
    margin-top: 0;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

body.is-authenticated .preparation-card h2 {
    font-family: var(--display);
    font-size: 2rem;
}

body.is-authenticated .preparation-card li::before {
    width: 28px;
    height: 28px;
    border-color: var(--line);
    border-radius: 50%;
    color: var(--ink);
}

body.is-authenticated .detail-footer {
    margin-top: 0;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .rewards-overview {
    gap: 64px;
}

body.is-authenticated .rewards-progress {
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.loyalty-score--large {
    width: 100%;
    margin-bottom: 42px;
}

.loyalty-score--large strong {
    font-size: 6rem;
}

.loyalty-score--large span {
    font-size: .72rem;
}

.loyalty-score--large .loyalty-track {
    height: 6px;
}

body.is-authenticated .rewards-progress h2 {
    font-family: var(--display);
    font-size: 2.2rem;
}

body.is-authenticated .reward-stack {
    border-top: 1px solid var(--ink);
}

body.is-authenticated .reward-stack > .section-heading {
    padding-top: 14px;
}

body.is-authenticated .reward-card {
    gap: 18px;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .reward-card h3 {
    font-family: var(--display);
    font-size: 1.7rem;
}

body.is-authenticated .reward-card .claim-note {
    color: #626865;
}

body.is-authenticated .rewards-lower-grid {
    gap: 64px;
    margin-top: 68px;
}

body.is-authenticated .activity-list li {
    min-height: 72px;
}

body.is-authenticated .activity-dot {
    border-color: #fff;
    background: var(--mint-dark);
}

body.is-authenticated .redeemed-list {
    gap: 0;
    border-top: 1px solid var(--ink);
}

body.is-authenticated .redeemed-list article {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

body.is-authenticated .redeemed-list h3 {
    font-family: var(--display);
}

body.is-authenticated .empty-state,
body.is-authenticated .compact-state,
body.is-authenticated .service-state {
    padding: 38px 0;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

body.is-authenticated .empty-state--wide,
body.is-authenticated .service-state {
    padding: 72px 24px;
}

body.is-authenticated .booking-page > .empty-state--wide,
body.is-authenticated .booking-page > .service-state,
body.is-authenticated .booking-page > .booking-list {
    border-top: 0;
}

body.is-authenticated .terms {
    margin-top: 52px;
}

body.is-authenticated .mobile-nav {
    border-color: #dce1de;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 19, 18, .1);
}

body.is-authenticated .mobile-nav a {
    position: relative;
    color: #747a77;
    font-size: .56rem;
    font-weight: 600;
}

body.is-authenticated .mobile-nav a::after {
    position: absolute;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mint-dark);
    content: "";
    opacity: 0;
}

body.is-authenticated .mobile-nav a.is-active {
    color: var(--ink);
}

body.is-authenticated .mobile-nav a.is-active::after {
    opacity: 1;
}

@media (max-width: 860px) {
    body.is-authenticated {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    }

    body.is-authenticated .home-page .side-column {
        display: none;
    }

    body.is-authenticated .site-header {
        position: sticky;
        top: 0;
        min-height: 64px;
        padding: 10px 18px;
    }

    body.is-authenticated .brand img {
        width: 98px;
    }

    body.is-authenticated .page-shell {
        width: min(100% - 36px, 680px);
        padding: 38px 0 44px;
    }

    body.is-authenticated .page-heading,
    body.is-authenticated .page-heading--home {
        margin-bottom: 34px;
    }

    body.is-authenticated .page-heading h1,
    body.is-authenticated .page-heading--home h1 {
        font-size: clamp(3.2rem, 12vw, 4.5rem);
    }

    body.is-authenticated .home-grid,
    body.is-authenticated .rewards-overview,
    body.is-authenticated .rewards-lower-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    body.is-authenticated .rewards-lower-grid {
        margin-top: 48px;
    }
}

@media (max-width: 600px) {
    body.is-authenticated .page-shell {
        width: calc(100% - 32px);
        padding-top: 32px;
    }

    body.is-authenticated .page-heading {
        gap: 14px;
    }

    body.is-authenticated .page-heading h1,
    body.is-authenticated .page-heading--home h1 {
        font-size: clamp(3rem, 14vw, 3.9rem);
    }

    body.is-authenticated .heading-copy {
        font-size: .75rem;
    }

    .member-note {
        max-width: 82px;
        font-size: .54rem;
        text-align: right;
    }

    .member-note strong {
        font-size: 1.35rem;
    }

    .home-wallet-card {
        margin: 10px 0;
        padding: 16px;
        border-radius: 22px;
    }

    .home-wallet-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .home-wallet-item + .home-wallet-item {
        padding-left: 14px;
    }

    .home-wallet-icon {
        width: 40px;
        height: 40px;
    }

    .home-wallet-icon svg {
        width: 20px;
        height: 20px;
    }

    .home-wallet-copy strong {
        font-size: .86rem;
    }

    .home-wallet-copy small {
        font-size: .59rem;
    }

    body.is-authenticated .appointment-card {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    body.is-authenticated .appointment-date {
        min-height: 294px;
    }

    body.is-authenticated .appointment-date strong {
        font-size: 2.8rem;
    }

    body.is-authenticated .appointment-main {
        padding: 24px 0 24px 20px;
    }

    body.is-authenticated .appointment-main h3 {
        margin: 15px 0 20px;
        font-size: 2rem;
    }

    body.is-authenticated .appointment-meta {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    body.is-authenticated .card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    body.is-authenticated .text-link {
        justify-content: flex-start;
    }

    body.is-authenticated .booking-row {
        grid-template-columns: 54px minmax(0, 1fr) 34px;
        gap: 14px;
        min-height: 132px;
        padding: 20px 0;
    }

    body.is-authenticated .booking-row__date {
        width: 54px;
        min-height: 68px;
    }

    body.is-authenticated .booking-row__date strong {
        font-size: 2rem;
    }

    body.is-authenticated .booking-row h2 {
        font-size: 1.45rem;
    }

    body.is-authenticated .row-link {
        width: 34px;
        height: 40px;
    }

    body.is-authenticated .mobile-action {
        margin-top: 22px;
    }

    body.is-authenticated .detail-hero {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 68px;
        align-items: end;
        padding: 28px 0;
    }

    body.is-authenticated .detail-hero h1 {
        font-size: 2.8rem;
    }

    body.is-authenticated .detail-date {
        width: 68px;
        height: 78px;
        align-self: end;
    }

    body.is-authenticated .detail-date strong {
        font-size: 2.3rem;
    }

    body.is-authenticated .detail-grid {
        grid-template-columns: 1fr;
    }

    body.is-authenticated .detail-card:first-child {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    body.is-authenticated .detail-card:last-child {
        padding: 28px 0;
    }

    body.is-authenticated .preparation-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 0;
    }

    body.is-authenticated .detail-footer {
        align-items: stretch;
        padding: 24px 0;
    }

    .loyalty-score--large strong {
        font-size: 5rem;
    }

    body.is-authenticated .rewards-progress {
        padding: 24px 0 30px;
    }

    body.is-authenticated .reward-card {
        padding: 22px 0;
    }

    body.is-authenticated .mobile-nav {
        right: 10px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        height: 70px;
    }
}

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

/* Shared signed-in identity header and full-viewport notification drawer. */
body.is-authenticated .site-header {
    min-height: 94px;
    gap: 36px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 0;
    background: rgba(251, 250, 246, .96);
}

.member-header {
    display: inline-flex;
    min-width: 230px;
    align-items: center;
    gap: 14px;
}

.member-header__avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #ebe7df;
    box-shadow: 0 4px 14px rgba(16, 19, 18, .09);
}

.member-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 44%;
    transform: scale(1.12);
}

.member-header__avatar img.is-placeholder {
    object-fit: contain;
    object-position: center;
    transform: none;
}

.member-header__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.member-header__copy > span {
    color: #5f625f;
    font-size: .72rem;
    font-weight: 500;
}

.member-header__copy strong {
    overflow: hidden;
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.03rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-button,
.notification-close {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .84);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(16, 19, 18, .06);
}

.notification-button svg,
.notification-close svg,
.notification-empty svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.notification-button:hover,
.notification-close:hover {
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #fbfaf6;
    border-radius: 999px;
    background: #b9425b;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
}

body.notification-is-open {
    overflow: hidden;
}

.notification-drawer {
    position: fixed;
    z-index: 100;
    inset: 0;
    overflow: auto;
    visibility: hidden;
    background: #fbfaf6;
    transform: translateX(100%);
    transition: transform 420ms cubic-bezier(.22, .8, .2, 1), visibility 0s linear 420ms;
}

.notification-drawer.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

.notification-drawer__inner {
    display: grid;
    width: min(1080px, calc(100% - 56px));
    min-height: 100%;
    margin: 0 auto;
    grid-template-rows: auto 1fr auto;
}

.notification-drawer__header {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #dfe2df;
}

.notification-drawer__header p {
    margin-bottom: 4px;
    color: var(--mint-dark);
    font-size: .65rem;
    font-weight: 700;
}

.notification-drawer__header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    letter-spacing: -.045em;
    line-height: .9;
}

.notification-empty {
    display: flex;
    max-width: 430px;
    align-self: center;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    padding: 72px 24px;
    text-align: center;
}

.notification-empty > span {
    display: grid;
    width: 74px;
    height: 74px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-mint);
    color: var(--mint-dark);
}

.notification-empty h3 {
    margin-bottom: 10px;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 600;
}

.notification-empty p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.65;
}

.notification-feed {
    width: min(760px, 100%);
    align-self: start;
    justify-self: center;
    padding: 42px 0 56px;
}

.notification-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 8px;
    border-bottom: 1px solid #e0e2df;
}

.notification-item__mark {
    padding-top: 7px;
}

.notification-item__mark span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.notification-item.is-unread .notification-item__mark span {
    background: #b9425b;
    box-shadow: 0 0 0 4px rgba(185, 66, 91, .1);
}

.notification-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-soft);
    font-size: .67rem;
}

.notification-item__meta span {
    color: var(--mint-dark);
    font-weight: 750;
}

.notification-item h3 {
    margin: 8px 0 7px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: -.025em;
}

.notification-item p {
    max-width: 64ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.65;
    white-space: pre-line;
}

.notification-drawer__footer {
    display: flex;
    min-height: 100px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #dfe2df;
}

.drawer-logout {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #a8afab;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
}

.drawer-logout:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

@media (max-width: 860px) {
    body.is-authenticated .site-header {
        min-height: 92px;
        gap: 16px;
        padding: 14px 18px;
    }

    .member-header {
        min-width: 0;
        flex: 1;
        gap: 12px;
    }

    .member-header__avatar {
        width: 54px;
        height: 54px;
    }

    .notification-drawer__inner {
        width: calc(100% - 36px);
    }

    .notification-drawer__header {
        min-height: 100px;
    }
}

@media (max-width: 360px) {
    body.is-authenticated .site-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .member-header__avatar {
        width: 50px;
        height: 50px;
    }

    .member-header__copy strong {
        font-size: .94rem;
    }

    .notification-button,
    .notification-close {
        width: 44px;
        height: 44px;
    }
}

/* Account settings — personal, direct, and outside primary navigation. */
.member-header__avatar {
    position: relative;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.member-header__avatar:hover {
    box-shadow: 0 0 0 3px rgba(99, 196, 161, .28), 0 5px 16px rgba(16, 19, 18, .1);
    transform: translateY(-1px);
}

.account-settings-page {
    max-width: 1080px;
}

.account-settings-heading {
    max-width: 700px;
    margin-bottom: 58px;
}

.account-settings-heading h1 {
    margin-bottom: 14px;
    font-family: var(--display);
    font-size: clamp(3.6rem, 7vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .88;
}

.account-settings-heading p {
    max-width: 510px;
    margin: 0;
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.7;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    gap: 72px;
}

.settings-section {
    border-top: 1px solid var(--ink);
    padding-top: 28px;
}

.settings-section__heading {
    margin-bottom: 32px;
}

.settings-section__heading p {
    margin-bottom: 8px;
    color: var(--mint-dark);
    font-size: .65rem;
    font-weight: 700;
}

.settings-section__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: -.04em;
}

.settings-form {
    display: grid;
    gap: 24px;
}

.avatar-editor {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.avatar-editor__preview {
    display: block;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--paper-mint);
    box-shadow: 0 7px 24px rgba(16, 19, 18, .1);
}

.avatar-editor__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-editor__preview img.is-placeholder {
    object-fit: contain;
}

.avatar-editor__actions {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.avatar-upload-button {
    min-height: 42px;
    padding: 0 18px;
}

.avatar-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.avatar-editor__actions small,
.settings-field small,
.settings-readonly small {
    color: var(--ink-soft);
    font-size: .64rem;
    line-height: 1.55;
}

.remove-avatar-control {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: .68rem;
    font-weight: 600;
}

.remove-avatar-control input {
    width: 16px;
    height: 16px;
    accent-color: var(--mint-dark);
}

.settings-field,
.settings-readonly {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-field > span,
.settings-readonly > span {
    color: var(--ink);
    font-size: .7rem;
    font-weight: 700;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #afb6b2;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: .86rem;
}

.settings-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #59605c 50%),
        linear-gradient(135deg, #59605c 50%, transparent 50%);
    background-position: calc(100% - 15px) 23px, calc(100% - 10px) 23px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.settings-field select:disabled {
    color: #929793;
    cursor: wait;
}

.settings-field input:focus,
.settings-field select:focus {
    border-bottom-color: var(--mint-dark);
    outline: 0;
}

.location-fields {
    display: grid;
    gap: 14px;
}

.location-fields__status {
    display: block;
    min-height: 1.35em;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: .64rem;
}

.settings-readonly {
    padding: 18px 20px;
    background: #f6f8f7;
}

.settings-readonly strong {
    font-size: .82rem;
}

.settings-submit {
    width: fit-content;
    margin-top: 4px;
}

.settings-section .notice {
    margin-bottom: 28px;
}

@media (max-width: 860px) {
    .account-settings-heading {
        margin-bottom: 46px;
    }

    .account-settings-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .settings-section--security {
        padding-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .account-settings-heading h1 {
        font-size: clamp(3.2rem, 16vw, 4.3rem);
    }

    .avatar-editor {
        align-items: flex-start;
        gap: 18px;
    }

    .avatar-editor__preview {
        width: 78px;
        height: 78px;
    }

    .settings-submit {
        width: 100%;
    }
}

/* Account settings — compact grouped rows inspired by Indonesian super-app patterns. */
body.account-settings-body {
    min-height: 100vh;
    padding-bottom: 0;
    background: #f2f3f4;
}

.account-settings-body > .site-header,
.account-settings-body > .fixture-banner,
.account-settings-body > .mobile-nav {
    display: none;
}

.account-settings-body #main {
    min-height: 100vh;
}

.account-settings-page--gojek {
    min-height: 100vh;
    background: #f2f3f4;
}

.account-profile-hero {
    position: relative;
    display: flex;
    min-height: 134px;
    align-items: center;
    overflow: hidden;
    padding: 10px 10px 80px;
    background: #db536f;
}

.account-profile-hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.account-profile-hero::after {
    top: -140px;
    left: 50%;
    width: 410px;
    height: 320px;
    border: 2px solid rgba(255, 255, 255, .18);
}

.account-profile-hero__ring {
    position: absolute;
    top: 30px;
    right: max(36px, calc((100vw - 650px) / 2));
    width: 74px;
    height: 74px;
    border: 18px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.account-profile-back {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-left: 0;
    place-items: center;
    border-radius: 50%;
}

.account-profile-back:hover {
    background: rgba(255, 255, 255, .52);
}

.account-profile-back svg,
.account-profile-edit svg,
.settings-row summary svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.account-profile-hero h1 {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    font-family: var(--body);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
}

.account-settings-content {
    position: relative;
    z-index: 3;
    width: min(720px, calc(100% - 32px));
    margin: -34px auto 0;
    padding-bottom: 72px;
}

.account-profile-card {
    display: grid;
    min-height: 164px;
    grid-template-columns: 88px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid #e3e4e3;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 31, 27, .05);
}

.account-profile-card__avatar {
    display: block;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--paper-mint);
}

.account-profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-card__avatar img.is-placeholder {
    object-fit: contain;
}

.account-profile-card__copy {
    min-width: 0;
}

.account-profile-card__copy h2 {
    overflow: hidden;
    margin-bottom: 7px;
    font-family: var(--body);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-profile-card__copy p {
    margin: 0;
    color: #5c615e;
    font-size: .9rem;
}

.account-profile-edit {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #505653;
    cursor: pointer;
}

.account-profile-edit:hover {
    background: #eef8f1;
    color: var(--mint-dark);
}

.account-settings-group {
    margin-top: 38px;
}

.account-settings-group > h2 {
    margin: 0 0 14px 2px;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.settings-list--card {
    overflow: hidden;
    border: 1px solid #dedfdf;
    border-radius: 24px;
    background: #fff;
}

.settings-row {
    position: relative;
}

.settings-row + .settings-row::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 24px;
    left: 82px;
    height: 1px;
    background: #e4e5e4;
    content: "";
}

.settings-row summary {
    display: grid;
    min-height: 88px;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    padding: 15px 24px;
    cursor: pointer;
    list-style: none;
}

.settings-row summary::-webkit-details-marker {
    display: none;
}

.settings-row summary:hover {
    background: #f8faf9;
}

.settings-row__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #edf8f1;
    color: #3f5d4d;
}

.settings-row__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.settings-row__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.settings-row__main strong {
    color: #171b19;
    font-size: .9rem;
    font-weight: 800;
}

.settings-row__main small {
    overflow: hidden;
    color: #676d69;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-row__chevron {
    color: #4e5551;
    transition: transform 180ms ease;
}

.settings-row[open] > summary .settings-row__chevron {
    transform: rotate(90deg);
}

.settings-row__panel {
    padding: 8px 24px 28px 82px;
    background: #fbfcfb;
}

.settings-row__panel--message p {
    max-width: 480px;
    margin: 0;
    color: var(--ink-soft);
    font-size: .75rem;
    line-height: 1.65;
}

.settings-form--inline {
    max-width: 480px;
}

.avatar-inline-editor {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-row__panel .notice {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .account-profile-hero {
        min-height: 134px;
        padding: 10px 10px 80px;
    }

    .account-profile-hero h1 {
        font-size: 1.75rem;
    }

    .account-settings-content {
        margin-top: -34px;
    }

    .account-profile-card {
        min-height: 142px;
        grid-template-columns: 72px minmax(0, 1fr) 38px;
        gap: 16px;
        padding: 22px;
        border-radius: 24px;
    }

    .account-profile-card__avatar {
        width: 72px;
        height: 72px;
    }

    .account-profile-card__copy h2 {
        font-size: 1.2rem;
    }

    .account-profile-card__copy p {
        font-size: .76rem;
    }

    .account-settings-group {
        margin-top: 32px;
    }

    .settings-row summary {
        min-height: 80px;
        grid-template-columns: 38px minmax(0, 1fr) 22px;
        gap: 13px;
        padding: 14px 18px;
    }

    .settings-row__icon {
        width: 38px;
        height: 38px;
    }

    .settings-row + .settings-row::before {
        right: 18px;
        left: 69px;
    }

    .settings-row__panel {
        padding: 8px 18px 24px;
    }

    .avatar-inline-editor {
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .account-profile-card {
        grid-template-columns: 62px minmax(0, 1fr) 34px;
        gap: 12px;
        padding: 18px;
    }

    .account-profile-card__avatar {
        width: 62px;
        height: 62px;
    }

    .account-profile-card__copy h2 {
        font-size: 1.05rem;
    }

    .avatar-inline-editor {
        flex-direction: column;
    }
}

/* Image-led appointment card on the authenticated home page. */
body.is-authenticated .appointment-card--image {
    display: block;
    overflow: hidden;
    border: 1px solid #dfe2e0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25, 31, 27, .08);
}

body.is-authenticated .appointment-card--image::after {
    display: none;
}

.appointment-card__media {
    position: relative;
    height: 238px;
    overflow: hidden;
    background: #e7ece9;
}

.appointment-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(17, 20, 18, .3), transparent);
    content: "";
    pointer-events: none;
}

.appointment-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

body.is-authenticated .appointment-card--image .appointment-date {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    left: 16px;
    display: flex;
    width: 64px;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 16px rgba(20, 25, 22, .12);
    color: #171b19;
    backdrop-filter: blur(8px);
}

body.is-authenticated .appointment-card--image .appointment-date span {
    color: #a53853;
    font-size: .56rem;
    letter-spacing: .11em;
}

body.is-authenticated .appointment-card--image .appointment-date strong {
    font-family: var(--body);
    font-size: 1.8rem;
    font-weight: 800;
}

body.is-authenticated .appointment-card--image .appointment-main {
    padding: 22px 24px 24px;
}

.appointment-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.appointment-card__topline > small {
    color: #747a76;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .05em;
}

body.is-authenticated .appointment-card--image .appointment-main h3 {
    margin: 13px 0 22px;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

body.is-authenticated .appointment-card--image .appointment-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7e6;
}

body.is-authenticated .appointment-card--image .appointment-meta dd {
    overflow: hidden;
    margin-left: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-authenticated .appointment-card--image .card-actions {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 600px) {
    body.is-authenticated .appointment-card--image {
        border-radius: 22px;
    }

    .appointment-card__media {
        height: 188px;
    }

    body.is-authenticated .appointment-card--image .appointment-date {
        bottom: 14px;
        left: 14px;
        width: 60px;
        min-height: 64px;
        border-radius: 16px;
    }

    body.is-authenticated .appointment-card--image .appointment-main {
        padding: 20px;
    }

    body.is-authenticated .appointment-card--image .appointment-main h3 {
        margin: 12px 0 19px;
        font-size: 2rem;
    }

    body.is-authenticated .appointment-card--image .appointment-meta {
        grid-template-columns: minmax(86px, .7fr) minmax(0, 1.3fr);
        gap: 12px;
        margin-bottom: 18px;
        padding-top: 16px;
    }

    body.is-authenticated .appointment-card--image .card-actions {
        flex-direction: row;
    }

    body.is-authenticated .appointment-card--image .primary-button {
        flex: 1;
    }
}

/* CRM-backed voucher catalog. */
.voucher-page {
    max-width: 940px;
}

.voucher-page__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}

.voucher-page__heading > a {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.voucher-page__heading > a:hover {
    background: #f5f6f5;
}

.voucher-page__heading svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.voucher-page__heading h1 {
    margin: 0 0 3px;
    font-family: var(--body);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.045em;
}

.voucher-page__heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .74rem;
}

.voucher-section + .voucher-section {
    margin-top: 54px;
}

.voucher-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.voucher-section__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.voucher-section__heading h2 {
    margin: 0;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.voucher-section__title > span {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #f9e8ed;
    color: #aa3552;
    font-size: .62rem;
    font-weight: 800;
}

.voucher-section--past .voucher-section__title > span {
    background: #eceeed;
    color: #656b68;
}

.voucher-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.voucher-tool-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #dfe2e0;
    border-radius: 999px;
    background: #fff;
    color: #272c29;
    font: 700 .64rem/1 var(--body);
    cursor: pointer;
}

.voucher-tool-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.voucher-tool-button:hover,
.voucher-tool-button:focus-visible,
.voucher-tool-button.is-active {
    border-color: #b53655;
    background: #fff1f4;
    color: #a52f4d;
}

.voucher-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.voucher-card {
    position: relative;
    display: grid;
    min-height: 176px;
    grid-template-columns: 118px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e0e2e1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 31, 27, .05);
    color: inherit;
    font: inherit;
    text-align: left;
}

.voucher-card--interactive {
    width: 100%;
    padding: 0;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.voucher-card--interactive:hover,
.voucher-card--interactive:focus-visible {
    border-color: #c64866;
    box-shadow: 0 12px 28px rgba(90, 31, 47, .11);
    transform: translateY(-2px);
}

.voucher-card__chevron {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #ad3452;
    font-size: 1.2rem;
    line-height: 1;
}

.voucher-card[hidden] {
    display: none;
}

.voucher-card__value {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border-right: 1px dashed #dda9b6;
    background: #fff1f4;
    color: #a93753;
    text-align: center;
}

.voucher-card__value strong {
    max-width: 100%;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}

.voucher-card__value small {
    margin-top: 7px;
    font-size: .58rem;
    font-weight: 700;
}

.voucher-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
}

.voucher-card__status {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voucher-card__status span {
    color: #27845a;
    font-size: .59rem;
    font-weight: 800;
}

.voucher-card__status small {
    color: #8b6570;
    font-size: .54rem;
    font-weight: 700;
    text-align: right;
}

.voucher-card h3 {
    margin: 8px 0 6px;
    font-family: var(--body);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.voucher-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #676d69;
    font-size: .64rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.voucher-card footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.voucher-card code {
    overflow: hidden;
    padding: 5px 7px;
    border-radius: 6px;
    background: #f3f5f4;
    color: #323734;
    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-card footer > span {
    color: #777d79;
    font-size: .53rem;
    line-height: 1.35;
    text-align: right;
}

.voucher-card--past {
    box-shadow: none;
    filter: grayscale(.75);
    opacity: .72;
}

.voucher-card--past .voucher-card__value {
    border-right-color: #cfd2d0;
    background: #f1f2f1;
    color: #686e6a;
}

.voucher-card--past .voucher-card__status span {
    color: #6f7571;
}

.voucher-card--locked {
    border-color: #ddd8e1;
    background: #fcfbfd;
    box-shadow: none;
}

.voucher-card--locked .voucher-card__value {
    border-right-color: #cfc5d5;
    background: #f2eef5;
    color: #66536f;
}

.voucher-card--locked .voucher-card__status span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #66536f;
}

.voucher-card--locked .voucher-card__status svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.voucher-card .voucher-card__lock-note {
    display: block;
    overflow: visible;
    color: #66536f;
    font-weight: 650;
    -webkit-line-clamp: unset;
}

.voucher-empty-state {
    grid-column: 1 / -1;
    padding: 42px 24px;
    border: 1px solid #e1e3e2;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.voucher-empty-state .home-wallet-icon {
    margin: 0 auto 15px;
}

.voucher-empty-state h3 {
    margin: 0 0 7px;
    font-family: var(--body);
    font-size: .95rem;
    font-weight: 800;
}

.voucher-empty-state p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .7rem;
}

.voucher-empty-state--quiet {
    background: #f7f8f7;
}

.voucher-service-state {
    max-width: none;
}

.voucher-inline-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #efb7c4;
    border-radius: 14px;
    background: #fff1f4;
    color: #8e2942;
    font-size: .7rem;
    font-weight: 700;
}

body.voucher-panel-is-open {
    overflow: hidden;
}

.voucher-control-panel {
    position: fixed;
    z-index: 90;
    inset: 0;
    overflow: auto;
    background: #f7f8f7;
    opacity: 0;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, visibility 0s linear .28s;
    visibility: hidden;
}

.voucher-control-panel.is-open {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
    visibility: visible;
}

.voucher-control-panel__inner {
    display: flex;
    width: min(100%, 680px);
    min-height: 100%;
    flex-direction: column;
    margin: 0 auto;
    background: #f7f8f7;
}

.voucher-control-panel__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px clamp(18px, 5vw, 34px) 20px;
    border-bottom: 1px solid #e1e4e2;
    background: #fff;
}

.voucher-control-panel__header button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f4f3;
    color: #222724;
    cursor: pointer;
}

.voucher-control-panel__header button:hover,
.voucher-control-panel__header button:focus-visible {
    background: #f9e8ed;
    color: #a52f4d;
}

.voucher-control-panel__header svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.voucher-control-panel__header h2 {
    margin: 0 0 3px;
    font-family: var(--body);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

.voucher-control-panel__header p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .68rem;
}

.voucher-control-panel__content {
    width: 100%;
    flex: 1;
    padding: 26px clamp(18px, 5vw, 34px);
}

.voucher-name-filter {
    display: block;
    margin-bottom: 26px;
}

.voucher-name-filter > span {
    display: block;
    margin-bottom: 10px;
    color: #555c58;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}

.voucher-name-filter > div {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid #dfe3e0;
    border-radius: 15px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.voucher-name-filter > div:focus-within {
    border-color: #ad3452;
    box-shadow: 0 0 0 3px rgba(173, 52, 82, .11);
}

.voucher-name-filter svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #737a76;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.voucher-name-filter input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #242926;
    font-size: .76rem;
}

.voucher-name-filter input::placeholder {
    color: #979d99;
}

.voucher-name-filter > small {
    display: block;
    margin-top: 7px;
    color: #747b77;
    font-size: .6rem;
}

.voucher-option-group {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

.voucher-option-group legend {
    width: 100%;
    margin-bottom: 10px;
    color: #555c58;
    font: 700 .72rem/1.4 var(--body);
}

.voucher-option-row {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border: 1px solid #e1e4e2;
    border-bottom: 0;
    background: #fff;
    cursor: pointer;
}

.voucher-option-row:first-of-type {
    border-radius: 16px 16px 0 0;
}

.voucher-option-row:last-of-type {
    border-bottom: 1px solid #e1e4e2;
    border-radius: 0 0 16px 16px;
}

.voucher-option-row:only-of-type {
    border: 1px solid #e1e4e2;
    border-radius: 16px;
}

.voucher-option-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.voucher-option-row strong {
    color: #242926;
    font-size: .78rem;
    font-weight: 750;
}

.voucher-option-row small {
    color: #737a76;
    font-size: .62rem;
}

.voucher-option-row input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: #ad3452;
}

.voucher-control-panel__footer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 10px;
    padding: 14px clamp(18px, 5vw, 34px) calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #e1e4e2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.voucher-control-panel__footer--single {
    grid-template-columns: 1fr;
}

.voucher-control-panel__footer--single form,
.voucher-control-panel__footer--single .voucher-apply-button {
    width: 100%;
}

.voucher-reset-button,
.voucher-apply-button {
    min-height: 48px;
    border-radius: 14px;
    font: 800 .72rem/1 var(--body);
    cursor: pointer;
}

.voucher-reset-button {
    border: 1px solid #d8dcda;
    background: #fff;
    color: #313633;
}

.voucher-apply-button {
    border: 1px solid #a92f4d;
    background: #ad3452;
    color: #fff;
}

.voucher-reset-button:hover,
.voucher-reset-button:focus-visible {
    border-color: #a92f4d;
    color: #a92f4d;
}

.voucher-apply-button:hover,
.voucher-apply-button:focus-visible {
    background: #932741;
}

.voucher-detail-panel__inner {
    background: #fff;
}

.voucher-detail-panel__header {
    align-items: flex-start;
}

.voucher-detail-panel__header p {
    margin-bottom: 4px;
    color: #ad3452;
    font-weight: 800;
}

.voucher-detail-panel__header h2 {
    margin-bottom: 0;
    line-height: 1.2;
}

.voucher-detail-panel__content {
    background: #f7f8f7;
}

.voucher-detail-value {
    display: flex;
    min-height: 116px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 22px;
    background: #ad3452;
    color: #fff;
}

.voucher-detail-value span {
    font-size: .68rem;
    font-weight: 700;
}

.voucher-detail-value strong {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -.06em;
}

.voucher-detail-description {
    margin: 0 0 22px;
    color: #555c58;
    font-size: .72rem;
    line-height: 1.65;
}

.voucher-detail-list {
    overflow: hidden;
    margin: 0;
    border: 1px solid #e0e3e1;
    border-radius: 18px;
    background: #fff;
}

.voucher-detail-list > div {
    display: grid;
    grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr);
    gap: 18px;
    padding: 15px 17px;
}

.voucher-detail-list > div + div {
    border-top: 1px solid #e6e8e7;
}

.voucher-detail-list dt {
    color: #737a76;
    font-size: .62rem;
    font-weight: 650;
}

.voucher-detail-list dd {
    margin: 0;
    color: #272c29;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.5;
}

.voucher-detail-list code {
    padding: 5px 8px;
    border-radius: 7px;
    background: #f3f4f3;
    font: 800 .64rem/1 var(--mono);
}

.voucher-detail-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.voucher-detail-list li,
.voucher-detail-list__wide dd > span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f8e8ec;
    color: #8f2b44;
    font-size: .59rem;
    font-weight: 750;
}

.portal-toast {
    position: fixed;
    z-index: 85;
    top: 18px;
    left: 50%;
    display: flex;
    width: min(420px, calc(100% - 32px));
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #bfe3d2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(21, 53, 39, .16);
    transform: translateX(-50%);
    transition: opacity .2s ease, transform .2s ease;
}

.portal-toast.is-leaving {
    opacity: 0;
    transform: translate(-50%, -8px);
}

.portal-toast > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #27845a;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.portal-toast p {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.portal-toast strong,
.portal-toast small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-toast strong {
    font-size: .72rem;
}

.portal-toast small {
    color: #65706a;
    font-size: .6rem;
}

.home-voucher-action {
    position: fixed;
    z-index: 29;
    right: max(24px, calc((100vw - 680px) / 2));
    bottom: 24px;
    left: max(24px, calc((100vw - 680px) / 2));
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 24px;
    border-radius: 999px;
    background: #ad3452;
    color: #fff;
    box-shadow: 0 14px 34px rgba(103, 26, 46, .28);
    transition: background-color .16s ease, transform .16s ease;
}

.home-voucher-action:hover,
.home-voucher-action:focus-visible {
    background: #932741;
    transform: translateY(-2px);
}

.home-voucher-action__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.home-voucher-action strong {
    font-size: .85rem;
    font-weight: 850;
}

.home-voucher-action small {
    overflow: hidden;
    max-width: 440px;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-voucher-action > b {
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -.035em;
}

@media (prefers-reduced-motion: reduce) {
    .voucher-control-panel {
        transition: none;
    }
}

@media (max-width: 760px) {
    .voucher-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.is-authenticated .voucher-page {
        padding-top: 20px;
    }

    .voucher-page__heading {
        margin-bottom: 32px;
    }

    .voucher-page__heading h1 {
        font-size: 1.7rem;
    }

    .voucher-section__heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .voucher-section__title {
        flex: 1 1 180px;
        gap: 7px;
        white-space: normal;
    }

    .voucher-section__heading h2 {
        overflow-wrap: anywhere;
    }

    .voucher-toolbar {
        margin-left: auto;
    }

    .voucher-tool-button {
        min-height: 38px;
        justify-content: center;
        gap: 4px;
        padding: 0 6px;
        font-size: .54rem;
    }

    .voucher-tool-button svg {
        width: 14px;
        height: 14px;
    }

    .voucher-card {
        min-height: 164px;
        grid-template-columns: 98px minmax(0, 1fr);
        border-radius: 20px;
    }

    .voucher-card__value strong {
        font-size: 1.15rem;
    }

    .voucher-card__body {
        padding: 16px;
    }

    .voucher-detail-list > div {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
    }

    .home-voucher-action {
        right: 20px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        left: 20px;
        min-height: 68px;
        padding: 12px 20px;
    }
}
