/* DORRA member app — design system + screens.
   Quiet, expensive, photographic: warm ivory ground, brand ink, gold used sparingly.
   RTL throughout: logical properties only, except geometric centring. */

:root {
  --bg: #F6F3ED;
  --bg-2: #EEE9DF;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --ink: #1E1A1B;
  --ink-2: #4B4542;
  --muted: #8B837B;
  --faint: #B9B1A6;
  --line: rgba(35, 31, 32, .08);
  --line-2: rgba(35, 31, 32, .14);
  --gold: #FFCE31;
  --gold-2: #F2B705;
  --bronze: #A27300;
  --bronze-2: #7F6000;
  --sand: #DED6C5;
  --ok: #2E7D5B;
  --ok-bg: #E4F1EA;
  --warn: #B7791F;
  --bad: #B8472F;
  --bad-bg: #F7E6E1;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .6);
  --btn: #1E1A1B;
  --btn-ink: #F7F4EE;
  --sh-1: 0 1px 1px rgba(35, 31, 32, .03), 0 8px 24px -10px rgba(35, 31, 32, .14);
  --sh-2: 0 2px 6px rgba(35, 31, 32, .05), 0 24px 48px -18px rgba(35, 31, 32, .30);
  --sh-3: 0 30px 80px -20px rgba(20, 16, 14, .45);
  --r-xl: 28px;
  --r-l: 22px;
  --r-m: 16px;
  --r-s: 12px;
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-drawer: cubic-bezier(.32, .72, 0, 1);
  --e-move: cubic-bezier(.25, 1, .5, 1);
  --e-expo: cubic-bezier(.19, 1, .22, 1);
  --f-ar: 'Tajawal', system-ui, sans-serif;
  --f-display: 'Alexandria', 'Tajawal', system-ui, sans-serif;
  --f-lat: 'Montserrat', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --sat: max(env(safe-area-inset-top, 0px), 14px);
  --sab: max(env(safe-area-inset-bottom, 0px), 10px);
  --tabs-h: 66px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #100E0E;
  --bg-2: #0A0909;
  --surface: #1B1818;
  --surface-2: #221F1E;
  --ink: #F4F0E8;
  --ink-2: #CFC7BB;
  --muted: #8F877D;
  --faint: #5E5750;
  --line: rgba(244, 240, 232, .08);
  --line-2: rgba(244, 240, 232, .14);
  --ok-bg: rgba(46, 125, 91, .18);
  --bad-bg: rgba(184, 71, 47, .18);
  --glass: rgba(27, 24, 24, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --btn: #F4F0E8;
  --btn-ink: #1A1617;
  --sh-1: 0 1px 1px rgba(0, 0, 0, .2), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-ar);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; flex: none; fill: currentColor; }
.ic.s { width: 18px; height: 18px; }
.ic.xs { width: 15px; height: 15px; }
.ic.l { width: 26px; height: 26px; }
.num { font-family: var(--f-display); font-feature-settings: 'tnum' 1; }
.code { direction: ltr; unicode-bidi: isolate; font-family: var(--f-lat); letter-spacing: .04em; font-size: .92em; }
.lat { font-family: var(--f-lat); }
.caps { font-family: var(--f-lat); text-transform: uppercase; letter-spacing: .22em; font-size: 10px; font-weight: 500; }
.muted { color: var(--muted); }
.gold { color: var(--bronze); }

/* ---------------- app shell ---------------- */
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.app[data-frame] { --sat: 54px; --sab: 22px; }

.sb {
  position: absolute; inset-inline: 0; top: 0; height: 54px; z-index: 60;
  display: none; align-items: center; justify-content: space-between;
  padding-inline: 34px 30px; padding-top: 6px;
  font-family: var(--f-lat); font-weight: 600; font-size: 15.5px; color: var(--ink);
  pointer-events: none; transition: color .3s;
  direction: ltr;
}
.app[data-frame] .sb { display: flex; }
.sb-bg {
  position: absolute; inset-inline: 0; top: 0; height: var(--sat); z-index: 55; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 .5px 0 var(--line-2);
}
.app.dark-top .sb-bg { background: rgba(15, 13, 13, .82); box-shadow: 0 .5px 0 rgba(255, 255, 255, .06); }
.app.scrolled .sb-bg { opacity: 1; }
.sb.light { color: #fff; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons .ic { width: 17px; height: 17px; }
.sb-batt { width: 25px; height: 12px; border: 1.2px solid currentColor; border-radius: 4px; padding: 1.5px; position: relative; opacity: .95; }
.sb-batt::after { content: ''; position: absolute; top: 3px; right: -3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .6; }
.sb-batt i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1.5px; }
.home-ind {
  display: none; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .9; z-index: 90; pointer-events: none;
}
.app[data-frame] .home-ind { display: block; }
.home-ind.light { background: #fff; }

.stage { position: absolute; inset: 0; }
.scr {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: transform .52s var(--e-drawer), filter .52s var(--e-drawer), opacity .28s ease;
  contain: layout paint;
}
.scr::-webkit-scrollbar { display: none; }
.scr.enter { transform: translateX(-100%); }
.scr.pushed { box-shadow: 14px 0 40px -12px rgba(0, 0, 0, .22); }
.scr.behind { transform: translateX(26%); filter: brightness(.94); pointer-events: none; }
.scr.leave { transform: translateX(-100%); }
.scr.fade { opacity: 0; transform: translateY(8px) scale(.995); }
.scr.dragging { transition: none; }
.scr.dark { background: #0F0D0D; color: #F4F0E8; --ink: #F4F0E8; --ink-2: #CFC7BB; --muted: #938B81; --line: rgba(244, 240, 232, .09); --surface: #1B1818; --surface-2: #231F1F; --btn: #F4F0E8; --btn-ink: #1A1617; }
.pad { padding-inline: 20px; }
.tabbed { padding-bottom: calc(var(--tabs-h) + var(--sab) + 44px); }
.bottomed { padding-bottom: calc(var(--sab) + 120px); }

/* ---------------- nav bar & large titles ---------------- */
.nb {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--sat) + 50px); padding-top: var(--sat);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-inline: 14px;
  transition: background .3s, box-shadow .3s;
}
.nb.solid, .nb.stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 .5px 0 var(--line-2);
}
.nb-title {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 13px;
  font-weight: 700; font-size: 16px; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .25s;
}
.nb.solid .nb-title, .nb.stuck .nb-title { opacity: 1; }
.nb-end { display: flex; gap: 8px; }
.nb.over { margin-bottom: calc(-1 * (var(--sat) + 50px)); background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nb.over.stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: 0 .5px 0 var(--line-2); }
.nb.over.stuck .ib.glass { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
@supports (animation-timeline: scroll()) {
  .cover .ph img { animation: parallax linear both; animation-timeline: scroll(nearest); animation-range: 0 340px; }
  @keyframes parallax { to { transform: translateY(28%) scale(1.06); } }
}

.ib {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none; position: relative;
  color: var(--ink); background: var(--surface); box-shadow: var(--sh-1);
  transition: transform .16s var(--e-out), background .2s;
}
.ib:active { transform: scale(.9); }
.ib.glass { background: rgba(20, 16, 14, .32); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.ib.plain { background: transparent; box-shadow: none; }
.ib .dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 2px var(--surface); }
.ib.on { color: #E0584B; }

.lt { padding: 4px 20px 18px; }
.lt h1 { font-family: var(--f-display); font-weight: 500; font-size: 31px; line-height: 1.2; letter-spacing: -.01em; }
.lt p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.lt-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ---------------- sections & text ---------------- */
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding-inline: 20px; margin-bottom: 14px; }
.sec-t { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.005em; }
.sec-l { color: var(--bronze); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
html[data-theme="dark"] .sec-l, .dark .sec-l { color: var(--gold); }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 500; }
.label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 24px 20px 10px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: 22px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; white-space: nowrap;
  transition: transform .14s var(--e-out), background .2s, opacity .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-p { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -12px rgba(30, 26, 27, .6); }
.btn-g { background: var(--gold); color: #1E1A1B; box-shadow: 0 10px 24px -12px rgba(162, 115, 0, .7); }
.btn-s { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-w { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-t { height: auto; padding: 6px 4px; color: var(--bronze); font-weight: 600; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.btn .trail { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); margin-inline-end: -12px; transition: transform .2s var(--e-out); }
.btn-g .trail { background: rgba(30, 26, 27, .1); }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-inline: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding-inline: 15px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, color .2s, transform .14s var(--e-out);
}
.chip:active { transform: scale(.95); }
.chip.on { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-inline-start: -8px; }

.seg { display: flex; padding: 3px; border-radius: 14px; background: var(--bg-2); margin-inline: 20px; }
.seg button { flex: 1; height: 36px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background .25s var(--e-out), color .2s, box-shadow .25s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .15); font-weight: 700; }

/* ---------------- surfaces ---------------- */
.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.ph { position: relative; overflow: hidden; background: var(--bg-2); }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph-grad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 9, 8, .78) 0%, rgba(12, 9, 8, .25) 45%, rgba(12, 9, 8, 0) 70%); pointer-events: none; }
.ph-top::before { content: ''; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(to bottom, rgba(12, 9, 8, .45), transparent); z-index: 1; pointer-events: none; }
.on-img { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; color: #fff; padding: 18px; }
img.fade-img { opacity: 0; transition: opacity .5s ease; }
img.fade-img.ok { opacity: 1; }

.list { background: var(--surface); border-radius: var(--r-l); margin-inline: 16px; box-shadow: var(--sh-1); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; min-height: 60px; text-align: start;
  position: relative; transition: background .15s;
}
.row + .row::before { content: ''; position: absolute; top: 0; inset-inline-start: 66px; inset-inline-end: 0; height: .5px; background: var(--line-2); }
.list.flat .row + .row::before { inset-inline-start: 16px; }
button.row:active, a.row:active { background: var(--surface-2); }
.row-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none; }
.row-ic.gold { background: rgba(255, 206, 49, .22); color: var(--bronze-2); }
.row-ic.ok { background: var(--ok-bg); color: var(--ok); }
.row-ic img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.row-body { flex: 1; min-width: 0; }
.row-t { font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.row-s { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.row-end { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; flex: none; }
.row .chev { color: var(--faint); }

.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); }
.av.s { width: 28px; height: 28px; }
.av.l { width: 56px; height: 56px; }
.av.xl { width: 88px; height: 88px; }
.avs { display: flex; }
.avs .av { box-shadow: 0 0 0 2px var(--surface); }
.avs .av + .av { margin-inline-start: -10px; }
.avs .more { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); margin-inline-start: -10px; box-shadow: 0 0 0 2px var(--surface); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding-inline: 10px; white-space: nowrap; flex: none; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); }
.pill.glass { background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.pill.gold { background: var(--gold); color: #1E1A1B; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34C27A; box-shadow: 0 0 0 0 rgba(52, 194, 122, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(52, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 194, 122, 0); } }

.tgl { width: 51px; height: 31px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .25s; }
.tgl::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--e-out); }
.tgl.on { background: #34C27A; }
.tgl.on::after { transform: translateX(-20px); }

.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; padding-bottom: 6px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.field { display: block; margin: 0 20px 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; height: 54px; border-radius: 16px; border: 0; padding-inline: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; outline: none;
  transition: box-shadow .2s;
}
.field textarea { height: 110px; padding-block: 14px; resize: none; line-height: 1.6; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------------- tab bar ---------------- */
.tabbar {
  position: absolute; z-index: 50; inset-inline: 12px; bottom: calc(var(--sab) + 6px);
  height: var(--tabs-h); border-radius: 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: inset 0 0 0 .5px var(--glass-line), 0 16px 40px -14px rgba(35, 31, 32, .35);
  transition: transform .45s var(--e-drawer), opacity .3s;
}
.tabbar.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar.dark { background: rgba(28, 24, 24, .7); color: #F4F0E8; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08), 0 16px 40px -14px rgba(0, 0, 0, .6); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: center; color: var(--muted); font-size: 10.5px; font-weight: 500; position: relative; transition: color .2s; }
.tabbar.dark .tab { color: #8F877D; }
.tab .ic { width: 25px; height: 25px; transition: transform .25s var(--e-out); }
.tab.on { color: var(--ink); font-weight: 700; }
.tabbar.dark .tab.on { color: #F4F0E8; }
.tab.on::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); }
.tab:active .ic { transform: scale(.86); }
.tab-pass { position: relative; }
.tab-pass .orb {
  width: 58px; height: 58px; border-radius: 50%; margin-top: -30px;
  display: grid; place-items: center; background: #1E1A1B; color: var(--gold);
  box-shadow: 0 0 0 5px var(--bg), 0 14px 26px -10px rgba(30, 26, 27, .7);
  transition: transform .2s var(--e-out);
}
.tabbar.dark .tab-pass .orb { box-shadow: 0 0 0 5px #0F0D0D, 0 14px 26px -10px rgba(0, 0, 0, .8); background: var(--gold); color: #1E1A1B; }
.tab-pass:active .orb { transform: scale(.92); }
.tab-pass .ic { width: 27px; height: 27px; }
.tab-pass.on::after { display: none; }

/* ---------------- sheets ---------------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.sheet-bd { position: absolute; inset: 0; background: rgba(15, 12, 11, .42); opacity: 0; transition: opacity .4s ease; pointer-events: auto; }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; max-height: calc(100% - var(--sat) - 12px);
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 30px 30px 0 0;
  transform: translateY(105%); transition: transform .5s var(--e-drawer);
  pointer-events: auto; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .25);
  padding-bottom: var(--sab);
}
.sheet-wrap.open .sheet-bd { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet.dragging { transition: none; }
.sheet-grab { height: 26px; flex: none; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grab::before { content: ''; width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; gap: 10px; }
.sheet-h h3 { font-family: var(--f-display); font-weight: 500; font-size: 21px; }
.sheet-body { overflow-y: auto; flex: 1; padding-bottom: 8px; scrollbar-width: none; }
.sheet-foot { padding: 12px 20px 10px; flex: none; }

.sum { margin: 0 16px; background: var(--surface); border-radius: var(--r-l); padding: 6px 16px; box-shadow: var(--sh-1); }
.sum-r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-size: 14.5px; }
.sum-r + .sum-r { border-top: .5px solid var(--line-2); }
.sum-r span:first-child { color: var(--muted); }
.sum-r b { font-weight: 500; text-align: end; }
.sum-r.total b { font-family: var(--f-display); font-weight: 600; font-size: 18px; }

.opt {
  display: flex; align-items: center; gap: 14px; width: calc(100% - 32px); margin: 0 16px 10px;
  padding: 14px 16px; border-radius: 18px; background: var(--surface); text-align: start;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .14s var(--e-out);
}
.opt:active { transform: scale(.985); }
.opt.on { box-shadow: inset 0 0 0 1.6px var(--ink); }
.opt.off { opacity: .45; pointer-events: none; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--line-2); flex: none; transition: box-shadow .2s; }
.opt.on .radio { box-shadow: inset 0 0 0 7px var(--ink); }
.opt .row-ic { width: 42px; height: 42px; }

/* ---------------- toast ---------------- */
.toast {
  position: absolute; z-index: 95; top: calc(var(--sat) - 44px); left: 50%;
  min-width: 126px; max-width: calc(100% - 32px); min-height: 37px;
  transform: translate(-50%, -14px) scale(.6); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 18px;
  border-radius: 22px; background: #0B0A0A; color: #F4F0E8; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5);
  transition: transform .55s var(--e-expo), opacity .25s;
  pointer-events: none; white-space: nowrap;
}
.app:not([data-frame]) .toast { top: calc(var(--sat) + 8px); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .ic { color: #34C27A; width: 20px; height: 20px; }

/* ---------------- home ---------------- */
.home-top { padding: calc(var(--sat) + 8px) 20px 0; display: flex; align-items: center; gap: 12px; }
.home-top .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: start; }
.home-top .who .av { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-2); }
.hello { font-size: 13px; color: var(--muted); line-height: 1.2; }
.hello-name { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.branch { margin: 16px 20px 0; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.branch b { font-weight: 700; }
.branch .muted { font-size: 12.5px; }

.hero-bk { margin: 18px 16px 0; height: 236px; border-radius: 26px; box-shadow: var(--sh-2); display: block; width: calc(100% - 32px); text-align: start; }
.hero-bk .ph { position: absolute; inset: 0; border-radius: inherit; }
.hero-bk .ph img { transform: scale(1.04); transition: transform 1.2s var(--e-expo); }
.hero-bk:active .ph img { transform: scale(1.08); }
.hero-bk .top { position: absolute; top: 16px; inset-inline: 16px; display: flex; justify-content: space-between; z-index: 2; }
.hero-bk .on-img { padding: 18px 18px 16px; }
.hero-bk h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.hero-bk .sub { font-size: 13.5px; opacity: .85; margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.hero-bk .sub .avs .av { box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.hero-bk .cd { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cdn { font-family: var(--f-display); font-weight: 300; font-size: 26px; letter-spacing: .02em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.cdn small { font-family: var(--f-ar); font-size: 12px; opacity: .75; font-weight: 400; white-space: nowrap; }
.cdn .t { direction: ltr; unicode-bidi: isolate; font-feature-settings: 'tnum' 1; }
.hero-bk, .evc, .tile, .banner, .evl, .rest-big, .svc, .eta, .rest .ph { position: relative; overflow: hidden; isolation: isolate; }
.hero-bk, .evc, .tile, .banner, .evl, .rest-big { cursor: pointer; }
.home-top .who { background: none; }

.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 16px 0; }
.qa-i { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.qa-i .b { width: 100%; aspect-ratio: 1.08; border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-1); transition: transform .16s var(--e-out); color: var(--ink); }
.qa-i:active .b { transform: scale(.93); }
.qa-i .ic { width: 27px; height: 27px; }
.qa-i.gold .b { background: #1E1A1B; color: var(--gold); }
html[data-theme="dark"] .qa-i.gold .b { background: var(--gold); color: #1E1A1B; }

.evc { width: 248px; height: 318px; border-radius: 24px; box-shadow: var(--sh-1); text-align: start; }
.evc .ph { position: absolute; inset: 0; border-radius: inherit; }
.evc .top { position: absolute; top: 14px; inset-inline: 14px; z-index: 2; display: flex; justify-content: space-between; }
.evc h4 { font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.3; }
.evc .meta { font-size: 13px; opacity: .85; margin-top: 4px; }
.evc .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.kid-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: start; }
.kid-row + .kid-row { border-top: .5px solid var(--line-2); }
.kid-row .av { width: 52px; height: 52px; }
.kid-row .prog { margin-top: 8px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.kid-row .prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--bronze)); transform-origin: right; animation: grow 1.2s var(--e-expo) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }

.occ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-inline: 16px; }
.occ-i { background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--sh-1); }
.occ-i .n { font-size: 13.5px; font-weight: 500; }
.occ-i .v { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.occ-i .v b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.occ-i .v span { font-size: 12px; color: var(--muted); }
.meter { height: 4px; border-radius: 2px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: right; animation: grow 1.4s var(--e-expo) both .3s; }
.meter.hi i { background: #D9822B; }
.meter.lo i { background: #34C27A; }

.rest { width: 172px; text-align: start; }
.rest .ph { height: 200px; border-radius: 20px; box-shadow: var(--sh-1); }
.rest h4 { font-weight: 700; font-size: 15px; margin-top: 10px; }
.rest p { font-size: 12.5px; color: var(--muted); }

.banner { margin: 30px 16px 0; height: 190px; border-radius: 26px; display: block; width: calc(100% - 32px); text-align: start; box-shadow: var(--sh-2); }
.banner .ph { position: absolute; inset: 0; border-radius: inherit; }
.banner .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10, 30, 38, .72), rgba(10, 30, 38, .1) 75%); }
.banner .on-img { top: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px; max-width: 72%; }
.banner h4 { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.3; }
.banner p { font-size: 13px; opacity: .85; margin: 6px 0 14px; }

.news-row { display: flex; gap: 14px; align-items: center; padding: 12px 20px; width: 100%; text-align: start; }
.news-row .ph { width: 92px; height: 74px; border-radius: 14px; flex: none; }
.news-row h5 { font-size: 15px; font-weight: 500; line-height: 1.45; margin: 0; }
.news-row small { font-size: 12px; color: var(--muted); }

/* ---------------- booking ---------------- */
.search { margin: 0 20px 14px; height: 46px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 10px; padding-inline: 14px; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); min-width: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px 0; }
.tile { height: 218px; border-radius: 24px; text-align: start; box-shadow: var(--sh-1); transition: transform .2s var(--e-out), opacity .3s; }
.tile:nth-child(4n+1), .tile:nth-child(4n+4) { height: 250px; }
.tile .ph { position: absolute; inset: 0; border-radius: inherit; }
.tile h4 { font-family: var(--f-display); font-weight: 500; font-size: 19px; }
.tile p { font-size: 12px; opacity: .85; margin-top: 2px; line-height: 1.4; }
.tile:active { transform: scale(.97); }
.tiles-col { display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }

.cover { position: relative; height: 330px; }
.cover .ph { position: absolute; inset: 0; }
.cover .ph img { transform-origin: center bottom; }
.cover .on-img { padding: 0 20px 26px; }
.cover h1 { font-family: var(--f-display); font-weight: 500; font-size: 32px; line-height: 1.2; }
.cover .meta { opacity: .88; font-size: 14px; margin-top: 6px; }
.body-card { position: relative; z-index: 3; margin-top: -22px; border-radius: 26px 26px 0 0; background: var(--bg); padding-top: 8px; min-height: 60%; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding-inline: 20px; scrollbar-width: none; scroll-snap-type: x proximity; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; width: 58px; height: 74px; border-radius: 18px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .14s var(--e-out);
}
.date small { font-size: 11.5px; color: var(--muted); }
.date b { font-family: var(--f-display); font-weight: 500; font-size: 21px; }
.date.on { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.date.on small { color: inherit; opacity: .7; }
.date:active { transform: scale(.94); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-inline: 20px; }
.slot {
  height: 52px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25;
  font-size: 14.5px; font-weight: 500; position: relative; transition: background .2s, color .2s, transform .14s var(--e-out);
}
.slot small { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.slot.peak::after { content: ''; position: absolute; top: 7px; inset-inline-end: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.slot.busy { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; pointer-events: none; }
.slot.on { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.slot.on small { color: inherit; opacity: .7; }
.slot:active { transform: scale(.95); }
.legend { display: flex; gap: 14px; padding: 12px 20px 0; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; vertical-align: middle; }

.players { display: flex; gap: 14px; overflow-x: auto; padding-inline: 20px; scrollbar-width: none; }
.player { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); text-align: center; line-height: 1.3; }
.player .av { width: 54px; height: 54px; }
.player .add { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); border: 1.5px dashed transparent; }
.player.me .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-2); }

.addon { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: start; }
.addon + .addon { border-top: .5px solid var(--line-2); }
.chk { width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1.6px var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: background .2s, box-shadow .2s, color .2s; }
.chk.on { background: var(--btn); box-shadow: none; color: var(--btn-ink); }
.chk .ic { width: 15px; height: 15px; }

.cta-bar {
  position: sticky; z-index: 40; bottom: 0;
  padding: 14px 20px calc(var(--sab) + 14px);
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 -.5px 0 var(--line-2);
  transform: translateY(0); transition: transform .45s var(--e-drawer);
}
.cta-bar .price { flex: none; line-height: 1.2; }
.cta-bar .price small { display: block; font-size: 12px; color: var(--muted); }
.cta-bar .price b { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.cta-bar .btn { flex: 1; }

/* success */
.done { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 36px) 20px calc(var(--sab) + 24px); text-align: center; }
.done-check { width: 92px; height: 92px; }
.done-check circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .7s var(--e-out) forwards .1s; }
.done-check path { fill: none; stroke: var(--ok); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--e-out) forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin-top: 18px; }
.done > p { color: var(--muted); margin-top: 6px; max-width: 290px; }
.rise { animation: rise .7s var(--e-expo) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.ticket { width: 100%; margin-top: 26px; background: var(--surface); border-radius: 24px; box-shadow: var(--sh-2); text-align: start; overflow: hidden; position: relative; }
.ticket .ph { height: 120px; }
.ticket .tk-body { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ticket .tk-body small { display: block; font-size: 11.5px; color: var(--muted); }
.ticket .tk-body b { font-weight: 500; font-size: 14.5px; }
.ticket .tk-cut { position: relative; height: 1px; margin: 0 18px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%); background-size: 10px 1px; }
.ticket .tk-cut::before, .ticket .tk-cut::after { content: ''; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket .tk-cut::before { right: -30px; }
.ticket .tk-cut::after { left: -30px; }
.ticket .tk-qr { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ticket .tk-qr .qr { width: 76px; height: 76px; flex: none; }
.done .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 18px; }

canvas.confetti { position: absolute; inset: 0; z-index: 70; pointer-events: none; }

/* ---------------- membership pass ---------------- */
.pass-top { padding: calc(var(--sat) + 6px) 20px 0; display: flex; align-items: center; justify-content: space-between; }
.pass-top h1 { font-family: var(--f-display); font-weight: 500; font-size: 22px; }
.fam { display: flex; gap: 8px; padding: 18px 20px 0; overflow-x: auto; scrollbar-width: none; }
.fam button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #CFC7BB; font-size: 13.5px; transition: background .25s, color .25s; }
.fam button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.fam button.on { background: #F4F0E8; color: #1A1617; font-weight: 700; }

.pcard-wrap { perspective: 1400px; padding: 20px 26px 0; }
.pcard { position: relative; aspect-ratio: 1 / 1.24; transform-style: preserve-3d; transition: transform .9s var(--e-expo); cursor: pointer; }
.pcard.flip { transform: rotateY(180deg); }
.pcard.swap { animation: swap .5s var(--e-out); }
@keyframes swap { 40% { transform: translateY(10px) scale(.96); opacity: .4; } }
.pcard-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--e-out); transform-style: preserve-3d; }
.face { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.front {
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(255, 206, 49, .22), transparent 60%),
    radial-gradient(90% 60% at 0% 110%, rgba(162, 115, 0, .28), transparent 60%),
    linear-gradient(160deg, #2A2423 0%, #161212 55%, #0D0B0B 100%);
  box-shadow: inset 0 0 0 .8px rgba(255, 220, 140, .22), 0 40px 80px -30px rgba(0, 0, 0, .9);
  color: #F4F0E8; padding: 26px 24px;
  display: flex; flex-direction: column;
}
.face.front::before { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 230, 170, .16) 48%, rgba(255, 255, 255, .06) 52%, transparent 60%); transform: translateX(var(--sheen, -30%)); transition: transform .6s var(--e-out); pointer-events: none; }
.face.front .wm { height: 22px; width: auto; opacity: .95; }
.face.front .hd { display: flex; justify-content: space-between; align-items: center; }
.face.front .emb { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #E9C766, #9C7A24 60%, #D8B55B); box-shadow: inset 0 0 0 .6px rgba(0, 0, 0, .3); position: relative; }
.face.front .emb::after { content: ''; position: absolute; inset: 6px 9px; border: .8px solid rgba(60, 40, 0, .45); border-radius: 3px; }
.face.front .who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.face.front .who img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 220, 140, .4); }
.face.front .nm { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.3; }
.face.front .tier { font-size: 13px; color: #D9C9A0; margin-top: 2px; }
.face.front .ft { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: .5px solid rgba(255, 255, 255, .12); }
.face.front .ft small { display: block; font-size: 11px; color: #9A9086; }
.face.front .ft b { font-weight: 500; font-size: 14px; }
.face.front .mid { margin-top: 26px; font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; color: rgba(255, 230, 170, .9); letter-spacing: .01em; direction: ltr; text-align: left; }
.face.back { transform: rotateY(180deg); background: #F7F4EE; color: #1E1A1B; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.qr-box { position: relative; width: 74%; aspect-ratio: 1; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box .qr-in { width: 100%; height: 100%; transition: opacity .3s, filter .3s; }
.qr-box.renew .qr-in { opacity: .2; filter: blur(3px); }
.scan-line { position: absolute; inset-inline: 10px; top: 10px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #34C27A, transparent); box-shadow: 0 0 18px 4px rgba(52, 194, 122, .5); opacity: 0; }
.qr-box.scanning .scan-line { animation: scan 1.1s var(--e-move) 2; opacity: 1; }
@keyframes scan { 50% { transform: translateY(calc(100% + 220px)); } }
.ring { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: #6F675F; }
.ring svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: #E6E0D5; }
.ring .fg { stroke: #1E1A1B; stroke-dasharray: 56.5; animation: ring 30s linear infinite; }
@keyframes ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 56.5; } }
.back-name { font-weight: 700; font-size: 17px; margin-top: 16px; }
.off-badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--ok); background: #E4F1EA; padding: 5px 10px; border-radius: 999px; }
.gate-ok { position: absolute; inset: 0; border-radius: 26px; background: #1F7A52; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: 0; transition: opacity .35s; pointer-events: none; }
.gate-ok.show { opacity: 1; }
.gate-ok svg.done-check circle, .gate-ok svg.done-check path { stroke: #fff; }
.gate-ok h3 { font-family: var(--f-display); font-weight: 500; font-size: 26px; }
.gate-ok p { opacity: .9; font-size: 14px; }
.pass-hint { text-align: center; color: #938B81; font-size: 13px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pass-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px 0; }
.pass-acts .btn-s { background: #1E1A1A; color: #F4F0E8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.dark .list { background: #1B1818; box-shadow: none; }
.dark .row + .row::before { background: rgba(255, 255, 255, .08); }
.dark .row-ic { background: rgba(255, 255, 255, .07); color: #F4F0E8; }
.dark .sec-t { color: #F4F0E8; }

/* ---------------- wallet ---------------- */
.bal {
  margin: 4px 16px 0; border-radius: 28px; padding: 22px; position: relative; overflow: hidden; color: #F4F0E8;
  background: radial-gradient(110% 80% at 100% 0%, rgba(255, 206, 49, .2), transparent 55%), linear-gradient(155deg, #2A2423, #141111 70%);
  box-shadow: var(--sh-2);
}
.bal::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 220, 140, .14); box-shadow: 0 0 0 26px rgba(255, 220, 140, .03), 0 0 0 52px rgba(255, 220, 140, .025); }
.bal small { color: #BDB3A5; font-size: 13px; }
.bal .amt { font-family: var(--f-display); font-weight: 300; font-size: 40px; line-height: 1.15; margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.bal .amt .cur { font-size: 16px; font-weight: 400; color: #BDB3A5; }
.bal .acts { display: flex; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.bal .acts button { flex: 1; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .09); color: #F4F0E8; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); transition: background .2s, transform .14s var(--e-out); }
.bal .acts button:first-child { background: var(--gold); color: #1E1A1B; box-shadow: none; }
.bal .acts button:active { transform: scale(.96); }
.due { display: flex; gap: 14px; align-items: center; padding: 14px 16px; width: 100%; text-align: start; }
.due + .due { border-top: .5px solid var(--line-2); }
.due .row-body b { font-family: var(--f-display); font-weight: 500; font-size: 16px; }
.due-meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.paybar { position: sticky; z-index: 45; margin: 18px 12px 0; bottom: calc(var(--sab) + var(--tabs-h) + 14px); border-radius: 22px; background: #1E1A1B; color: #F4F0E8; padding: 10px 10px 10px 10px; padding-inline-start: 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); transform: translateY(160%); transition: transform .5s var(--e-drawer); }
html[data-theme="dark"] .paybar { background: #F4F0E8; color: #1A1617; }
.paybar, .cartbar { opacity: 0; visibility: hidden; transition: transform .5s var(--e-drawer), opacity .3s ease, visibility 0s linear .5s; }
.paybar.show, .cartbar.show { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--e-drawer), opacity .3s ease, visibility 0s; }
.paybar .t { flex: 1; line-height: 1.25; }
.paybar .t small { display: block; font-size: 12px; opacity: .65; }
.paybar .t b { font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.paybar .btn { height: 46px; }
.tx { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.tx + .tx { border-top: .5px solid var(--line-2); }
.tx .amt { font-family: var(--f-display); font-weight: 500; font-size: 15px; direction: ltr; }
.tx .amt.plus { color: var(--ok); }
.tx-day { font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 16px 20px 8px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; }
.amounts button { height: 56px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-display); font-weight: 500; font-size: 16px; transition: background .2s, color .2s; }
.amounts button.on { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.receipt-no { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------------- profile ---------------- */
.prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--sat) + 18px) 20px 6px; }
.prof .av { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--gold-2), var(--sh-2); }
.prof h2 { font-family: var(--f-display); font-weight: 500; font-size: 23px; margin-top: 14px; }
.prof p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.fam-strip { display: flex; justify-content: space-around; padding: 16px 12px; }
.fam-strip button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.fam-strip .av { width: 54px; height: 54px; }
.fam-strip .add { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* ---------------- kid dashboard ---------------- */
.kid-head { display: flex; align-items: flex-end; gap: 14px; }
.kid-head .av { width: 74px; height: 74px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 16px 0; }
.stat { background: var(--surface); border-radius: 20px; padding: 14px 10px; text-align: center; box-shadow: var(--sh-1); }
.stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.stat small { font-size: 12px; color: var(--muted); }
.ringstat { width: 54px; height: 54px; margin: 0 auto 6px; position: relative; }
.ringstat svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringstat circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ringstat .bg { stroke: var(--bg-2); }
.ringstat .fg { stroke: var(--bronze); stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset 1.4s var(--e-expo) .2s; }
.ringstat span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 14px; font-weight: 500; }
.bars { padding: 6px 16px 14px; }
.bar { padding: 8px 0; }
.bar .h { display: flex; justify-content: space-between; font-size: 14px; }
.bar .h b { font-family: var(--f-display); font-weight: 500; }
.bar .t { height: 7px; border-radius: 4px; background: var(--bg-2); margin-top: 7px; overflow: hidden; }
.bar .t i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #D8A21E, var(--bronze-2)); transform-origin: right; transform: scaleX(0); transition: transform 1.2s var(--e-expo); }
.note { margin: 0 16px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); display: flex; gap: 12px; }
.note p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.note .av { width: 36px; height: 36px; }
.medals { display: flex; gap: 10px; overflow-x: auto; padding-inline: 16px; scrollbar-width: none; }
.medal { flex: none; width: 128px; padding: 16px 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); text-align: center; font-size: 12.5px; line-height: 1.45; }
.medal .m { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #5A4300; background: radial-gradient(circle at 30% 25%, #FFE9A3, #E6B634 55%, #A27300); box-shadow: inset 0 -3px 6px rgba(90, 60, 0, .35), 0 6px 14px -6px rgba(162, 115, 0, .7); }
.att { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 16px; }
.att i { aspect-ratio: 1; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--muted); }
.att i.y { background: var(--ok-bg); color: var(--ok); }
.att i.n { background: var(--bad-bg); color: var(--bad); }
.gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding-inline: 16px; height: 220px; }
.gal button { border-radius: 18px; overflow: hidden; position: relative; }
.gal button:first-child { grid-row: span 2; }
.gal button img { width: 100%; height: 100%; object-fit: cover; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 12px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.55; animation: rise .45s var(--e-out) both; }
.bubble.them { align-self: flex-start; background: var(--surface); box-shadow: var(--sh-1); border-end-start-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--btn); color: var(--btn-ink); border-end-end-radius: 6px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 20px; background: var(--surface); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }

/* ---------------- dining ---------------- */
.rest-big { display: block; width: calc(100% - 32px); margin: 0 16px 16px; border-radius: 26px; height: 250px; text-align: start; box-shadow: var(--sh-2); }
.rest-big .ph { position: absolute; inset: 0; border-radius: inherit; }
.rest-big h3 { font-family: var(--f-display); font-weight: 500; font-size: 25px; }
.rest-big .meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.menu-cats { position: sticky; top: calc(var(--sat) + 50px); z-index: 15; padding: 10px 0; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mi { display: flex; gap: 14px; padding: 14px 20px; align-items: center; }
.mi + .mi { border-top: .5px solid var(--line-2); }
.mi .ph { width: 92px; height: 92px; border-radius: 18px; flex: none; }
.mi h5 { font-size: 15.5px; font-weight: 500; margin: 0; line-height: 1.4; }
.mi p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mi .p { font-family: var(--f-display); font-weight: 500; font-size: 15px; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 2px; height: 36px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 4px; flex: none; }
.qty button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.qty span { min-width: 20px; text-align: center; font-family: var(--f-display); font-weight: 500; }
.add-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); flex: none; transition: transform .16s var(--e-out); }
.add-btn:active { transform: scale(.85); }
.bump { animation: bump .4s var(--e-out); }
@keyframes bump { 40% { transform: scale(1.18); } }
.cartbar { position: sticky; z-index: 40; margin: 12px 16px 0; bottom: calc(var(--sab) + 14px); height: 60px; border-radius: 20px; background: #1E1A1B; color: #F4F0E8; display: flex; align-items: center; gap: 12px; padding-inline: 18px 12px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); transform: translateY(180%); transition: transform .5s var(--e-drawer); width: calc(100% - 32px); text-align: start; }
html[data-theme="dark"] .cartbar { background: #F4F0E8; color: #1A1617; }
.cartbar.show { transform: none; }
.cartbar .cnt { width: 30px; height: 30px; border-radius: 10px; background: var(--gold); color: #1E1A1B; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cartbar .t { flex: 1; font-weight: 700; }
.cartbar b { font-family: var(--f-display); font-weight: 500; }
.track { padding: 8px 20px; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; top: 30px; bottom: 0; inset-inline-start: 14px; width: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step .d { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--faint); flex: none; position: relative; z-index: 1; transition: background .4s, color .4s, box-shadow .4s; }
.step.done-s .d { background: var(--ok); color: #fff; }
.step.now .d { background: var(--btn); color: var(--btn-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 12%, transparent); }
.step.done-s::before { background: var(--ok); }
.step h5 { font-size: 15.5px; font-weight: 500; margin: 3px 0 0; }
.step p { font-size: 13px; color: var(--muted); }
.eta { margin: 0 16px; border-radius: 26px; height: 170px; box-shadow: var(--sh-2); }
.eta .ph { position: absolute; inset: 0; border-radius: inherit; }
.eta .on-img b { font-family: var(--f-display); font-weight: 300; font-size: 44px; line-height: 1; }

/* ---------------- resorts ---------------- */
.lot { margin: 0 16px; border-radius: 26px; padding: 20px; background: linear-gradient(150deg, #F2E6C4, #E5D3A4); color: #3A2C08; position: relative; overflow: hidden; }
html[data-theme="dark"] .lot { background: linear-gradient(150deg, #3A3120, #2A2317); color: #F2E6C4; }
.lot h4 { font-family: var(--f-display); font-weight: 500; font-size: 19px; }
.lot p { font-size: 13.5px; opacity: .8; margin-top: 4px; }
.cdown { display: flex; gap: 8px; margin: 16px 0; }
.cdown div { flex: 1; background: rgba(255, 255, 255, .55); border-radius: 14px; padding: 8px 4px; text-align: center; }
html[data-theme="dark"] .cdown div { background: rgba(255, 255, 255, .06); }
.cdown b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.cdown small { font-size: 11px; opacity: .75; }
.place { margin: 0 16px 16px; border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 210px; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .3s var(--e-out), background .3s; }
.dots i.on { width: 18px; background: #fff; }
.place .pb { padding: 16px 18px 18px; }
.place h4 { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.place p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.unit { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: .5px solid var(--line-2); margin-top: 12px; }
.unit + .unit { margin-top: 0; }
.unit b { font-family: var(--f-display); font-weight: 500; }

/* ---------------- events, services, notifications, article ---------------- */
.evl { display: block; width: calc(100% - 32px); margin: 0 16px 14px; height: 300px; border-radius: 26px; text-align: start; box-shadow: var(--sh-2); }
.evl .ph { position: absolute; inset: 0; border-radius: inherit; }
.evl h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.evl .meta { font-size: 13.5px; opacity: .88; margin-top: 4px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.info { background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--sh-1); display: flex; gap: 10px; align-items: flex-start; }
.info small { display: block; color: var(--muted); font-size: 12px; }
.info b { font-weight: 500; font-size: 14px; line-height: 1.4; }
.prose { padding: 0 20px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.stepper b { font-family: var(--f-display); font-weight: 500; font-size: 19px; min-width: 22px; text-align: center; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.svc { height: 170px; border-radius: 24px; text-align: start; box-shadow: var(--sh-1); background: var(--surface); }
.svc .ph { position: absolute; inset: 0; border-radius: inherit; }
.svc.plain { display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.svc.plain .row-ic { width: 44px; height: 44px; border-radius: 14px; }
.svc h4 { font-weight: 700; font-size: 16px; }
.svc p { font-size: 12.5px; opacity: .8; }
.svc.wide { grid-column: span 2; height: 110px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }

.doc { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.doc + .doc { border-top: .5px solid var(--line-2); }
.doc .av { width: 58px; height: 58px; border-radius: 18px; }
.doc .slots-r { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.doc .slots-r .chip { height: 32px; font-size: 13px; padding-inline: 12px; }

.route { margin: 0 16px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1); }
.stops { position: relative; margin-top: 14px; }
.stop { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; position: relative; }
.stop i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--line-2); background: var(--surface); flex: none; position: relative; z-index: 1; margin-inline: 8px; }
.stop.past i { box-shadow: inset 0 0 0 7px var(--ok); }
.stop.here b { color: var(--ok); }
.stops::before { content: ''; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 14px; width: 2px; background: var(--line-2); }
.bus-dot { position: absolute; inset-inline-start: 5px; width: 20px; height: 20px; border-radius: 50%; background: #1E1A1B; color: var(--gold); display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 4px rgba(30, 26, 27, .12); transition: top 1.6s var(--e-move); }
html[data-theme="dark"] .bus-dot { background: var(--gold); color: #1E1A1B; }
.bus-dot .ic { width: 12px; height: 12px; }

.nt { display: flex; gap: 12px; padding: 14px 16px; width: 100%; text-align: start; position: relative; align-items: flex-start; }
.nt + .nt { border-top: .5px solid var(--line-2); }
.nt.unread::after { content: ''; position: absolute; top: 22px; inset-inline-end: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.nt .row-body { padding-inline-end: 14px; }
.nt .thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.nt small { font-size: 12px; color: var(--faint); display: block; margin-top: 4px; }

.lightbox { position: absolute; inset: 0; z-index: 85; background: rgba(8, 7, 7, .94); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 80%; object-fit: contain; transform: scale(.92); transition: transform .5s var(--e-expo); }
.lightbox.show img { transform: none; }
.lightbox .ib { position: absolute; top: calc(var(--sat) + 4px); inset-inline-start: 16px; }

.timeline { padding: 6px 20px; }
.uploader { display: flex; gap: 10px; padding: 0 20px 14px; }
.uploader button { width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); overflow: hidden; }
.uploader img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- auth ---------------- */
.splash { position: absolute; inset: 0; background: #F4F0E8; display: grid; place-items: center; z-index: 99; transition: opacity .6s ease, transform .8s var(--e-expo); }
.splash.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.splash .mark { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash img { width: 190px; animation: mark 1.6s var(--e-expo) both; }
.splash .caps { color: #8B837B; letter-spacing: .5em; animation: fadeup 1.2s var(--e-expo) both .5s; }
.splash .ln { width: 0; height: 1px; background: var(--bronze); animation: line 1.3s var(--e-expo) forwards .35s; }
@keyframes mark { from { opacity: 0; transform: scale(.94); filter: blur(6px); letter-spacing: .3em; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
@keyframes line { to { width: 64px; } }

.onb { position: absolute; inset: 0; background: #0D0B0B; color: #fff; overflow: hidden; }
.onb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.onb-slide.on { opacity: 1; }
.onb-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.onb-slide.on img { transform: scale(1); }
.onb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 6, .95) 0%, rgba(8, 6, 6, .55) 38%, rgba(8, 6, 6, 0) 62%), linear-gradient(to bottom, rgba(8, 6, 6, .5), transparent 22%); pointer-events: none; }
.onb-bars { position: absolute; z-index: 3; top: calc(var(--sat) + 8px); inset-inline: 20px; display: flex; gap: 6px; }
.onb-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.onb-bars i b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: right; }
.onb-bars i.done-b b { transform: scaleX(1); }
.onb-bars i.run b { animation: bar 4.2s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.onb-logo { position: absolute; z-index: 3; top: calc(var(--sat) + 30px); left: 50%; transform: translateX(-50%); width: 104px; opacity: .95; }
.onb-copy { position: absolute; z-index: 3; inset-inline: 24px; bottom: calc(var(--sab) + 150px); }
.onb-copy h2 { font-family: var(--f-display); font-weight: 300; font-size: 36px; line-height: 1.25; letter-spacing: -.01em; }
.onb-copy h2 em { font-style: normal; color: var(--gold); font-weight: 400; }
.onb-copy p { font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 12px; line-height: 1.7; max-width: 320px; }
.onb-copy .txt { transition: opacity .5s, transform .6s var(--e-expo); }
.onb-copy .txt.swap { opacity: 0; transform: translateY(12px); }
.onb-acts { position: absolute; z-index: 3; inset-inline: 20px; bottom: calc(var(--sab) + 30px); display: flex; flex-direction: column; gap: 10px; }
.onb-tap { position: absolute; z-index: 2; top: 0; bottom: 200px; width: 50%; }
.onb-tap.prev { inset-inline-start: 0; }
.onb-tap.next { inset-inline-end: 0; }

.login { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--sat) + 20px) 0 calc(var(--sab) + 24px); }
.login .brand { width: 108px; margin: 12px auto 0; }
html[data-theme="dark"] .login .brand { filter: invert(1); }
.login h1 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.3; padding: 44px 20px 0; }
.login > p { color: var(--muted); padding: 8px 20px 26px; font-size: 15px; }
.phone-in { margin: 0 20px; display: flex; gap: 10px; direction: ltr; }
.eta-n { display: flex; align-items: baseline; gap: 8px; }
.eta-n span { font-size: 14px; opacity: .85; }
.phone-in .cc { height: 58px; padding-inline: 14px; border-radius: 16px; display: flex; align-items: center; gap: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-lat); font-weight: 500; direction: ltr; }
.phone-in input { flex: 1; height: 58px; border-radius: 16px; border: 0; padding-inline: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); font-family: var(--f-lat); font-size: 18px; letter-spacing: .06em; direction: ltr; text-align: left; outline: none; min-width: 0; }
.login .grow { flex: 1; }
.login .fine { text-align: center; font-size: 12px; color: var(--muted); padding: 14px 30px 0; line-height: 1.7; }
.otp { display: flex; gap: 8px; padding: 0 20px; direction: ltr; justify-content: center; }
.otp-box { width: 48px; height: 60px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; font-weight: 500; transition: box-shadow .2s, transform .3s var(--e-out); }
.otp-box.cur { box-shadow: inset 0 0 0 1.6px var(--ink); }
.otp-box.fill { animation: pop .35s var(--e-out); }
@keyframes pop { 50% { transform: scale(1.1); } }
.sms-chip { margin: 22px auto 0; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-inline: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--e-expo); }
.sms-chip.show { opacity: 1; transform: none; }
.sms-chip .code { font-weight: 600; font-size: 15px; letter-spacing: .3em; }
.faceid { width: 88px; height: 88px; margin: 6px auto 12px; color: var(--ink); }
.faceid .ic { width: 88px; height: 88px; }

/* ---------------- desktop presentation frame ---------------- */
.stagebg { display: none; }
.device { display: contents; }
@media (min-width: 700px) and (min-height: 640px) {
  body.standalone { background: #0E0C0C; overflow: hidden; }
  body.standalone .stagebg { display: block; position: fixed; inset: 0; background: center / cover no-repeat; filter: blur(38px) brightness(.45) saturate(1.1); transform: scale(1.15); }
  body.standalone .device {
    display: block; position: fixed; left: 50%; top: 50%;
    width: 410px; height: 864px; padding: 10px; border-radius: 64px;
    transform: translate(-50%, -50%) scale(var(--fit, 1));
    background: linear-gradient(145deg, #3B3533, #151212 40%, #2B2624 70%, #0B0909);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 3px #0A0808, 0 60px 120px -30px rgba(0, 0, 0, .85);
  }
  body.standalone .device::before { content: ''; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 122px; height: 36px; border-radius: 20px; background: #050404; z-index: 100; }
  body.standalone .app { position: absolute; inset: 10px; border-radius: 54px; }
  body.standalone .aside {
    display: flex; position: fixed; inset-inline-start: 5vw; top: 50%; transform: translateY(-50%);
    flex-direction: column; gap: 14px; color: #F4F0E8; max-width: 300px;
  }
}
.aside { display: none; }
.aside img.wm { width: 132px; opacity: .92; }
.aside h2 { font-family: var(--f-display); font-weight: 300; font-size: 30px; line-height: 1.3; }
.aside p { color: rgba(244, 240, 232, .65); font-size: 14.5px; line-height: 1.7; }
.aside .qr { width: 132px; height: 132px; background: #fff; padding: 10px; border-radius: 18px; }
.aside a { color: var(--gold); font-size: 14px; }
@media (max-width: 1100px) { body.standalone .aside { display: none; } }

[data-theme-switching] *, [data-theme-switching] *::before, [data-theme-switching] *::after { transition: none !important; }

/* ---------------- English: brand Latin faces, left-to-right motion ---------------- */
html[lang="en"] { --f-ar: 'Montserrat', system-ui, sans-serif; --f-display: 'Montserrat', system-ui, sans-serif; }
html[lang="en"] body { font-size: 14.5px; letter-spacing: -.003em; }
html[lang="en"] .lt h1 { font-weight: 600; font-size: 29px; letter-spacing: -.028em; }
html[lang="en"] .sec-t { font-weight: 600; font-size: 17.5px; letter-spacing: -.018em; }
html[lang="en"] .hello-name, html[lang="en"] .prof h2, html[lang="en"] .done h2, html[lang="en"] .login h1, html[lang="en"] .sheet-h h3, html[lang="en"] .pass-top h1 { font-weight: 600; letter-spacing: -.025em; }
html[lang="en"] .cover h1, html[lang="en"] .evl h3, html[lang="en"] .hero-bk h3, html[lang="en"] .evc h4, html[lang="en"] .tile h4, html[lang="en"] .rest-big h3, html[lang="en"] .banner h4, html[lang="en"] .place h4, html[lang="en"] .lot h4 { font-weight: 600; letter-spacing: -.022em; }
html[lang="en"] .row-t, html[lang="en"] .mi h5, html[lang="en"] .news-row h5 { font-weight: 500; letter-spacing: -.01em; }
html[lang="en"] .onb-copy h2 { font-family: var(--f-serif); font-weight: 400; font-size: 42px; line-height: 1.08; letter-spacing: -.01em; }
html[lang="en"] .onb-copy h2 em { font-style: italic; }
html[lang="en"] .face.front .nm { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
html[lang="en"] .bal .amt, html[lang="en"] .cdn, html[lang="en"] .eta .on-img b, html[lang="en"] .cdown b { font-weight: 300; }
html[lang="en"] .chip, html[lang="en"] .pill, html[lang="en"] .tab { letter-spacing: -.005em; }
html[lang="en"] .tab { font-size: 10px; }
html[dir="ltr"] .scr.enter, html[dir="ltr"] .scr.leave { transform: translateX(100%); }
html[dir="ltr"] .scr.behind { transform: translateX(-26%); }
html[dir="ltr"] .scr.pushed { box-shadow: -14px 0 40px -12px rgba(0, 0, 0, .22); }
html[dir="ltr"] .tgl.on::after { transform: translateX(20px); }
html[dir="ltr"] .kid-row .prog i, html[dir="ltr"] .meter i, html[dir="ltr"] .bar .t i, html[dir="ltr"] .onb-bars i b { transform-origin: left; }
html[dir="ltr"] .banner .ph::after { background: linear-gradient(to right, rgba(10, 30, 38, .72), rgba(10, 30, 38, .1) 75%); }

@media (prefers-reduced-motion: reduce) {
  .scr, .sheet, .tabbar, .pcard, .toast { transition-duration: .01ms !important; }
  .onb-slide img, .hero-bk .ph img { transition: none !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
