/* ==========================================================================
   Public site + member area
   ========================================================================== */
:root {
  --brand: #0b5f63;
  --brand-600: #094d51;
  --brand-50: #e6f2f1;
  --brand-100: #cfe6e4;
  --sun: #ffb020;
  --coral: #ef5a2f;
  --ink: #0f1b2d;
  --ink-2: #3d4b60;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --sky: #e2f0fb;
  --ok: #15803d; --ok-bg: #dcfce7;
  --warn: #a15c07; --warn-bg: #fef3c7;
  --bad: #b91c1c; --bad-bg: #fee2e2;
  --info: #0b5f63; --info-bg: #e6f2f1;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 10px 30px -14px rgba(15, 27, 45, .25);
  --shadow-lg: 0 28px 60px -24px rgba(15, 27, 45, .4);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #eef2f6; padding: .1em .4em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); } .neg { color: var(--bad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.15rem;
  border-radius: var(--r); border: 1px solid transparent; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--ink); border-color: var(--line-2); transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e2d45; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc24d; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 .85rem; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: inherit; font-family: var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
.main-nav a:hover { background: #f1f5f9; color: var(--ink); }
.main-nav a[aria-current] { background: var(--brand-50); color: var(--brand); }
.main-nav-public { margin-left: 1rem; margin-right: auto; }
.header-actions { display: flex; gap: .5rem; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .ico { width: 16px; color: var(--muted); }
.user-menu-name { font-weight: 600; font-size: .9rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50; }
.user-menu-head { padding: .7rem .8rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.user-menu-head strong { display: block; }
.user-menu-head span { font-size: .85rem; color: var(--muted); word-break: break-all; }
.user-menu-panel a, .user-menu-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .94rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: #f1f5f9; }
.user-menu-panel .ico { color: var(--muted); }
.menu-meta { margin-left: auto; color: var(--muted); font-size: .82rem; }

/* ---------- Alerts / badges ---------- */
.flash-stack { display: grid; gap: .6rem; margin: 1.2rem auto 0; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r); border: 1px solid; font-size: .95rem; margin-bottom: 1rem; }
.flash-stack .alert { margin: 0; }
.alert .ico { margin-top: .15rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: var(--ok-bg); border-color: #bbf7d0; color: #14532d; }
.alert-error { background: var(--bad-bg); border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: var(--info-bg); border-color: var(--brand-100); color: #0a3f42; }
.alert-warn { background: var(--warn-bg); border-color: #fde68a; color: #713f12; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-neutral { background: #eef2f6; color: var(--ink-2); }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.05rem; }
.card-body { padding: 1.3rem 1.4rem; }
.card-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem 1.25rem; display: flex; gap: .9rem; align-items: flex-start; box-shadow: var(--shadow-sm); }
.stat-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: none; }
.stat-ico .ico { width: 22px; height: 22px; }
.stat-ico.sun { background: #fff4d6; color: #a15c07; }
.stat-ico.coral { background: #fde7df; color: #c2410c; }
.stat-ico.ink { background: #e8ecf3; color: var(--ink); }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat-note { font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Page head ---------- */
.app-main { padding-top: 1.8rem; padding-bottom: 5rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; }
.page-head p { margin: .35rem 0 0; color: var(--muted); }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.05rem; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .hint, .hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .field select, .field textarea, select.input {
  width: 100%; min-height: 46px; padding: .65rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff;
  font: 400 1rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 95, 99, .14); }
.field input[aria-invalid=true] { border-color: var(--bad); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 95, 99, .14); }
.input-group input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.input-group .btn { border-radius: 0; border: 0; border-left: 1px solid var(--line); }
.input-prefix { display: grid; place-items: center; padding: 0 .8rem; color: var(--muted); background: #f8fafc; border-right: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand); }
.pw-meter { height: 6px; border-radius: 99px; background: #e8edf3; overflow: hidden; margin-top: .5rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .25s, background-color .25s; }
.pw-label { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: none; padding: .75rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .table th.num { text-align: right; }
.cell-sub { display: block; color: var(--muted); font-size: .82rem; }

.empty { text-align: center; padding: 2.8rem 1.5rem; color: var(--muted); }
.empty .ico { width: 44px; height: 44px; color: var(--brand); background: var(--brand-50); border-radius: 14px; padding: 10px; margin-bottom: .8rem; }
.empty h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: .35rem; }
.empty p { max-width: 26rem; margin: 0 auto 1.1rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab6c8; margin-top: 5rem; padding-top: 3.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: .8rem; max-width: 22rem; }
.site-footer h2 { font-size: .85rem; color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer a { display: flex; align-items: center; gap: .5rem; color: #aab6c8; text-decoration: none; margin-bottom: .55rem; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-addr { font-size: .9rem; margin-top: .4rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.4rem; padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: .85rem; }
.is-member .site-footer { margin-top: 0; }

.tabbar { display: none; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); }
.wa-float .ico { width: 28px; height: 28px; }

/* ==========================================================================
   Home page
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: radial-gradient(56rem 28rem at 88% 0%, #fff4d6 0, rgba(255, 244, 214, 0) 62%), linear-gradient(180deg, #d5ebfc 0%, #eef6fc 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-top: 4.2rem; padding-bottom: 5.5rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.2rem; max-width: 14ch; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 34rem; margin-bottom: 1.8rem; }
.finder { display: flex; align-items: center; gap: .5rem; max-width: 36rem; padding: .45rem .45rem .45rem 1rem; background: #fff; border-radius: 18px; box-shadow: 0 16px 40px -18px rgba(15, 27, 45, .4); border: 1px solid #fff; }
.finder:focus-within { border-color: var(--brand); }
.finder > .ico { width: 22px; height: 22px; color: var(--brand); }
.finder input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .65rem .2rem; font: 400 1.05rem var(--font); background: transparent; color: var(--ink); }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 0; color: var(--ink-2); font-size: .92rem; }
.quick { border: 1px solid rgba(15, 27, 45, .14); background: rgba(255, 255, 255, .7); color: var(--ink); border-radius: 999px; padding: .28rem .85rem; font: 600 .88rem var(--font); cursor: pointer; }
.quick:hover { background: #fff; border-color: var(--brand); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.4rem 0 0; }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { color: var(--ink-2); font-size: .88rem; }
.hero-facts dd { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero-facts small { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; color: var(--bg); }

.stack-cards { position: relative; height: 460px; }
.postcard {
  position: absolute; display: block; width: min(74%, 330px); background: #fff; padding: 10px 10px 0; border-radius: 8px;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-lg); transform: rotate(var(--r, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; animation: drop .8s cubic-bezier(.2, .7, .2, 1) backwards;
}
.postcard-1 { left: 0; top: 34px; --r: -7deg; z-index: 1; animation-delay: .05s; }
.postcard-2 { right: 0; top: 0; --r: 5deg; z-index: 2; animation-delay: .2s; }
.postcard-3 { left: 18%; bottom: 0; --r: -2deg; z-index: 3; animation-delay: .35s; }
a.postcard:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); z-index: 5; }
.postcard-art { position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 4px; background: var(--sky); }
.postcard-cap { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .7rem .3rem .85rem; font-weight: 600; }
.postcard-cap strong { white-space: nowrap; font-weight: 800; }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(calc(var(--r) * 2)); } to { opacity: 1; transform: rotate(var(--r)); } }
.scene { display: block; width: 100%; height: 100%; object-fit: cover; }

.stamp { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: .35rem .45rem .3rem; background: #fff; color: var(--ink); outline: 3px dotted #fff; outline-offset: 2px; transform: rotate(4deg); font-size: .7rem; font-weight: 700; line-height: 1; }
.stamp b { font-size: 1.3rem; font-weight: 800; color: var(--coral); margin-bottom: .1rem; }

.section { padding-top: 4.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2, .section > h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin: .4rem 0 0; color: var(--muted); }
.section > h2 { margin-bottom: 1.6rem; }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.4rem; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 12px; padding: .5rem 1rem; font: 600 .92rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

.trip-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.trip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.trip-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.trip-art { position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 12px; background: var(--sky); }
.trip-art .scene { transition: transform .6s; }
.trip-card:hover .trip-art .scene { transform: scale(1.05); }
.trip-flag { position: absolute; left: 10px; top: 10px; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 8px; }
.trip-flag.featured { background: var(--ink); }
.trip-body { padding: 1rem .5rem .5rem; flex: 1; }
.trip-dest { display: flex; align-items: center; gap: .3rem; color: var(--brand); font-weight: 700; font-size: .88rem; margin: 0 0 .3rem; }
.trip-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.trip-desc { color: var(--muted); font-size: .94rem; margin: 0; }
.trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .6rem .5rem 0; padding: .9rem 0 .5rem; border-top: 1px dashed var(--line-2); }
.trip-price strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.trip-price span { color: var(--muted); font-size: .85rem; }
.trip-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); transition: background-color .15s, color .15s; }
.trip-card:hover .trip-go { background: var(--brand); color: #fff; }
.trip-earn { margin: .4rem .5rem .4rem; padding: .5rem .7rem; border-radius: 10px; background: #fff6df; color: #7a4b00; font-size: .85rem; }
.noresults { text-align: center; color: var(--muted); padding: 2rem 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; border-top: 3px dashed #b9cfe4; }
.steps li { position: relative; }
.step-pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 1.1rem; box-shadow: 0 0 0 6px var(--bg); position: relative; }
.steps li:nth-child(2) .step-pin { background: var(--brand); }
.steps li:nth-child(3) .step-pin { background: var(--coral); }
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); max-width: 22rem; margin: 0; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 2.6rem; background-image: radial-gradient(28rem 18rem at 100% 0, rgba(11, 95, 99, .7), rgba(11, 95, 99, 0) 70%); }
.calc h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.calc-copy p { color: #c6d2e6; max-width: 30rem; margin: 0; }
.calc-box { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; }
.calc-box output { color: var(--brand); font-weight: 800; }
.calc-box input[type=range] { width: 100%; accent-color: var(--brand); margin: 0 0 1rem; }
.calc-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--sky); }
.calc-result strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.calc-result span { color: var(--ink-2); font-weight: 600; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 1.2rem; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { color: var(--ink-2); margin: 0 0 1.1rem; }

.cta-band { margin-top: 4.5rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.cta-band .scene { min-height: 240px; }
.cta-copy { padding: 2.4rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-copy h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; margin-bottom: .6rem; letter-spacing: -.03em; }
.cta-copy p { color: var(--muted); margin-bottom: 1.4rem; }

/* ==========================================================================
   Trip page
   ========================================================================== */
.trip-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 6; min-height: 240px; background: var(--sky); margin-top: 1.5rem; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 45, 0) 40%, rgba(15, 27, 45, .72)); }
.trip-hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem 2rem; color: #fff; z-index: 1; }
.trip-hero-copy h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.trip-hero-copy p { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; font-weight: 600; opacity: .95; }
.trip-hero-copy p span { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .9rem; color: var(--muted); margin-top: 1.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.trip-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 2rem; }
.trip-content h2 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.trip-content h2:first-child { margin-top: 0; }
.trip-content .lead { font-size: 1.06rem; color: var(--ink-2); white-space: pre-line; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; }
.includes li { display: flex; gap: .55rem; align-items: flex-start; }
.includes .ico { color: var(--ok); margin-top: .2rem; }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.fact span { display: block; color: var(--muted); font-size: .82rem; }
.fact strong { font-size: 1.05rem; }
.book-card { position: sticky; top: 90px; }
.book-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.book-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--line); margin-top: .4rem; }
.book-total strong { font-size: 1.35rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: #f8fafc; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.stepper button:hover { background: var(--brand-50); color: var(--brand); }
.stepper input { flex: 1; min-width: 0; text-align: center; border: 0 !important; box-shadow: none !important; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.trust { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-2); }
.trust li { display: flex; gap: .5rem; align-items: center; }
.trust .ico { color: var(--brand); }

/* ==========================================================================
   Auth pages (split screen)
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; background: var(--ink); color: #fff; padding: 2.4rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art .scene-bg { position: absolute; inset: auto 0 0 0; height: 55%; opacity: .95; }
.auth-art .scene-bg .scene { height: 100%; }
.auth-art .scene-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(15, 27, 45, 0) 45%); z-index: 1; }
.auth-art .brand { color: #fff; position: relative; z-index: 2; }
.auth-art-copy { position: relative; z-index: 2; max-width: 30rem; margin-bottom: 42%; }
.auth-art-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; color: #d3dceb; }
.auth-points li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-points .ico { color: var(--sun); margin-top: .2rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: #fff; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .4rem; }
.auth-box > p { color: var(--muted); margin-bottom: 1.6rem; }
.auth-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 2rem; }
.auth-back:hover { color: var(--brand); }
.sponsor-card { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--brand-50); border: 1px solid var(--brand-100); margin-bottom: 1.2rem; }
.sponsor-card small { display: block; color: var(--brand); font-weight: 600; font-size: .78rem; }
.ref-status { font-size: .85rem; margin-top: .4rem; min-height: 1.2em; }
.ref-status.ok { color: var(--ok); } .ref-status.bad { color: var(--bad); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--brand); background: var(--brand-50); }
.auth-alt { text-align: center; color: var(--muted); margin-top: 1.4rem; font-size: .94rem; }

/* ==========================================================================
   Member area
   ========================================================================== */
.welcome { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.balance-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b5f63 0%, #0f1b2d 100%); color: #fff; border-radius: var(--r-xl); padding: 1.6rem 1.7rem; }
.balance-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .5), rgba(255, 176, 32, 0) 70%); }
.balance-card .label { color: #b9d4d6; font-weight: 600; font-size: .9rem; }
.balance-amount { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .3rem 0 1.1rem; font-variant-numeric: tabular-nums; }
.balance-amount small { font-size: 1rem; font-weight: 600; color: #b9d4d6; }
.balance-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 1.3rem; position: relative; z-index: 1; }
.balance-meta span { display: block; color: #b9d4d6; font-size: .8rem; }
.balance-meta strong { font-size: 1.05rem; }
.balance-card .row { position: relative; z-index: 1; }
.balance-card .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.balance-card .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.ref-card .ref-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 10px; font-weight: 600; font-size: .86rem; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; font-family: var(--font); }
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.wa .ico { color: #16a34a; } .share-btn.tg .ico { color: #0284c7; }
.levels { display: flex; gap: .5rem; flex-wrap: wrap; }
.level-pill { display: flex; flex-direction: column; align-items: center; padding: .55rem .9rem; border-radius: var(--r); background: #f8fafc; border: 1px solid var(--line); min-width: 74px; }
.level-pill strong { font-size: 1.15rem; color: var(--brand); }
.level-pill span { font-size: .75rem; color: var(--muted); }

.booking-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.2rem; padding: 1rem; }
.booking-art { border-radius: 12px; overflow: hidden; aspect-ratio: 8 / 5; background: var(--sky); }
.booking-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.booking-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.booking-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.timeline { display: flex; align-items: center; gap: 0; margin: .4rem 0 1rem; max-width: 460px; }
.tl-step { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; }
.tl-dot .ico { width: 13px; height: 13px; }
.tl-line { flex: 1; height: 2px; background: var(--line-2); margin: 0 .5rem; min-width: 18px; }
.tl-step.done { color: var(--ink); }
.tl-step.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-line.done { background: var(--ok); }
.tl-step.bad .tl-dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.pay-box { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.pay-box pre { white-space: pre-wrap; font: inherit; margin: 0 0 .8rem; color: var(--ink-2); }

.tree { padding: 1rem 1.2rem; }
.tree ul { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px dashed var(--line-2); }
.tree > ul { padding-left: 0; border: 0; }
.tree li { margin: .5rem 0; position: relative; }
.tree ul ul li::before { content: ""; position: absolute; left: -1.6rem; top: 1.35rem; width: 1.3rem; border-top: 2px dashed var(--line-2); }
.node { display: inline-flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .8rem .5rem .5rem; box-shadow: var(--shadow-sm); max-width: 100%; }
.node.you { background: var(--brand-50); border-color: var(--brand-100); }
.node.found { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 176, 32, .35); }
.node-toggle { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #f8fafc; cursor: pointer; display: grid; place-items: center; color: var(--brand); flex: none; }
.node-toggle[disabled] { opacity: .35; cursor: default; }
.node-who { display: flex; flex-direction: column; min-width: 0; }
.node-who strong { font-size: .95rem; }
.node-who span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fee-preview { display: grid; gap: .35rem; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.fee-preview div { display: flex; justify-content: space-between; }
.fee-preview div:last-child { font-weight: 700; border-top: 1px solid var(--line); padding-top: .35rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .welcome, .trip-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav-public { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }
  .stack-cards { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .calc { grid-template-columns: 1fr; padding: 1.8rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .is-member .main-nav { display: none; }
  .is-member .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0 .5rem; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--brand); }
  .is-member .site-footer { padding-bottom: 70px; }
  .user-menu-name { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .faq, .form-grid, .includes, .facts-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 3px dashed #b9cfe4; }
  .steps li { padding-left: 4.2rem; }
  .step-pin { position: absolute; left: 0; top: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .scene { min-height: 170px; }
  .cta-copy { padding: 1.6rem; }
  .booking-card { grid-template-columns: 1fr; }
  .trip-hero { aspect-ratio: 4 / 3; }
  .trip-hero-copy { padding: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 600; text-align: left; }
  .table-stack td.num { text-align: right; }
}
@media (max-width: 480px) {
  .stack-cards { height: 320px; }
  .postcard { width: 70%; }
  .finder { flex-wrap: wrap; padding: .5rem; }
  .finder input { flex-basis: calc(100% - 40px); }
  .finder .btn { width: 100%; }
  .hero-facts { gap: 1.4rem; }
  .brand span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .postcard { transform: rotate(var(--r)); }
}

/* Travel points */
.points-box { border: 1px dashed var(--brand-100); background: var(--brand-50); border-radius: var(--r); padding: .8rem .9rem; margin-bottom: 1rem; }
.points-box input[type=range] { width: 100%; accent-color: var(--brand); margin: .7rem 0 .3rem; }
.points-card { background: linear-gradient(135deg, #fff4d6 0%, #ffe3a3 100%); border: 1px solid #f8d27a; border-radius: var(--r-xl); padding: 1.5rem 1.6rem; color: #4a3200; position: relative; overflow: hidden; }
.points-card .label { color: #7a5200; font-weight: 700; font-size: .9rem; }
.points-card .balance-amount small { color: #7a5200; }
.points-card .balance-meta span { color: #7a5200; }
.points-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .35); }

/* Daily referral reward progress */
.meter { height: 8px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.points-card .meter { background: rgba(255, 255, 255, .55); }
.points-card .meter > span { background: #b77900; }
.reward-list { display: grid; gap: 1rem; }
.reward-item { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.reward-item .row-between { gap: .6rem; flex-wrap: wrap; }

/* Binary tree */
.btree { overflow-x: auto; padding-bottom: .4rem; }
.btree-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .5rem; min-width: calc(var(--n) * 118px); margin-bottom: .9rem; position: relative; }
.bnode { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; padding: .6rem .4rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; min-width: 0; }
.bnode strong { font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnode small { font-size: .72rem; }
.bnode .avatar { width: 34px; height: 34px; font-size: .8rem; }
a.bnode:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(11, 95, 99, .12); }
.bnode-ok { border-top: 3px solid var(--ok); }
.bnode-idle { border-top: 3px solid #cbd5e1; }
.bnode-bad { border-top: 3px solid var(--bad); opacity: .75; }
.bnode-empty { border-style: dashed; background: transparent; color: var(--muted); font-size: .78rem; justify-content: center; min-height: 92px; }
.btree-key { display: flex; gap: .4rem .9rem; flex-wrap: wrap; align-items: center; margin: .4rem 0 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .25rem; }
.dot-ok { background: var(--ok); } .dot-idle { background: #cbd5e1; } .dot-bad { background: var(--bad); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }


/* ==========================================================================\n   Premium portal refresh - 2026\n   ========================================================================== */
:root { --brand:#075f63; --brand-600:#03484c; --brand-50:#e8f7f6; --brand-100:#c7ece9; --ink:#081426; --bg:#f2f6fa; --r-lg:20px; --shadow:0 16px 40px -24px rgba(8,20,38,.28); --shadow-lg:0 34px 80px -32px rgba(8,20,38,.42); }
body { background:radial-gradient(circle at 8% 0%,rgba(11,134,139,.08),transparent 25rem),linear-gradient(180deg,#f8fbfd 0,#f2f6fa 45%,#eef3f8 100%); }
.site-header { background:rgba(255,255,255,.82); border-bottom:1px solid rgba(148,163,184,.22); box-shadow:0 8px 30px rgba(15,23,42,.04); }
.card,.stat { border-color:rgba(203,213,225,.7); box-shadow:0 12px 34px -24px rgba(15,23,42,.32); }
.card { overflow:hidden; }
.stat { position:relative; overflow:hidden; transition:transform .2s ease,box-shadow .2s ease; }
.stat:hover { transform:translateY(-3px); box-shadow:0 20px 42px -26px rgba(15,23,42,.38); }
.btn { border-radius:13px; font-weight:700; }
.btn-primary { background:linear-gradient(135deg,#08777b,#064f53); box-shadow:0 10px 22px -12px rgba(7,95,99,.7); }
.input,.field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.field select,.field textarea,select.input { min-height:50px; border-radius:13px; border-color:#d7e0e9; background:#fbfdff; transition:border-color .18s,box-shadow .18s,background .18s; }
.field input:focus,.field select:focus,.field textarea:focus { background:#fff; box-shadow:0 0 0 4px rgba(7,95,99,.10),0 8px 22px -16px rgba(7,95,99,.6); }

.auth-page { background:#071426; }
.auth { grid-template-columns:minmax(420px,.9fr) minmax(620px,1.1fr); background:#fff; }
.auth-art { background:radial-gradient(circle at 18% 16%,rgba(24,201,193,.22),transparent 28rem),linear-gradient(145deg,#071426 0%,#0b2633 52%,#075f63 130%); padding:3rem clamp(2rem,4vw,4.5rem); }
.auth-art::before { content:""; position:absolute; width:380px;height:380px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-160px;top:-140px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018); }
.auth-art-copy { margin-bottom:36%; max-width:34rem; }
.auth-art-copy h2 { font-size:clamp(2.15rem,3.4vw,3.45rem); line-height:1.08; }
.auth-points { gap:1rem; color:#d9e7ed; }
.auth-points li { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); padding:.8rem 1rem; border-radius:14px; backdrop-filter:blur(8px); }
.auth-form { background:linear-gradient(145deg,#f8fbfd 0%,#fff 60%); padding:3rem clamp(1.5rem,5vw,5rem); align-items:flex-start; overflow-y:auto; }
.auth-box { max-width:690px; margin:auto; background:rgba(255,255,255,.92); border:1px solid #e5ebf1; border-radius:26px; padding:clamp(1.5rem,3vw,2.5rem); box-shadow:0 32px 80px -42px rgba(15,23,42,.42); }
.auth-box h1 { font-size:clamp(2rem,3vw,2.65rem); }
.auth-back { margin-bottom:1.4rem; }
.sponsor-card { border-radius:15px; padding:1rem 1.1rem; box-shadow:inset 0 0 0 1px rgba(255,255,255,.55); }
.required-dot { display:inline-flex; margin-left:.4rem; padding:.12rem .45rem; border-radius:999px; font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:#9f1239; background:#fff1f2; vertical-align:middle; }
.placement-field { margin:1.15rem 0 1.3rem; padding:1rem; border:1px solid #dbe6ed; border-radius:17px; background:linear-gradient(180deg,#fbfefe,#f7fbfc); }
.placement-hint { margin:-.1rem 0 .8rem!important; }
.leg-picker { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.leg-option { margin:0!important; cursor:pointer; }
.leg-option input { position:absolute; opacity:0; pointer-events:none; }
.leg-card { min-height:82px; display:grid; grid-template-columns:44px 1fr 26px; gap:.75rem; align-items:center; padding:.85rem; border:1.5px solid #d7e2e9; border-radius:15px; background:#fff; transition:.18s ease; }
.leg-card:hover { border-color:#86c7c6; transform:translateY(-1px); box-shadow:0 10px 24px -18px rgba(7,95,99,.7); }
.leg-icon { width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf7f7;color:var(--brand);font-size:1.05rem;font-weight:800; }
.leg-card strong,.leg-card small { display:block; }
.leg-card strong { font-size:.95rem; }
.leg-card small { color:var(--muted);font-size:.75rem;margin-top:.15rem;line-height:1.35; }
.leg-check { width:24px;height:24px;display:grid;place-items:center;border:1.5px solid #cbd5e1;border-radius:50%;color:transparent;font-size:.8rem; }
.leg-option input:checked + .leg-card { border-color:var(--brand); background:linear-gradient(145deg,#effbfa,#fff); box-shadow:0 0 0 3px rgba(7,95,99,.09); }
.leg-option input:checked + .leg-card .leg-icon { color:#fff;background:linear-gradient(135deg,#0b8588,#075f63); }
.leg-option input:checked + .leg-card .leg-check { border-color:var(--brand);background:var(--brand);color:#fff; }
.leg-option input:focus-visible + .leg-card { outline:3px solid var(--sun);outline-offset:2px; }

.balance-card { background:radial-gradient(circle at 90% 10%,rgba(255,176,32,.22),transparent 12rem),linear-gradient(135deg,#071426,#0b3440 62%,#075f63); border-radius:22px; box-shadow:0 24px 55px -30px rgba(7,20,38,.65); }
.page-head h1 { font-size:clamp(1.7rem,3vw,2.25rem); }

@media(max-width:980px){.auth{grid-template-columns:1fr}.auth-art{display:none}.auth-form{min-height:100vh}.auth-box{max-width:720px}.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.auth-form{padding:1rem}.auth-box{padding:1.25rem;border-radius:20px}.form-grid,.leg-picker{grid-template-columns:1fr}.leg-card{min-height:72px}.auth-box h1{font-size:1.8rem}}
