/* =========================================================================
   DFG TAP — design system
   Black, white and muted gold. Minimal, premium, mobile-first.
   ========================================================================= */
:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #6b6760;
  --line: #e7e3dc;
  --line-2: #d8d2c7;
  --paper: #ffffff;
  --cream: #f7f5f1;
  --gold: #b08d57;
  --gold-ink: #8a6c3e;
  --gold-soft: #f3ede3;
  --ok: #2f6b4f;
  --ok-soft: #e8f2ec;
  --warn: #8a5a12;
  --warn-soft: #fbf1df;
  --bad: #9b2c2c;
  --bad-soft: #f8e8e8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px rgba(17,17,17,.06);
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-family: var(--display); font-weight: 500; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold-ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--gold-ink); margin-bottom: .8rem; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 720px) and (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: initial; } .show-sm { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 .92rem/1 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
.btn:hover { background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); box-shadow: none; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-sm { padding: .5rem .85rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-caps { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; padding: 1rem 1.5rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-ink); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Site header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,245,241,.88); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 600 .78rem/1 var(--font); letter-spacing: .04em; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.brand small { display: block; font-weight: 500; letter-spacing: .02em; color: var(--muted); font-size: .7rem; }
.nav { display: none; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.nav a:hover { color: var(--gold-ink); }
@media (min-width: 860px) { .nav { display: flex; } }
.menu-toggle { background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }
@media (min-width: 860px) { .menu-toggle.site { display: none; } }
.mobile-nav { display: none; padding: 0 16px 16px; }
.mobile-nav.open { display: grid; gap: .25rem; }
.mobile-nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.site-footer { background: var(--ink); color: #cfcac1; padding: 56px 0 32px; margin-top: 80px; font-size: .9rem; }
.site-footer a { color: #e9e4da; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .legal { border-top: 1px solid #2c2c2c; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: #8f8a81; font-size: .8rem; }

/* ---------- Landing ---------- */
.hero { padding: 56px 0 40px; }
@media (min-width: 960px) { .hero { padding: 96px 0 72px; } }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; }
.hero .ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .trust { margin-top: 1.75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.hero .trust span::before { content: "✓"; color: var(--gold); margin-right: .4rem; }
.phone { width: min(320px, 82vw); margin: 0 auto; border-radius: 44px; background: #0d0d0d; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.22), 0 0 0 1px #2a2a2a inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.phone .screen { border-radius: 34px; overflow: hidden; background: #fff; min-height: 560px; }
.tap-ring { position: absolute; right: -18px; top: 120px; width: 86px; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #1b1b1b, #2b2b2b); border: 1px solid #3a3a3a; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; place-items: center; color: var(--gold); font-size: .62rem; letter-spacing: .14em; transform: rotate(-12deg); }
.section { padding: 64px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.steps { counter-reset: s; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 1.6rem/1 var(--display); color: var(--gold); display: block; margin-bottom: .9rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .ic svg { width: 20px; height: 20px; }
.band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #cfcac1; }
.note { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.1rem; border-radius: 0 10px 10px 0; font-size: .92rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 1rem; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 1.6rem; background: var(--gold); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.plan .price { font: 500 2.2rem/1 var(--display); margin: 1rem 0 .3rem; }
.plan .price small { font: 400 .9rem var(--font); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .55rem; font-size: .92rem; flex: 1; }
.plan li::before { content: "—"; color: var(--gold); margin-right: .5rem; }
.toggle-cycle { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }
.toggle-cycle button { border: 0; background: none; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font: 600 .85rem var(--font); color: var(--muted); }
.toggle-cycle button.on { background: var(--ink); color: #fff; }

/* ---------- Panels, forms ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
@media (min-width: 720px) { .panel { padding: 1.6rem; } }
.panel + .panel { margin-top: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; font-family: var(--font); font-size: 1.05rem; font-weight: 600; }
.panel-head p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .78rem .9rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: 400 1rem var(--font); color: var(--ink); transition: border .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
input[type=color] { width: 54px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; }
input[type=file] { font-size: .88rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { padding: .78rem .7rem; background: var(--cream); border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-prefix input { border-radius: 0 10px 10px 0; min-width: 0; }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field-row { display: flex; gap: .6rem; align-items: center; }
.field-row > .grow { flex: 1; min-width: 0; }
.vis { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer; }
.vis input { accent-color: var(--gold); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.err { color: var(--bad); font-size: .82rem; margin-top: .3rem; }

/* ---------- Alerts / badges ---------- */
.alert { padding: .85rem 1rem; border-radius: 10px; font-size: .92rem; margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #c9e0d2; color: var(--ok); }
.alert-error { background: var(--bad-soft); border-color: #eccccc; color: var(--bad); }
.alert-info { background: var(--gold-soft); border-color: #e6dac6; color: var(--gold-ink); }
.alert-warning { background: var(--warn-soft); border-color: #ecd9b4; color: var(--warn); }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; background: var(--cream); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e0d2; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: #eccccc; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #ecd9b4; }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); border-color: #e6dac6; }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; background: var(--ink); color: #fff; padding: 48px; position: relative; overflow: hidden; }
@media (min-width: 960px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side h2 { color: #fff; font-size: 2.2rem; max-width: 22rem; }
.auth-side p { color: #bdb7ad; max-width: 26rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 2rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- App shell (dashboard / admin) ---------- */
.app { min-height: 100vh; display: flex; }
.sidebar { width: 264px; flex: none; background: var(--ink); color: #d9d4ca; padding: 20px 14px; position: fixed; inset: 0 auto 0 0; overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; z-index: 60; }
.sidebar.open { transform: none; }
@media (min-width: 1024px) { .sidebar { transform: none; } .main { margin-left: 264px; } }
.sidebar .brand { color: #fff; margin: 4px 8px 22px; }
.sidebar .brand small { color: #8f8a81; }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: #7f7a71; margin: 18px 10px 6px; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; border-radius: 10px; color: #d9d4ca; text-decoration: none; font-size: .9rem; }
.side-link svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.side-link:hover { background: #1d1d1d; color: #fff; }
.side-link.is-active { background: #232323; color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.side-link.is-active svg { color: var(--gold); opacity: 1; }
.side-lock { margin-left: auto; font-size: .62rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
.scrim.open { display: block; }
.main { flex: 1; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(247,245,241,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: .75rem; }
@media (min-width: 1024px) { .topbar { padding: 0 32px; } .menu-toggle.app-menu { display: none; } }
.topbar .who { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: .78rem; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.content { padding: 20px 16px 48px; max-width: 1180px; }
@media (min-width: 1024px) { .content { padding: 32px; } }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--muted); }

/* ---------- Stats / charts ---------- */
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .k { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font: 500 1.9rem/1.1 var(--display); margin-top: .35rem; }
.stat .s { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; min-width: 0; }
.chart .bar { background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.u { background: var(--gold); position: absolute; bottom: 0; left: 25%; right: 25%; border-radius: 3px 3px 0 0; opacity: .95; }
.chart .col:hover .tip { display: block; }
.chart .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .72rem; padding: .35rem .5rem; border-radius: 6px; white-space: nowrap; z-index: 5; }
.chart-labels { display: flex; gap: 3px; font-size: .66rem; color: var(--muted); margin-top: 6px; }
.chart-labels span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.meter { height: 8px; border-radius: 99px; background: var(--cream); overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: var(--gold); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1.25rem; padding: 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: .6rem .65rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .75rem .65rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: .8rem; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty svg { width: 36px; height: 36px; color: var(--line-2); margin: 0 auto .75rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: .6rem .8rem; font-size: .9rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .82rem; background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }

/* ---------- Share / QR ---------- */
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; place-items: center; }
.qr-box img { width: 100%; max-width: 260px; image-rendering: pixelated; }
.copy-field { display: flex; gap: .5rem; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 600px) { .share-grid { grid-template-columns: repeat(4, 1fr); } }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; font: 500 .82rem var(--font); cursor: pointer; color: var(--ink); }
.share-grid svg { width: 22px; height: 22px; }

/* =========================================================================
   Public digital business card
   ========================================================================= */
body.card-page { background: #ece9e3; }
.vcard { --accent: #b08d57; --cbg: #ffffff; --ctext: #111111; --csub: #6b6760; --cline: #ece8e1; --btnr: 14px;
  max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--cbg); color: var(--ctext); position: relative; }
@media (min-width: 520px) { .vcard { margin: 32px auto; min-height: auto; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.12); } }
.vcard.dark { --cbg: #111111; --ctext: #f4f1ea; --csub: #a29d93; --cline: #262626; }
.vcard.btn-square { --btnr: 6px; }
.vcard.btn-pill { --btnr: 999px; }
.vcard.font-serif h1 { font-family: var(--display); font-weight: 500; }
.vc-cover { height: 132px; background: var(--ink); position: relative; }
.vc-cover .logo { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; background: #fff; border-radius: 14px; padding: 8px; display: grid; place-items: center; }
.vc-cover .logo img { max-height: 100%; object-fit: contain; }
.vc-body { padding: 0 22px 28px; }
.vc-photo { width: 116px; height: 116px; border-radius: 50%; border: 4px solid var(--cbg); background: var(--ink); color: var(--accent); display: grid; place-items: center; font: 500 2.3rem var(--display); margin: -58px auto 0; overflow: hidden; position: relative; }
.vc-photo img { width: 100%; height: 100%; object-fit: cover; }
.vc-id { text-align: center; margin-top: .9rem; }
.vc-id h1 { font-size: 1.65rem; font-family: var(--font); font-weight: 650; letter-spacing: -.015em; margin: 0 0 .25rem; }
.vc-id .role { color: var(--csub); font-size: .95rem; }
.vc-id .co { font-weight: 600; color: var(--accent); font-size: .9rem; letter-spacing: .02em; margin-top: .15rem; }
.vc-id .loc { color: var(--csub); font-size: .82rem; margin-top: .35rem; }
.vc-save { margin: 1.3rem 0 1rem; }
.vc-save .btn { width: 100%; border-radius: var(--btnr); padding: 1rem; background: var(--ctext); border-color: var(--ctext); color: var(--cbg); font-size: .95rem; }
.vc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: .55rem; }
.vc-act { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .3rem; border-radius: var(--btnr); border: 1px solid var(--cline); text-decoration: none; color: var(--ctext); font-size: .72rem; font-weight: 500; background: transparent; cursor: pointer; font-family: var(--font); }
.vc-act svg { width: 21px; height: 21px; color: var(--accent); }
.vc-act:hover { border-color: var(--accent); }
.vc-section { margin-top: 1.6rem; }
.vc-section h2 { font: 600 .72rem var(--font); text-transform: uppercase; letter-spacing: .16em; color: var(--csub); margin-bottom: .7rem; }
.vc-bio { font-size: .95rem; color: var(--ctext); opacity: .9; }
.vc-list { border: 1px solid var(--cline); border-radius: 16px; overflow: hidden; }
.vc-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; text-decoration: none; color: var(--ctext); border-bottom: 1px solid var(--cline); font-size: .92rem; }
.vc-row:last-child { border-bottom: 0; }
.vc-row svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.vc-row .t { min-width: 0; overflow-wrap: anywhere; }
.vc-row .t small { display: block; color: var(--csub); font-size: .74rem; }
a.vc-row:hover { background: rgba(176,141,87,.06); }
.vc-social { display: flex; flex-wrap: wrap; gap: .55rem; }
.vc-social a { width: 46px; height: 46px; border-radius: var(--btnr); border: 1px solid var(--cline); display: grid; place-items: center; color: var(--ctext); }
.vc-social a svg { width: 19px; height: 19px; }
.vc-social a.wide { width: auto; padding: 0 .9rem; font-size: .82rem; text-decoration: none; gap: .4rem; display: inline-flex; align-items: center; }
.vc-services { display: grid; gap: .55rem; }
.vc-service { border: 1px solid var(--cline); border-radius: 14px; padding: .85rem 1rem; }
.vc-service strong { display: block; font-size: .92rem; }
.vc-service span { color: var(--csub); font-size: .84rem; }
.vc-exchange { margin-top: 1.6rem; border-radius: 18px; padding: 1.3rem; background: var(--ctext); color: var(--cbg); text-align: center; }
.vc-exchange p { color: inherit; opacity: .75; font-size: .88rem; }
.vc-exchange .btn { background: var(--accent); border-color: var(--accent); border-radius: var(--btnr); width: 100%; color: #fff; }
.vc-foot { text-align: center; padding: 1.6rem 0 .5rem; font-size: .74rem; color: var(--csub); }
.vc-foot a { color: var(--csub); }
.vc-inactive { text-align: center; padding: 80px 24px; }
/* templates */
.vcard.t-executive .vc-cover { height: 300px; }
.vcard.t-executive .vc-photo { margin-top: -280px; border-color: #111; }
.vcard.t-executive .vc-id { color: #fff; position: relative; margin-top: .9rem; }
.vcard.t-executive .vc-id .role, .vcard.t-executive .vc-id .loc { color: #cfcac1; }
.vcard.t-executive .vc-body { padding-top: 0; }
.vcard.t-executive .vc-save { margin-top: 2.6rem; }
.vcard.t-minimal .vc-cover { height: 0; }
.vcard.t-minimal .vc-cover .logo { display: none; }
.vcard.t-minimal .vc-photo { margin: 36px 0 0; width: 84px; height: 84px; font-size: 1.6rem; border: 0; }
.vcard.t-minimal .vc-id { text-align: left; }
.vcard.t-minimal .vc-id h1 { font-size: 2rem; }
.vcard.t-split .vc-cover { height: 150px; background: linear-gradient(90deg, var(--ink) 0 62%, var(--accent) 62% 100%); }
.vcard.t-split .vc-cover .logo { left: 18px; right: auto; }
.vcard.t-split .vc-photo { margin: -58px 22px 0 auto; }
.vcard.t-split .vc-id { text-align: left; margin-top: -2.4rem; }
.vcard.t-split .vc-id h1 { max-width: 60%; }

/* Modal / sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.sheet.open { display: flex; }
@media (min-width: 600px) { .sheet { align-items: center; } }
.sheet-box { background: #fff; color: var(--ink); width: 100%; max-width: 460px; border-radius: 22px 22px 0 0; padding: 22px 18px 26px; max-height: 92vh; overflow-y: auto; }
@media (min-width: 600px) { .sheet-box { border-radius: 22px; } }
.sheet-box h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; }
.sheet-close { float: right; background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* Printable business card */
.print-sheet { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.bcard { width: 85mm; height: 55mm; border-radius: 3mm; overflow: hidden; position: relative; box-shadow: var(--shadow); background: #fff; color: var(--ink); font-family: var(--font); }
.bcard.front { background: var(--ink); color: #fff; padding: 6mm; display: flex; flex-direction: column; justify-content: space-between; }
.bcard.front .n { font-size: 4.6mm; font-weight: 650; }
.bcard.front .r { font-size: 2.8mm; color: #cfcac1; }
.bcard.front .c { font-size: 2.6mm; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.bcard.back { padding: 5mm; display: grid; grid-template-columns: 1fr 30mm; gap: 4mm; align-items: center; font-size: 2.6mm; }
.bcard.back img { width: 30mm; height: 30mm; }
.bcard .tapmark { position: absolute; right: 6mm; top: 6mm; font-size: 2.2mm; letter-spacing: .2em; color: var(--gold); }
@media print {
  body { background: #fff !important; }
  .no-print, .sidebar, .topbar, .site-header, .site-footer { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  .bcard { box-shadow: none; border: .2mm solid #ddd; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Email signature preview */
.sig-preview { background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: 1.2rem; overflow-x: auto; }

/* Misc */
.thumb { width: 72px; height: 72px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); object-fit: cover; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .72rem; }
.thumb.round { border-radius: 50%; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 720px) { .tpl-grid { grid-template-columns: repeat(4, 1fr); } }
.tpl { border: 2px solid var(--line); border-radius: 14px; padding: .6rem; cursor: pointer; display: block; background: #fff; }
.tpl input { display: none; }
.tpl:has(input:checked) { border-color: var(--ink); }
.tpl .mini { height: 110px; border-radius: 9px; background: var(--cream); position: relative; overflow: hidden; margin-bottom: .5rem; }
.tpl .mini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; background: var(--ink); }
.tpl .mini::after { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); left: calc(50% - 15px); top: calc(38% - 15px); }
.tpl.executive .mini::before { height: 70%; } .tpl.executive .mini::after { top: 20%; }
.tpl.minimal .mini::before { display: none; } .tpl.minimal .mini::after { left: 12px; top: 14px; }
.tpl.split .mini::before { background: linear-gradient(90deg, var(--ink) 0 62%, var(--gold) 62%); } .tpl.split .mini::after { left: auto; right: 12px; }
.tpl span { font-size: .8rem; font-weight: 600; }
.link-row { display: grid; grid-template-columns: 130px 1fr auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
@media (max-width: 600px) { .link-row { grid-template-columns: 1fr; padding-bottom: .75rem; border-bottom: 1px solid var(--line); } }
.svc-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; margin-bottom: .5rem; }
@media (max-width: 600px) { .svc-row { grid-template-columns: 1fr; } }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; background: var(--cream); padding: .15rem .4rem; border-radius: 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
pre.code { padding: .9rem; white-space: pre-wrap; display: block; }
.ann { display: flex; gap: .75rem; align-items: flex-start; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .7rem .9rem; text-decoration: none; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.nfc-status { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); font-size: .88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: #3c8a62; } .dot.bad { background: var(--bad); } .dot.warn { background: #c48a2a; }
details.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; }
details.faq[open] summary::after { content: "–"; }
.legal-doc h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 650; margin-top: 2rem; }
.legal-doc li { margin-bottom: .4rem; }

/* Wallet buttons — replace with Apple's / Google's official badge artwork before launch (see docs/WALLET_SETUP.md) */
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1rem; border-radius: var(--btnr, 12px); font: 600 .86rem var(--font); text-decoration: none; }
.wallet-btn svg { width: 18px; height: 18px; }
.wallet-btn.apple { background: #000; color: #fff; border: 1px solid #000; }
.wallet-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.vcard.dark .wallet-btn.apple { border-color: #444; }

/* Tap to Share (web) */
.tap-stage { position: relative; display: grid; place-items: center; height: 260px; }
.tap-stage .pulse { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.4s ease-out infinite; opacity: 0; }
.tap-stage .pulse:nth-child(2) { animation-delay: .8s; } .tap-stage .pulse:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-stage .pulse { animation: none; opacity: .4; } }
.tap-stage .core { width: 110px; height: 110px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; z-index: 1; }
.tap-stage .core svg { width: 44px; height: 44px; }
.store-badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-badges a { display: inline-flex; align-items: center; gap: .5rem; background: #000; color: #fff; border-radius: 10px; padding: .55rem .9rem; text-decoration: none; font-size: .82rem; }
.dir-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; }
.dir-card .thumb { width: 64px; height: 64px; flex: none; }
.dir-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
