/* NorthStar Members - brand taken from northstarpeople.com:
   ink ground, lavender type, mint action, periwinkle lines, Figtree.
   White-label: everything colour-related hangs off these tokens. */
:root {
  --bg: #1b1920;
  --bg2: #24212a;
  --card: #29262f;
  --card2: #312d39;
  --raise: #38343f;
  --line: rgba(200, 205, 255, .11);
  --line2: rgba(200, 205, 255, .22);
  --text: #eeeffe;
  --muted: #adafc5;
  --dim: #80829a;
  --lav: #c8cdff;
  --peri: #7e86ff;
  --mint: #00f4c3;
  --mint-ink: #0c1b17;
  --mint-soft: rgba(0, 244, 195, .1);
  --pink: #ff008c;
  --danger: #ff7a95;
  --danger-soft: rgba(255, 122, 149, .1);
  --warn: #ffd27a;
  --warn-soft: rgba(255, 210, 122, .1);
  --star: linear-gradient(135deg, #ff008c 0%, #a1a8ff 55%, #d8ddff 100%);
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at -10% -10%, rgba(37, 95, 110, .28), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(110, 60, 140, .22), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: var(--peri); color: #fff; }

h1, h2, h3, h4 { color: var(--lav); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 300; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; }
h3 { font-size: 19px; font-weight: 500; }
h4 { font-size: 15px; font-weight: 600; color: var(--text); }
h1 em, h2 em, .em { color: var(--mint); font-style: italic; font-weight: 500; }
p { color: var(--muted); }
p + p { margin-top: .8em; }
strong { color: var(--text); font-weight: 600; }
small, .small { font-size: 13px; color: var(--dim); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mint { color: var(--mint); }
.lav { color: var(--lav); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--peri); font-weight: 600; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page { padding: 36px 0 72px; }
.section { padding: 64px 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ── Header ─────────────────────────────────────────────── */
.demo-strip {
  background: var(--warn); color: #2a2100; font-size: 13px; text-align: center; padding: 6px 16px; font-weight: 500;
}
.demo-strip a { color: #2a2100; text-decoration: underline; }
.imp-strip { background: var(--peri); color: #fff; font-size: 13px; text-align: center; padding: 7px 16px; }
.imp-strip button { margin-left: 10px; }
.hdr { padding: 18px 0; position: relative; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
  border-left: 1px solid var(--line2); padding-left: 12px; line-height: 1.2; }
.nav {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  background: rgba(20, 18, 25, .7); border: 1px solid var(--line); border-radius: 999px; padding: 6px;
  backdrop-filter: blur(10px);
}
.nav a { color: var(--text); padding: 8px 15px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { text-decoration: none; color: var(--mint); }
.nav a.on { color: var(--mint); }
.nav .badge-dot { display: inline-block; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink);
  color: #fff; font-size: 11px; text-align: center; line-height: 18px; padding: 0 5px; margin-left: 4px; font-weight: 700; }
.credit-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px !important; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint) !important; font-weight: 600; border: 1px solid rgba(0, 244, 195, .25);
}
.credit-chip svg { width: 15px; height: 15px; }
.menu { position: relative; }
.menu > button { background: none; border: 0; cursor: pointer; display: flex; align-items: center; padding: 2px 4px 2px 6px; border-radius: 999px; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--card2);
  border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 8px; box-shadow: var(--shadow); display: none;
}
.menu.open .menu-pop { display: block; }
.menu-pop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.menu-pop a:hover { background: var(--raise); text-decoration: none; }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-pop .who { padding: 8px 12px 10px; font-size: 13px; color: var(--dim); line-height: 1.35; }
.menu-pop .who strong { display: block; color: var(--text); font-size: 14px; }
.burger { display: none; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; margin-left: auto; font: inherit; font-size: 14px; }

svg { flex-shrink: 0; }
svg.sz14 { width: 14px; height: 14px; vertical-align: -2px; }
svg.sz26 { width: 26px; height: 26px; }
svg.sz30 { width: 30px; height: 30px; }
.i svg { width: 1em; height: 1em; vertical-align: -.14em; }
.btn svg { width: 17px; height: 17px; }
.pill svg { width: 13px; height: 13px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1; padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; color: var(--text); transition: .15s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--lav); color: var(--lav); text-decoration: none; }
.btn-primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font-weight: 600; }
.btn-primary:hover { background: #4dffd9; border-color: #4dffd9; color: var(--mint-ink); }
.btn-outline-mint { border-color: rgba(0, 244, 195, .55); color: var(--mint); }
.btn-outline-mint:hover { background: var(--mint-soft); color: var(--mint); border-color: var(--mint); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--line2); }
.btn-danger { border-color: rgba(255, 122, 149, .45); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-xs { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--mint); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--danger); }

/* ── Cards & surfaces ───────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(49, 45, 57, .75), rgba(41, 38, 47, .75));
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
}
.card-tight { padding: 18px 20px; }
.card h3 { margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card-head h3, .card-head h2 { margin: 0; }
.card-link { font-size: 14px; }
.panel { background: rgba(20, 18, 25, .55); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 244, 195, .55), rgba(126, 134, 255, .35) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.empty { text-align: center; padding: 34px 20px; color: var(--dim); }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--peri); opacity: .8; }
.empty h3 { color: var(--lav); margin-bottom: 6px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ── Pills, tags, badges ────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--muted); line-height: 1.4; white-space: nowrap; }
.pill-mint { color: var(--mint); border-color: rgba(0, 244, 195, .35); background: var(--mint-soft); }
.pill-peri { color: var(--lav); border-color: rgba(126, 134, 255, .45); background: rgba(126, 134, 255, .12); }
.pill-warn { color: var(--warn); border-color: rgba(255, 210, 122, .35); background: var(--warn-soft); }
.pill-danger { color: var(--danger); border-color: rgba(255, 122, 149, .35); background: var(--danger-soft); }
.pill-dim { color: var(--dim); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(200, 205, 255, .08); color: var(--lav); }

/* ── Messages ───────────────────────────────────────────── */
.flash-wrap { padding-top: 6px; }
.msg { padding: 13px 18px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 10px; border: 1px solid; }
.msg-ok { background: var(--mint-soft); border-color: rgba(0, 244, 195, .3); color: #b5ffef; }
.msg-err { background: var(--danger-soft); border-color: rgba(255, 122, 149, .35); color: #ffd0da; }
.note { background: rgba(126, 134, 255, .1); border: 1px solid rgba(126, 134, 255, .3); border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 14px; color: var(--lav); }
.note-warn { background: var(--warn-soft); border-color: rgba(255, 210, 122, .3); color: #ffe7b5; }

/* ── Forms ──────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--lav); margin-bottom: 7px; letter-spacing: .01em; }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 6px; line-height: 1.45; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel],
input[type=search], input[type=date], input[type=month], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: rgba(14, 12, 18, .6);
  border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c8cdff' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input[type=file] { font: inherit; font-size: 13.5px; color: var(--muted); width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--lav); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 244, 195, .15); }
input::placeholder, textarea::placeholder { color: #6f7188; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--mint); width: 16px; height: 16px; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.input-prefix input { padding-left: 30px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.seg { display: inline-flex; background: rgba(14, 12, 18, .6); border: 1px solid var(--line2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a, .seg label { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on, .seg input:checked + span { background: var(--lav); color: #1b1920; font-weight: 600; }
.seg input { display: none; }
.seg label span { display: block; padding: 0; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
  font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.t td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: rgba(200, 205, 255, .04); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tfoot td { font-weight: 600; border-top: 1px solid var(--line2); }
.t .sub { display: block; font-size: 12.5px; color: var(--dim); }

/* ── Avatars & people ───────────────────────────────────── */
.avatar, .avatar-img { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--star); color: #1b1920; font-weight: 700; }
.face { border-radius: 50%; object-fit: cover; background: var(--raise); flex-shrink: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person .nm { color: var(--text); font-weight: 600; line-height: 1.25; }
.person .rl { font-size: 13px; color: var(--dim); line-height: 1.3; }

/* Mentor cards */
.mcard { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; color: inherit; transition: .2s ease; }
.mcard:hover { text-decoration: none; border-color: var(--line2); transform: translateY(-2px); }
.mcard .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--raise); position: relative; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .4s ease; }
.mcard:hover .ph img { transform: scale(1.03); }
.mcard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27, 25, 32, .9)); }
.mcard .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mcard h3 { margin: 0; color: var(--text); font-size: 18px; }
.mcard .role { color: var(--mint); font-size: 13.5px; }
.mcard .hours { font-size: 12.5px; color: var(--dim); margin-top: auto; padding-top: 6px; display: flex; gap: 6px; align-items: center; }
.mcard .hours svg { width: 14px; height: 14px; color: var(--peri); }

/* ── Hero / landing ─────────────────────────────────────── */
.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); max-width: 880px; }
.hero .lead { margin-top: 22px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ring { position: absolute; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  border: 1.5px solid rgba(126, 134, 255, .55); pointer-events: none; }
.hero-ring::after { content: ""; position: absolute; left: 60px; top: 120px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(126, 134, 255, .7); }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; font-size: 34px;
  font-weight: 300; color: var(--mint); font-style: italic; }
.step h3 { color: var(--text); }

/* Plans */
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-size: 44px; font-weight: 300; color: var(--text); line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan .per { font-size: 13.5px; color: var(--mint); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 6px 0 4px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.plan li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' stroke='%2300f4c3' stroke-width='1.8'%3E%3Cpath d='M1 4l2.6 2.6L9 1'/%3E%3C/svg%3E") center no-repeat; }
.plan form, .plan .cta-wrap { margin-top: auto; }
.plan.feature { background: linear-gradient(160deg, rgba(0, 244, 195, .08), rgba(126, 134, 255, .08) 60%, rgba(41, 38, 47, .8)); border-color: rgba(0, 244, 195, .35); }
.ribbon { position: absolute; top: 18px; right: 18px; }

/* ── Dashboard ──────────────────────────────────────────── */
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.welcome h1 { font-size: clamp(28px, 3.6vw, 42px); }
.balance-card { display: flex; flex-direction: column; gap: 6px; }
.balance-num { font-size: 64px; line-height: 1; font-weight: 300; color: var(--text); letter-spacing: -.03em; }
.balance-num span { font-size: 18px; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 30px; font-weight: 300; color: var(--text); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.stat .s { font-size: 13px; color: var(--muted); }
.sess { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sess:last-child { border-bottom: 0; }
.date-tile { width: 58px; flex-shrink: 0; text-align: center; border-radius: 12px; background: rgba(126, 134, 255, .12);
  border: 1px solid rgba(126, 134, 255, .3); padding: 7px 0 8px; line-height: 1.1; }
.date-tile .m { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--lav); }
.date-tile .d { font-size: 22px; color: var(--text); font-weight: 500; }
.sess .info { flex: 1; min-width: 0; }
.sess .info .t { color: var(--text); font-weight: 600; }
.sess .info .s { font-size: 13.5px; color: var(--dim); }
.res { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; }
.res:last-child { border-bottom: 0; }
.res:hover { text-decoration: none; }
.res:hover .t { color: var(--mint); }
.res .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(200, 205, 255, .08); display: grid; place-items: center; color: var(--lav); flex-shrink: 0; }
.res .ic svg { width: 20px; height: 20px; }
.res .t { color: var(--text); font-weight: 500; }
.res .s { font-size: 13px; color: var(--dim); }

/* ── Booking UI ─────────────────────────────────────────── */
.profile-head { display: flex; gap: 26px; align-items: center; }
.profile-head img { width: 132px; height: 132px; }

/* Mentor page hero */
.mp-hero { position: relative; overflow: hidden; padding: 30px 0 44px; }
.mp-hero .hero-ring { right: -420px; top: -330px; width: 820px; height: 820px; opacity: .5; }
.mp-hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 0, 140, .13), transparent); pointer-events: none; }
.mp-hero .wrap { position: relative; z-index: 1; }
.back-link { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.back-link:hover { color: var(--mint); text-decoration: none; }
.mp-head { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 28px; }
.mp-portrait { position: relative; aspect-ratio: 1; border-radius: 30px; padding: 2px; background: var(--star);
  box-shadow: 0 30px 80px -30px rgba(255, 0, 140, .45), 0 20px 60px -30px rgba(126, 134, 255, .6); }
.mp-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: var(--raise); }
.mp-portrait::after { content: ""; position: absolute; right: -9px; bottom: 26px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 5px var(--bg), 0 0 24px rgba(0, 244, 195, .8); }
.mp-intro h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 300; letter-spacing: -.025em; margin-top: 10px; line-height: 1.02; }
.mp-bio { margin-top: 16px; max-width: 640px; }
.mp-bio p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.mp-facts { margin-top: 36px; display: flex; align-items: stretch; flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: 20px; background: rgba(20, 18, 25, .45); backdrop-filter: blur(8px); }
.mp-facts .fact { padding: 16px 24px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-right: 1px solid var(--line); }
.mp-facts .k { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 600; }
.mp-facts .v { color: var(--text); font-size: 15.5px; font-weight: 500; }
.mp-facts .fact-next .v { color: var(--mint); }
.mp-facts .fact-next .v::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 10px var(--mint); }
.mp-facts .btn { margin: 10px 10px 10px auto; align-self: center; }

/* Booking card */
.bk-card { padding: 32px; }
.bk-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.bk-top h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; }
.seg-sub { opacity: .65; font-weight: 500; margin-left: 4px; }
.bk-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; gap: 0; align-items: stretch; }
.bk-step { padding: 0 28px; min-width: 0; }
.bk-step:first-child { padding-left: 0; }
.bk-step:last-child { padding-right: 0; }
.bk-step + .bk-step { border-left: 1px solid var(--line); }
.step-hd { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--lav); font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; }
.step-hd .n { font-size: 20px; letter-spacing: 0; font-style: italic; font-weight: 300; color: var(--mint); }

.cal-month { margin-bottom: 4px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav .lbl { font-size: 16px; color: var(--text); font-weight: 600; }
.cal-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--lav);
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; transition: .15s; }
.cal-arrow:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.cal-arrow:disabled { opacity: .25; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow { font-size: 11px; color: var(--dim); text-align: center; padding-bottom: 6px; letter-spacing: .04em; font-weight: 600; }
.cal button { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: none; color: #55576c;
  font: inherit; font-size: 14px; cursor: default; transition: background .15s, border-color .15s, color .15s; }
.cal button.has { color: var(--text); cursor: pointer; font-weight: 600; background: rgba(200, 205, 255, .05); }
.cal button.has::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--mint); }
.cal button.has:hover { border-color: rgba(0, 244, 195, .6); }
.cal button.sel { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); box-shadow: 0 8px 24px -8px rgba(0, 244, 195, .7); }
.cal button.sel::after { background: var(--mint-ink); }
.cal button.today { box-shadow: inset 0 0 0 1px var(--peri); }
.cal button.out { visibility: hidden; }
.cal-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-top: 16px; }
.cal-key .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.cal-key .ring { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--peri); margin-left: 10px; }

.slot-day { font-size: 26px; color: var(--text); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.slot-day span { display: block; font-size: 13px; color: var(--mint); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
#slot-count { margin-top: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slots button { font: inherit; padding: 13px 12px; border-radius: 14px; border: 1px solid var(--line2); text-align: left;
  background: rgba(14, 12, 18, .5); color: var(--text); cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 1px; }
.slots button strong { font-size: 17px; font-weight: 600; color: inherit; }
.slots button span { font-size: 12px; color: var(--dim); }
.slots button:hover { border-color: var(--mint); transform: translateY(-1px); }
.slots button:hover strong { color: var(--mint); }
.slots button.sel { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); box-shadow: 0 10px 28px -10px rgba(0, 244, 195, .7); }
.slots button.sel strong { color: var(--mint-ink); }
.slots button.sel span { color: rgba(12, 27, 23, .7); }

.sum-card { background: rgba(14, 12, 18, .5); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 20px; }
.sum-card .person { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-when { display: flex; gap: 14px; align-items: center; padding: 18px 0; }
#sum-empty { flex-direction: column; text-align: center; padding: 26px 8px 8px; gap: 10px; }
.ph-tile { width: 52px; height: 52px; border-radius: 14px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--peri); }
.ph-tile svg { width: 22px; height: 22px; }
.sum-day { color: var(--text); font-weight: 600; }
.sum-time { color: var(--mint); font-size: 15px; }
.sum-lines { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.confirm-box { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--muted); }
.summary-line strong { color: var(--text); font-weight: 500; text-align: right; }

.other-m { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(20, 18, 25, .45); color: inherit; transition: .15s; }
.other-m:hover { text-decoration: none; border-color: var(--line2); background: rgba(41, 38, 47, .8); }
.other-m img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--raise); flex-shrink: 0; }
.other-m .nm { color: var(--text); font-weight: 600; }
.other-m .rl { font-size: 13px; color: var(--dim); line-height: 1.35; }
.other-m .go { margin-left: auto; color: var(--dim); font-size: 18px; transition: .15s; }
.other-m:hover .go { color: var(--mint); transform: translateX(3px); }

@media (max-width: 1180px) {
  .bk-grid { grid-template-columns: 290px minmax(0, 1fr); }
  .bk-summary { grid-column: 1 / -1; border-left: 0 !important; padding: 26px 0 0; margin-top: 26px; border-top: 1px solid var(--line); }
  .sum-card { position: static; max-width: 560px; }
}
@media (max-width: 900px) {
  .mp-head { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .mp-facts .fact { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .mp-facts .btn { margin: 12px; flex: 1 1 100%; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-step { padding: 0 !important; border-left: 0 !important; }
  .bk-step + .bk-step { padding-top: 26px !important; margin-top: 26px; border-top: 1px solid var(--line); }
  .bk-step:first-child { max-width: 380px; }
}
@media (max-width: 640px) {
  .mp-hero { padding: 20px 0 30px; }
  .mp-head { grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
  .mp-portrait { width: 132px; border-radius: 24px; }
  .mp-portrait img { border-radius: 22px; }
  .mp-portrait::after { right: -6px; bottom: 16px; width: 14px; height: 14px; }
  .mp-bio p { font-size: 16.5px; }
  .mp-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .mp-facts .fact { padding: 14px 16px; border-right: 0; }
  .mp-facts .fact:nth-child(3) { border-left: 1px solid var(--line); }
  .mp-facts .fact-next, .mp-facts .fact:nth-child(4), .mp-facts .btn { grid-column: 1 / -1; }
  .mp-facts .btn { margin: 12px; }
  .mp-facts .v { font-size: 14.5px; }
  .bk-card { padding: 22px 18px; }
  .bk-top .seg { width: 100%; }
  .bk-top .seg a { flex: 1; text-align: center; }
  .slot-day { font-size: 22px; }
}

/* ── Dashboard ──────────────────────────────────────────── */
.dm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dm-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(20, 18, 25, .55); color: inherit; transition: transform .2s ease, border-color .2s ease; }
.dm-card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(0, 244, 195, .45); }
.dm-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--raise); position: relative; }
.dm-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s ease; }
.dm-card:hover .ph img { transform: scale(1.04); }
.dm-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 18, 25, .85)); }
.dm-card .bd { padding: 12px 14px 14px; }
.dm-card .nm { color: var(--text); font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.dm-card .rl { color: var(--mint); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.dm-card .cta { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink); display: inline-flex; gap: 4px; align-items: center;
  opacity: 0; transform: translateY(-4px); transition: .2s ease; }
.dm-card:hover .cta { opacity: 1; transform: none; }

.art-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.art { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(49, 45, 57, .75), rgba(41, 38, 47, .75)); color: inherit; transition: .2s ease; }
.art:hover { text-decoration: none; border-color: var(--line2); transform: translateY(-2px); }
.art .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2b2240, #1f2b35); overflow: hidden; }
.art .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.art:hover .ph img { transform: scale(1.04); }
.art .bd { padding: 14px 16px 18px; }
.art .meta { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.art .meta span { color: var(--peri); margin-right: 8px; }
.art .t { color: var(--text); font-weight: 500; font-size: 15.5px; line-height: 1.35; margin-top: 6px; }
.art:hover .t { color: var(--mint); }

.sched { display: flex; flex-direction: column; gap: 8px; }
.sched-item { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 14px; color: inherit; transition: background .15s; }
.sched-item:hover { text-decoration: none; background: rgba(200, 205, 255, .05); }
.sched-item .date-tile { width: 50px; }
.sched-item .date-tile .d { font-size: 19px; }
.sched-item .info { min-width: 0; }
.sched-item .t { color: var(--text); font-weight: 600; font-size: 14.5px; }
.sched-item .s { color: var(--muted); font-size: 13px; }
.sched-item .join { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--mint); margin-top: 2px; }
.sched-empty { display: flex; gap: 14px; align-items: center; }
.sched-empty .t { color: var(--text); font-weight: 600; }
.sched-empty .ph-tile { flex-shrink: 0; }

@media (max-width: 1080px) {
  .dash-side { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .dash-side > .stack { display: contents; }
  .dash-side > .stack > * { margin-top: 0 !important; }
  .o-balance { order: 1; } .o-sched { order: 2; } .o-mentors { order: 3; } .o-articles { order: 4; }
  .o-library { order: 5; } .o-member { order: 6; } .o-msgs { order: 7; }
}
@media (max-width: 1180px) {
  .art-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-row .art:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dm-card .cta { display: none; }
  .art-row { grid-template-columns: 1fr; }
  .art-row .art:nth-child(3) { display: flex; }
  .art { flex-direction: row; }
  .art .ph { width: 112px; aspect-ratio: auto; flex-shrink: 0; }
  .art .bd { padding: 12px 14px; }
  .art .t { font-size: 14.5px; }
}

/* ── Shop ───────────────────────────────────────────────── */
.pcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.pcard:hover { text-decoration: none; border-color: var(--line2); }
.pcover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2b2240, #1f2b35); position: relative; overflow: hidden;
  display: grid; place-items: center; }
.pcover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pcover .glyph { width: 56px; height: 56px; color: rgba(200, 205, 255, .5); }
.pcover .ring { position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(126, 134, 255, .35); right: -90px; bottom: -150px; }
.pcard .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard h3 { margin: 0; color: var(--text); font-size: 17px; }
.pcard .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.pcard .pr { font-size: 18px; color: var(--text); }
.prose { color: var(--muted); }
.prose h2 { font-size: 22px; margin: 26px 0 10px; }
.prose h3 { margin: 22px 0 8px; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin: 4px 0; }
.prose p { margin: 10px 0; }
.prose em { color: var(--lav); }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--peri); padding-left: 14px; color: var(--lav); }

/* ── Messages ───────────────────────────────────────────── */
.thread-item { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); color: inherit; }
.thread-item:hover { text-decoration: none; background: rgba(200, 205, 255, .03); }
.thread-item .t { color: var(--text); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.thread-item .p { font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.bubbles { display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 78%; padding: 14px 16px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: rgba(0, 244, 195, .08); border-color: rgba(0, 244, 195, .22); }
.bubble .who { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.bubble .body { color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

/* ── Account / tabs ─────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--mint); border-color: var(--mint); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--dim); }
.kv dd { color: var(--text); }

/* ── Checkout / receipt ─────────────────────────────────── */
.checkout { max-width: 520px; margin: 0 auto; }
.fake-card { border-radius: 14px; padding: 18px; background: linear-gradient(135deg, #3a3550, #262330); border: 1px solid var(--line2);
  font-family: ui-monospace, Menlo, monospace; color: var(--lav); font-size: 15px; letter-spacing: .1em; }
.receipt { background: #fff; color: #24212a; border-radius: 14px; padding: 40px; max-width: 720px; margin: 0 auto; }
.receipt h1, .receipt h2, .receipt h3 { color: #24212a; }
.receipt p, .receipt td, .receipt th { color: #3b3842; }
.receipt table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.receipt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #888; padding: 8px 0; border-bottom: 1px solid #ddd; }
.receipt td { padding: 12px 0; border-bottom: 1px solid #eee; }

/* ── Footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 30px 0 36px; margin-top: 40px; font-size: 13.5px; color: var(--dim); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Auth ───────────────────────────────────────────────── */
.auth { max-width: 440px; margin: 30px auto 60px; padding: 0 20px; }
.auth h1 { font-size: 36px; text-align: center; margin-bottom: 8px; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ── Admin ──────────────────────────────────────────────── */
.adm { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 80px); }
.adm-side { border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(20, 18, 25, .45); }
.adm-side .logo { padding: 0 8px 22px; }
.adm-side .logo img { height: 32px; }
.adm-side a.nv { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; }
.adm-side a.nv svg { width: 17px; height: 17px; opacity: .8; }
.adm-side a.nv:hover { color: var(--text); text-decoration: none; background: rgba(200, 205, 255, .05); }
.adm-side a.nv.on { color: var(--mint); background: var(--mint-soft); }
.adm-side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #66687e; padding: 18px 12px 6px; }
.adm-side .cnt { margin-left: auto; font-size: 11.5px; background: var(--pink); color: #fff; border-radius: 9px; padding: 1px 7px; font-weight: 700; }
.adm-main { padding: 28px 34px 60px; min-width: 0; }
.adm-main h1 { font-size: 30px; font-weight: 400; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-head .sub { color: var(--dim); font-size: 14px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpis .card { padding: 18px 20px; }
.check-list { display: flex; flex-direction: column; }
.check-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.check-item:last-child { border-bottom: 0; }
.check-item .ck { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.check-item.done .ck { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.check-item .ck svg { width: 11px; height: 11px; }
.check-item .t { color: var(--text); font-size: 14.5px; }
.check-item.done .t { color: var(--dim); text-decoration: line-through; }
.check-item .s { font-size: 13px; color: var(--dim); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters input[type=search] { max-width: 280px; padding: 9px 14px; }
.filters select { width: auto; padding: 9px 38px 9px 14px; }
.avail-grid { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; align-items: center; }
.avail-grid .dname { color: var(--text); font-size: 14.5px; }
.avail-grid input { padding: 9px 12px; }
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--peri); font-weight: 600; margin-bottom: 14px; }
.email-frame { width: 100%; height: 640px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: #f4f4f8; }
details.more summary { cursor: pointer; color: var(--mint); font-size: 14px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }

/* ── Cookie, toast ──────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--card2); border: 1px solid var(--line2); color: var(--text); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .g4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { grid-template-columns: 1fr; }
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; padding: 12px; align-items: center; }
  .adm-side .grp { display: none; }
  .adm-side .logo { padding: 0 10px 0 4px; }
  .adm-side a.nv { white-space: nowrap; }
  .adm-main { padding: 24px 18px 50px; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    border-radius: 18px; padding: 10px; background: var(--card2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-pop { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0; }
  .menu > button { display: none; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-sub { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .g2, .g3, .g4, .form-row, .form-row3 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .profile-head img { width: 96px; height: 96px; }
  .hero { padding: 40px 0; }
  .hero-ring { width: 380px; height: 380px; right: -220px; top: -60px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .avail-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .receipt { padding: 24px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .balance-num { font-size: 52px; }
}
@media print {
  .hdr, .foot, .demo-strip, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; padding: 0; }
}
