/* ============================================================
   Accounting Desk — design system
   ============================================================ */
:root {
  --navy: #2B0B33;
  --navy-2: #3A0D45;
  --navy-3: #7B2CBF;
  --gold: #C2186A;
  --gold-2: #F472B6;
  --cream: #FAF7FC;
  --paper: #FFFFFF;
  --ink: #1B1022;
  --muted: #6B5A72;
  --line: #EEE7F2;
  --green: #0E9F6E;
  --red: #B42318;
  --amber: #B54708;
  --magenta: #C2186A;
  --magenta-2: #E04091;
  --purple: #7B2CBF;
  --pink-soft: #FCE7F3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 11, 51, .07);
  --shadow-lg: 0 24px 60px rgba(43, 11, 51, .14);
  --font-body: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 16px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.w-full { width: 100%; }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-body); line-height: 1.2;
}
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8f1d14; color: #fff; }
.btn-link { background: none; border: none; padding: 0; color: var(--navy-3); font-weight: 600; cursor: pointer; font-size: .9rem; }
.btn-link:hover { color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
label.field-label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: .95rem; font-family: var(--font-body); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,64,121,.12); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.checkbox { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--navy); }

/* ---------- Alerts & badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.alert-error { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.alert-info { background: #EFF8FF; border-color: #B2DDFF; color: #175CD3; }
.alert-warning { background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge-navy { background: #E8EEF8; color: var(--navy); }
.badge-gold { background: #FBF3DA; color: #8A6D0B; }
.badge-green { background: #ECFDF3; color: #067647; }
.badge-red { background: #FEF3F2; color: var(--red); }
.badge-amber { background: #FFFAEB; color: var(--amber); }
.badge-gray { background: #F2F4F7; color: #475467; }

/* ---------- Public header ---------- */
.topbar { background: var(--navy); color: #CDD6E4; font-size: .78rem; }
.topbar-inner { display: flex; gap: 22px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #E7ECF4; }
.topbar a:hover { color: var(--gold-2); }
.topbar-right { margin-left: auto; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .02em; flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(201,162,39,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-text small { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: #9FB0CA; }
.brand-light .brand-mark { background: rgba(255,255,255,.08); border: 1px solid rgba(233,207,134,.4); }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 500; }
.main-nav > a:not(.btn) { color: var(--navy); position: relative; padding: 6px 0; }
.main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .2s; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { width: 100%; }
.main-nav > a.active { color: var(--navy); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.15rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,162,39,.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #0D2751 55%, #123262 100%);
  color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lede { color: #C8D3E4; font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--gold-2); font-family: var(--font-display); font-weight: 400; }
.hero-stat span { font-size: .8rem; color: #A9B8CF; text-transform: uppercase; letter-spacing: .1em; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 28px; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-list li { display: flex; gap: 12px; align-items: flex-start; color: #E4EAF3; font-size: .93rem; }
.hero-list .tick { color: var(--gold); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #E4EAF3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-navy .section-head p { color: #A9B8CF; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.service-card { display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; height: 100%; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-icon { width: 46px; height: 46px; border-radius: 12px; background: #F3EFE3; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.service-card h3 { margin: 4px 0 0; font-size: 1.08rem; }
.service-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.service-card .price { font-weight: 700; color: var(--navy); font-size: .95rem; }
.service-card .price span { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-2); align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 14px; }
.step h3 { font-size: 1rem; }
.step p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-3)); border-radius: 22px; padding: 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #C8D3E4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071731; color: #9FB0CA; padding: 56px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { display: block; color: #AEBBD0; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.muted-light { color: #8293AD; font-size: .86rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #6F819D; }

/* ---------- Calculator ---------- */
.calc-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.calc-tab { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); font-family: var(--font-body); }
.calc-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.calc-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.calc-result h3 { color: var(--gold-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.big-number { font-family: var(--font-display); font-size: 2.4rem; color: #fff; line-height: 1.1; margin: 6px 0 2px; }
.result-rows { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; display: grid; gap: 10px; }
.result-row { display: flex; justify-content: space-between; font-size: .9rem; color: #C8D3E4; }
.result-row strong { color: #fff; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-val { min-width: 110px; text-align: right; font-weight: 700; color: var(--navy); }
.chart-box { margin-top: 20px; height: 220px; position: relative; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; padding: 12px 14px; background: #F7F5EF; color: var(--navy); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid #F1EEE6; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #FCFBF7; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { white-space: nowrap; text-align: right; }

/* ---------- Dashboard ---------- */
.dash-body { background: #F4F2EC; }
.dash-shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; background: var(--navy); color: #C8D3E4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: 0 0 auto; }
.sidebar-brand { padding: 20px 18px 14px; }
.sidebar-brand .brand-text strong { font-size: .98rem; }
.side-nav { padding: 8px 12px; overflow-y: auto; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #B9C6DA; font-size: .88rem; font-weight: 500; margin-bottom: 2px; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(201,162,39,.16); color: var(--gold-2); }
.nav-ico { width: 22px; text-align: center; font-size: .95rem; opacity: .9; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 6px; }
.sidebar-foot a { color: #8FA2BC; font-size: .8rem; }
.sidebar-foot a:hover { color: var(--gold-2); }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 40; }
.dash-title { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.dash-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.dash-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.dash-user-meta strong { font-size: .84rem; color: var(--navy); }
.dash-user-meta small { font-size: .72rem; color: var(--muted); }
.dash-content { padding: 28px; max-width: 1400px; width: 100%; margin: 0 auto; }
.dash-content h1 { font-size: 1.9rem; }
.dash-topbar .nav-toggle { display: none; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat-card .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.stat-card .value { font-size: 1.65rem; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-card .sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stat-card.accent { background: var(--navy); border-color: var(--navy); }
.stat-card.accent .label, .stat-card.accent .sub { color: #9FB0CA; }
.stat-card.accent .value { color: var(--gold-2); }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #FDFCF8; }
.panel-head h3 { margin: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.panel-body { padding: 22px; }
.panel-body.tight { padding: 0; }

/* Progress */
.progress { height: 9px; background: #EDEAE1; border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 99px; transition: width .6s ease; }
.progress-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Work timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 28px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.current::before { background: var(--gold); border-color: var(--gold); }
.timeline .t-title { font-weight: 600; font-size: .9rem; color: var(--navy); }
.timeline .t-time { font-size: .74rem; color: var(--muted); }

/* Login */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 60px 0; background: var(--cream); }
.auth-card { width: min(460px, 92%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 36px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-tabs { display: flex; gap: 8px; margin: 18px 0; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy); }
.auth-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px; }
.otp-inputs input { width: 46px; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 700; padding: 0; }
#recaptcha-container { margin: 10px 0; }

/* Invoice document */
.invoice-sheet { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 34px; max-width: 900px; margin: 0 auto; font-size: .84rem; color: #222; }
.inv-top { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
.inv-brand h2 { font-family: var(--font-display); color: var(--navy); margin: 0; font-size: 1.6rem; }
.inv-meta { text-align: right; font-size: .78rem; }
.inv-title { text-align: center; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin: 14px 0; color: var(--navy); }
.inv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.inv-box { border: 1px solid #ddd; border-radius: 4px; padding: 12px; }
.inv-box h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
table.inv-items { width: 100%; border-collapse: collapse; font-size: .8rem; }
table.inv-items th { background: var(--navy); color: #fff; padding: 7px 8px; text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
table.inv-items td { padding: 7px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
table.inv-items tr.item-note td { padding-top: 0; border-bottom: 1px solid #eee; }
.item-note-box { font-size: .72rem; color: #555; background: #FAF8F2; border-left: 3px solid var(--gold); padding: 4px 8px; margin-top: 4px; }
.inv-totals { width: 320px; margin-left: auto; margin-top: 14px; font-size: .82rem; }
.inv-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-totals .grand { border-top: 2px solid var(--navy); font-weight: 800; font-size: .95rem; padding-top: 8px; }
.inv-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; border-top: 1px dashed #ccc; padding-top: 16px; flex-wrap: wrap; }
.qr-box { text-align: center; font-size: .7rem; color: var(--muted); }
.paid-stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); padding: 4px 14px; border-radius: 6px; font-weight: 800; letter-spacing: .18em; transform: rotate(-8deg); font-size: .9rem; }

/* Utility */
.stack { display: grid; gap: 14px; }
.inline-form { display: inline; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 2rem; margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input { max-width: 300px; }
.tag { display: inline-block; background: #F3EFE3; border-radius: 6px; padding: 2px 8px; font-size: .72rem; font-weight: 600; color: #6B5B22; }
.code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .85em; }
.pager { display: flex; gap: 6px; margin-top: 16px; }
.pager a { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; color: var(--navy); background: #fff; }
.pager a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 6%; gap: 4px; box-shadow: var(--shadow); }
  .main-nav > a { padding: 10px 0 !important; }
  body.nav-open .main-nav { display: flex; }
  .header-inner { position: relative; }
  .sidebar { position: fixed; left: -280px; z-index: 100; transition: left .25s; }
  body.nav-open .sidebar { left: 0; box-shadow: var(--shadow-lg); }
  .dash-topbar .nav-toggle { display: inline-block; }
  .dash-content { padding: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 30px; }
  .invoice-sheet { padding: 18px; }
}
@media (max-width: 560px) {
  .grid-4, .stat-grid, .steps, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .section { padding: 52px 0; }
  .topbar-right { display: none; }
  .auth-card { padding: 24px; }
}

@media print {
  .topbar, .site-header, .site-footer, .dash-topbar, .sidebar, .no-print { display: none !important; }
  .dash-content { padding: 0; }
  .invoice-sheet { border: none; box-shadow: none; max-width: none; }
  body { background: #fff; }
}
