/* ============================================================
   CDocsSign Bespoke Editorial Design System v4
   Art Direction: Linear / Stripe / Resend / Attio Inspired
   Key Characteristics: Asymmetric Grids, Layered Depth, Bento Multi-tier Cards,
                       Editorial Typography, Edge-to-Edge Canvas & Staggered Spacing.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Deep Slate, Midnight Emerald & Electric Indigo */
  --bg-canvas: #090d16;
  --bg-surface: #0f172a;
  --bg-card-dark: #1e293b;
  --bg-card-light: #ffffff;
  
  --ink-primary: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;
  --ink-faint: #64748b;
  
  --brand-emerald: #10b981;
  --brand-emerald-dark: #047857;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  --brand-indigo: #6366f1;
  --brand-indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.6);
  --border-dark: #1e293b;
  --border-dark-glow: rgba(16, 185, 129, 0.4);

  /* App-page aliases (light content on app pages) */
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --brand: #6d5ef0;
  --brand-ink: #4338ca;
  --brand-soft: rgba(109, 94, 240, 0.09);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.09);
  --accent-ink: #047857;
  --rose-ink: #be123c;
  --bg-soft: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --line-soft: #eef2f7;
  --green: #10b981;
  --green-deep: #047857;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.07);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-glow-indigo: 0 0 30px rgba(99, 102, 241, 0.2);
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   Admin Console Layout (sidebar shell)
============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: 256px; flex-shrink: 0; min-height: 100vh;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column;
  padding: 22px 16px;
}
.admin-sidebar .admin-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px; text-decoration: none;
}
.admin-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #0f172a; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; font-family: var(--font-display);
}
.admin-logo-text .admin-logo-title { color: #ffffff; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.admin-logo-text .admin-logo-sub { color: #34d399; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-label {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #64748b;
  padding: 14px 10px 6px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: #94a3b8; font-size: 0.86rem; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.admin-nav-item svg { flex-shrink: 0; opacity: 0.8; }
.admin-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #e2e8f0; }
.admin-nav-item.active { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.admin-nav-item.active svg { opacity: 1; }
.admin-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px; display: flex; flex-direction: column; gap: 4px;
}
.admin-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}
.admin-main {
  flex: 1; min-width: 0;
  padding: 30px clamp(20px, 3vw, 40px) 60px;
  background: #f8fafc;
}
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; min-height: auto; position: static;
    padding: 14px; flex-direction: row; align-items: center;
  }
  .admin-sidebar .admin-logo { border-bottom: none; margin-bottom: 0; padding: 0 8px 0 0; }
  .admin-nav { flex-direction: row; overflow-x: auto; gap: 2px; }
  .admin-nav-label { display: none; }
  .admin-sidebar-foot { border-top: none; padding-top: 0; margin-left: auto; }
  .admin-user { display: none; }
}

body.dark-canvas {
  background: var(--bg-canvas);
  color: var(--ink-primary);
}

a { color: var(--brand-emerald); text-decoration: none; transition: all 0.15s ease; }
a:hover { color: #059669; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.dark-canvas h1, .dark-canvas h2, .dark-canvas h3, .dark-canvas h4 { color: var(--ink-primary); }

/* Layout Grid Primitives - Edge to Edge & Asymmetric Compositions */
.container-full { width: 100%; padding: 0 clamp(20px, 4vw, 64px); }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.container-standard { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }
.container-editorial { width: 100%; max-width: 1080px; padding: 0 clamp(20px, 3vw, 32px); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 32px); }
.grid-aside { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1024px) { .grid-aside { grid-template-columns: 1fr; } }

/* App typography aliases */
.display-2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.65; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--green-deep);
}
.kicker::before { content: ""; width: 12px; height: 3px; border-radius: 4px; background: var(--brand-emerald); }
.label { display: block; font-weight: 700; font-size: 0.875rem; color: #334155; margin-bottom: 8px; }
.link { color: var(--brand-emerald); font-weight: 600; }
.link:hover { color: #059669; text-decoration: underline; }
.arrow { display: inline-block; margin-left: 4px; }

/* Spacing & text utilities */
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 20px; } .mb-4 { margin-bottom: 28px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.text-center { text-align: center; }

/* Badge & button aliases */
.badge-green { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-red { background: rgba(220, 38, 38, 0.1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.22); }
.badge-blue { background: rgba(99, 102, 241, 0.12); color: #4338ca; border: 1px solid rgba(99, 102, 241, 0.2); }
.badge-ink { background: #0f172a; color: #ffffff; border: 1px solid #0f172a; }
.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
.btn-green:hover { background: linear-gradient(135deg, #34d399 0%, #047857 100%); color: #ffffff; transform: translateY(-2px); }

/* Legacy bar & stamp aliases */
.bar { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 99px; }
.stamp-green { border-color: #10b981; color: #047857; background: rgba(16, 185, 129, 0.08); }
.stamp-ink { border-color: #0f172a; color: #0f172a; background: #f8fafc; }

/* Asymmetric Column Grids */
.grid-bento-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.grid-bento-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.grid-asymmetric-2-1 {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.grid-asymmetric-1-2 {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 28px;
  align-items: start;
}
.grid-editorial-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-bento-hero, .grid-bento-3, .grid-asymmetric-2-1, .grid-asymmetric-1-2, .grid-editorial-3 {
    grid-template-columns: 1fr !important;
  }
}

/* Typography Hierarchy & Eyebrows */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: #059669;
}
.eyebrow::before {
  content: ""; width: 12px; height: 3px; background: var(--brand-emerald);
  border-radius: 4px; display: inline-block;
}

.display-hero { font-size: clamp(2.8rem, 5.5vw, 4.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.display-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.display-sub { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.lead-text { font-size: 1.125rem; color: #475569; line-height: 1.65; font-weight: 400; }
.mono { font-family: var(--font-mono); }
.muted { color: #64748b; }
.faint { color: #94a3b8; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }

/* Pulse Indicator Dot */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block; flex-shrink: 0;
}
@keyframes pulse-ring {
  to { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Staggered & Bento Cards */
.card-bento-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #064e3b 100%);
  border-radius: 28px; padding: 48px 56px; color: #ffffff;
  position: relative; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.card-feature-hero {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px;
  padding: 36px; box-shadow: var(--shadow-lg); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-feature-hero:hover {
  transform: translateY(-4px); border-color: #cbd5e1; box-shadow: 0 25px 45px -10px rgba(15,23,42,0.12);
}

.card-compressed {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 18px; padding: 20px;
}

.card-dark-glass {
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
  color: #ffffff; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Buttons & Actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.938rem;
  padding: 12px 24px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important; white-space: nowrap; outline: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); transform: translateY(-2px);
}

.btn-primary {
  background: #0f172a; color: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.btn-primary:hover {
  background: #1e293b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.35);
}

.btn-ghost {
  background: transparent; border-color: #cbd5e1; color: #334155;
}
.btn-ghost:hover { background: #ffffff; border-color: #0f172a; color: #0f172a; }

.btn-danger {
  background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); color: #e11d48;
}
.btn-danger:hover { background: #e11d48; color: #ffffff; }

.btn-sm { padding: 8px 16px; font-size: 0.813rem; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; font-weight: 800; }
.btn-block { width: 100%; }

/* Navigation Bar - Asymmetric Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}
.app-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px;
  width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0;
  padding: 0 clamp(20px, 4vw, 48px);
}
.app-header-inner .brand-logo { flex-shrink: 0; }
.app-header-inner > .row { flex: 1; justify-content: flex-end; min-width: 0; }

.brand-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none !important;
}
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  display: grid; place-items: center; color: #10b981;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.brand-text-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #0f172a; letter-spacing: -0.03em; }
.brand-text-sub { font-family: var(--font-mono); font-size: 0.65rem; color: #059669; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu-item {
  padding: 8px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  color: #475569; text-decoration: none !important; transition: all 0.15s;
}
.nav-menu-item:hover { color: #0f172a; background: #f1f5f9; }
.nav-menu-item.active { color: #0f172a; font-weight: 800; background: #e2e8f0; }

.user-profile-badge {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 99px;
}
.user-avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff; font-weight: 800; font-size: 0.8rem; display: grid; place-items: center;
}

/* Form Primitives */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 0.875rem; color: #334155; margin-bottom: 8px; }
.input, .select, textarea.input {
  width: 100%; padding: 12px 16px; font-size: 0.938rem; font-family: var(--font-body);
  color: #0f172a; background: #ffffff; border: 1px solid #cbd5e1;
  border-radius: 12px; outline: none; transition: all 0.18s ease;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Custom Checkbox */
.custom-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.9rem; color: #475569; }
.custom-check input { display: none; }
.custom-check .checkbox-box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbd5e1;
  background: #ffffff; flex-shrink: 0; margin-top: 2px; transition: all 0.15s;
  display: grid; place-items: center;
}
.custom-check input:checked + .checkbox-box { background: #10b981; border-color: #10b981; }
.custom-check input:checked + .checkbox-box::after { content: "✓"; color: #ffffff; font-size: 13px; font-weight: 800; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px;
  border-radius: 99px; white-space: nowrap; text-transform: capitalize;
}
.badge-emerald { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-rose { background: rgba(244, 63, 94, 0.12); color: #be123c; border: 1px solid rgba(244, 63, 94, 0.2); }
.badge-slate { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-indigo { background: rgba(99, 102, 241, 0.12); color: #4338ca; border: 1px solid rgba(99, 102, 241, 0.2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Alert Boxes */
.alert {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid;
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.alert-error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }

/* Tables */
.table-container { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; }
.table th {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #64748b; font-weight: 700; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.table td { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:hover td { background: #f8fafc; }

/* Split View Auth Grid (60/40 Split) */
.auth-split-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; min-height: 100vh;
}
@media (max-width: 900px) {
  .auth-split-grid { grid-template-columns: 1fr; }
  .auth-split-banner { display: none; }
}

.auth-split-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #064e3b 100%);
  padding: 60px 64px; color: #ffffff; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}

.auth-form-container {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px clamp(24px, 5vw, 80px); background: #ffffff;
}

/* Interactive Canvas Pad */
.signature-pad {
  touch-action: none; cursor: crosshair; background: #ffffff;
  border: 2px dashed #cbd5e1; border-radius: 16px; width: 100%;
}
.signature-pad:focus-within { border-color: #10b981; }

/* Utility Classes */
.row { display: flex; align-items: center; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack > * + * { margin-top: 20px; }
.hidden { display: none !important; }
.app-footer { margin-top: auto; background: #ffffff; border-top: 1px solid #e2e8f0; padding: 32px 0; font-size: 0.875rem; color: #64748b; }

/* Core App Primitives (shared by app pages) */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.card-pad { padding: 24px; }
.card-soft { background: #f8fafc; }

.eyebrow-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff; font-weight: 800; font-size: 0.78rem; display: grid; place-items: center;
}
.avatar-sm.violet { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.avatar-sm.amber { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.avatar-sm.cyan { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }

/* Icon chip */
.icon-chip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.icon-chip.brand { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.icon-chip.accent { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-chip.amber { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.icon-chip.violet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.icon-chip.slate { background: #f1f5f9; color: #64748b; }

/* Usage / plan distribution bar */
.bar-track { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }.bar-fill { height: 100%; border-radius: 99px; transition: width 0.3s ease; }
.bar-fill.emerald { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-fill.indigo { background: linear-gradient(90deg, #818cf8, #6366f1); }
.bar-fill.violet { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.bar-fill.slate { background: linear-gradient(90deg, #94a3b8, #64748b); }
.bar-fill.amber { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* Page hero banner (dark gradient) */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #064e3b 130%);
  border-radius: 24px; padding: 36px 40px; position: relative; overflow: hidden;
  color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.5);
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px); background-size: 26px 26px;
}
.hero-banner > * { position: relative; z-index: 2; }

/* Stat card */
.stat-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px;
  position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.12); }
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.stat-card.s-emerald::before { background: linear-gradient(90deg, #34d399, #10b981); }
.stat-card.s-indigo::before { background: linear-gradient(90deg, #818cf8, #6366f1); }
.stat-card.s-amber::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.stat-card.s-slate::before { background: linear-gradient(90deg, #94a3b8, #64748b); }
.stat-card.s-violet::before { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.stat-value { font-family: var(--font-mono); font-weight: 800; font-size: 2.2rem; color: #0f172a; line-height: 1; }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; font-weight: 700; }
.stat-sub { font-size: 0.78rem; color: #94a3b8; margin-top: 6px; }

/* ============================================================
   Landing Page Editorial Primitives (dark canvas)
   ============================================================ */

/* Check bullet for feature lists */
.check-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* Inline link on dark canvas */
.dark-canvas .link { color: #34d399; font-weight: 600; }
.dark-canvas .link:hover { color: #10b981; text-decoration: underline; }

/* Code blocks & chips */
.code-block {
  background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  padding: 20px 22px; overflow-x: auto; font-family: var(--font-mono);
  font-size: 0.813rem; line-height: 1.7; color: #a5f3fc;
}
.code-block code { font-family: inherit; color: inherit; }
.code-chip {
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc; border-radius: 6px; padding: 2px 7px; font-family: var(--font-mono); font-size: 0.75rem;
}

/* Rotated rubber-stamp badge */
.stamp {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 10px; border: 2px solid; text-transform: uppercase; letter-spacing: 0.14em;
}
.stamp-emerald { border-color: #10b981; color: #047857; background: rgba(16, 185, 129, 0.08); }
.stamp-amber { border-color: #f59e0b; color: #b45309; background: rgba(245, 158, 11, 0.08); }
.stamp-rose { border-color: #f43f5e; color: #be123c; background: rgba(244, 63, 94, 0.08); }
.dark-canvas .stamp-emerald { color: #34d399; }
.dark-canvas .stamp-amber { color: #fbbf24; }
.dark-canvas .stamp-rose { color: #fb7185; }

/* Editorial list with check bullets */
.list-check { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }

/* Dark editorial footer */
.site-footer {
  background: #090d16; border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 28px; color: #64748b; font-size: 0.875rem;
}
.site-footer .col-title {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: #94a3b8; margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: #94a3b8; text-decoration: none !important; transition: color 0.15s; }
.site-footer ul a:hover { color: #34d399; }
.rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 28px 0 0; }
.center { text-align: center; }

/* FAQ accordion */
.acc {
  background: rgba(15, 23, 42, 0.75); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; padding: 20px 24px; transition: border-color 0.15s;
}
.acc[open] { border-color: rgba(16, 185, 129, 0.4); }
.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .acc-icon {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: rgba(16, 185, 129, 0.14); color: #34d399; font-family: var(--font-mono);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s ease;
}
.acc[open] summary .acc-icon { transform: rotate(45deg); }

/* Pricing tier card */
.tier-card {
  background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, 0.4); }
.tier-card.tier-featured {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12) 0%, #0f172a 45%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12);
}

/* Page hero for landing subpages */
.page-hero { padding: 84px 0 48px; }
.page-hero .display-title { color: #ffffff; }

/* Dark form card */
.card-dark-form {
  background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 32px; color: #ffffff;
}
.dark-canvas .form-label { color: #cbd5e1; }
.dark-canvas .input {
  background: rgba(9, 13, 22, 0.6); color: #f8fafc; border-color: rgba(255, 255, 255, 0.14);
}
.dark-canvas .input::placeholder { color: #64748b; }
.dark-canvas .input:focus { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.dark-canvas .btn-ghost { color: #cbd5e1; border-color: rgba(255, 255, 255, 0.2); }
.dark-canvas .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
.dark-canvas .alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.35); color: #34d399; }
.dark-canvas .alert-error { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.35); color: #fb7185; }

/* Editorial stat block */
.stat-block { padding: 0 24px; }
.stat-block:first-child { padding-left: 0; }
.stat-block .stat-value { font-size: 2.8rem; font-weight: 800; font-family: var(--font-mono); color: #ffffff; line-height: 1; }
.stat-block .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; font-weight: 700; margin-top: 8px; }

/* Segmented control (tabs / mode toggles) */
.seg { display: inline-flex; gap: 4px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; }
.seg .seg-btn,
.seg .seg-seg { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-size: 0.84rem; font-weight: 700; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; transition: all 0.15s ease; }
.seg .seg-btn:hover { color: #0f172a; }
.seg .seg-btn.active { background: #0f172a; color: #ffffff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25); }
.seg .seg-seg input { display: none; }
.seg .seg-seg input:checked + span { background: #0f172a; color: #ffffff; border-radius: 9px; padding: 8px 14px; }
.seg .seg-seg span { padding: 8px 14px; border-radius: 9px; display: inline-block; }

.recipient-row input.order-field { max-width: 72px; }
.recipient-row .order-field.hidden { display: none; }
