/* =============================================================================
   Nth Tap – dark glass design system (shared by /activate, /account, /p/…, /c/…)
   ============================================================================= */
:root {
  /* Black with the logo's emerald, used sparingly */
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f2f0;
  --muted: rgba(242, 242, 240, .6);
  --green: #1fa97a;
  --green-2: #1fa97a;
  --green-ink: #3cc795;
  --green-soft: rgba(31, 169, 122, .1);
  --green-glow: rgba(31, 169, 122, .28);
  --violet: #e8e2d5;
  --dark: #000000;
  --cream: #e8e2d5;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --danger: #f87171;
  --warn: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Moving brand glows behind every page except the themed profile page */
/* One quiet light from the top, no moving blobs */
body:not(.profile-page)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 50% -18%, rgba(31,169,122,.1), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid rgba(31,169,122,.6); outline-offset: 2px; border-radius: 8px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--green-ink); font-size: .9em; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ico { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, opacity .3s, border-color .3s, color .3s;
  position: relative; overflow: hidden; white-space: nowrap; min-height: 46px;
}
.btn-sm { padding: 10px 18px; font-size: .92rem; min-height: 40px; }
.btn-lg { padding: 18px 32px; font-size: 1.12rem; min-height: 58px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -14px var(--green-glow); }
.btn-primary:hover { transform: translateY(-1px); background: #23b885; box-shadow: 0 14px 30px -14px var(--green-glow); }
.btn-primary:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-ink); transform: translateY(-2px); }
.btn-white { background: #fff; color: #000; }
.btn-danger { background: rgba(248,113,113,.15); color: var(--danger); border: 1px solid rgba(248,113,113,.4); }
.btn-wa { background: #25d366; color: #000; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 0 30px -6px #25d366; }
.btn-icon { padding: 0; width: 46px; }
.text-btn { color: var(--green-ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(110,231,183,.4); }
.text-btn:hover { text-decoration-color: currentColor; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  margin-top: calc(12px + env(safe-area-inset-top)); padding: 10px 14px 10px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  max-width: 1120px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand-text b { color: var(--green); font-weight: 800; }
.brand-logo { display: block; height: 46px; width: auto; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; gap: 5px; flex-direction: column; justify-content: center; align-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.eyebrow { display: inline-block; color: var(--green-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; }
.footer { border-top: 1px solid var(--line); padding: 36px 5vw calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--green-ink); }

/* =============================================================================
   Activation page
   ============================================================================= */
.activate-page { padding: calc(110px + env(safe-area-inset-top)) 5vw 80px; }
.page-head { max-width: 1120px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-top: 8px; }
.page-head p { color: var(--muted); font-size: 1.05rem; margin-top: 8px; max-width: 560px; }
.help-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.help-link .ico { color: #25d366; }

.wizard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; max-width: 1120px; margin: 0 auto; align-items: start; }
.wizard-form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); min-height: 560px; box-shadow: var(--shadow); }

/* Stepper */
.progress { list-style: none; display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.progress::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 3px; border-radius: 3px; background: var(--surface-2); }
.progress::after { content: ""; position: absolute; left: 22px; top: 21px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--green-2)); width: var(--p, 0%); transition: width .6s var(--ease); }
.progress li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.progress li span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line-strong); font-weight: 800; transition: all .4s var(--ease); }
.progress li.active span { border-color: var(--green); color: var(--green-ink); box-shadow: 0 0 0 6px rgba(31,169,122,.18), 0 0 24px var(--green-glow); }
.progress li.done span { background: linear-gradient(90deg, var(--green), var(--green-2)); border-color: transparent; color: #000; }
.progress li.active { color: var(--text); }

.panel { display: none; }
.panel.active { display: block; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.panel > .muted, .mode-form > .muted { margin-bottom: 20px; }

/* Account nudge on step 1 */
.nudge { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--green-soft); border: 1px solid rgba(31,169,122,.25); margin-bottom: 22px; }
.nudge .ico { width: 26px; height: 26px; color: var(--green-ink); }
.nudge p { flex: 1; font-size: .93rem; }
.nudge-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Mode picker (step 1) */
.modes { display: grid; gap: 12px; margin-bottom: 18px; }
.mode {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.mode:hover { transform: translateY(-3px); border-color: rgba(31,169,122,.5); box-shadow: var(--shadow); }
.mode.active, .mode.featured { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, var(--green), var(--green-2), var(--violet)) border-box; }
.mode.active { box-shadow: 0 0 40px -10px var(--green-glow); }
.mode-ico { width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; color: #000; background: linear-gradient(135deg, var(--green), var(--green-2)); transition: transform .35s var(--ease); }
.mode-ico .ico { width: 26px; height: 26px; }
.mode:hover .mode-ico { transform: rotate(-8deg) scale(1.08); }
.mode-body { flex: 1; }
.mode-body b { display: block; font-size: 1.1rem; }
.mode-body em { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #000; background: var(--green); padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.mode-body small { color: var(--muted); font-size: .92rem; }
.mode-go { color: var(--muted); font-size: 1.3rem; transition: transform .3s var(--ease), color .3s; }
.mode:hover .mode-go { transform: translateX(4px); color: var(--green-ink); }
.login-box { margin-top: 16px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); animation: popIn .4s var(--ease); }
.login-box h4 { margin-bottom: 12px; }

/* Form sections (step 2): numbered cards so a long form reads as a few clear parts */
.fs { padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(0,0,0,.25); margin-bottom: 14px; }
.fs-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.fs-num { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #000; background: linear-gradient(135deg, var(--green), var(--green-2)); }
.fs-head h4 { font-size: 1.08rem; }
.fs-head p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.fs > .field:last-child, .fs > .row:last-child, .fs > .row:last-child > .field { margin-bottom: 0; }

/* Form fields */
.field { display: block; margin-bottom: 16px; flex: 1; }
.field > span { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea, .field select, .link-item input {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,.06); border: 1.5px solid var(--line-strong); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder, .link-item input::placeholder { color: rgba(255,255,255,.35); }
.field textarea { resize: vertical; }
.field select option { background: #111; }
.field input:focus, .field textarea:focus, .field select:focus, .link-item input:focus { border-color: var(--green); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(31,169,122,.18); }
.row { display: flex; gap: 14px; }
.err { color: var(--danger); font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.panel-actions .btn-primary:only-child { margin-left: auto; }
.sub-h { margin: 26px 0 10px; font-size: 1.08rem; padding-top: 22px; border-top: 1px solid var(--line); }
.hint { font-size: .86rem; color: var(--muted); word-break: break-all; min-height: 1.2em; }
.hint.warn { color: var(--warn); }

/* Phone number with +91 in front */
.phone-input, .field > .phone-input { display: flex; align-items: stretch; margin-bottom: 0; font-size: 1rem; font-weight: 400; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-strong); transition: border-color .25s, box-shadow .25s; }
.phone-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,169,122,.18); }
.phone-input b { display: grid; place-items: center; padding: 0 12px 0 14px; color: var(--muted); font-weight: 700; border-right: 1.5px solid var(--line); }
.phone-input.intl b { display: none; }
.field .phone-input input { border: 0; background: transparent; box-shadow: none; flex: 1; min-width: 0; letter-spacing: .02em; }
.field .phone-input input:focus { box-shadow: none; background: transparent; }

.avatar-pick { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.avatar-drop { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed rgba(31,169,122,.6); background: var(--green-soft); display: grid; place-items: center; cursor: pointer; color: var(--green-ink); font-size: .82rem; font-weight: 700; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; flex-shrink: 0; }
.avatar-drop:hover { transform: scale(1.05); border-color: var(--green); }
.avatar-drop img { width: 100%; height: 100%; object-fit: cover; }
.swatches { display: flex; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg-2); outline: 2px solid transparent; transition: transform .25s, outline-color .25s; }
.sw:hover { transform: scale(1.12); }
.sw.active { outline-color: var(--c); }

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-tile { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; text-align: center; }
.theme-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.theme-tile.active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,169,122,.18); }
.tt-sample { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 74px; padding-top: 10px; border-radius: 11px; border: 1px solid; overflow: hidden; }
.tt-avatar { width: 18px; height: 18px; border-radius: 50%; }
.tt-line { width: 42%; height: 4px; border-radius: 2px; opacity: .85; }
.tt-btn { width: 64%; height: 9px; border-radius: 4px; margin-top: 3px; }
.tt-row { width: 64%; height: 9px; border-radius: 4px; }
.tt-name { font-size: .8rem; font-weight: 700; color: var(--muted); }
.theme-tile.active .tt-name { color: var(--green-ink); }

/* Chips (link types, templates) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 14px 7px 7px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: all .25s var(--ease); min-height: 40px; }
.chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.chip i .ico { width: 58%; height: 58%; }
.chip:hover { border-color: var(--green); transform: translateY(-2px); }
.chip.active { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.tpl-chips { margin-bottom: 0; }
.tpl-chips .chip { padding: 9px 16px; }
.tpl-chips .chip.active { background: linear-gradient(90deg, var(--green), var(--green-2)); color: #000; border-color: transparent; }

.link-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.link-item { display: flex; align-items: center; gap: 10px; animation: popIn .4s var(--ease); }
.link-item .li-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; }
.li-ico .ico { width: 58%; height: 58%; }
.link-item .li-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.link-item .li-body small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.link-item input { padding: 11px 14px; }
.li-del { width: 40px; height: 40px; border-radius: 12px; color: var(--muted); transition: all .25s; flex-shrink: 0; }
.li-del:hover { background: rgba(248,113,113,.15); color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 26px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface); }

/* Step 3: NFC card or QR code */
.path-choice { text-align: center; margin-bottom: 8px; }
.path-choice h3 { margin-bottom: 4px; }
.path-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.path-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border-radius: 20px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong); transition: transform .3s var(--ease), border-color .25s, box-shadow .3s;
}
.path-opt:hover, .path-opt:focus-visible { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 0 40px -12px var(--green-glow); }
.path-opt b { font-size: 1.15rem; }
.path-opt small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.po-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #000; margin-bottom: 4px; }
.po-ico .ico { width: 28px; height: 28px; }
.path-back { display: inline-block; margin-bottom: 14px; }

.write-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(31,169,122,.16), rgba(31,169,122,.1)); border: 1px solid rgba(31,169,122,.25); }
.write-head h3 { margin-bottom: 4px; }
.write-head .muted { font-size: .98rem; }
.tap-anim { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.ta-phone { position: absolute; left: 34px; top: 6px; width: 48px; height: 88px; border-radius: 12px; border: 3px solid rgba(255,255,255,.7); background: #000; }
.ta-card { position: absolute; left: 4px; top: 42px; width: 54px; height: 36px; border-radius: 7px; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); animation: taCard 2.4s var(--ease) infinite; }
.ta-wave { position: absolute; left: 58px; top: 50px; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: taWave 2.4s infinite; }
.tap-anim.busy .ta-card, .tap-anim.busy .ta-wave { animation-duration: 1.2s; }
.tap-anim.ok .ta-card { animation: none; transform: translate(28px, -8px); }
.tap-anim.ok .ta-wave { animation: none; opacity: 0; }
.tap-anim.ok .ta-phone { border-color: var(--green); box-shadow: 0 0 0 6px rgba(31,169,122,.2); }
@keyframes taCard { 0%, 15% { transform: translate(-6px, 10px) rotate(-12deg); } 45%, 70% { transform: translate(28px, -8px) rotate(0); } 100% { transform: translate(-6px, 10px) rotate(-12deg); } }
@keyframes taWave { 0%, 40% { opacity: 0; transform: scale(1); } 50% { opacity: .9; } 75%, 100% { opacity: 0; transform: scale(6); } }
.payload { padding: 16px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-bottom: 18px; }
.payload > small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.payload-row { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.payload-row code { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; background: none; padding: 0; font-size: .95rem; font-weight: 600; max-height: 140px; overflow: auto; }
.write-actions { margin-bottom: 4px; }
.write-actions .btn { width: 100%; }
#writeNfc { padding: 20px; font-size: 1.15rem; min-height: 62px; }
.status { margin-top: 12px; text-align: center; color: var(--muted); min-height: 1.4em; font-weight: 500; }
.status.ok { color: var(--green-ink); font-weight: 700; }
.status.bad { color: var(--danger); }
.status.warn { color: var(--warn); }
.unsupported { padding: 20px; border-radius: 18px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); }
.unsupported p { color: var(--muted); margin: 6px 0 14px; font-size: .95rem; }
.unsupported p b { color: var(--text); }
.profile-extra { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.extra-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.reset-box { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border: 1px solid rgba(248,113,113,.4); border-radius: 16px; }
.reset-box label { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.reset-box label input { margin-top: 4px; flex: none; }
.reset-confirm { display: flex; gap: 8px; flex-wrap: wrap; }
.reset-confirm input { flex: 1; min-width: 160px; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
/* --- Admin dashboard: stats, tabs, one task per tab (phone first) --- */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.admin-top h2 { margin: 0; }
.admin-badge { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 999px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px; border-radius: 18px; text-align: left; color: var(--text); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: transform .2s var(--ease); }
.stat:active { transform: scale(.97); }
.stat b { font-size: 2rem; font-weight: 600; line-height: 1; font-family: var(--serif); color: var(--text); }
.stat span { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.admin-tabs { position: sticky; top: calc(76px + env(safe-area-inset-top)); z-index: 15; display: flex; gap: 6px; padding: 6px; margin: 0 -4px 16px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; scroll-margin-top: 90px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.atab { flex: 1 0 auto; padding: 10px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.atab.active { background: var(--text); color: #0a0a0a; }
.atab.danger.active { background: #dc2626; color: #fff; }
.apanel { animation: panelIn .35s var(--ease); }
.apanel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apanel-head p { color: var(--muted); font-size: .9rem; margin: 0; }
.how { list-style: none; counter-reset: how; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; }
.how li { counter-increment: how; position: relative; padding-left: 34px; min-height: 24px; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.how li::before { content: counter(how); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--green-ink); border: 1px solid rgba(31,169,122,.5); }
.how b { color: var(--text); }
.mint-form { display: flex; gap: 10px; align-items: stretch; }
.mint-count { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface-2); }
.mint-count span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.mint-count input { width: 3.4em; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 800; padding: 12px 0; }
.mint-form .btn { flex: 1; }
#mintOut { width: 100%; margin-top: 12px; }
.chip-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-actions .btn { flex: 1 1 auto; }
.android-only, .danger-note { padding: 12px 14px; border-radius: 14px; font-size: .9rem; margin: 0 0 14px; }
.android-only { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); }
.danger-note { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); }
@media (max-width: 760px) {
  .admin-tabs { top: calc(70px + env(safe-area-inset-top)); }
  .admin-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; border-radius: 20px; padding: 5px; overflow: visible; }
  .atab { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 1px; border-radius: 15px; font-size: .74rem; line-height: 1.15; white-space: normal; text-align: center; }
  .chip-row { gap: 10px; padding: 10px 12px; }
  .chip-state { font-size: .8rem; }
  .apanel-head { flex-direction: column; align-items: stretch; }
  .apanel-head .btn { align-self: flex-start; }
  .mint-qrs figure { flex: 1 1 140px; }
}
.chip-list { display: grid; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.chip-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
.chip-row b { letter-spacing: .08em; }
.chip-state { flex: 1; font-size: .88rem; color: var(--muted); }
.chip-state.ok { color: var(--green-ink); }
.chip-state.warn { color: var(--warn); }
.mint-qrs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.mint-qrs figure { margin: 0; padding: 12px; border-radius: 16px; background: #fff; color: #111; text-align: center; }
.mint-qrs figure div { display: grid; place-items: center; }
.mint-qrs figure img, .mint-qrs figure canvas { max-width: 100%; height: auto; }
.mint-qrs figcaption { margin: 8px 0; font-weight: 700; letter-spacing: .08em; }
.qr-link { margin-top: 18px; padding: 16px; border-radius: 18px; border: 1px dashed rgba(31,169,122,.35); }
.qr-link p { margin: 4px 0 12px; }
.qr-link .err.ok { color: var(--green-ink); }
.scan-box { position: relative; margin: 12px 0; border-radius: 16px; overflow: hidden; background: #000; max-width: 360px; }
.scan-box video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(110,231,183,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.scan-box .btn { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.qr-found { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(31,169,122,.08); max-width: 420px; }
.qr-found-text { display: flex; gap: 10px; align-items: center; text-align: left; }
.qr-found-text .ico { width: 28px; height: 28px; flex: none; color: var(--green-ink); }
.qr-found-text span { display: flex; flex-direction: column; min-width: 0; }
.qr-found-text small { color: var(--muted); overflow-wrap: anywhere; }
.code-form { display: flex; gap: 8px; margin-top: 12px; max-width: 360px; }
.code-form input { flex: 1; min-width: 0; }

/* QR studio */
.qr-studio { margin: 22px 0; padding: 22px; border-radius: 24px; border: 1px solid rgba(31,169,122,.25); background: linear-gradient(160deg, rgba(31,169,122,.1), rgba(31,169,122,.08)); animation: popIn .45s var(--ease); }
.qs-head h4 { margin: 0 0 4px; font-size: 1.2rem; }
.qs-head p { margin: 0 0 18px; }
.qs-body { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qs-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 100px; }
.qs-frame { width: 220px; height: 220px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); display: grid; place-items: center; transition: background .3s; }
.qs-frame.transparent { background: repeating-conic-gradient(#2a2a2a 0 25%, #444 0 50%) 0 0 / 16px 16px; }
.qs-frame canvas, .qs-frame img, .qs-frame svg { width: 200px !important; height: 200px !important; display: block; }
.qs-caption { font-size: .9rem; font-weight: 700; color: var(--text); text-align: center; min-height: 1.2em; }
.qs-downloads { display: flex; gap: 8px; }
.qs-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.qs-group > span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.qs-group input[type="text"] { width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; color: var(--text); background: rgba(255,255,255,.06); border: 1.5px solid var(--line-strong); outline: none; }
.qs-group input[type="text"]:focus { border-color: var(--green); }
.qs-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-sw { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bg-2); cursor: pointer; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.25); transition: transform .2s var(--ease), box-shadow .2s; }
.qs-sw:hover { transform: scale(1.1); }
.qs-sw.active { box-shadow: 0 0 0 2px var(--green); transform: scale(1.08); }
.qs-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #ec4899, #ef4444); overflow: hidden; }
.qs-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.qs-sw.none { background: repeating-conic-gradient(#2a2a2a 0 25%, #555 0 50%) 0 0 / 10px 10px; }
.qs-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.qs-opts button { padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.qs-opts button:hover:not(:disabled) { border-color: var(--green); }
.qs-opts button.active { background: linear-gradient(90deg, var(--green), var(--green-2)); color: #000; border-color: transparent; }
.qs-opts button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 620px) {
  .qr-studio { padding: 18px; }
  .qs-body { grid-template-columns: 1fr; }
  .qs-preview { position: static; }
}

/* The stage on the right: live phone preview */
.wizard-preview { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preview-pane { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 250px; height: 500px; border-radius: 42px;
  background: linear-gradient(160deg, #1d2623, #0b0f0d);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 7px #070a09, inset 0 0 0 8px rgba(255,255,255,.08);
  padding: 14px; z-index: 1;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 30px; background: var(--bg-2); overflow: hidden; }
.phone-lg { width: 290px; height: 580px; }
.preview-label { margin-top: 4px; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.preview-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
.ps-ring { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(31,169,122,.45); animation: ping-ring 2s infinite; }

/* Live profile preview inside the phone (themed with CSS variables) */
.preview-screen { --accent: var(--green); color: var(--text); transition: background .4s, color .4s; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 20px; overflow-y: auto; scrollbar-width: none; }
.pr-head { position: absolute; top: 0; left: 0; right: 0; height: 130px; background: linear-gradient(160deg, var(--accent), transparent); opacity: .35; transition: background .5s; }
.pr-avatar { position: relative; margin-top: 70px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--bg-2); background: var(--accent); color: var(--accent-text, #04120c); display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; overflow: hidden; flex-shrink: 0; transition: background .5s; }
.pr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pr-name { margin-top: 12px; font-size: 1.2rem; line-height: 1.2; }
.pr-role { color: var(--muted); font-size: .82rem; }
.pr-bio { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.pr-btns { display: flex; gap: 8px; width: 100%; margin: 16px 0; }
.pr-btns span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px; border-radius: 10px; font-size: .82rem; font-weight: 600; background: var(--accent); color: var(--accent-text, #04120c); transition: background .5s; }
.pr-btns span + span { background: transparent; border: 1px solid var(--line); color: var(--text); }
.pr-btns .ico, .pr-save .ico { width: 15px; height: 15px; }
.pr-links { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pr-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; text-align: left; animation: popIn .35s var(--ease); }
.pr-link i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; flex-shrink: 0; }
.pr-link i .ico { width: 58%; height: 58%; }
.pr-save { position: sticky; bottom: 0; margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; font-size: .82rem; font-weight: 700; background: var(--accent); color: var(--accent-text, #04120c); box-shadow: 0 -8px 18px var(--bg-2); }
.pv-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; padding: 20px; }
.pv-url { margin-top: 50px; width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pv-url span { margin-right: 6px; }
.pv-linkcard { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: popIn .4s var(--ease); width: 100%; }
.pv-big-ico { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 8px; }
.pv-big-ico .ico { width: 46%; height: 46%; }
.pv-linkcard small { color: var(--muted); word-break: break-all; max-width: 100%; }
.pv-open { margin-top: 18px; font-size: .75rem; color: var(--accent); padding: 6px 12px; border-radius: 999px; background: rgba(31,169,122,.12); }
.pv-contact { width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 50px; }
.pv-top { color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.pv-contact .pr-avatar { margin-top: 10px; }
.pv-rows { width: 100%; margin: 18px 0; border-radius: 12px; background: var(--surface-2); text-align: left; overflow: hidden; }
.pv-row { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; word-break: break-all; }
.pv-row:last-child { border-bottom: 0; }
.pv-row small { display: block; color: var(--accent); font-size: .7rem; }
.pv-add { width: 100%; padding: 10px; border-radius: 10px; background: var(--accent); color: var(--accent-text, #04120c); font-weight: 600; font-size: .85rem; }

/* Floating preview button and full-screen preview (phones) */
.preview-fab, .preview-close { display: none; }
.no-scroll { overflow: hidden; }
.wizard.preview-open { position: relative; z-index: 100; }

/* =============================================================================
   Account page
   ============================================================================= */
.account { max-width: 980px; margin: 0 auto; padding: calc(116px + env(safe-area-inset-top)) 16px 80px; }
.account-loading { text-align: center; color: var(--muted); padding: 60px 0; }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); }
.tabs { display: flex; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.tab { flex: 1; padding: 11px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: background .3s, color .3s; }
.tab.active { background: #fff; color: #000; }
.auth-form h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.auth-form > .muted { margin-bottom: 20px; }
.auth-form .btn-primary { width: 100%; margin: 6px 0 14px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; margin-top: 6px; }
.dash-section { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; margin-bottom: 22px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dash-section h2 { font-size: 1.28rem; margin-bottom: 6px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.profile-grid { display: grid; gap: 12px; }
.profile-grid .empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.profile-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--line); transition: border-color .3s; }
.profile-tile:hover, .card-tile:hover { border-color: var(--line-strong); }
.pt-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #000; font-weight: 700; }
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-body { flex: 1; min-width: 0; }
.pt-body b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-body small { color: var(--muted); }
.pt-actions { display: flex; gap: 8px; }
.card-list { display: grid; gap: 12px; margin-top: 16px; }
.card-list .empty { display: block; }
.card-tile { padding: 16px; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--line); transition: opacity .3s, border-color .3s; }
.card-tile.is-off { opacity: .6; }
.ct-top { display: flex; align-items: center; gap: 12px; }
.ct-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); flex-shrink: 0; }
.ct-icon svg { width: 24px; }
.ct-body { flex: 1; min-width: 0; }
.ct-body b { display: block; }
.ct-body small { color: var(--muted); word-break: break-all; }
.chip-status { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.chip-status.ok { background: var(--green-soft); color: var(--green-ink); }
.chip-status.new { background: rgba(251,191,36,.15); color: var(--warn); }
.chip-status.off { background: rgba(248,113,113,.15); color: var(--danger); }
.ct-profile { margin: 14px 0 10px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-history { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; font-size: .88rem; }
.ct-history li { display: flex; justify-content: space-between; gap: 12px; }
.ct-history time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.claim-form { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; }
.claim-form .field { margin-bottom: 0; }

/* Pop-up windows */
.modal-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.modal-back.closing { opacity: 0; transition: opacity .18s; }
.modal-card { width: 100%; max-width: 420px; background: #0d1210; border: 1px solid var(--line-strong); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); animation: popIn .3s var(--ease); }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-card > .muted { margin-bottom: 16px; font-size: .95rem; }
.modal-card .field { margin: 12px 0 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Simple centred pages (404, card switched off) */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px 16px; max-width: 500px; margin: 0 auto; }
.notfound .brand-mark { margin-bottom: 10px; }
.notfound h1 { font-size: 2rem; font-weight: 800; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* =============================================================================
   Public profile page (colours come from the profile's theme via CSS variables)
   ============================================================================= */
.profile-page { background: var(--bg); color: var(--text); transition: background .3s; }
.profile-view { min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); position: relative; }
.pv-bg { position: fixed; inset: 0 0 auto 0; height: 280px; background: linear-gradient(170deg, var(--accent), transparent); opacity: .35; }
.theme-light .pv-bg { opacity: .22; }
.pv-card { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 100px; }
.pv-avatar { width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--bg); background: var(--accent); color: var(--accent-text, #04120c); display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(0,0,0,.4); }
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-card h1 { font-size: 1.9rem; margin-top: 16px; line-height: 1.2; }
.pv-role { color: var(--muted); }
.pv-bio { color: var(--muted); margin-top: 10px; max-width: 360px; }
.pv-actions { display: flex; gap: 10px; width: 100%; margin: 24px 0; }
.pv-actions .btn { flex: 1; gap: 8px; }
.pv-actions .btn-icon { flex: 0 0 52px; padding: 0; }
.profile-page .btn-primary, .pv-savebar .btn-primary { background: var(--accent); color: var(--accent-text, #04120c); box-shadow: 0 10px 28px -10px var(--accent); }
.profile-page .btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: none; }
.profile-page .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.pv-links { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pv-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-weight: 500; transition: transform .3s var(--ease), border-color .3s; opacity: 0; animation: panelUp .6s var(--ease) forwards; }
.pv-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.pv-link i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-style: normal; flex-shrink: 0; }
.pv-link i .ico { width: 58%; height: 58%; }
.pv-link span { flex: 1; min-width: 0; }
.pv-link small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-link::after { content: "↗"; color: var(--muted); }
.pv-brand { margin-top: 36px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.pv-brand img { width: 22px; height: 24px; object-fit: cover; border-radius: 6px; background: var(--dark); }
.pv-brand b { color: var(--accent); }
.pv-example { position: fixed; top: 0; left: 0; right: 0; z-index: 45; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #000; color: #fff; font-size: .9rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.1); }
.pv-example a { color: var(--green-ink); font-weight: 700; }
.pv-savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.pv-savebar .btn { width: 100%; max-width: 440px; gap: 10px; padding: 16px; font-size: 1.05rem; }
.pv-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.pv-modal-card { position: relative; width: 100%; max-width: 340px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px 22px; text-align: center; animation: popIn .35s var(--ease); }
.pv-modal-card h2 { font-size: 1.3rem; }
.pv-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.pv-modal-close:hover { background: var(--surface-2); color: var(--text); }
.pv-qr { background: #fff; border-radius: 16px; padding: 14px; margin: 16px auto; width: fit-content; }
.pv-qr img, .pv-qr canvas { width: 220px !important; height: 220px !important; display: block; }
.pv-modal-card .btn { width: 100%; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 160px); background: #fff; color: #000; padding: 13px 22px; border-radius: 999px; z-index: 110; transition: transform .45s var(--ease); font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal and tilt ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-up { animation: panelUp .8s var(--ease) both; }
.tilt { position: relative; overflow: hidden; }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(31,169,122,.12), transparent 55%); }
.tilt:hover::after { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,169,122,.55); } 100% { box-shadow: 0 0 0 10px rgba(31,169,122,0); } }
@keyframes ping-ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes panelUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================================
   Responsive
   ============================================================================= */
.nav-links a, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 980px) {
  .wizard { grid-template-columns: 1fr; }
  /* Preview opens full screen from a floating button instead of pushing the form down */
  .wizard-preview { display: none; }
  .wizard-preview.open {
    display: flex; position: fixed; inset: 0; z-index: 85; overflow-y: auto; justify-content: flex-start;
    padding: calc(76px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom));
    background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeIn .25s ease;
  }
  .preview-close { display: block; position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 2; padding: 11px 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; }
  .preview-fab {
    display: flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55;
    padding: 14px 20px; border-radius: 999px; font-weight: 800; color: #000;
    background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 30px -4px var(--green-glow); animation: popIn .35s var(--ease);
  }
  .preview-fab .ico { width: 20px; height: 20px; }
  .phone-lg { width: 260px; height: 520px; }
}
@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav-actions .btn-ghost { display: none; }
  .burger { display: flex; margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: fixed; inset: calc(76px + env(safe-area-inset-top)) 16px auto 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d1210; border: 1px solid var(--line-strong); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg);
    transform: translateY(-16px) scale(.97); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; color: var(--text); }
  .nav-links a:hover { background: var(--surface-2); }
}
@media (max-width: 760px) {
  .brand-logo { height: 38px; }
  .activate-page { padding: calc(88px + env(safe-area-inset-top)) 12px 100px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 1.65rem; }
  .page-head p { font-size: .98rem; }
  .wizard-form { padding: 20px 14px; border-radius: 22px; }
  .fs { padding: 16px 14px; }
  .row { flex-direction: column; gap: 0; }
  .fs > .row:last-child > .field:not(:last-child) { margin-bottom: 16px; }
  .progress li { font-size: .78rem; }
  .nudge { flex-wrap: wrap; }
  .nudge-actions { width: 100%; }
  .nudge-actions .btn { flex: 1; }
  .panel-actions { gap: 10px; }
  .panel-actions .btn-primary { flex: 1; }
  .write-head { flex-direction: column; text-align: center; gap: 10px; }
  .profile-extra { text-align: center; }
  .extra-btns { justify-content: center; }
  .scan-box, .code-form, .qr-found { margin-left: auto; margin-right: auto; }
  .qr-studio { margin: 18px 0; padding: 16px; border-radius: 20px; }
  .qs-head { text-align: center; }
  .qs-head p { margin-bottom: 14px; font-size: .92rem; }
  .qs-sw { width: 34px; height: 34px; }
  .unsupported { padding: 16px; }
  .profile-tile { flex-wrap: wrap; }
  .pt-actions { width: 100%; }
  .pt-actions .btn { flex: 1; }
  .claim-form { flex-direction: column; align-items: stretch; }
  .dash-section { padding: 20px 16px; }
  .modal-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .path-opts { grid-template-columns: 1fr; }
  .path-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 16px; }
  .path-opt .po-ico { grid-row: 1 / 3; margin: 0; }
  .path-opt b { align-self: end; }
  .path-opt small { align-self: start; }
}
@media (max-width: 420px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .mode { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   Card shop (/shop)
   ============================================================================= */
.shop-page { padding: calc(110px + env(safe-area-inset-top)) 5vw 80px; }
.shop-price { text-align: right; }
.shop-price b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--text); }
.shop-price > span { color: var(--muted); font-size: .9rem; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; max-width: 1120px; margin: 0 auto; align-items: start; }
.shop-preview { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shop-points { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; width: 100%; max-width: 440px; }
.shop .hint { word-break: normal; }
.shop-points li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 10px; }

/* Flip preview (card artwork lives in cards.css) */
.flip { width: 100%; max-width: 460px; perspective: 1400px; cursor: pointer; }
.flip-in { position: relative; transform-style: preserve-3d; transition: transform .8s var(--ease); aspect-ratio: 85.6 / 54; animation: cardFloat 6s ease-in-out infinite; }
.flip.show-back .flip-in { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-face.back { transform: rotateY(180deg); }
@keyframes cardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.seg-mini { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg-mini button { padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg-mini button.active { background: #fff; color: #000; }
.preview-caption { color: var(--muted); font-size: .92rem; text-align: center; }
.preview-caption b { color: var(--text); }

/* Finish swatches */
.finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.finish { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.finish:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.finish.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,169,122,.22); }
.finish i { position: relative; width: 52px; height: 33px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.finish i::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--foil); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.finish b { font-size: .8rem; line-height: 1.2; text-align: center; }
.finish small { font-size: .72rem; color: var(--muted); }

/* Design pickers */
.style-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.style-tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 700; color: var(--muted); }
.style-tabs button.active { background: #fff; color: #000; border-color: #fff; }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design-opt { display: flex; flex-direction: column; gap: 6px; padding: 5px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.design-opt:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.design-opt.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,169,122,.22); }
.design-opt small { font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; }
.design-opt.active small { color: var(--green-ink); }
.design-opt .ntc { box-shadow: none; border-radius: 7px; }
.count-chip { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; vertical-align: 2px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 48px; height: 48px; font-size: 1.4rem; font-weight: 700; }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 48px; text-align: center; font-weight: 800; font-size: 1.15rem; }

.summary { padding: 18px; border-radius: 18px; background: rgba(0,0,0,.35); border: 1px solid var(--line); margin: 6px 0 12px; display: grid; gap: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary div b { color: var(--text); white-space: nowrap; }
.summary small { font-size: .8rem; }
.summary .sum-total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 1.15rem; font-weight: 700; }
.summary .sum-total b { font-size: 1.35rem; }
.summary .sum-off, .summary .sum-off b { color: var(--green-ink); }
/* Coupon code box on the order step */
.coupon { margin-top: 6px; }
.coupon .field { margin-bottom: 6px; }
.coupon .field > .coupon-row { display: flex; gap: 10px; margin: 0; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.coupon-row .btn { flex: none; padding-inline: 20px; }
.coupon-msg { min-height: 1.2em; margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.coupon-msg.ok { color: var(--green-ink); }
.coupon-msg.bad { color: #f87171; }

.done { text-align: center; padding: 10px 0; }
.done-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: #000; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 0 40px var(--green-glow); animation: popIn .5s var(--ease); }
.done-code { margin: 16px 0 20px; font-size: 1.05rem; }
.done-code b { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--green-ink); }
.next-steps { text-align: left; margin: 26px auto 0; max-width: 460px; display: grid; gap: 12px; padding-left: 22px; color: var(--muted); }
.next-steps b { color: var(--text); }

/* Policies page */
.policy { max-width: 760px; margin: 0 auto; padding: calc(116px + env(safe-area-inset-top)) 20px 80px; }
.policy h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin: 8px 0 6px; }
.policy h2 { font-size: 1.35rem; margin: 34px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.policy p, .policy li { color: var(--muted); margin-bottom: 10px; }
.policy ul { padding-left: 20px; }
.policy a { color: var(--green-ink); }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.policy-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: .9rem; font-weight: 600; }

/* Orders (admin view on /account) */
.order-tile { padding: 16px; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--line); display: grid; gap: 10px; }
.ot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.ot-top b { font-family: ui-monospace, monospace; letter-spacing: .06em; }
.ot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .9rem; color: var(--muted); }
.ot-grid strong { color: var(--text); font-weight: 600; display: block; }
.order-tile select { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--text); border: 1.5px solid var(--line-strong); font: inherit; }
.order-tile select option { background: #111; }
.chip-status.paid, .chip-status.printing, .chip-status.shipped, .chip-status.delivered { background: var(--green-soft); color: var(--green-ink); }
.chip-status.pending { background: rgba(251,191,36,.15); color: var(--warn); }
.chip-status.cancelled { background: rgba(248,113,113,.15); color: var(--danger); }

@media (max-width: 980px) {
  .shop { grid-template-columns: 1fr; gap: 24px; }
  .shop-preview { position: static; }
  .shop-points { display: none; }
  .shop-price { text-align: left; }
}
@media (max-width: 760px) {
  .shop-page { padding: calc(88px + env(safe-area-inset-top)) 12px 100px; }
  .design-grid { grid-template-columns: repeat(2, 1fr); }
  .ot-grid { grid-template-columns: 1fr; }
}

/* Shop headline */
.genz-h { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; }
.grad-gold { color: var(--green-ink); font-style: italic; }

/* Brand tagline in footers */
.footer-tag { display: flex; flex-direction: column; gap: 2px; }
.footer-tag b { font-family: 'Unbounded', Inter, sans-serif; font-weight: 700; font-size: .9rem; color: var(--text); letter-spacing: -.01em; }
.footer-tag span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* Price on each finish swatch */
.finish em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--cream); }


/* Small phones: keep the sign-in tabs and the account tip buttons on one line */
@media (max-width: 760px) {
  .auth-card { padding: 22px 16px; border-radius: 24px; }
  .tab { padding: 11px 8px; font-size: .92rem; white-space: nowrap; }
  .nudge-actions .btn { padding: 10px 12px; }
}

/* =============================================================================
   Premium finish: black, warm white, emerald accents, serif headings
   ============================================================================= */
.page-head h1, .dash-head h1, .dash-section h2, .panel h3, .shop h1, .policies h1, .policies h2, .notfound h1, .path-choice h3, .admin-top h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
}
.page-head h1 { font-weight: 600; }
.eyebrow { color: var(--green-ink); letter-spacing: .22em; font-weight: 600; }

/* Activation choices: one calm style, the recommended one outlined in emerald */
#activate .mode { padding: 18px; border-radius: 20px; gap: 14px; background: var(--surface); border: 1px solid var(--line); }
#activate .mode:hover, #activate .mode:focus-visible { border-color: rgba(31,169,122,.55); box-shadow: none; transform: none; }
#activate .mode:active { transform: scale(.99); }
#activate .mode.featured, #activate .mode.active { background: var(--surface); border: 1px solid rgba(31,169,122,.6); box-shadow: inset 0 0 0 1px rgba(31,169,122,.15); }
#activate .mode-ico { width: 52px; height: 52px; border-radius: 16px; color: var(--green-ink); background: rgba(31,169,122,.1); border: 1px solid rgba(31,169,122,.3); }
#activate .mode:hover .mode-ico { transform: none; }
#activate .mode-body b { font-size: 1.08rem; font-weight: 600; }
#activate .mode-body em { color: var(--green-ink); background: none; border: 1px solid rgba(31,169,122,.5); font-weight: 600; letter-spacing: .1em; }
#activate .mode-go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--muted); border: 1px solid var(--line-strong); }
#activate .mode:hover .mode-go { color: var(--text); border-color: var(--text); transform: none; }
.fs-num { color: var(--green-ink); background: none; border: 1px solid rgba(31,169,122,.5); font-weight: 700; }
.progress li.done span { background: var(--green); color: #fff; }
.progress li.active span { box-shadow: 0 0 0 5px rgba(31,169,122,.15); }
.po-ico { color: var(--green-ink); background: rgba(31,169,122,.1); border: 1px solid rgba(31,169,122,.3); }
.path-opt:hover, .path-opt:focus-visible { border-color: rgba(31,169,122,.6); box-shadow: none; transform: none; }
.qr-link { border: 1px dashed var(--line-strong); }
.nudge { background: var(--surface); border-color: var(--line); }
#activate .btn, .shop .btn { min-height: 50px; border-radius: 14px; }
#activate .btn-sm, .shop .btn-sm { min-height: 42px; border-radius: 12px; }

@media (max-width: 760px) {
  #activate .page-head p { display: none; }
  #activate .page-head h1 { font-size: 1.7rem; }
  #activate .progress li span { width: 36px; height: 36px; font-size: .85rem; }
  #activate .progress::before, #activate .progress::after { top: 17px; left: 18px; }
  #activate .progress::before { right: 18px; }
  #activate .panel h3 { font-size: 1.4rem; }
  #activate .mode { padding: 16px 14px; gap: 12px; }
  /* Back / Continue stay under the thumb; the Preview button floats above them */
  #activate .panel-actions { position: sticky; bottom: 0; z-index: 20; margin: 18px -14px -20px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(17,17,17,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
  #activate .preview-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
.policy h1, .policy h2, .auth-card h1, .card-status h1, .notfound h1, .status-page h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 760px) {
  .mint-form { flex-wrap: wrap; }
  .mint-count { flex: 1 1 100%; justify-content: space-between; }
  .mint-form .btn { flex: 1 1 100%; }
}

/* Detailing: tactile buttons, drawn underlines on nav/footer links */
.btn:active { transform: scale(.98); }
.nav-links a, .footer-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s ease, color .2s; }
.nav-links a:hover, .footer-links a:hover { background-size: 100% 1px; }
.ok-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); border: 1px solid rgba(31,169,122,.3); color: var(--green-ink); font-size: .92rem; }

/* Admin coupons */
.coupon-help { color: var(--muted); margin: 0 0 14px; }
.coupon-form { display: grid; gap: 2px; }
.coupon-form .field small { font-weight: 400; opacity: .7; }
.coupon-new { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--green); background: rgba(31,169,122,.1); }
.coupon-new span { color: var(--muted); font-size: .85rem; }
.coupon-new b { flex: 1 1 9em; font-size: 1.15rem; letter-spacing: .05em; overflow-wrap: anywhere; }
#couponList { margin-top: 18px; }
.coupon-tile { gap: 8px; }
.coupon-meta { color: var(--muted); font-size: .9rem; }
.coupon-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon-actions .btn { flex: 1 1 0; min-width: 5.5em; }
.coupon-built { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.coupon-built b { color: var(--text); letter-spacing: .04em; }

/* Order tracking page */
.track { max-width: 640px; margin: 0 auto; padding: calc(116px + env(safe-area-inset-top)) 20px 80px; }
.track h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; margin: 8px 0 6px; }
.track-form { margin-top: 22px; padding: 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.track-form .btn { margin-top: 6px; width: 100%; }
.track-result { margin-top: 28px; padding: 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-head b { display: block; font-size: 1.35rem; letter-spacing: .06em; }
.tr-label { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.tr-note { color: var(--muted); margin: 14px 0 6px; line-height: 1.6; }
.tline { list-style: none; margin: 18px 0 8px; padding: 0 0 0 4px; }
.tline li { position: relative; padding: 0 0 22px 34px; color: var(--muted); }
.tline li:last-child { padding-bottom: 0; }
.tline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: -2px; width: 2px; background: var(--line-strong); }
.tline li:last-child::before { display: none; }
.tline .tdot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.tline b { display: block; font-weight: 700; }
.tline small { display: block; font-size: .82rem; margin-top: 2px; }
.tline li.is-done { color: var(--text); }
.tline li.is-done::before { background: var(--green); }
.tline li.is-done .tdot { background: var(--green); border-color: var(--green); }
.tline li.is-now { color: var(--text); }
.tline li.is-now .tdot { border-color: var(--green-ink); box-shadow: 0 0 0 5px rgba(31,169,122,.18); }
.ship-box { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--green); background: rgba(31,169,122,.08); }
.ship-box span { color: var(--muted); font-size: .88rem; }
.ship-box b { overflow-wrap: anywhere; }
.receipt { margin-top: 24px; padding: 18px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.receipt h2 { font-size: 1.15rem; margin: 0 0 4px; }
.rc-sub { color: var(--muted); font-size: .85rem; margin: 0 0 12px; overflow-wrap: anywhere; }
.rc-list, .rc-sum { margin: 0; display: grid; gap: 8px; }
.rc-list div, .rc-sum div { display: flex; justify-content: space-between; gap: 12px; }
.rc-list dt, .rc-sum dt { color: var(--muted); }
.rc-list dd, .rc-sum dd { margin: 0; font-weight: 700; white-space: nowrap; }
.rc-detail dt { font-size: .85rem; }
.rc-sum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rc-sum .rc-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.rc-sum .rc-total dt { color: var(--text); font-weight: 700; }
.rc-foot { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.track-result .extra-btns { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.track-result .extra-btns .btn { flex: 1 1 14em; }
@media print {
  .nav, .footer, .track-form, .tline, .ship-box, .tr-note, .extra-btns, .eyebrow, .track > h1, .track > p { display: none !important; }
  body, .track, .track-result, .receipt { background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
  .track { padding: 0; max-width: none; }
  .track-result { padding: 0; margin: 0; }
  .receipt * { color: #000 !important; }
  .receipt { padding: 0; }
}

/* Checkout promises */
.trust-line { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; }
.trust-line li::before { content: "✓"; color: var(--green-ink); font-weight: 800; margin-right: 6px; }

/* Review form on the tracking page */
.review-box { margin-top: 24px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.review-box h2 { font-size: 1.15rem; margin: 0 0 4px; }
.review-box .btn { width: 100%; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin: 6px 0 12px; }
.stars label { position: relative; cursor: pointer; padding: 2px 4px; }
.stars input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.stars span { font-size: 2.1rem; line-height: 1; color: var(--line-strong); transition: color .15s; }
.stars i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stars label:has(input:checked) span, .stars label:has(input:checked) ~ label span,
.stars label:hover span, .stars label:hover ~ label span { color: #c9a961; }
.stars label:has(input:focus-visible) span { outline: 2px solid var(--green-ink); border-radius: 6px; }
.star-line { color: #c9a961; letter-spacing: .08em; }

/* Admin: visits chart */
.visit-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 170px; margin-top: 18px; padding: 14px 10px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.vbar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.vbar i { display: block; width: 100%; max-width: 22px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--green); }
.vbar small { font-size: .68rem; color: var(--muted); }
.vbar b { position: absolute; top: 0; font-size: .66rem; color: var(--muted); font-weight: 600; }
#visitTiles { margin-bottom: 4px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { #visitTiles { grid-template-columns: repeat(2, 1fr); } }

@media print { .review-box, #reviewDone { display: none !important; } }

/* ---------- Insights dashboard (phone first) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ins { max-width: 560px; margin: 0 auto; padding: calc(104px + env(safe-area-inset-top)) 16px 60px; }
.ins h1 { font-family: var(--serif); font-size: 2.2rem; margin: 6px 0 14px; }
.ins-filters { position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: 10; display: grid; gap: 8px; padding: 8px 0 10px; background: linear-gradient(var(--bg) 80%, transparent); }
.ins-select select { width: 100%; min-height: 46px; padding: 0 40px 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background-color: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ins-range { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ins-range button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.ins-range button[aria-checked="true"] { background: var(--text); color: #0a0a0a; }
.ins-status { color: var(--muted); margin: 10px 0; }
.ins-status:empty { display: none; }

.ins-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.ins-tile { padding: 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.ins-tile.big { grid-column: 1 / -1; padding: 18px; background: radial-gradient(120% 120% at 100% 0%, rgba(31,169,122,.2), transparent 60%), var(--bg-2); border-color: rgba(201,169,97,.3); }
.ins-tile span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ins-tile b { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.ins-tile.big b { font-size: 3rem; }
.ins-tile em { font-style: normal; font-size: .78rem; color: var(--muted); min-height: 1em; }
.ins-tile em.up { color: var(--green-ink); }
.ins-tile em.down { color: #f0a35e; }

.ins-card { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.ins-card h2 { font-size: 1.02rem; margin: 0 0 12px; font-weight: 700; }
.ins-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ins-head span, .ins-sub { color: var(--muted); font-size: .82rem; }
.ins-sub { margin: -6px 0 10px; }
.ins-foot { color: var(--muted); font-size: .76rem; margin: 10px 0 0; line-height: 1.5; }
.ins-foot a { color: var(--green-ink); }
.ins-none { color: var(--muted); font-size: .88rem; margin: 0; }

.ins-chart { position: relative; }
.ins-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ins-chart text { fill: var(--muted); font-size: 9.5px; font-family: Inter, sans-serif; }
.ins-chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.ins-chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.ins-chart .dot { fill: #3cc795; stroke: var(--bg-2); stroke-width: 2; }
.ins-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: #f2f2f0; color: #0a0a0a; font-size: .8rem; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.ins-tip b { font-size: .95rem; margin-right: 4px; }
.ins-tip span { display: block; color: #555; font-size: .72rem; }
.ins-table { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.ins-table summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.ins-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.ins-table td, .ins-table th { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line); }
.ins-table td:last-child, .ins-table th:last-child { text-align: right; }

.ins-bars { display: grid; gap: 12px; }
.ins-bar-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 6px; }
.ins-bar-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-bar-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-bar-row small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: .78rem; }
.ins-bar i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.ins-bar s { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1fa97a, #3cc795); }
.ins-week { margin-top: 16px; }

.ins-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.ins-hours i { aspect-ratio: 1 / 1.6; border-radius: 4px; background: rgba(255,255,255,.05); position: relative; overflow: hidden; }
.ins-hours i::after { content: ""; position: absolute; inset: 0; background: #1fa97a; opacity: var(--a, 0); }
.ins-hours-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; margin-top: 5px; }

.ins-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); margin-bottom: 12px; }
.ins-seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; }
.ins-seg button[aria-selected="true"] { background: rgba(255,255,255,.1); color: var(--text); }

.ins-split { margin-top: 16px; }
.ins-split-bar { height: 10px; border-radius: 99px; background: rgba(201,169,97,.45); overflow: hidden; }
.ins-split-bar s { display: block; height: 100%; background: #1fa97a; border-right: 2px solid var(--bg-2); }
.ins-split-key { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.ins-split-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: rgba(201,169,97,.45); margin-right: 6px; vertical-align: -1px; }
.ins-split-key i.new { background: #1fa97a; }
.ins-split-key b { color: var(--text); margin-left: 4px; }

.ins-list { display: grid; }
.ins-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ins-row:first-child { border-top: 0; padding-top: 2px; }
.ins-row div { min-width: 0; display: grid; }
.ins-row div span { color: var(--muted); font-size: .8rem; }
.ins-row em { font-style: normal; font-family: var(--serif); font-size: 1.5rem; text-align: right; line-height: 1; }
.ins-row em small { display: block; font-family: Inter, sans-serif; font-size: .7rem; color: var(--muted); }

.ins-feed { list-style: none; margin: 0; padding: 0; }
.ins-feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.ins-feed li:first-child { border-top: 0; padding-top: 2px; }
.ins-feed .dotk { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #1fa97a; box-shadow: 0 0 0 4px rgba(31,169,122,.15); }
.ins-feed .dotk.qr { background: #c9a961; box-shadow: 0 0 0 4px rgba(201,169,97,.15); }
.ins-feed .dotk.link { background: #9aa4a0; box-shadow: 0 0 0 4px rgba(154,164,160,.15); }
.ins-feed div { min-width: 0; display: grid; font-size: .9rem; }
.ins-feed div span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.ins-feed time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.ins-privacy { color: var(--muted); font-size: .78rem; text-align: center; margin: 22px 8px 0; line-height: 1.6; }

.ins-empty { margin-top: 20px; padding: 28px 20px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.ins-empty h2 { font-family: var(--serif); font-size: 1.6rem; margin: 14px 0 8px; }
.ins-empty p { color: var(--muted); line-height: 1.6; }
.ins-empty .btn { margin-top: 10px; }
.ins-empty-art { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.ins-empty-art span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #3cc795; animation: insPing 2.4s ease-out infinite; }
.ins-empty-art span:nth-child(2) { animation-delay: .8s; }
.ins-empty-art span:nth-child(3) { animation-delay: 1.6s; }
@keyframes insPing { from { transform: scale(.3); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ins-empty-art span { animation: none; opacity: .4; } }

/* Account page: way into insights */
.ins-promo { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px; border-radius: 20px; border: 1px solid rgba(201,169,97,.3); background: radial-gradient(120% 140% at 100% 0%, rgba(31,169,122,.18), transparent 60%), var(--bg-2); color: var(--text); }
.ins-promo b { display: block; font-size: 1.05rem; }
.ins-promo small { color: var(--muted); font-size: .85rem; }
.ins-promo-art { display: flex; align-items: flex-end; gap: 3px; width: 44px; height: 40px; flex: none; padding: 6px; border-radius: 12px; background: rgba(31,169,122,.12); }
.ins-promo-art i { flex: 1; border-radius: 3px 3px 1px 1px; background: #3cc795; }
.ins-promo-go { margin-left: auto; font-size: 1.6rem; color: var(--muted); }
.ins-tile b.word { font-size: 1.35rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0 3px; }
.ins-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; align-items: end; }
.ins-col { display: grid; justify-items: center; gap: 5px; }
.ins-col b { font-size: .78rem; font-variant-numeric: tabular-nums; }
.ins-col i { display: flex; align-items: flex-end; width: 100%; max-width: 30px; height: 80px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.ins-col s { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3cc795, #1fa97a); }
.ins-col span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.ins-filters[hidden] { display: none; }

/* Profile page: visitors share their details back with the owner */
.pv-lead-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin: -10px 0 18px; padding: 13px 16px; border-radius: 16px; border: 1px dashed var(--accent); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pv-lead-btn .ico { width: 20px; height: 20px; color: var(--accent); }
.pv-lead-btn:disabled { border-style: solid; opacity: .8; cursor: default; }
.pv-lead-form { text-align: left; max-width: 380px; max-height: calc(100svh - 40px); overflow-y: auto; }
.pv-lead-form h2 { text-align: left; }
.pv-field { display: block; margin-top: 12px; }
.pv-field span { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.pv-field input, .pv-field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.pv-field input:focus, .pv-field textarea:focus { outline: none; border-color: var(--accent); }
.pv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pv-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: .86rem; color: var(--muted); }
.pv-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.pv-err { color: #f87171; font-size: .86rem; min-height: 1.2em; margin: 6px 0; }
.pv-lead-form .btn { width: 100%; margin-top: 4px; }

/* Insights: funnel, leads, events, map */
.ins-h3 { font-size: .92rem; font-weight: 700; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ins-funnel { display: grid; gap: 8px; }
.ins-step { display: grid; grid-template-columns: minmax(0, 1fr) 40px 38px; gap: 10px; align-items: center; }
.ins-step-bar { position: relative; height: 38px; border-radius: 10px; background: rgba(255,255,255,.04); overflow: hidden; }
.ins-step-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(31,169,122,.55), rgba(60,199,149,.35)); border-radius: 10px; }
.ins-step-bar span { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.ins-step b { font-variant-numeric: tabular-nums; }
.ins-step small { color: var(--muted); font-size: .78rem; text-align: right; }
.ins-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: #1fa97a; color: #fff; font-size: .74rem; vertical-align: 2px; }
.ins-count:empty { display: none; }
.ins-leads, .ins-events { display: grid; gap: 10px; }
.ins-lead, .ins-event { padding: 14px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.ins-lead-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ins-lead-top time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.ins-lead p, .ins-event p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.ins-lead .ins-lead-note { color: var(--text); font-style: italic; }
.ins-lead-via { font-size: .76rem !important; }
.ins-lead-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ins-lead-acts .btn { flex: 1 1 auto; min-height: 40px; }
.ins-lead-acts .ins-del { flex: 0 0 auto; color: var(--muted); }
.ins-link-btn { border: 0; background: none; color: var(--green-ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; min-height: 36px; }
.ins-event-form { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.ins-event-form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.ins-event-form input { color-scheme: dark; }
.ins-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ins-2col .pv-field input { min-width: 0; max-width: 100%; }
.ins-2col .btn { width: 100%; }
.ins-del-x { border: 0; background: none; color: var(--muted); font-size: 1rem; width: 36px; height: 36px; margin: -8px -8px 0 0; cursor: pointer; border-radius: 50%; }
.ins-event-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.ins-event-nums span { display: grid; text-align: center; padding: 8px 2px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .72rem; }
.ins-event-nums b { color: var(--text); font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.ins-map { position: relative; border-radius: 14px; overflow: hidden; background: #0c1210; border: 1px solid var(--line); }
.ins-map svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.ins-map .land { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.14); stroke-width: .6; }
.ins-map .pt { fill: rgba(31,169,122,.75); stroke: #0c1210; stroke-width: 2; cursor: pointer; }
.ins-map .pt.on { fill: #3cc795; }
.ins-map .lbl { fill: var(--text); font-size: 10px; font-weight: 600; font-family: Inter, sans-serif; paint-order: stroke; stroke: #0c1210; stroke-width: 3px; pointer-events: none; }
.ins-map .ins-tip { top: 8px; transform: translateX(-50%); }
.ins-map-msg { padding: 28px 16px; text-align: center; color: var(--muted); font-size: .88rem; }
.ins-step b { text-align: right; }
.ins-lead-top > span { display: flex; align-items: center; gap: 4px; }


/* Shop: offer banner (FIRST10) */
.offer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; padding: 10px 10px 10px 12px; border-radius: 16px; border: 1px solid rgba(201,169,97,.4); background: linear-gradient(100deg, rgba(201,169,97,.14), rgba(31,169,122,.1)); font-size: .92rem; }
.offer-bar b { color: #e8d39a; letter-spacing: .06em; }
.offer-tag { padding: 3px 9px; border-radius: 99px; background: #c9a961; color: #111; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.offer-bar > span:nth-child(2) { flex: 1 1 160px; }
.offer-apply { margin-left: auto; min-height: 38px; padding: 0 16px; border-radius: 12px; border: 0; background: #f2f2f0; color: #0a0a0a; font: inherit; font-weight: 700; cursor: pointer; }
.offer-bar.applied .offer-apply { background: #1fa97a; color: #fff; }

/* Alignment fixes from the full-site check */
.track h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.account .btn, .dash-head .btn { white-space: nowrap; }
.ins-lead-acts .btn { padding-inline: 8px; font-size: .86rem; white-space: nowrap; }
.nudge-actions .btn { flex: 1 1 auto; padding-inline: 12px; white-space: nowrap; font-size: .92rem; }
#logout { flex-shrink: 0; padding-inline: 16px; }
.ins-lead-acts .btn { flex: 1 1 auto; min-width: 84px; padding-inline: 12px; }

.pv-lead-btn[hidden] { display: none; }

/* Activation plans */
.panel.gated > :not(.plan-gate):not(.panel-actions) { display: none !important; }
.plan-gate { margin-bottom: 18px; }
.plan-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(201,169,97,.35); background: rgba(201,169,97,.08); font-size: .9rem; line-height: 1.55; }
.plan-note b { color: #e8d39a; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan-opt span { display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--bg-2); text-align: center; }
.plan-opt small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.plan-opt b { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.plan-opt input:checked + span { border-color: #1fa97a; background: rgba(31,169,122,.12); box-shadow: 0 0 0 1px #1fa97a; }
.plan-opt input:focus-visible + span { outline: 2px solid #3cc795; outline-offset: 2px; }
.plan-pay { width: 100%; }
.plan-alt { margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 8px; }
.plan-alt p { margin: 0; }
.plan-alt .code-form { display: flex; gap: 8px; margin: 0; }
.plan-alt .code-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.plan-box-modal { margin-top: 10px; }
.ins-promo[hidden] { display: none; }
.ct-plan { margin: 10px 0 0; font-size: .86rem; color: var(--green-ink); font-weight: 600; }
.ct-plan.due { color: var(--warn); }
.ct-target { overflow-wrap: anywhere; margin: 6px 0 10px; }
.card-tile .plan-box { margin-top: 12px; }

/* Narrow phones: long emails and the card-code box must not push the page wider */
.wizard-form, .plan-alt > *, .account .field { min-width: 0; }
.plan-alt { grid-template-columns: minmax(0, 1fr); }
.plan-alt .code-form input { width: 100%; }
.plan-alt .code-form .btn { flex: none; }
#email { overflow-wrap: anywhere; }
div:has(> #email) { min-width: 0; }
.plan-gate .hint, .plan-box .hint { word-break: normal; overflow-wrap: break-word; }

/* The serif font draws old-style digits that rise and dip; use even, full-height digits everywhere */
html, body, button, input, select, textarea, svg text { font-feature-settings: "lnum" 1; }

/* Laptops */
@media (min-width: 1024px) {
  .shop-page .shop-price { text-align: left; justify-self: start; }
  .shop-page .shop-price > b, .shop-page .shop-price > span { display: block; text-align: left; }
  .ins { max-width: 1120px; }
  .ins-filters { grid-template-columns: 1fr 360px; align-items: center; }
  .ins-tiles { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
  .ins-tile.big { grid-column: auto; }
  #view { columns: 2; column-gap: 14px; }
  #view > .ins-tiles { column-span: all; }
  #view > .ins-card { break-inside: avoid; margin: 0 0 14px; }
  #view > .ins-privacy { column-span: all; }
  .ins-empty { max-width: 620px; margin-inline: auto; }
}
