/* ═══════════════════════════════════════════════════════
   STAMPLI — Full App Stylesheet v2.0
   Dark theme: #0a0a0a bg, #111827 cards, #00C47A green
   ═══════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────── */
:root {
  --stmp-green:       #00C47A;
  --stmp-green-dark:  #00a065;
  --stmp-green-dim:   rgba(0,196,122,.12);
  --stmp-dark:        #0a0a0a;
  --stmp-card-bg:     #111827;
  --stmp-card-bg2:    #1a2332;
  --stmp-border:      #1f2937;
  --stmp-border2:     #374151;
  --stmp-text:        #f9fafb;
  --stmp-muted:       #9ca3af;
  --stmp-muted2:      #6b7280;
  --stmp-red:         #ef4444;
  --stmp-red-dim:     rgba(239,68,68,.12);
  --stmp-yellow:      #f59e0b;
  --stmp-yellow-dim:  rgba(245,158,11,.12);
  --stmp-blue:        #3b82f6;
  --stmp-blue-dim:    rgba(59,130,246,.12);
  --stmp-radius:      12px;
  --stmp-radius-lg:   16px;
  --stmp-shadow:      0 4px 24px rgba(0,0,0,.5);
  --stmp-shadow-lg:   0 8px 40px rgba(0,0,0,.6);
  --sidebar-w:        240px;
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Global reset for Stampli pages ──────────────────── */
html.stampli-page,
body.stampli-page {
  margin: 0; padding: 0;
  background: var(--stmp-dark);
  font-family: var(--font);
  color: var(--stmp-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.stampli-page *, body.stampli-page *::before, body.stampli-page *::after {
  box-sizing: border-box;
}
body.stampli-page a { color: var(--stmp-green); text-decoration: none; }
body.stampli-page a:hover { text-decoration: underline; }
body.stampli-page img { max-width: 100%; display: block; }

/* ── Logo ─────────────────────────────────────────────── */
.stampli-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--stmp-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.5px;
}
.stampli-logo-text span { color: var(--stmp-green); }

/* ── Buttons ──────────────────────────────────────────── */
.stampli-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--stmp-green);
  color: #0a0a0a !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.stampli-btn-primary:hover {
  background: var(--stmp-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,196,122,.3);
}
.stampli-btn-primary:active { transform: translateY(0); }
.stampli-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.stampli-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--stmp-text) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--stmp-border2);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.stampli-btn-outline:hover { border-color: var(--stmp-green); background: var(--stmp-green-dim); }

.stampli-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--stmp-red) !important;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,.3);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.stampli-btn-danger:hover { background: var(--stmp-red-dim); border-color: var(--stmp-red); }

.stampli-link {
  background: none; border: none; cursor: pointer;
  color: var(--stmp-green); font-family: var(--font);
  font-size: 14px; padding: 0; text-decoration: underline;
}
.stampli-link:hover { color: var(--stmp-green-dark); }

.btn-full { width: 100%; }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-arrow { margin-left: 4px; }

/* ── Alerts ───────────────────────────────────────────── */
.stampli-alert {
  padding: 14px 18px;
  border-radius: var(--stmp-radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.stampli-alert.success { background: var(--stmp-green-dim); color: var(--stmp-green); border: 1px solid rgba(0,196,122,.25); }
.stampli-alert.error   { background: var(--stmp-red-dim);   color: #fca5a5;           border: 1px solid rgba(239,68,68,.25); }
.stampli-alert.info    { background: var(--stmp-blue-dim);  color: #93c5fd;           border: 1px solid rgba(59,130,246,.25); }
.stampli-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Form elements ────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label,
.form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--stmp-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--stmp-border);
  border-radius: 8px;
  color: var(--stmp-text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--stmp-green);
  box-shadow: 0 0 0 3px rgba(0,196,122,.15);
}
.form-group input::placeholder { color: var(--stmp-muted2); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-group select option { background: #1a2332; }

.form-group-row { display: flex; align-items: center; justify-content: space-between; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--stmp-muted); font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--stmp-green); cursor: pointer; }
.forgot-link { font-size: 13px; color: var(--stmp-muted); }
.forgot-link:hover { color: var(--stmp-green); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-label { font-size: 11px; font-weight: 700; color: var(--stmp-muted2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--stmp-border); }

/* ────────────────────────────────────────────────────────
   AUTH PAGES
   ──────────────────────────────────────────────────────── */
.stampli-auth-bg {
  min-height: 100vh;
  background: var(--stmp-dark);
  display: flex;
  align-items: stretch;
}

.stampli-auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left branding panel */
.auth-brand-panel {
  flex: 0 0 48%;
  background: linear-gradient(135deg, #0d1117 0%, #111827 100%);
  border-right: 1px solid var(--stmp-border);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,196,122,.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-panel .stampli-logo-text { font-size: 28px; margin-bottom: 40px; }
.auth-brand-tagline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--stmp-text);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}
.auth-brand-features { margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.auth-brand-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--stmp-muted);
}
.auth-feat-icon { color: var(--stmp-green); font-size: 14px; }

/* Wallet preview card */
.auth-wallet-preview { max-width: 340px; }
.auth-wallet-card {
  background: linear-gradient(135deg, #059669, #00C47A);
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 20px 60px rgba(0,196,122,.2);
  border: 1px solid rgba(255,255,255,.1);
}
.wallet-card-top { margin-bottom: 18px; }
.wallet-card-biz { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,.7); text-transform: uppercase; margin-bottom: 4px; }
.wallet-card-name { font-size: 20px; font-weight: 700; color: #fff; }
.wallet-card-stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ws { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ws.filled { background: rgba(255,255,255,.9); }
.ws.empty  { background: rgba(255,255,255,.2); filter: grayscale(1) opacity(.5); }
.wallet-card-reward { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; }

/* Right form panel */
.auth-form-panel {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--stmp-dark);
}
.auth-form-card {
  width: 100%;
  max-width: 420px;
}
.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.5px; color: var(--stmp-text); }
.auth-form-header p  { font-size: 15px; color: var(--stmp-muted); margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .stampli-btn-primary { margin-top: 8px; height: 48px; font-size: 15px; border-radius: 10px; }

.auth-form-footer { margin-top: 24px; text-align: center; }
.auth-form-footer p { font-size: 14px; color: var(--stmp-muted); margin: 0 0 8px; }
.auth-form-footer a { color: var(--stmp-green); font-weight: 600; }

/* Mobile: stack auth panels */
@media (max-width: 860px) {
  .stampli-auth-split { flex-direction: column; }
  .auth-brand-panel { flex: none; padding: 40px 28px; }
  .auth-brand-tagline { font-size: 24px; }
  .auth-wallet-preview { display: none; }
  .auth-brand-features { margin-bottom: 0; }
  .auth-form-panel { flex: none; padding: 40px 28px; align-items: stretch; }
}

/* ────────────────────────────────────────────────────────
   APP LAYOUT (Dashboard / Billing)
   ──────────────────────────────────────────────────────── */
.stampli-app {
  display: flex;
  min-height: 100vh;
  background: var(--stmp-dark);
}

/* ── Sidebar ──────────────────────────────────────────── */
.stampli-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--stmp-card-bg);
  border-right: 1px solid var(--stmp-border);
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand { padding: 24px 20px 16px; border-bottom: 1px solid var(--stmp-border); }
.sidebar-brand .stampli-logo-text { font-size: 22px; }

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--stmp-muted) !important;
  text-decoration: none !important;
  transition: background .12s, color .12s;
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: var(--stmp-text) !important; }
.sidebar-link.active { background: var(--stmp-green-dim); color: var(--stmp-green) !important; font-weight: 600; }
.sidebar-link svg { opacity: 0.7; flex-shrink: 0; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-bottom { padding: 12px 10px; border-top: 1px solid var(--stmp-border); display: flex; flex-direction: column; gap: 10px; }

.trial-notice {
  background: var(--stmp-green-dim);
  border: 1px solid rgba(0,196,122,.2);
  border-radius: 10px;
  padding: 14px;
}
.trial-notice-label { font-size: 11px; font-weight: 700; color: var(--stmp-green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.trial-notice-days  { font-size: 20px; font-weight: 800; color: var(--stmp-text); margin-bottom: 10px; }
.trial-upgrade-btn  { display: block; font-size: 13px; font-weight: 700; color: var(--stmp-green); text-decoration: none; }
.trial-upgrade-btn:hover { text-decoration: underline; }

.sidebar-plan-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--stmp-muted); padding: 0 2px; }
.plan-dot { width: 8px; height: 8px; background: var(--stmp-green); border-radius: 50%; }
.badge-warn { font-size: 11px; background: var(--stmp-yellow-dim); color: var(--stmp-yellow); padding: 2px 8px; border-radius: 4px; margin-left: auto; }

.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--stmp-green-dim);
  color: var(--stmp-green);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0,196,122,.2);
}
.user-biz { font-size: 13px; font-weight: 600; color: var(--stmp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.sidebar-logout {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--stmp-muted2) !important;
  text-decoration: none !important;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.sidebar-logout:hover { background: rgba(239,68,68,.08); color: var(--stmp-red) !important; }

/* ── Main content ─────────────────────────────────────── */
.stampli-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 36px 40px;
  min-width: 0;
}

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.5px; }
.page-subtitle { font-size: 14px; color: var(--stmp-muted); margin: 0; }

/* ── Stats row ────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--stmp-card-bg);
  border: 1px solid var(--stmp-border);
  border-radius: var(--stmp-radius);
  padding: 20px 22px;
}
.stat-value { font-size: 30px; font-weight: 800; color: var(--stmp-text); line-height: 1; margin-bottom: 6px; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--stmp-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Create form panel ────────────────────────────────── */
.stampli-panel {
  background: var(--stmp-card-bg);
  border: 1px solid var(--stmp-border);
  border-radius: var(--stmp-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--stmp-border);
}
.panel-header h2 { font-size: 18px; font-weight: 700; margin: 0; }
.panel-close {
  background: none; border: none; cursor: pointer;
  color: var(--stmp-muted); font-size: 18px; padding: 4px 8px;
  border-radius: 6px; transition: background .12s, color .12s;
}
.panel-close:hover { background: rgba(255,255,255,.08); color: var(--stmp-text); }

.create-form-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}
.create-form-fields { min-width: 0; }

/* Color picker */
.color-picker-row { display: flex; align-items: center; gap: 12px; }
.color-picker-row input[type="color"] { width: 44px; height: 44px; border: 2px solid var(--stmp-border); border-radius: 8px; cursor: pointer; padding: 2px; background: var(--stmp-card-bg); }
.color-hex-display { font-size: 13px; font-weight: 600; color: var(--stmp-text); padding: 6px 12px; border-radius: 6px; background: rgba(0,196,122,.15); color: var(--stmp-green); }

/* Icon picker */
.icon-picker-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-option { cursor: pointer; }
.icon-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.icon-option span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 20px;
  border-radius: 8px; border: 2px solid var(--stmp-border);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.icon-option input:checked + span { border-color: var(--stmp-green); background: var(--stmp-green-dim); }
.icon-option span:hover { border-color: var(--stmp-border2); }

.form-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--stmp-border); }

/* ── Card preview widget ──────────────────────────────── */
.create-form-preview { position: sticky; top: 24px; }
.preview-label { font-size: 11px; font-weight: 700; color: var(--stmp-muted2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

.preview-phone-frame {
  background: #1c1c1e;
  border-radius: 32px;
  padding: 24px 20px;
  border: 2px solid #2c2c2e;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.preview-wallet-card {
  border-radius: 14px;
  padding: 18px 16px 14px;
  min-height: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.preview-card-header { margin-bottom: 14px; }
.preview-biz  { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.preview-name { font-size: 17px; font-weight: 700; color: #fff; }
.preview-stamps { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.preview-stamp { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.preview-stamp.filled { background: rgba(255,255,255,.9); }
.preview-stamp.empty  { background: rgba(255,255,255,.15); filter: grayscale(1) opacity(.5); }
.preview-reward { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; }
.preview-note { font-size: 12px; color: var(--stmp-muted2); text-align: center; margin-top: 12px; }

/* ── Empty state ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: var(--stmp-card-bg);
  border: 1px dashed var(--stmp-border);
  border-radius: var(--stmp-radius-lg);
}
.empty-icon { font-size: 56px; margin-bottom: 20px; }
.empty-state h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.empty-state p  { font-size: 15px; color: var(--stmp-muted); margin: 0 0 28px; max-width: 380px; margin-inline: auto; }

/* ── Cards grid ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
}

.card-item {
  background: var(--stmp-card-bg);
  border: 1px solid var(--stmp-border);
  border-radius: var(--stmp-radius-lg);
  overflow: hidden;
}

.card-item-visual {
  padding: 22px 22px 18px;
  position: relative;
}
.card-visual-biz  { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 4px; }
.card-visual-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.card-visual-meta { font-size: 13px; color: rgba(255,255,255,.7); }

/* Card stats bar */
.card-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--stmp-border);
  border-top: 1px solid rgba(255,255,255,.06);
}
.card-stat {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--stmp-border);
}
.card-stat:last-child { border-right: none; }
.card-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--stmp-text); }
.card-stat span   { font-size: 11px; color: var(--stmp-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Card body */
.card-item-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; }

/* QR section */
.card-qr-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-qr-block {
  background: var(--stmp-card-bg2);
  border: 1px solid var(--stmp-border);
  border-radius: var(--stmp-radius);
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.card-qr-label { font-size: 13px; font-weight: 700; color: var(--stmp-text); }
.card-qr-sub   { font-size: 12px; color: var(--stmp-muted2); margin-top: -4px; }
.qr-image { border-radius: 8px; border: 3px solid #fff; }

.join-url-copy { display: flex; gap: 8px; width: 100%; }
.url-input {
  flex: 1; min-width: 0;
  background: #0f172a; border: 1px solid var(--stmp-border);
  border-radius: 6px; color: var(--stmp-muted);
  font-family: var(--font); font-size: 12px; padding: 6px 10px;
  cursor: text;
}
.copy-btn {
  background: var(--stmp-border2); border: none; border-radius: 6px;
  color: var(--stmp-text); font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
  transition: background .12s;
}
.copy-btn:hover { background: var(--stmp-green); color: #0a0a0a; }

/* Section label */
.section-label { font-size: 12px; font-weight: 700; color: var(--stmp-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }

/* Push notification */
.card-push-section {}
.push-form {}
.push-row { display: flex; gap: 10px; }
.push-row input[type="text"] {
  flex: 1; background: #0f172a; border: 1px solid var(--stmp-border);
  border-radius: 8px; color: var(--stmp-text); font-family: var(--font);
  font-size: 14px; padding: 10px 14px; outline: none;
  transition: border-color .15s;
}
.push-row input:focus { border-color: var(--stmp-green); }
.push-row input::placeholder { color: var(--stmp-muted2); }

/* Activity table */
.card-activity-section {}
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--stmp-muted2); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 0; border-bottom: 1px solid var(--stmp-border); }
.activity-table td { font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--stmp-text); }
.activity-table td.muted { color: var(--stmp-muted); }

/* Card footer */
.card-item-footer { display: flex; justify-content: flex-end; padding-top: 4px; }

/* ────────────────────────────────────────────────────────
   BILLING PAGE
   ──────────────────────────────────────────────────────── */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.billing-plan-card {
  background: var(--stmp-card-bg);
  border: 1px solid var(--stmp-border);
  border-radius: var(--stmp-radius-lg);
  padding: 28px 26px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .15s;
}
.billing-plan-card:hover { border-color: var(--stmp-border2); }
.billing-plan-card.featured {
  border-color: var(--stmp-green);
  box-shadow: 0 0 0 1px var(--stmp-green), 0 8px 40px rgba(0,196,122,.12);
}
.billing-plan-card.current { border-color: var(--stmp-green); }

.plan-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--stmp-green); color: #0a0a0a;
  font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
  white-space: nowrap; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-icon  { font-size: 28px; margin-bottom: 12px; }
.plan-name  { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.plan-price-block { display: flex; align-items: baseline; gap: 3px; margin-bottom: 22px; }
.plan-currency { font-size: 15px; font-weight: 700; color: var(--stmp-muted); }
.plan-amount   { font-size: 40px; font-weight: 900; color: var(--stmp-text); letter-spacing: -1px; line-height: 1; }
.plan-period   { font-size: 14px; color: var(--stmp-muted); }

.plan-features { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--stmp-muted); }
.plan-check { color: var(--stmp-green); font-weight: 700; flex-shrink: 0; }

.plan-current-badge {
  text-align: center; padding: 12px;
  border-radius: 8px; border: 1px solid rgba(0,196,122,.3);
  background: var(--stmp-green-dim); color: var(--stmp-green);
  font-size: 14px; font-weight: 700;
}
.plan-coming-soon { text-align: center; font-size: 13px; color: var(--stmp-muted2); padding: 12px 0; }

.billing-manage-row { margin-bottom: 40px; }

/* FAQ */
.billing-faq { background: var(--stmp-card-bg); border: 1px solid var(--stmp-border); border-radius: var(--stmp-radius-lg); padding: 28px 32px; }
.billing-faq h3 { font-size: 18px; font-weight: 700; margin: 0 0 24px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { padding: 16px; background: var(--stmp-card-bg2); border-radius: var(--stmp-radius); border: 1px solid var(--stmp-border); }
.faq-q { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.faq-a { font-size: 13px; color: var(--stmp-muted); line-height: 1.5; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .billing-plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .create-form-grid { grid-template-columns: 1fr; }
  .create-form-preview { display: none; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
  .stampli-content { padding: 24px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-qr-section { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stampli-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .stampli-sidebar.open { transform: translateX(0); }
  .stampli-content { margin-left: 0; padding: 20px 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .card-stats-bar { grid-template-columns: repeat(2, 1fr); }
}
