/* ============================================================
   Generator Europass — styles
   Palette:  Magenta #E6007E · Ink #0E0E10 · Paper #F6F5F3 · Teal #43C0B9
             Tier Pink (magenta) · Tier Blue #2340D9
   Type:     Saira Semi Condensed (display) · Inter (body) · Space Mono (data)
   Shape:    square — 2–4px radii, no pills (Generator brand)
   ============================================================ */

:root {
  --magenta: #E6007E;
  --magenta-deep: #B00062;
  --magenta-glow: #FF3DA5;
  --ink: #0E0E10;
  --ink-70: #43434a;
  --ink-45: #6f6f78;
  --paper: #f6f5f3;
  --white: #ffffff;
  --teal: #43c0b9;
  --teal-deep: #2a8f8a;
  --soft-pink: #ffe9f4;
  --soft-teal: #e4f6f5;
  --blue: #2340D9;
  --blue-deep: #0B1640;
  --line: #e7e5e1;
  --line-strong: #d8d5cf;
  --green: #0a8a5a;
  --amber-bg: #fff4d6;
  --amber: #8a5d00;
  --red: #c4183c;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 2px 8px rgba(14,14,16,.06);
  --shadow-md: 0 14px 34px rgba(14,14,16,.12);
  --shadow-pass: 0 22px 60px rgba(230,0,126,.30);

  --font-display: 'Saira Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5;
}
body.modal-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.0; margin: 0; text-transform: uppercase; }
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .94; }
.h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.h3 { font-size: 18px; margin: 26px 0 12px; }
.mt0 { margin-top: 0; }
.fw4 { font-weight: 400; text-transform: none; font-family: var(--font-body); font-size: .8em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-45); }
.tiny { font-size: 12px; }
.center { text-align: center; }
p { margin: 0 0 12px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

.section { padding-block: 64px; }
.section--tight { padding-block: 36px; }
.section-title { font-size: clamp(30px, 4.4vw, 50px); }
.section-title--sm { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.lede { font-size: 18px; max-width: 54ch; margin: 14px 0 28px; }

.link-underline { border-bottom: 2px solid var(--magenta); padding-bottom: 1px; font-weight: 600; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  padding: 10px 18px; border-radius: 2px; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--magenta-glow); outline-offset: 3px; }
.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: 0 8px 22px rgba(67,192,185,.4); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ink:hover { background: #26262b; border-color: #26262b; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--on-dark { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--on-dark:hover { background: var(--white); color: var(--ink); }
.btn--lg { padding: 13px 24px; font-size: 14px; }
.btn--sm { padding: 7px 12px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn em { font-style: normal; opacity: .55; font-family: var(--font-mono); font-size: 10px; }

.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.spinner--ink { border-color: rgba(14,14,16,.15); border-top-color: var(--magenta); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading skeletons — shaped like the page being loaded */
.sk { display: block; border-radius: 2px; background: linear-gradient(90deg, #ebe8e3 0%, #f5f3f0 45%, #ebe8e3 90%); background-size: 220% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-panel .sk { background-color: #efece8; }
.sk-result .rrow { grid-template-columns: 48px 1fr 120px 170px; }
@keyframes sk-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* Content arriving after a navigation fades in gently (no slide, no jump) */
.portal-body.enter > * { animation: enter-fade .24s var(--ease) both; }
@keyframes enter-fade { from { opacity: 0; } to { opacity: 1; } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 64px 0; color: var(--ink-45); font-weight: 600; }
.loading .ico { color: var(--magenta); font-size: 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,245,243,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* The Generator logo, recoloured with a CSS mask + currentColor. Width AND
   height are explicit (no aspect-ratio): Safari can collapse an empty,
   aspect-ratio-sized flex item to zero width, which hid the logo on iPhone.
   Mask longhands are used because older WebKit mis-parses the shorthand. */
.gen-mark {
  --mark-size: 30px;
  display: inline-block; flex-shrink: 0; background-color: currentColor;
  width: var(--mark-size); height: calc(var(--mark-size) * 64 / 77);          /* full logo is 77:64 */
  -webkit-mask-image: url(../assets/genlogo.svg); mask-image: url(../assets/genlogo.svg);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.brand .gen-mark { color: var(--magenta); }
.gen-mark--light, .site-footer .brand .gen-mark, .auth-aside .brand .gen-mark { color: var(--white); }
.gen-mark--icon {                                                              /* symbol only, 40:41 */
  height: calc(var(--mark-size) * 41 / 40);
  -webkit-mask-image: url(../assets/genlogo-mark.svg); mask-image: url(../assets/genlogo-mark.svg);
}
.site-header .brand .gen-mark { --mark-size: 43px; }

.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }

.flag-ico { display: inline-block; width: 26px; aspect-ratio: 3 / 2; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.28); line-height: 0; vertical-align: middle; }
.flag-ico svg { width: 100%; height: 100%; display: block; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 14px; border-radius: 2px; font-weight: 600; font-size: 14px; color: var(--ink-70); transition: background .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--soft-pink); color: var(--magenta-deep); }
.nav a.active { background: var(--ink); color: var(--white); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; flex-shrink: 0; align-items: center; justify-content: center; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 2px; font-size: 20px; padding: 0; }
.nav-account { display: none; }
.t-short { display: none; }

.token-chip { display: none; align-items: center; gap: 6px; background: transparent; border: none; border-radius: 2px; padding: 6px 8px; font-weight: 700; font-size: 14px; transition: background .15s var(--ease); }
.token-chip:hover { background: var(--soft-pink); }
.token-chip.show { display: inline-flex; }
.token-chip .tok-coin { display: inline-flex; color: var(--teal); font-size: 19px; }
.token-chip .tok-num { font-family: var(--font-mono); color: var(--magenta-deep); }
.token-chip .tok-u { font-size: 11px; color: var(--ink-45); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Common surfaces ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pad { padding: 28px; }
.pad-sm { padding: 16px 18px; }
.page-head { padding: 48px 0 18px; }
.page-head .section-title { font-size: clamp(32px, 5vw, 54px); }
.page-head p { color: var(--ink-70); font-size: 17px; max-width: 60ch; margin: 14px 0 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-45); }
.empty-state > .ico { font-size: 38px; color: var(--magenta); margin-bottom: 10px; }
.empty-state .btn { margin-top: 10px; }
.empty-inline { display: flex; gap: 10px; align-items: center; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-70); }
.empty-inline .ico { color: var(--magenta); font-size: 20px; }

.mock-note, .notice, .prefill-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-70); background: var(--soft-pink); border-radius: 3px; padding: 12px 14px; margin: 12px 0; }
.mock-note b, .notice b, .prefill-note b { color: var(--magenta-deep); }
.mock-note .ico, .notice .ico, .prefill-note .ico { color: var(--magenta-deep); font-size: 18px; margin-top: 1px; }
.notice { background: var(--soft-teal); }
.notice b { color: var(--teal-deep); }
.notice .ico { color: var(--teal-deep); }

.banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); margin: 0 0 22px; font-size: 14px; border: 1px solid transparent; }
.banner > .ico { font-size: 22px; flex-shrink: 0; }
.banner > div { flex: 1; }
.banner--pink { background: var(--soft-pink); border-color: #f7c5df; }
.banner--pink > .ico { color: var(--magenta); }
.banner--warn { background: var(--amber-bg); border-color: #f1dc9e; color: #4a3600; }
.banner--warn > .ico { color: var(--amber); }
.banner--grey { background: #ececea; border-color: var(--line-strong); }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 2px; background: #efeeeb; color: var(--ink-70); white-space: nowrap; }
.tag--warn { background: var(--amber-bg); color: var(--amber); }
.tag--bad { background: #fde3e8; color: var(--red); }

.status-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; background: #efeeeb; color: var(--ink-70); }
.status-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip.st-active { background: #dcf3ec; color: var(--green); }
.status-chip.st-purchased { background: var(--soft-pink); color: var(--magenta-deep); }
.status-chip.st-grace { background: var(--amber-bg); color: var(--amber); }
.status-chip.st-expired { background: #ececea; color: var(--ink-45); }

.tier-badge { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; color: var(--white); vertical-align: middle; }
.tier-badge.tier-pink { background: var(--magenta); }
.tier-badge.tier-blue { background: var(--blue); }

.pts { font-family: var(--font-mono); font-weight: 700; color: var(--magenta-deep); white-space: nowrap; }
.pts .pts-u { font-family: var(--font-body); font-weight: 600; font-size: .62em; color: var(--ink-45); margin-left: 3px; text-transform: uppercase; letter-spacing: .06em; }
.pts.lg { font-size: 24px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: 3px;
  font-family: inherit; font-size: 15px; background: var(--white); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:disabled { background: #f1f0ee; color: var(--ink-45); }
/* custom chevron with breathing room (the native arrow sits on the border) */
.field select { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E10' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink); }
.field .hint { font-size: 12px; color: var(--ink-45); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--inline { display: flex; align-items: center; gap: 10px; margin: 0; }
.field--inline label { margin: 0; }
.field--inline select { width: auto; min-width: 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-70); margin: 14px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--magenta); margin-top: 1px; flex-shrink: 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; align-items: center; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-45); font-family: var(--font-mono); margin-bottom: 14px; }
.crumbs button { background: none; border: none; color: var(--ink-45); padding: 0; font: inherit; }
.crumbs button:hover { color: var(--magenta-deep); }
.crumbs .sep { opacity: .5; }

.stepper { display: flex; align-items: center; gap: 10px; margin: 6px 0 30px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 10px; }
.stepper .bullet { width: 28px; height: 28px; border-radius: 2px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 700; border: 2px solid var(--line-strong); color: var(--ink-45); background: var(--white); }
.stepper .step.done .bullet { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stepper .step.current .bullet { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.stepper .lbl { font-size: 13px; font-weight: 600; color: var(--ink-45); }
.stepper .step.current .lbl, .stepper .step.done .lbl { color: var(--ink); }
.stepper .bar { flex: 1; height: 2px; background: var(--line-strong); min-width: 20px; }

/* segmented control */
.seg { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; }
.seg-btn { flex: 1; border: none; background: var(--white); padding: 8px 6px; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; color: var(--ink); }
.seg-btn + .seg-btn { border-left: 2px solid var(--ink); }
.seg-btn small { font-family: var(--font-mono); font-size: 10.5px; color: var(--magenta-deep); font-weight: 700; }
.seg-btn.on { background: var(--ink); color: var(--white); }
.seg-btn.on small { color: var(--teal); }
.seg--lg .seg-btn { padding: 12px 8px; font-size: 15px; }
.seg--xs .seg-btn { padding: 6px 8px; font-size: 11.5px; }

/* choice cards */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-row--3 { grid-template-columns: repeat(3, 1fr); }
.choice {
  border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 18px; background: var(--white); text-align: left;
  cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit;
}
.choice:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.choice.selected { border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink); }
.choice:disabled { opacity: .45; cursor: not-allowed; }
.choice .c-ico { font-size: 24px; color: var(--magenta); }
.choice h4 { font-size: 18px; }
.choice p { margin: 0; font-size: 13.5px; color: var(--ink-70); }
.choice--pass .cp-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 14px; }
.choice--pass .cp-pts { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--magenta-deep); }

/* ============================================================
   HERO / MARKETING
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(230,0,126,.55), transparent 60%), radial-gradient(50% 60% at 10% 90%, rgba(35,64,217,.4), transparent 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(52px, 9vw, 116px); }
.hero h1 .em { color: var(--magenta-glow); }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.8); max-width: 46ch; margin: 24px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; }
.hero-stats .l { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 4px; }
.hero-visual { display: flex; justify-content: center; }

.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Steps: simple rule above each, with a large magenta numeral */
.how-step { padding-top: 22px; border-top: 3px solid var(--ink); }
.how-step .num { font-family: var(--font-display); font-weight: 800; font-size: 88px; line-height: .8; color: var(--magenta); margin: 0 0 16px; }
.how-step h3 { font-size: 22px; margin: 0 0 8px; }
.how-step p { color: var(--ink-70); margin: 0; font-size: 15px; }

/* pass offers */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer-band { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: var(--white); }
.offer.tier-pink .offer-band { background: linear-gradient(120deg, var(--magenta), var(--magenta-deep)); }
.offer.tier-blue .offer-band { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); }
.offer-band .tier-badge { background: rgba(255,255,255,.18); }
.offer-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.offer-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.offer-points .big { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: .9; }
.offer-points .u { font-family: var(--font-mono); font-size: 13px; margin-left: 6px; color: var(--ink-45); text-transform: uppercase; }
.offer-price { font-size: 15px; }
.offer-price b { font-size: 20px; font-family: var(--font-display); }
.offer-price s { color: var(--ink-45); }
.offer-lbl { font-size: 12px; font-weight: 600; color: var(--ink-45); text-transform: uppercase; letter-spacing: .06em; }
.offer-break { list-style: none; margin: 0; padding: 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.offer-break li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.offer-break li span:last-child { font-family: var(--font-mono); font-weight: 700; }
.offer-break em { font-style: normal; font-family: var(--font-mono); font-size: 10px; background: var(--amber-bg); color: var(--amber); padding: 1px 4px; }
.offer-blurb { color: var(--ink-70); font-size: 14px; margin: 0; flex: 1; }
.offer-cta { display: grid; gap: 8px; }

/* savings */
.band-dark { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.band-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgba(230,0,126,.35), transparent 60%); pointer-events: none; }
.band-dark .wrap { position: relative; }
.band-dark .lede { color: rgba(255,255,255,.75); }
.band-dark .section-title + #savingsHost { margin-top: 26px; }
.savings { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.savings-ctrl .field label { color: rgba(255,255,255,.75); }
.savings-ctrl select { background-color: #1c1c20; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); color: var(--white); border-color: #3a3a40; }
.sv-bar { display: flex; height: 54px; border-radius: 2px; overflow: hidden; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.sv-bar span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.seg-pay { background: #2a2a30; }
.seg-bonus { background: var(--magenta); }
.seg-rate { background: var(--teal); color: var(--ink); }
.sv-rows { display: grid; gap: 8px; }
.sv-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.85); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sv-row b { font-family: var(--font-mono); }
.sv-row.tbc { opacity: .45; }
.sw { width: 14px; height: 14px; border-radius: 2px; border: 1px dashed rgba(255,255,255,.4); }
.sw-pay { background: #2a2a30; border: none; } .sw-bonus { background: var(--magenta); border: none; } .sw-rate { background: var(--teal); border: none; }
.sv-total { display: flex; gap: 40px; margin: 22px 0 12px; flex-wrap: wrap; }
.sv-total .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); font-family: var(--font-mono); }
.sv-total .v { font-family: var(--font-display); font-weight: 800; font-size: 38px; }
.sv-total .v.accent { color: var(--teal); }
.sv-total .v small { font-size: 18px; opacity: .8; }
.band-dark .muted { color: rgba(255,255,255,.5); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.value-card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.value-card .vc-ico { font-size: 30px; color: var(--magenta); }
.value-card.dark .vc-ico { color: var(--teal); }
.value-card h3 { font-size: 26px; }
.value-card p { color: var(--ink-70); margin: 0; }
.value-card.dark p { color: rgba(255,255,255,.72); }
.value-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-70); }
.value-card.dark ul { color: rgba(255,255,255,.82); }
.value-card li { margin-bottom: 6px; }
.vc-cta { margin-top: auto; padding-top: 14px; }

.city-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.city-pill { padding: 16px 14px; border-radius: 2px; color: var(--white); display: flex; flex-direction: column; min-height: 110px; justify-content: flex-end; transition: transform .2s var(--ease); }
.city-pill:hover { transform: translateY(-3px); }
.city-pill span { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; }
.city-pill small { opacity: .8; font-size: 12px; }

.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-weight: 700; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { color: var(--magenta); font-size: 18px; transition: transform .2s var(--ease); }
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-item p { color: var(--ink-70); max-width: 70ch; padding-bottom: 18px; margin: 0; }
.terms { padding-left: 20px; color: var(--ink-70); }
.terms li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.grid-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid-table th, .grid-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.grid-table thead th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-45); background: #faf9f7; }
.grid-table tbody th { font-weight: 700; white-space: nowrap; }
.grid-table td b { font-family: var(--font-mono); font-size: 17px; color: var(--magenta-deep); }

.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 10px; }
.tier-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--magenta); border-radius: var(--radius); padding: 20px; }
.tier-card.tier-blue { border-top-color: var(--blue); }
.tc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.tier-card ul, .ticks { margin: 0; padding-left: 18px; color: var(--ink-70); }
.tier-card li, .ticks li { margin-bottom: 5px; }

/* hostel cards */
.explore-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 40px; }
.prop-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prop-poster { position: relative; aspect-ratio: 16/10; display: flex; align-items: flex-end; padding: 16px; color: var(--white); overflow: hidden; }
.prop-poster .watermark { display: none; }
.prop-poster .p-city, .city-pill span, .city-pill small, .co-swatch span, .prop-hero h1, .prop-hero .ph-area { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.prop-poster .flag { position: absolute; top: 14px; left: 14px; }
.prop-poster .rate-badge { position: absolute; top: 12px; right: 12px; background: rgba(14,14,16,.55); border-radius: 2px; padding: 5px 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.prop-poster .p-city { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 30px; text-transform: uppercase; }
.prop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-area { font-size: 12.5px; color: var(--ink-45); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.p-blurb { font-size: 14px; color: var(--ink-70); flex: 1; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-tags:empty { display: none; }
.prop-foot { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-70); }
.prop-foot b { font-family: var(--font-mono); color: var(--magenta-deep); font-size: 15px; }

/* ============================================================
   CHECKOUT (purchase)
   ============================================================ */
.buy-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 30px; align-items: start; padding-bottom: 40px; }
.summary { position: sticky; top: 92px; }
.summary .sum-body { padding: 24px; }
.summary h3 { font-size: 20px; margin-bottom: 14px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sum-line .k { color: var(--ink-70); }
.sum-line .v { font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.sum-total .k { font-weight: 700; }
.sum-total .v { font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.sum-tokens { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); border-radius: 3px; padding: 14px; margin: 16px 0 6px; font-size: 14px; }
.st-coin { color: var(--teal); font-size: 28px; display: inline-flex; }
.st-num { font-family: var(--font-mono); color: var(--teal); font-size: 20px; font-weight: 700; }
.st-sub { font-size: 12px; color: rgba(255,255,255,.6); }

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm { text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 0; }
.confirm--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; text-align: left; align-items: center; }
.tick { width: 76px; height: 76px; border-radius: 2px; background: var(--magenta); color: var(--white); display: grid; place-items: center; font-size: 38px; margin: 0 auto 22px; box-shadow: var(--shadow-pass); animation: pop-in .5s var(--ease); }
.confirm--split .tick, .booked-hero .tick { margin: 0 0 22px; }
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.confirm h1 { font-size: clamp(38px, 6vw, 60px); }
.c-sub { color: var(--ink-70); font-size: 18px; margin: 14px 0 26px; }
.confirm-card { text-align: left; padding: 20px 24px; margin: 0 auto 24px; max-width: 480px; }
.confirm--split .confirm-card { margin-left: 0; }
.cc-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.cc-row:last-child { border-bottom: none; }
.cc-row .k { color: var(--ink-70); }
.cc-row .v { font-weight: 600; }
.cc-row .v.mono { color: var(--magenta-deep); }
.confirm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.confirm-cta--left { justify-content: flex-start; }
.gift-preview { background: linear-gradient(135deg, var(--magenta), var(--magenta-deep)); color: var(--white); border-radius: var(--radius); padding: 26px; text-align: left; margin: 0 auto 26px; max-width: 480px; }
.gift-preview--plain { margin: 22px 0 0; }
.gp-to { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.gp-msg { font-size: 18px; margin: 10px 0; font-style: italic; }
.gp-from { font-size: 14px; opacity: .9; }

/* ============================================================
   LOGIN / CLAIM
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-aside { background: var(--ink); color: var(--white); position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 20%, rgba(230,0,126,.55), transparent 60%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { font-size: 42px; margin-bottom: 12px; }
.auth-aside p { color: rgba(255,255,255,.75); max-width: 40ch; }
.muted-on-dark { color: rgba(255,255,255,.6); font-size: 14px; }
.auth-pass { max-width: 260px; }
.auth-form { padding: 56px; display: flex; align-items: center; }
.auth-form .inner { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-form h2 { font-size: 36px; margin-bottom: 6px; }
.auth-form .sub { color: var(--ink-70); margin-bottom: 22px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-45); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   WALLET PASS — two-sided, PP10/PP11
   ============================================================ */
.wpass-wrap { width: 100%; max-width: 340px; margin: 0 auto; }
.wpass { perspective: 1400px; cursor: pointer; aspect-ratio: 0.66; width: 100%; }
.wpass-inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.wpass.flipped .wpass-inner { transform: rotateY(180deg); }
.wpass-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; overflow: hidden; color: var(--white); padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.wpass-back { transform: rotateY(180deg); }
.wpass.tier-pink .wpass-face { background: linear-gradient(160deg, var(--magenta) 0%, var(--magenta-deep) 62%, #5e0039 100%); box-shadow: 0 22px 60px rgba(230,0,126,.32); }
.wpass.tier-blue .wpass-face { background: linear-gradient(160deg, #3557ff 0%, var(--blue) 45%, var(--blue-deep) 100%); box-shadow: 0 22px 60px rgba(35,64,217,.35); }
.wpass-face::after { content: ''; position: absolute; top: -40%; left: -30%; width: 70%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); transform: rotate(18deg); pointer-events: none; }
.wp-head { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.wp-tier { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 2px; }
.wp-title { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: .9; letter-spacing: .02em; }
.wp-title.sm { font-size: 22px; }
.wp-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.wp-big { font-family: var(--font-mono); font-weight: 700; font-size: 48px; line-height: 1; margin: 2px 0; }
.wp-s { font-size: 12px; opacity: .8; }
.wp-v { font-weight: 700; font-size: 14px; }
.wp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-qr { margin-top: auto; background: var(--white); border-radius: 6px; padding: 12px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.wp-qr .qr { width: 74px; height: 74px; flex-shrink: 0; }
.wp-qr .qr svg { width: 100%; height: 100%; display: block; }
.wp-qr .qr svg rect, .wp-qr .qr svg path { fill: var(--ink); }
.wp-qr .qr svg rect[fill="#ffffff"], .wp-qr .qr svg rect[fill="white"] { fill: var(--white); }
.wp-id { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.wp-stamp { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 3px solid var(--white); padding: 6px 14px; font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .1em; background: rgba(14,14,16,.55); z-index: 2; white-space: nowrap; }
.wp-stamp--soft { background: rgba(14,14,16,.35); font-size: 13px; top: 74px; left: auto; right: 16px; transform: rotate(-6deg); padding: 4px 9px; border-width: 2px; }
.wpass.st-expired .wpass-front > *:not(.wp-stamp) { filter: grayscale(.85); opacity: .7; }
.wp-stay { border-top: 1px solid rgba(255,255,255,.22); padding-top: 10px; position: relative; z-index: 1; }
.wp-stay .wp-v { font-size: 16px; font-family: var(--font-display); text-transform: uppercase; margin-top: 2px; }
.wp-stay .wp-s { margin-top: 2px; }
.wp-stay.empty .wp-v { opacity: .5; }
.wp-foot { margin-top: auto; font-family: var(--font-mono); font-size: 10.5px; opacity: .7; line-height: 1.5; }
.wpass-ctrl { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.floaty .wpass { transform: rotate(-4deg); transition: transform .4s var(--ease); }
.floaty .wpass:hover { transform: rotate(-2deg) translateY(-6px); }
.hero-visual .wpass-wrap { max-width: 320px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(14,14,16,.55); backdrop-filter: blur(2px); animation: fade .2s; }
.modal { position: relative; background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: modal-in .3s var(--ease); }
.modal--wide { max-width: 720px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-x { position: absolute; top: 12px; right: 12px; border: none; background: none; font-size: 20px; color: var(--ink-45); padding: 6px; }
.modal h3 { font-size: 26px; margin-bottom: 8px; }
.progress .steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.progress .steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-70); }
.st-ico { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; border: 2px solid var(--line-strong); position: relative; }
.steps li.running .st-ico { border-color: rgba(230,0,126,.2); border-top-color: var(--magenta); animation: spin .7s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done .st-ico { background: var(--green); border-color: var(--green); }
.steps li.done .st-ico::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.fail { color: var(--red); font-weight: 600; }
.steps li.fail .st-ico { background: var(--red); border-color: var(--red); }
.steps li.fail .st-ico::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 12px; font-weight: 800; }
.progress .banner { margin: 6px 0 14px; }
.pay-modal .muted { margin-bottom: 18px; }
.wallet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.wallet-btn { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border: none; border-radius: 8px; padding: 10px 14px; text-align: left; }
.wallet-btn .ico { font-size: 26px; }
.wallet-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.1; }
.wallet-btn small { font-weight: 400; font-size: 11px; opacity: .8; }

/* ============================================================
   PORTAL
   ============================================================ */
.portal-head { background: var(--white); border-bottom: 1px solid var(--line); }
.ph-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 30px 0 18px; flex-wrap: wrap; }
.ph-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 46px); }
.ph-sub { margin: 6px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-45); letter-spacing: .04em; }
.ph-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ptabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--ink-70); border-bottom: 3px solid transparent; white-space: nowrap; }
.ptab .ico { color: var(--ink-45); }
.ptab:hover { color: var(--magenta-deep); }
.ptab.on { color: var(--ink); border-bottom-color: var(--magenta); }
.ptab.on .ico { color: var(--magenta); }
.portal-body { padding-top: 28px; padding-bottom: 60px; }

.ov-grid { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.ov-pass { position: sticky; top: 92px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row--4 { grid-template-columns: repeat(4, 1fr); }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 16px; }
.stat-box .n { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.stat-box .l { font-size: 12px; color: var(--ink-45); margin-top: 4px; }
.validity { margin: 18px 0 4px; }
.v-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-70); margin-bottom: 6px; }
.v-bar { height: 8px; background: #e9e7e3; border-radius: 2px; overflow: hidden; }
.v-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--magenta)); }
.ov-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.action { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 2px; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.action:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--magenta); }
.action .ico { grid-row: span 2; font-size: 24px; color: var(--magenta); }
.action b { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; line-height: 1; }
.action span { font-size: 12px; color: var(--ink-45); }
.action.disabled { opacity: .4; pointer-events: none; }
.block { margin-top: 34px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 28px 0 12px; flex-wrap: wrap; }
.block-head .h3, .block-head .h2 { margin: 0; }
.points-eq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.points-eq > div { display: flex; flex-direction: column; }
.points-eq .k { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-45); }
.points-eq b { font-family: var(--font-mono); font-size: 20px; }
.points-eq .op { color: var(--ink-45); font-size: 20px; }
.points-eq .eq b { color: var(--magenta-deep); }

.stay-list { display: grid; gap: 12px; }
.stay-card { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.stay-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.sc-thumb { width: 64px; height: 64px; border-radius: 2px; flex-shrink: 0; }
.sc-main { flex: 1; min-width: 0; }
.sc-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sc-city { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; }
.sc-meta { font-size: 13px; color: var(--ink-70); margin-top: 2px; }
.sc-policy { font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.sc-policy .ok { color: var(--green); }
.sc-policy .warn { color: var(--amber); }
.sc-pts { font-family: var(--font-mono); font-weight: 700; color: var(--magenta-deep); font-size: 18px; text-align: right; white-space: nowrap; }
.sc-pts small { display: block; font-size: 10px; color: var(--ink-45); text-transform: uppercase; letter-spacing: .1em; }
.stay-card.ph-cancelled { opacity: .7; }
.phase-chip { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 2px; background: #efeeeb; color: var(--ink-70); }
.phase-chip.ph-upcoming { background: var(--soft-teal); color: var(--teal-deep); }
.phase-chip.ph-current { background: var(--magenta); color: var(--white); }
.phase-chip.ph-cancelled { background: #fde3e8; color: var(--red); }
.subtabs { display: flex; gap: 8px; margin-bottom: 18px; }
.subtab { padding: 8px 14px; border: 2px solid var(--line-strong); border-radius: 2px; font-weight: 600; font-size: 14px; color: var(--ink-70); }
.subtab span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); margin-left: 4px; }
.subtab.on { border-color: var(--ink); background: var(--ink); color: var(--white); }
.subtab.on span { color: var(--teal); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.stack { display: grid; gap: 16px; }

/* search */
.searchbar { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr .6fr .6fr auto; gap: 12px; align-items: end; padding: 18px; }
.searchbar .field { margin: 0; }
.search-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-70); margin: 12px 2px 0; }
.search-note .ico { color: var(--magenta); margin-top: 3px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 32px 0 14px; }
.results-head .h2 { margin: 0; }
.hotel-result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.hr-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hr-swatch { width: 76px; height: 54px; flex-shrink: 0; border-radius: 2px; }
.hr-title { flex: 1; min-width: 220px; }
.hr-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hr-sub { font-size: 13px; color: var(--ink-70); }
.fx-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-45); }
.hr-block { padding: 14px 16px; font-size: 14px; color: var(--ink-70); background: #faf9f7; border-bottom: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: 48px 1fr 120px 170px; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: none; }
.rrow.na { opacity: .5; }
.r-ico { width: 48px; height: 48px; border-radius: 2px; background: var(--soft-pink); display: grid; place-items: center; font-size: 22px; color: var(--magenta); }
.r-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.r-desc { font-size: 13px; color: var(--ink-70); }
.r-local { font-size: 12px; color: var(--ink-45); margin-top: 2px; font-family: var(--font-mono); }
.r-compare { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--ink-45); }
.r-compare s { font-size: 15px; font-weight: 600; }
.r-compare .save { background: var(--soft-teal); color: var(--teal-deep); font-size: 11.5px; padding: 2px 6px; border-radius: 2px; margin-top: 3px; }
.r-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.r-pn { font-size: 12px; color: var(--ink-45); }
.soldout-tag { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); text-transform: uppercase; letter-spacing: .08em; }

/* booking checkout */
.checkout-grid, .detail-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 30px; align-items: start; }
.co-stay { display: flex; gap: 0; overflow: hidden; }
.co-swatch { width: 150px; flex-shrink: 0; display: flex; align-items: flex-end; padding: 14px; color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.co-info { padding: 20px; }
.co-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 14px; }
.co-facts .ico { color: var(--magenta); margin-right: 6px; }
.extras { display: grid; gap: 10px; }
.extra { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--white); border: 2px solid var(--line-strong); border-radius: 3px; cursor: pointer; transition: border-color .15s var(--ease); }
.extra input { width: 18px; height: 18px; accent-color: var(--magenta); }
.extra.on { border-color: var(--magenta); box-shadow: 0 0 0 3px var(--soft-pink); }
.ex-ico { font-size: 22px; color: var(--magenta); }
.ex-main { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-70); }
.ex-main b { color: var(--ink); font-size: 15px; }
.ex-pts { font-family: var(--font-mono); font-weight: 700; color: var(--magenta-deep); }
.lead-guest { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.policy-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-70); }
.policy-list li > .ico { color: var(--magenta); font-size: 18px; margin-top: 2px; }
.policy-list b { color: var(--ink); }

.book-rail { position: sticky; top: 92px; padding: 24px; }
.book-rail h3 { font-size: 20px; margin-bottom: 12px; }
.br-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.br-line .k { color: var(--ink-70); }
.br-line.sub { font-size: 12px; padding-top: 0; color: var(--ink-45); }
.br-line.sub .k { color: var(--ink-45); }
.br-line.disc span:last-child { color: var(--green); font-weight: 700; }
.br-line.strong { font-weight: 700; }
.br-line.strong .k { color: var(--ink); }
.br-cost { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; padding: 16px; background: var(--ink); color: var(--white); border-radius: 3px; }
.br-cost .lbl { font-size: 13px; color: rgba(255,255,255,.7); }
.br-cost .amt { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--teal); }
.br-cost .amt small { font-size: 14px; opacity: .8; }
.br-compare { font-size: 13px; color: var(--ink-70); text-align: center; margin-bottom: 8px; }
.br-balance { font-size: 13px; color: var(--ink-70); text-align: center; margin-bottom: 4px; }
.br-balance b { color: var(--magenta-deep); font-family: var(--font-mono); }
.br-balance b.neg { color: var(--red); }
.mobile-cta { display: none; }
.topup-inline { background: var(--amber-bg); border-radius: 3px; padding: 12px; margin: 12px 0; }
.ti-head { display: flex; gap: 8px; font-size: 13px; color: #4a3600; margin-bottom: 10px; }
.ti-head .ico { color: var(--amber); margin-top: 2px; }
.bucket-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bucket-row--lg { gap: 14px; }
.bucket { border: 2px solid var(--ink); background: var(--white); border-radius: 2px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.bucket:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--magenta); }
.bucket:disabled { opacity: .4; cursor: not-allowed; }
.bucket b { font-family: var(--font-mono); font-size: 18px; color: var(--magenta-deep); }
.bucket span { font-size: 13px; font-weight: 600; }
.bucket em { font-style: normal; font-size: 11px; color: var(--teal-deep); font-weight: 600; text-align: center; }
.bucket.dim { opacity: .55; }
.bucket-row--lg .bucket { padding: 20px 12px; }
.bucket-row--lg .bucket b { font-size: 26px; }

/* stay detail */
.booked-hero { display: flex; gap: 22px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--magenta); padding: 22px; border-radius: var(--radius); margin-bottom: 22px; }
.booked-hero .tick { margin: 0; width: 64px; height: 64px; font-size: 30px; flex-shrink: 0; }
.booked-hero h1 { font-size: 38px; }
.booked-hero p { margin: 6px 0 0; color: var(--ink-70); }
.prop-hero { border-radius: var(--radius-lg); overflow: hidden; position: relative; color: var(--white); min-height: 220px; display: flex; align-items: flex-end; padding: 26px; margin-bottom: 16px; }
.prop-hero .watermark { opacity: .55; position: absolute; right: -10px; bottom: -26px; font-family: var(--font-display); font-weight: 800; font-size: 170px; color: rgba(255,255,255,.12); text-transform: uppercase; line-height: .7; }
.ph-inner { position: relative; z-index: 1; }
.prop-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 8px; }
.ph-area { font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin-top: 6px; opacity: .9; }
.facts { display: grid; gap: 0; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.fact:last-child { border-bottom: none; }
.fact .k { color: var(--ink-45); flex-shrink: 0; }
.fact .v { font-weight: 600; text-align: right; }
.cancel-box { font-size: 13.5px; padding: 12px; border-radius: 3px; background: #f1f0ee; margin: 10px 0; color: var(--ink-70); }
.cancel-box.ok { background: #dcf3ec; color: #0b5b3d; }
.cancel-box.late { background: var(--amber-bg); color: #4a3600; }
.demo-inline { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.demo-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--teal); padding: 2px 6px; border-radius: 2px; }

/* points page */
.points-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.big-balance .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); }
.big-balance .v { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--magenta-deep); }
.big-balance .v small { font-size: 20px; color: var(--ink-45); margin-left: 6px; }
.bb-valid { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ledger thead th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-45); background: #faf9f7; }
.ledger .num { text-align: right; font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.ledger .pos { color: var(--green); }
.ledger .neg { color: var(--magenta-deep); }
.ledger .ref { font-size: 12px; }
.ledger tr.reversed td { color: var(--ink-45); }
.ledger tr.reversed .num { text-decoration: line-through; }
.lt-chip { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 2px; background: #efeeeb; }
.lt-debit .lt-chip { background: var(--soft-pink); color: var(--magenta-deep); }
.lt-refund .lt-chip, .lt-reversal .lt-chip { background: #dcf3ec; color: var(--green); }
.lt-bonus .lt-chip, .lt-topup .lt-chip, .lt-issue .lt-chip { background: var(--soft-teal); color: var(--teal-deep); }
.lt-forfeit .lt-chip { background: var(--amber-bg); color: var(--amber); }

/* email preview (demo panel) */
.mail-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.mail-from { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mail-from .gen-mark { color: var(--magenta); --mark-size: 36px; }
.mail-body { font-size: 15px; color: var(--ink-70); }
.mail-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
.mail-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mail-table td:first-child { color: var(--ink-45); width: 36%; }
.mail-table td:last-child { color: var(--ink); font-weight: 600; }
.tier-panel { border-top: 5px solid var(--magenta); }
.tier-panel.tier-blue { border-top-color: var(--blue); }

/* ============================================================
   DEMO PANEL
   ============================================================ */
.demo-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 260; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); border: 2px solid var(--ink); padding: 9px 14px; border-radius: 2px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; box-shadow: var(--shadow-md); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.demo-dot.ping { animation: ping .6s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67,192,185,.8); } 100% { box-shadow: 0 0 0 10px rgba(67,192,185,0); } }
.demo-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 92vw; z-index: 270; background: #121215; color: var(--white); transform: translateX(-105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
body.demo-open .demo-panel { transform: none; }
body.demo-open .demo-toggle { left: 398px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #2a2a30; font-family: var(--font-display); text-transform: uppercase; font-size: 18px; }
.dp-x { background: none; border: none; color: var(--white); font-size: 18px; }
.dp-body { overflow: auto; flex: 1; }
.dp-sec { padding: 14px 18px; border-bottom: 1px solid #2a2a30; display: grid; gap: 8px; }
.dp-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: flex; justify-content: space-between; }
.dp-lbl .linkbtn { color: #8a8a94; text-transform: none; letter-spacing: 0; }
.dp-scn { text-align: left; background: #1c1c21; border: 1px solid #2e2e35; color: var(--white); border-radius: 2px; padding: 9px 11px; display: flex; flex-direction: column; font: inherit; }
.dp-scn:hover { border-color: var(--magenta); }
.dp-scn b { font-size: 13.5px; }
.dp-scn span { font-size: 11.5px; color: #9a9aa4; }
.dp-toggle { display: grid; gap: 6px; font-size: 13px; }
.dp-toggle em, .dp-check em, .dp-sec .btn em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: #8a8a94; }
.dp-toggle .seg { border-color: #3a3a42; }
.dp-toggle .seg-btn { background: #1c1c21; color: #cfcfd6; }
.dp-toggle .seg-btn + .seg-btn { border-left-color: #3a3a42; }
.dp-toggle .seg-btn.on { background: var(--magenta); color: var(--white); }
.dp-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.dp-check input { accent-color: var(--magenta); }
.dp-sec .btn { background: #1c1c21; border-color: #3a3a42; color: var(--white); justify-content: space-between; }
.dp-sec .btn:hover { border-color: var(--teal); }
.dp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 11.5px; max-height: 340px; overflow: auto; }
.dp-log li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "sys ep time" "sys sum sum"; column-gap: 8px; padding: 6px 8px; background: #1a1a1e; border-left: 3px solid #555; border-radius: 2px; }
.lg-sys { grid-area: sys; font-family: var(--font-mono); font-weight: 700; font-size: 10px; text-transform: uppercase; }
.lg-ep { grid-area: ep; font-family: var(--font-mono); color: #e7e7ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-sum { grid-area: sum; color: #9a9aa4; }
.dp-log time { grid-area: time; color: #6a6a74; font-family: var(--font-mono); font-size: 10px; }
.lg-glu { border-left-color: var(--magenta) !important; } .lg-glu .lg-sys { color: var(--magenta-glow); }
.lg-mews { border-left-color: var(--teal) !important; } .lg-mews .lg-sys { color: var(--teal); }
.lg-umi { border-left-color: #8ea2ff !important; } .lg-umi .lg-sys { color: #8ea2ff; }
.lg-demo .lg-sys { color: #aaa; }
.lg-fail { background: #2a1218 !important; }
.dp-mails { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.dp-mail { text-align: left; background: #1c1c21; border: 1px solid #2e2e35; color: var(--white); border-radius: 2px; padding: 8px 10px; display: flex; flex-direction: column; font: inherit; }
.dp-mail:hover { border-color: var(--teal); }
.dp-mail b { font-size: 12.5px; font-weight: 600; }
.dp-mail span { font-size: 11px; color: #9a9aa4; }
.dp-empty { font-size: 12px; color: #9a9aa4; margin: 0; }
.mail-preview h3 { font-size: 24px; margin: 4px 0 0; }
.lg-fail .lg-sum { color: #ff8da5; }

/* ============================================================
   TOAST + FOOTER
   ============================================================ */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--white); padding: 13px 20px; border-radius: 2px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; animation: toast-in .3s var(--ease); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(10px); }
.toast .t-tok { font-family: var(--font-mono); color: var(--teal); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0 70px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 18px; font-size: 14px; }
.foot-nav a:hover { color: var(--white); }
.disclaimer { font-size: 12px; max-width: 46ch; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .searchbar { grid-template-columns: 1fr 1fr 1fr; }
  .searchbar .btn { grid-column: span 3; }
  .ov-grid { grid-template-columns: 1fr; }
  .ov-pass { position: static; }
  .rrow { grid-template-columns: 48px 1fr 150px; grid-template-areas: 'ico main price' 'ico compare price'; row-gap: 6px; }
  .rrow .r-ico { grid-area: ico; } .rrow .r-main { grid-area: main; } .rrow .r-compare { grid-area: compare; } .rrow .r-price { grid-area: price; }
  .rrow .r-compare { flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
  .rrow .r-compare s { font-size: 13px; }
  .rrow .r-compare .save { margin-top: 0; }
  .sk-result .rrow { grid-template-areas: none; }
}
@media (max-width: 900px) {
  .hero .wrap, .confirm--split { grid-template-columns: 1fr; }
  .offer-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid--4 { grid-template-columns: 1fr 1fr; }
  .buy-grid, .checkout-grid, .detail-grid, .two-col, .points-top, .savings, .tier-grid { grid-template-columns: 1fr; }
  .summary, .book-rail { position: static; }
  .stat-row--4 { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 460px) {
  .brand-word { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .offer-grid, .card-grid, .how-grid, .how-grid--4 { grid-template-columns: 1fr; }
  .choice-row, .choice-row--3, .field-row, .ov-actions { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .field:nth-child(1), .searchbar .field:nth-child(2), .searchbar .field:nth-child(3) { grid-column: span 2; }
  .searchbar .btn { grid-column: span 2; }
  .rrow { grid-template-columns: 40px 1fr; grid-template-areas: 'ico main' 'compare compare' 'price price'; column-gap: 12px; }
  .rrow .r-price { flex-direction: row; justify-content: space-between; align-items: center; }
  .rrow .r-pn { display: none; }
  .rrow.na { grid-template-areas: 'ico main'; }
  .rrow.na .r-compare, .rrow.na .r-price { display: none; }
  .r-ico { width: 40px; height: 40px; }
  .co-stay { flex-direction: column; }
  .co-swatch { width: auto; height: 80px; }
  .auth-form { padding: 32px 16px; }
  .pad { padding: 20px; }
  .section { padding-block: 44px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 56px; }
  .hero-stats { gap: 22px; }
  .bucket-row--lg { grid-template-columns: 1fr; }
  .sc-thumb { width: 48px; height: 48px; font-size: 15px; }
  .header-right .btn--ghost { display: none; }
  .ledger th:nth-child(4), .ledger td:nth-child(4) { display: none; }
  body.demo-open .demo-toggle { left: auto; right: 18px; }
  .wp-big { font-size: 40px; }
  .wpass-wrap { max-width: 290px; }
}


/* ============================================================
   MOBILE — navigation, portal tab bar, touch-friendly layouts
   ============================================================ */
@media (max-width: 900px) {
  .site-header .wrap { gap: 10px; height: 64px; }
  .site-header .brand .gen-mark { --mark-size: 39px; }
  .header-right { gap: 6px; }
  .header-right .btn { padding: 8px 12px; font-size: 11.5px; }
  .menu-btn { display: inline-flex; }
  body.nav-open .nav {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--ink); box-shadow: var(--shadow-md);
    padding: 4px 16px 14px; animation: fade .18s var(--ease);
  }
  body.nav-open .nav a {
    padding: 14px 2px; border-radius: 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--ink); background: none;
  }
  body.nav-open .nav a:last-child { border-bottom: none; }
  body.nav-open .nav a.active { color: var(--magenta); background: none; }
  .nav-account { display: block; }
  .portal-body { padding-top: 22px; }
}

@media (max-width: 620px) {
  /* hero */
  .hero h1 { font-size: 58px; }
  .hero-sub { font-size: 17px; margin: 18px 0 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
  .hero-stats .n { font-size: 26px; }
  .hero-stats .l { font-size: 11.5px; line-height: 1.3; }
  .hero-visual .wpass-wrap { max-width: 250px; }
  .section-head { margin-bottom: 18px; }
  .how-step .num { font-size: 72px; }

  /* compact comparison table so it fits without sideways scrolling */
  .grid-table th, .grid-table td { padding: 10px 8px; font-size: 13px; }
  .grid-table tbody th { white-space: normal; }
  .grid-table tbody th .tier-badge { display: table; margin-top: 4px; }
  .grid-table td b { font-size: 15px; }

  /* savings calculator */
  .sv-bar { height: 44px; font-size: 10.5px; }
  .sv-bar span { padding: 0 6px; }
  .sv-total { gap: 22px; }
  .sv-total .v { font-size: 30px; }

  /* portal: tabs become a fixed bottom bar */
  .ph-row { padding: 20px 0 14px; align-items: flex-start; }
  .ph-meta { width: 100%; }
  .ph-meta .btn { margin-left: auto; }
  .ptabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: visible;
    background: var(--white); border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ptab {
    flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px 9px;
    font-size: 10.5px; font-weight: 700; border-bottom: none; border-top: 3px solid transparent; margin-top: -2px;
  }
  .ptab .ico { font-size: 20px; }
  .ptab.on { border-top-color: var(--magenta); }
  .t-long { display: none; }
  .t-short { display: inline; }
  .portal-body { padding-bottom: 96px; }
  body:has(.ptabs) .demo-toggle { bottom: 78px; }
  body:has(.ptabs) .toast-wrap { bottom: 86px; }
  body:has(.ptabs) .site-footer { padding-bottom: 120px; }

  /* portal content */
  .stat-box { padding: 14px; }
  .stat-box .n { font-size: 26px; }
  .validity .v-top { font-size: 12px; }
  .action { padding: 14px; }
  .block-head { margin-top: 24px; }
  .points-eq { gap: 10px; }
  .points-eq b { font-size: 17px; }
  .big-balance .v { font-size: 56px; }
  .booked-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .booked-hero h1 { font-size: 32px; }
  .prop-hero { min-height: 180px; padding: 20px; }
  .prop-hero .watermark { font-size: 110px; }
  .book-rail { padding: 20px; }
  .fact { gap: 12px; font-size: 13.5px; }
  .fact .v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .hr-name { font-size: 18px; }
  .hr-sub { font-size: 12px; }
  .hr-head { gap: 10px; }
  .hr-swatch { width: 60px; height: 44px; }
  .hr-head .tag { white-space: normal; }
  .lead-guest { flex-direction: column; align-items: flex-start; }
  .extra { gap: 10px; padding: 12px; }
  .stay-card { gap: 12px; padding: 12px; align-items: flex-start; }
  .sc-city { font-size: 17px; }
  .subtabs { overflow-x: auto; }
  .subtab { white-space: nowrap; padding: 8px 12px; }
  .modal { padding: 22px 18px; }
  .modal h3 { font-size: 22px; }
  .wallet-btns { grid-template-columns: 1fr; }

  /* auth / checkout */
  .stepper { gap: 6px; }
  .stepper .lbl { font-size: 12px; }
  .stepper .bar { min-width: 10px; }
  .summary .sum-body { padding: 20px; }
  .confirm { padding: 36px 0; }
  .c-sub { font-size: 16px; }
  .gift-preview { padding: 20px; }


  /* D. overview: actions as a compact row, points equation as 4 columns */
  .ov-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .action { grid-template-columns: 1fr; justify-items: start; row-gap: 6px; padding: 12px; }
  .action .ico { grid-row: auto; font-size: 22px; }
  .action b { font-size: 15px; }
  .action span { display: none; }
  .points-eq { display: grid; grid-template-columns: repeat(4, 1fr); }
  .points-eq .op { display: none; }
  .points-eq .k { font-size: 9.5px; letter-spacing: .06em; }

  /* E. compact portal header */
  .ph-title { font-size: 30px; }
  .ph-sub { font-size: 11.5px; }
  .ph-row { gap: 12px; }

  /* G. checkout: sticky total + Confirm; the tab bar steps aside */
  #app[data-route="/portal/checkout"] .ptabs { display: none; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--white); border-top: 2px solid var(--ink);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta .mc-k { display: block; font-size: 11.5px; color: var(--ink-45); }
  .mobile-cta b { font-family: var(--font-mono); font-size: 22px; color: var(--magenta-deep); }
  .mobile-cta .btn { flex-shrink: 0; }
  #app[data-route="/portal/checkout"] ~ .demo-toggle { bottom: 84px; }

  /* H. pass choice as compact rows in the purchase checkout */
  .choice-row--3 { gap: 8px; }
  .choice-row:not(.choice-row--3) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { padding: 14px; }
  .choice h4 { font-size: 16px; }
  .choice p { font-size: 12.5px; }
  .choice--pass { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; }
  .choice--pass .cp-top { grid-column: 1 / -1; }
  .choice--pass .cp-pts { font-size: 18px; }
  .choice--pass .muted { justify-self: end; }

  .sk-result .rrow { grid-template-columns: 40px 1fr 80px; grid-template-areas: none; }
  .sk-result .rrow > :last-child { display: none; }

  /* I. shorter hostel posters; a smaller demo button */
  .prop-poster { aspect-ratio: 16 / 9; }
  .demo-toggle { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 10.5px; }

  /* footer */
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .foot-nav { flex-wrap: wrap; gap: 12px 18px; }
}

@media (max-width: 380px) {
  .header-right .tok-u { display: none; }
  .hero h1 { font-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
