/* ============================================================
   LOOPD — Design System v2
   Pulled directly from Loopd_HQ.html + admin/index.tsx
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #FAFAF8;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TOKENS (from Loopd_HQ.html :root) ── */
:root {
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --border:       #E8E8E4;
  --border-strong:#C8C8C2;
  --text:         #1A1A1A;
  --text-sec:     #6B6B6B;
  --text-muted:   #A8A8A2;
  --green:        #2D6A4F;
  --green-bg:     rgba(45,106,79,0.08);
  --amber:        #C8A84B;
  --amber-bg:     rgba(200,168,75,0.1);
  --red:          #C0392B;
  --page-max:     1200px;
  --page-wide:    1440px;
}

/* ── TYPOGRAPHY ── */
.serif { font-family: 'DM Serif Display', Georgia, serif; }

h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
}
h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--text);
}
h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text);
}
p { line-height: 1.75; color: var(--text-sec); }

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── LAYOUT ── */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: var(--page-wide); margin: 0 auto; padding: 0 48px; }
section { padding: 104px 0; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-sec);
  letter-spacing: 0.01em;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .15s;
  cursor: pointer;
  font-family: inherit;
}
.nav-cta:hover { background: #333; }
.nav-login-link { font-size: 13px; color: var(--text-sec); letter-spacing: 0.01em; transition: color .15s; padding-right: 4px; }
.nav-login-link:hover { color: var(--text); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 199;
  padding: 32px 48px;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 18px; font-weight: 500; color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all .15s;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--text); }

/* ── HAIRLINE DIVIDER (the loopd signature) ── */
.hairline { height: 1px; background: var(--border); }
.hairline-dark { height: 1px; background: rgba(255,255,255,0.08); }

/* ── EYEBROW VARIANTS ── */
.eyebrow-light { color: rgba(255,255,255,0.3); }

/* ── GRID SEPARATORS (from HQ style — grid of cards with 2px separator) ── */
.grid-sep { display: grid; gap: 2px; background: var(--border); }
.grid-sep > * { background: var(--surface); }
.grid-sep-dark { display: grid; gap: 2px; background: rgba(255,255,255,0.06); }
.grid-sep-dark > * { background: var(--text); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── MODULE CARDS ── */
.module-card { padding: 36px 32px; position: relative; background: var(--surface); }
.module-icon {
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-sec);
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
}
.module-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px;
}
.module-badge.core { background: var(--green-bg); color: var(--green); }
.module-badge.addon { background: var(--amber-bg); color: var(--amber); }
.module-card h3 { margin-bottom: 8px; }
.module-card p { font-size: 13px; line-height: 1.7; }

/* ── STATUS DOT (from HQ) ── */
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
.status-dot.live { animation: pulse 1.2s ease-in-out infinite; }

/* ── RECEIPT MOCKUP ── */
.receipt-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.receipt-header {
  background: var(--text);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.receipt-brand { font-size: 13px; font-weight: 600; color: #FAFAF8; letter-spacing: -0.2px; }
.receipt-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(250,250,248,0.4);
}
.receipt-body { padding: 16px 18px; }
.receipt-merchant { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.receipt-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-sec); padding: 3.5px 0; }
.receipt-subtotal { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; margin-top: 4px; border-top: 1.5px solid var(--text); }
.receipt-total-label { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.receipt-total-val { font-family: 'DM Serif Display', serif; font-size: 22px; letter-spacing: -0.5px; color: var(--text); }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-top: 14px; }
.receipt-action-btn {
  font-size: 9px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 7px 4px;
  border: 1px solid var(--border); border-radius: 2px;
  text-align: center; color: var(--text-muted);
  background: var(--bg);
}
.receipt-action-btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.receipt-loyalty { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.receipt-loyalty-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.receipt-loyalty-val { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--green); }

/* ── NFC ANIMATION ── */
.nfc-device {
  background: var(--text);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.1);
  position: relative;
}
.nfc-rings { position: relative; width: 56px; height: 56px; }
.nfc-ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: ring-out 2.8s ease-out infinite;
}
.nfc-ring:nth-child(1) { width:16px;height:16px;top:20px;left:20px;animation-delay:0s; }
.nfc-ring:nth-child(2) { width:30px;height:30px;top:13px;left:13px;animation-delay:0.5s; }
.nfc-ring:nth-child(3) { width:44px;height:44px;top:6px;left:6px;animation-delay:1s; }
.nfc-ring:nth-child(4) { width:54px;height:54px;top:1px;left:1px;animation-delay:1.5s; }
@keyframes ring-out {
  0%  { opacity:.9; transform:scale(.9); }
  60% { opacity:.2; }
  100%{ opacity:0;  transform:scale(1.15); }
}
.nfc-wordmark { font-size: 14px; font-weight: 600; color: #FAFAF8; letter-spacing: -0.2px; }
.nfc-sublabel { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ── FAQ ACCORDION ── */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 14px; font-weight: 500; color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
}
.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  transition: all .2s;
}
.faq-btn.open .faq-icon { background: var(--text); color: #fff; border-color: var(--text); transform: rotate(45deg); }
.faq-answer {
  font-size: 13.5px; line-height: 1.8; color: var(--text-sec);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-answer.open { max-height: 400px; padding-bottom: 22px; }

/* ── STEP FLOW ── */
.flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.flow-step:last-child { border-bottom: none; }
.step-num { font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; color: var(--border-strong); letter-spacing: -0.5px; line-height: 1.1; padding-top: 2px; }
.step-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.step-body p { font-size: 13.5px; line-height: 1.75; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(16,16,16,0.65);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 100%; max-width: 500px;
  padding: 44px;
  position: relative;
  animation: modal-in .2s ease;
}
@keyframes modal-in { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)} }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; font-size: 18px;
  color: var(--text-muted); padding: 6px 10px;
  transition: color .15s; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; letter-spacing: -0.5px; color: var(--text); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-sec); margin-bottom: 28px; line-height: 1.65; }

/* ── FORM ── */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 13.5px;
  font-family: 'DM Sans', system-ui, sans-serif;
  padding: 10px 13px;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--border-strong); }
.form-field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A8A8A2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%; background: var(--text); color: #fff;
  border: none; border-radius: 2px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px; margin-top: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: background .15s; cursor: pointer;
}
.btn-submit:hover { background: #333; }
.form-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.6; }
.form-success { display: none; text-align: center; padding: 12px 0; }
.success-circle {
  width: 48px; height: 48px; background: var(--green-bg);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
  font-size: 20px; color: var(--green);
}

/* ── DARK SECTIONS ── */
.bg-dark { background: var(--text); }
.bg-dark .eyebrow { color: rgba(255,255,255,0.25); }
.bg-dark h2 { color: #FAFAF8; }
.bg-dark h1 { color: #FAFAF8; }
.bg-dark p { color: rgba(255,255,255,0.5); }
.bg-dark .hairline { background: rgba(255,255,255,0.08); }

/* ── PRICING ── */
.pricing-card { padding: 44px 40px; }
.pricing-card.featured { background: var(--text); }
.plan-tier { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.pricing-card.featured .plan-tier { color: rgba(255,255,255,0.3); }
.pricing-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.pricing-card.featured .pricing-name { color: #FAFAF8; }
.pricing-amount { font-family: 'DM Serif Display', Georgia, serif; font-size: 54px; letter-spacing: -2px; color: var(--text); line-height: 1; }
.pricing-card.featured .pricing-amount { color: #FAFAF8; }
.pricing-period { font-size: 12px; color: var(--text-muted); margin-top: 4px; margin-bottom: 28px; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.3); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; }
.pricing-features li { font-size: 13px; color: var(--text-sec); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.6); }
.pricing-features li::before { content:''; display:block; width:4px; height:4px; border-radius:50%; background:var(--border-strong); flex-shrink:0; margin-top:5px; }
.pricing-card.featured .pricing-features li::before { background: rgba(255,255,255,0.2); }
.btn-plan { display:block; text-align:center; padding:13px; border-radius:2px; font-size:14px; font-weight:500; border:none; cursor:pointer; font-family:inherit; transition:all .15s; }
.btn-plan-dark { background:var(--text); color:#fff; }
.btn-plan-dark:hover { background:#333; }
.btn-plan-light { background:#FAFAF8; color:var(--text); }
.btn-plan-light:hover { background:#fff; }

/* ── FOOTER ── */
.footer { background: var(--text); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 36px; }
.footer-logo { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: #FAFAF8; margin-bottom: 10px; }
.footer-tagline { font-size: 12.5px; color: rgba(255,255,255,0.3); line-height: 1.75; }
.footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 16px; }
.footer-col a { display:block; font-size:13px; color:rgba(255,255,255,0.45); margin-bottom:10px; transition:color .15s; }
.footer-col a:hover { color:rgba(255,255,255,0.85); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-sg { font-size: 12px; color: rgba(255,255,255,0.2); display:flex; align-items:center; gap:6px; }

/* ── IMG PLACEHOLDER ── */
.img-ph { background: var(--border); border-radius: 2px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:11px; letter-spacing:0.5px; font-weight:500; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container, .container-wide { padding: 0 28px; }
  section { padding: 72px 0; }
  .nav-inner { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { padding: 28px; }
  .grid-sep.cols-3, .grid-sep.cols-4 { grid-template-columns: 1fr 1fr; }
  .grid-sep.cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, .container-wide { padding: 0 20px; }
  section { padding: 56px 0; }
  .nav-inner { padding: 0 20px; }
  .mobile-menu { padding: 20px; }
  .grid-sep.cols-3, .grid-sep.cols-4, .grid-sep.cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align:center; }
  .pricing-card { padding: 32px 24px; }
  .modal { padding: 28px 20px; }
}

/* ============================================================
   ADDITIONS v4 — fixes from review round 3
   ============================================================ */

/* universal box-sizing safety for narrow viewports */
.container, .container-wide { width: 100%; }
img, .img-ph { max-width: 100%; }
table { max-width: 100%; }

/* Nav avatar fix — off-white bg, bigger */
.nav-avatar-v2 {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-avatar-v2 img { width: 100%; height: 100%; object-fit: cover; }
.nav-wordmark-v2 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); }

/* receipt loyalty value — must match DM Sans, not serif */
.r-loyalty-val-v2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

/* admin sidebar replica (matches Loopd admin/index.tsx Shell component) */
.adm-shell { display:flex; border:1px solid var(--border); border-radius:3px; overflow:hidden; background:var(--surface); }
.adm-sidebar { width:220px; min-width:220px; background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; }
.adm-sidebar-head { padding:18px 20px 13px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.adm-sidebar-brand { font-size:13px; font-weight:800; letter-spacing:0.14em; color:var(--text); text-transform:uppercase; }
.adm-merchant-block { padding:14px 20px; border-bottom:1px solid var(--border); }
.adm-merchant-name { font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; line-height:1.3; }
.adm-role-pill { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.08em; background:var(--bg); border:1px solid var(--border); border-radius:3px; padding:1px 5px; margin-right:6px; }
.adm-user-name { font-size:11px; color:var(--text-sec); }
.adm-nav { flex:1; padding:10px; display:flex; flex-direction:column; gap:1px; }
.adm-nav-btn { display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; border:none; border-radius:5px; padding:8px 12px; font-size:13px; cursor:pointer; background:transparent; color:var(--text-sec); font-weight:400; font-family:'DM Sans',system-ui,sans-serif; transition:background .1s; }
.adm-nav-btn:hover { background:var(--bg); }
.adm-nav-btn.active { background:var(--text); color:#fff; font-weight:600; }
.adm-nav-badge { background:#1A1A1A; color:#fff; border-radius:99px; font-size:10px; font-weight:700; padding:1px 6px; min-width:16px; text-align:center; line-height:16px; }
.adm-nav-btn.active .adm-nav-badge { background:rgba(255,255,255,0.2); }
.adm-sidebar-foot { padding:10px 10px 16px; }
.adm-sidebar-foot-divider { height:1px; background:var(--border); margin:0 10px 10px; }
.adm-sidebar-foot a, .adm-sidebar-foot button { display:block; width:100%; text-align:left; padding:7px 12px; font-size:12px; color:var(--text-sec); text-decoration:none; border-radius:5px; border:none; background:transparent; font-family:'DM Sans',system-ui,sans-serif; cursor:pointer; margin-bottom:2px; }
.adm-main { flex:1; padding:32px 36px; min-width:0; overflow-x:auto; }
.adm-main-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:4px; letter-spacing:-0.2px; }
.adm-main-sub { font-size:13px; color:var(--text-sec); margin-bottom:24px; }
.adm-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:28px; }
.adm-stat-grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.adm-stat-card { border:1px solid var(--border); border-radius:6px; padding:16px 18px; background:var(--bg); }
.adm-stat-card .label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.adm-stat-card .val { font-size:22px; font-weight:700; color:var(--text); font-family:'DM Sans',system-ui,sans-serif; }
.adm-table { width:100%; border-collapse:collapse; font-size:13px; }
.adm-table th { text-align:left; padding:8px 12px; font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; border-bottom:1px solid var(--border); }
.adm-table td { padding:11px 12px; color:var(--text); border-bottom:1px solid var(--border); vertical-align:middle; }
.adm-table tr:last-child td { border-bottom:none; }
.adm-btn-primary { background:var(--text); color:#fff; border:none; border-radius:5px; padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',system-ui,sans-serif; }
.adm-btn-ghost { background:transparent; color:var(--text); border:1px solid var(--border); border-radius:5px; padding:8px 14px; font-size:13px; cursor:pointer; font-family:'DM Sans',system-ui,sans-serif; }
.adm-pill { font-size:9px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; border-radius:3px; padding:2px 6px; }
.adm-pill.live { background:var(--text); color:#fff; }
.adm-pill.waiting { background:var(--bg); border:1px solid var(--border); color:var(--text-sec); }

/* Extended dashboard utility classes — subtabs, badges, filters, queue cards */
.adm-section-title { font-size:14px; font-weight:600; color:var(--text); margin:28px 0 10px; }
.adm-section-title:first-child { margin-top:0; }
.adm-subtabs { display:flex; gap:1px; margin-bottom:20px; border-bottom:1px solid var(--border); }
.adm-subtab-btn { background:none; border:none; border-bottom:2px solid transparent; padding:8px 16px; font-size:13px; color:var(--text-sec); cursor:pointer; font-family:inherit; margin-bottom:-1px; text-transform:capitalize; }
.adm-subtab-btn.active { border-bottom-color:var(--text); color:var(--text); font-weight:600; }
.adm-subtab-count { background:var(--text); color:#fff; border-radius:99px; padding:0 5px; font-size:10px; font-weight:700; margin-left:6px; }
.adm-filter-row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; align-items:center; }
.adm-filter-pill { border:1px solid var(--border); background:transparent; color:var(--text-sec); border-radius:4px; padding:5px 11px; font-size:12px; cursor:pointer; font-family:inherit; }
.adm-filter-pill.active { border-color:var(--text); background:var(--text); color:#fff; font-weight:600; }
.adm-badge { font-size:11px; font-weight:600; padding:2px 7px; border-radius:3px; white-space:nowrap; }
.adm-badge.ok { background:var(--green-bg); color:var(--green); }
.adm-badge.danger { background:rgba(192,57,43,0.08); color:var(--red); }
.adm-badge.neutral { background:var(--bg); border:1px solid var(--border); color:var(--text-sec); }
.adm-search-row { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; align-items:center; }
.adm-input { border:1px solid var(--border); border-radius:5px; padding:8px 12px; font-size:13px; font-family:inherit; background:var(--surface); color:var(--text); }
.adm-input::placeholder { color:var(--text-muted); }
.adm-empty { border:1px dashed var(--border); border-radius:6px; padding:28px 20px; text-align:center; font-size:13px; color:var(--text-muted); background:var(--bg); }
.adm-link { color:var(--text); font-weight:600; text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:2px; }
.adm-queue-card { border:1px solid var(--border); border-radius:6px; padding:13px 16px; margin-bottom:8px; background:var(--bg); display:flex; justify-content:space-between; align-items:center; }
.adm-queue-num { font-size:22px; font-weight:700; color:var(--text); line-height:1; font-family:'DM Sans',system-ui,sans-serif; }
.adm-queue-meta { font-size:11px; color:var(--text-muted); margin-top:3px; }
.adm-mod-tag { font-size:10px; font-weight:600; padding:1px 6px; border-radius:3px; border:1px solid var(--border); color:var(--text-muted); }
.adm-mod-tag.on { border-color:var(--text); color:var(--text); background:var(--bg); }
.adm-name-cell { font-weight:600; color:var(--text); }
.adm-sub-cell { color:var(--text-sec); font-size:12px; }
.adm-muted-cell { color:var(--text-muted); font-size:12px; }

/* responsiveness for adm-shell */
@media(max-width:760px){
  .adm-shell { flex-direction:column; }
  .adm-sidebar { width:100%; min-width:0; flex-direction:row; flex-wrap:wrap; }
  .adm-nav { flex-direction:row; flex-wrap:wrap; }
  .adm-stat-grid { grid-template-columns:repeat(2,1fr); }
}

/* mockup pricing card swap colours */
.plan.launch-dark { background:var(--text); border-top:none !important; }
.plan.launch-dark .plan-tier { color:rgba(200,168,75,0.6); }
.plan.launch-dark .plan-name,
.plan.launch-dark .plan-amount { color:#FAFAF8; }
.plan.launch-dark .plan-period,
.plan.launch-dark .plan-day { color:rgba(255,255,255,0.3); }
.plan.launch-dark .plan-divider { background:rgba(255,255,255,0.1); }
.plan.launch-dark .plan-section-lbl { color:rgba(255,255,255,0.25); }
.plan.launch-dark .plan-features li { color:rgba(255,255,255,0.6); }
.plan.launch-dark .plan-features li::before { background:rgba(200,168,75,0.4); }
.plan-launch-badge-v2 {
  position:absolute; top:-1px; left:50%; transform:translateX(-50%);
  background:var(--amber); color:#1A1A1A;
  font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  padding:4px 12px; border-radius:0 0 4px 4px; white-space:nowrap;
}

/* Gmail / Google Meet icons */
.gmail-circle { width:34px; height:34px; border-radius:50%; background:#fff; border:2px solid #EA4335; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.meet-circle  { width:34px; height:34px; border-radius:50%; background:#fff; border:2px solid #FBBC05; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* better fluid containers for narrow/half-screen viewports */
@media (max-width: 640px) {
  .hero-top-inner { grid-template-columns:1fr !important; }
  .module-tab-panel.active { grid-template-columns:1fr !important; }
  .setup-grid { grid-template-columns:1fr !important; }
  .comparison-strip { grid-template-columns:1fr !important; }
}
@media (max-width: 1024px) {
  .merchant-demo-wrap { grid-template-columns:1fr !important; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .setup-grid { gap:32px; }
  .comp-col { padding:32px 28px; }
}
@media (max-width: 760px) {
  .grid-sep.cols-3, .grid-sep.cols-4 { grid-template-columns:1fr 1fr !important; }
  .expect-grid { grid-template-columns:1fr 1fr !important; }
  .module-cards-grid { grid-template-columns:1fr 1fr !important; }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns:1fr !important; }
}
@media (max-width: 480px) {
  .grid-sep.cols-3, .grid-sep.cols-4, .expect-grid, .module-cards-grid { grid-template-columns:1fr !important; }
}

/* ============================================================
   SHARED COMPONENT CSS — was incorrectly scoped to index.html
   These are used across multiple pages
   ============================================================ */

/* Tab panels — module and step display */
.module-tab-panel { display:none; }
.module-tab-panel.active { display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--border); }
.module-tab-nav { display:flex; gap:0; border-bottom:2px solid var(--border); overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; }
.module-tab-nav::-webkit-scrollbar { display:none; }
.module-tab-btn { background:none; border:none; padding:14px 24px; font-size:13px; font-weight:500; color:var(--text-sec); cursor:pointer; font-family:inherit; white-space:nowrap; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .15s; }
.module-tab-btn:hover { color:var(--text); }
.module-tab-btn.active { color:var(--text); border-bottom-color:var(--text); font-weight:600; }
.module-detail-card { background:var(--surface); padding:36px 32px; }
.module-detail-name { font-size:22px; font-weight:600; letter-spacing:-.3px; color:var(--text); margin-bottom:4px; }
.module-detail-badge { display:inline-block; font-size:9px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; padding:3px 9px; border-radius:2px; margin-bottom:16px; }
.module-detail-badge.core { background:var(--bg); border:1px solid var(--border); color:var(--text-sec); }
.module-detail-badge.addon { background:var(--amber-bg); color:var(--amber); }
.module-detail-desc { font-size:14px; line-height:1.75; color:var(--text-sec); margin-bottom:20px; }
.module-feat-list { list-style:none; display:flex; flex-direction:column; gap:9px; }
.module-feat-list li { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--text-sec); line-height:1.55; }
.module-feat-list li::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--border-strong); flex-shrink:0; margin-top:6px; }
.module-visual-col { padding:36px 32px; background:var(--bg); display:flex; align-items:center; justify-content:center; }
.module-visual-ph { width:100%; aspect-ratio:4/3; }
.module-visual-col { padding:36px 32px; background:var(--bg); display:flex; align-items:center; justify-content:center; }
.module-visual-ph  { width:100%; aspect-ratio:4/3; }

/* Dashboard tabs */
.dash-tab { display:none; }
.dash-tab.active { display:block; }

/* Send buttons (WhatsApp + Email) */
.send-btn-row { display:flex; gap:8px; margin-top:10px; }
.send-btn { flex:1; padding:12px; border-radius:2px; font-size:13px; font-weight:500; border:none; cursor:pointer; font-family:inherit; transition:all .15s; display:flex; align-items:center; justify-content:center; gap:7px; }
.send-btn svg { width:15px; height:15px; flex-shrink:0; }
.send-btn.wa-send { background:#25D366; color:#fff; }
.send-btn.wa-send:hover { background:#1ebe5d; }
.send-btn.email-send { background:var(--text); color:#fff; }
.send-btn.email-send:hover { background:#333; }

/* How-it-works step panels */
.how-step-panel { display:none; padding:48px; flex-direction:column; gap:20px; background:var(--bg); min-height:480px; }
.how-step-panel.active { display:flex; }

/* Grid: 2-col with separator */
.grid-sep-2 { display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--border); }
.grid-sep-2 > * { background:var(--surface); }
.grid-sep-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--border); }
.grid-sep-3 > * { background:var(--surface); }

/* Stat number + text block (used in hero stat strip) */
.hero-stat-col { padding:44px 48px; display:flex; align-items:center; gap:24px; }

/* Contact option icons */
.wa-circle-sm { width:36px; height:36px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wa-circle-sm svg { width:17px; height:17px; fill:#fff; }
.gmail-icon-circle { width:36px; height:36px; border-radius:50%; background:#fff; border:2px solid #EA4335; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.meet-icon-circle  { width:36px; height:36px; border-radius:50%; background:#fff; border:2px solid #00832D; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Responsive overrides — all shared grids */
@media(max-width:640px) {
  .module-tab-panel.active { grid-template-columns:1fr; }
  .how-step-panel { padding:32px 28px; min-height:auto; }
}
@media(max-width:900px) {
  .send-btn-row { flex-direction:column; }
  .hero-stat-col { padding:28px 24px; flex-direction:column; text-align:center; gap:10px; }
}
