/* === Taamir Design System === */
:root {
  /* Brand palette */
  --surface-2: #F3EEE5;
  --orange: #C25E1F;
  --orange-dark: #8B3E0B;
  --orange-light: #F4A261;
  --orange-tint: #FBE9D8;
  --orange-wash: rgba(194, 94, 31, 0.06);

  --bg: #FAF7F2;
  --bg-soft: #F3EEE5;
  --surface: #FFFFFF;
  --surface-elev: #FDFBF7;

  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;

  --ink: #111827;
  --ink-2: #1F2937;
  --muted: #64748B;
  --muted-2: #94A3B8;

  --border: #E2E8F0;
  --border-soft: #ECE6DA;
  --border-strong: #CBD5E1;

  --green: #059669;
  --green-bg: #D1FAE5;
  --amber: #D97706;
  --amber-bg: #FEF3C7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --blue-bg: #DBEAFE;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-3: 0 12px 28px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

/* === Top section nav (between major views) === */
.tnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.tnav-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.tnav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tnav-tabs {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.tnav-tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s ease;
}
.tnav-tab:hover { color: var(--ink); background: var(--orange-wash); }
.tnav-tab.active {
  color: var(--orange-dark);
  background: var(--orange-tint);
}
.tnav-spacer { flex: 1; }
.tnav-right { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.tnav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.tnav-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }

/* === Page wrapper === */
.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

/* === Typography helpers === */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.t-display {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.t-h1 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.t-h2 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
.t-num {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.t-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.t-lead { font-size: 16px; color: var(--muted); line-height: 1.55; }
.t-muted { color: var(--muted); }
.t-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-1);
}
.card-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
}
.card-pad { padding: 20px; }
.card-pad-lg { padding: 28px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 1px 0 rgba(139, 62, 11, 0.4) inset, var(--shadow-1);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--muted-2); }
.btn-ghost {
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--orange-wash); color: var(--orange-dark); }
.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover { background: var(--navy-2); }
.btn-lg { padding: 12px 18px; font-size: 14px; border-radius: 8px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

/* === Pills === */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .9; }
@keyframes pill-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
  50%      { opacity: .92; box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pill-new {
  background: #DC2626; color: #fff; font-weight: 700;
  animation: pill-blink 1.6s ease-in-out infinite;
}
.pill-new .dot { background: #fff; opacity: .85; }
.pill-confirmed {
  background: rgba(194, 94, 31, 0.12);
  color: var(--orange-dark);
  border-color: rgba(194, 94, 31, 0.28);
}
.pill-confirmed .dot { background: var(--orange); }
.pill-paid {
  background: rgba(194, 94, 31, 0.20);
  color: var(--orange-dark);
  border-color: rgba(194, 94, 31, 0.40);
}
.pill-paid .dot { background: var(--orange-dark); }
.pill-delivered {
  background: rgba(194, 94, 31, 0.30);
  color: #6B2A00;
  border-color: rgba(194, 94, 31, 0.50);
}
.pill-delivered .dot { background: #6B2A00; }
.pill-cancelled {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.25);
}
.pill-cancelled .dot { background: var(--red); }
.pill-returned {
  background: rgba(245, 158, 11, 0.10);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.30);
}
.pill-returned .dot { background: var(--amber); }
.pill-low      { background: var(--red-bg);         color: var(--red); }
.pill-ok       { background: var(--green-bg);       color: var(--green); }
.pill-warn     { background: var(--amber-bg);       color: var(--amber); }
.pill-neutral  { background: var(--bg-soft);        color: var(--muted); }

/* === Sidebar (admin shell) === */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.sidebar {
  background: var(--navy);
  color: white;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
}
.sb-brand {
  padding: 0 22px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.sb-brand-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sb-section-label {
  padding: 0 22px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin: 16px 0 8px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all .12s ease;
  width: 100%;
  text-align: left;
}
.sb-item:hover { color: white; background: rgba(255,255,255,0.04); }
.sb-item.active {
  color: white;
  background: rgba(194, 94, 31, 0.14);
  border-left-color: var(--orange);
}
.sb-item .badge {
  margin-left: auto;
  background: var(--orange);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
  animation: badge-pulse 1.8s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(194,94,31,.6); }
  50%      { box-shadow: 0 0 0 5px rgba(194,94,31,0); }
}
.sb-footer {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.sb-avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  font-size: 12px;
  display: grid; place-items: center;
  font-family: var(--serif);
}
.sb-footer .name { color: white; font-weight: 600; }

/* === Main area === */
.main {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.topbar-sub { color: var(--muted); font-size: 13px; margin-left: 6px; }
.topbar-spacer { flex: 1; }
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  min-width: 260px;
}
.topbar-search input {
  border: none; outline: none; background: none; flex: 1;
  font-family: inherit; font-size: 13px; color: var(--ink);
}
.iconbtn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  position: relative;
}
.iconbtn:hover { color: var(--orange-dark); border-color: var(--orange-light); }
.iconbtn .ping {
  position: absolute; top: 6px; right: 7px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--surface);
}
.plan-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
}
.plan-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--orange); }

.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === KPI cards === */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi {
  background: var(--surface);
  border: 1.5px solid rgba(194, 94, 31, 0.18);
  border-radius: 16px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(194, 94, 31, 0.06), 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow .18s, border-color .18s;
}
.kpi:hover {
  box-shadow: 0 6px 28px rgba(194, 94, 31, 0.12), 0 1px 4px rgba(0,0,0,0.05);
  border-color: rgba(194, 94, 31, 0.32);
}
.kpi-label {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
}
.kpi-value {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kpi-value .unit { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.kpi-delta {
  margin-top: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.kpi-delta .up { color: var(--green); font-weight: 600; }
.kpi-delta .down { color: var(--red); font-weight: 600; }
.kpi-spark { margin-top: 12px; height: 28px; }
.kpi-nav-btn {
  font-size: 11.5px; font-weight: 600; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px;
  transition: background .14s, color .14s;
}
.kpi-nav-btn:hover {
  background: rgba(194, 94, 31, 0.12);
  color: var(--orange-dark) !important;
}

/* === Section header === */
.section-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-h .t-h2 { margin: 0; }

/* === Alerts === */
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted-2);
  border-radius: 4px;
}
.alert.l-red    { border-left-color: var(--red); }
.alert.l-amber  { border-left-color: var(--amber); }
.alert.l-orange { border-left-color: var(--orange); }
.alert.l-green  { border-left-color: var(--green); }
.alert-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--ink-2);
  flex-shrink: 0;
}
.alert-icon.red    { background: var(--red-bg); color: var(--red); }
.alert-icon.amber  { background: var(--amber-bg); color: var(--amber); }
.alert-icon.orange { background: var(--orange-tint); color: var(--orange-dark); }
.alert-icon.green  { background: var(--green-bg); color: var(--green); }
.alert-body { flex: 1; min-width: 0; overflow: hidden; }
.alert-title {
  font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alert-meta  { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert.l-red    .alert-title { color: var(--red); }
.alert.l-amber  .alert-title { color: var(--amber); }
.alert.l-orange .alert-title { color: var(--orange-dark); }

/* === Tables === */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-2);
}
.table tbody tr:nth-child(even) td { background: rgba(250, 247, 242, 0.6); }
.table tbody tr:hover td { background: var(--orange-wash); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { font-family: var(--serif); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.table .mono-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* === Stripe placeholder (for images) === */
.stripe-ph {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-soft) 0,
      var(--bg-soft) 8px,
      var(--orange-tint) 8px,
      var(--orange-tint) 16px
    );
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.stripe-ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      var(--navy) 0,
      var(--navy) 8px,
      var(--navy-2) 8px,
      var(--navy-2) 16px
    );
  color: var(--orange-light);
  border-color: var(--navy-3);
}

/* === Funnel pills === */
.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.funnel-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}
.funnel-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: currentColor;
}
.funnel-step.fs-new      { color: var(--red); }
.funnel-step.fs-confirm  { color: var(--amber); }
.funnel-step.fs-paid     { color: var(--navy-2); }
.funnel-step.fs-deliver  { color: var(--green); }
.funnel-step .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.funnel-step .count { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.funnel-step .sub   { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }

/* === Avatars === */
.avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--serif);
  flex-shrink: 0;
}
.avatar.navy { background: var(--navy); color: white; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* === Inputs === */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.field input, .field select {
  border: none; background: none; outline: none;
  font-family: inherit; font-size: 13px; color: var(--ink);
  width: 100%;
}

/* === Storefront customer page === */
.sf-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.sf-utility {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.sf-utility .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sf-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.sf-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.sf-search {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sf-search input { border: none; background: none; outline: none; flex: 1; font-family: inherit; font-size: 13.5px; color: var(--ink); }
.sf-cart {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
}
.sf-cart .count {
  background: white;
  color: var(--orange-dark);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
}

.sf-cats {
  display: flex;
  gap: 4px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.sf-cat {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.sf-cat:hover { background: var(--bg-soft); }
.sf-cat.active { background: var(--navy); color: white; }

.sf-hero {
  position: relative;
  margin: 24px 28px 0;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15,23,42,0.78), rgba(15,23,42,0.4)),
    repeating-linear-gradient(135deg, #4a3220 0 12px, #5a3d28 12px 24px);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.sf-hero-eyebrow { font-family: var(--mono); font-size: 12px; color: var(--orange-light); letter-spacing: 0.08em; text-transform: uppercase; }
.sf-hero h2 { font-family: var(--serif); font-size: 38px; font-weight: 600; margin: 8px 0 6px; max-width: 520px; line-height: 1.05; letter-spacing: -0.02em; }
.sf-hero p { color: rgba(255,255,255,0.78); max-width: 480px; margin: 0 0 18px; }

.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 28px 28px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .15s ease;
}
.product:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); transform: translateY(-1px); }
.product-img {
  aspect-ratio: 4 / 3;
  position: relative;
}
.product-stock {
  position: absolute;
  top: 10px; left: 10px;
}
.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.product-name { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 6px 0 4px; line-height: 1.3; }
.product-spec { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.product-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.product-price .per { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; }
.product-add {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  flex-shrink: 0;
}

/* === Pricing === */
.pricing-wrap {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 28px 64px;
  text-align: center;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 44px auto 0;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, #FFF8F1 0%, var(--surface) 50%);
  transform: translateY(-12px);
  box-shadow: var(--shadow-3);
}
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card .tier { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.price-card .tag  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-card .price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin: 22px 0 4px;
}
.price-card .price-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-card .price-unit { color: var(--muted); font-size: 13px; }
.price-card .desc { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.price-card .feat {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 11px;
  font-size: 13.5px; color: var(--ink-2);
}
.price-card .feat li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.price-card .feat .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  display: grid; place-items: center;
  font-size: 11px;
  margin-top: 1px;
}
.price-card .cta { margin-top: auto; }

/* === Period toggle === */
.toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  font-size: 13px;
  gap: 2px;
}
.toggle button {
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--muted);
}
.toggle button.on {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-1);
}
.toggle .save {
  font-size: 10.5px;
  background: white;
  color: var(--orange-dark);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 600;
}

/* === Brand page === */
.brand-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.swatch {
  border-radius: 8px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 130px;
  border: 1px solid var(--border);
  position: relative;
}
.swatch .name { font-weight: 600; font-size: 13px; }
.swatch .hex  { font-family: var(--mono); font-size: 11px; opacity: 0.8; margin-top: 2px; }

.logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.logo-card .preview {
  height: 130px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
}
.logo-card .preview.dark { background: var(--navy); border-color: var(--navy-3); }
.logo-card .label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}

/* === Misc === */
.row { display: flex; gap: 16px; align-items: stretch; }
.row > * { flex: 1; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.divider { height: 1px; background: var(--border-soft); margin: 0; border: 0; }

/* === Bar chart === */
.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 180px;
  padding: 0 4px;
}
.bar {
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  border-radius: 4px 4px 0 0;
  position: relative;
}
.bar.muted { background: var(--bg-soft); }
.bar-label {
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}
.bar-value {
  position: absolute;
  top: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
}

/* === Donut === */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.donut-legend .leg { display: flex; align-items: center; gap: 10px; }
.donut-legend .sw { width: 10px; height: 10px; border-radius: 2px; }

/* === Logo glyph variants === */
.logo-tk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--orange);
  color: white;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark::after {
  /* small notch — suggests "module" */
  content: "";
  position: absolute;
  right: 4px; bottom: 4px;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

/* === Toast notifications === */
.toast-container {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 280px;
  max-width: 380px;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--navy-2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  border-left: 4px solid var(--orange);
  animation: toast-in .22s cubic-bezier(.2,.8,.4,1) both;
}
.toast.success { background: #064E3B; border-left-color: var(--green); }
.toast.error   { background: #7F1D1D; border-left-color: var(--red); }
.toast.removing { animation: toast-out .2s ease-in both; }
.toast-icon { font-size: 15px; flex-shrink: 0; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px) scale(.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(.94); }
}

/* === Cart slide-in panel === */
.sf-cart-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: flex-end;
}
.sf-cart-overlay {
  flex: 1;
  background: rgba(0,0,0,.32);
}
.sf-cart-drawer {
  width: 400px;
  background: var(--surface);
  height: 100%;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  animation: drawer-in .22s cubic-bezier(.2,.8,.4,1) both;
}
@keyframes drawer-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* fix narrow column tweaks */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
}

/* === Splash & Welcome Animations === */
@keyframes splashLogoIn {
  0%   { opacity: 0; transform: scale(0.68); }
  65%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashTextUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
@keyframes welcomeAnim {
  0%   { opacity: 0; transform: scale(0.93) translateY(14px); }
  25%  { opacity: 1; transform: scale(1) translateY(0); }
  75%  { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.97) translateY(-10px); }
}
.spl-logo { animation: splashLogoIn 0.9s cubic-bezier(0.34,1.4,0.64,1) both; }
.spl-name { animation: splashTextUp 0.65s ease 0.55s both; }
.spl-sub  { animation: splashTextUp 0.6s ease 0.82s both; }
.spl-tag  { animation: splashTextUp 0.6s ease 1.05s both; }
.spl-exit { animation: splashFadeOut 0.55s ease forwards; }
.welcome-overlay { animation: welcomeAnim 2.3s cubic-bezier(0.4,0,0.2,1) forwards; }
