/* ==========================================================================
   NetBill Pro v2 — Futuristic Fintech SaaS Command Deck
   Distinct standalone design system (Space Grotesk + Plus Jakarta Sans + JetBrains Mono)
   ========================================================================== */

:root {
  color-scheme: dark;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --bg: #0b0a08;
  --bg-elev: #13110d;
  --bg-card: rgba(30, 27, 20, 0.72);
  --bg-card-solid: #1a1712;
  --bg-input: rgba(12, 11, 8, 0.9);
  --ink: #f6f1e6;
  --ink-2: #d8d0bf;
  --ink-3: #a49a86;
  --line: rgba(232, 205, 143, 0.13);
  --line-bright: rgba(232, 205, 143, 0.26);

  --accent: #d9ae57;
  --accent-bright: #efcc7f;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --danger: #f43f5e;
  --amber: #f59e0b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 10px 30px rgba(217, 174, 87, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --on-accent: #1c1404;
  --ok: #4ade80;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f5ee;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --bg-input: #fbf9f4;
  --ink: #1b1710;
  --ink-2: #45402f;
  --ink-3: #756d5b;
  --line: rgba(70, 52, 14, 0.11);
  --line-bright: rgba(70, 52, 14, 0.2);

  --accent: #8a6210;
  --accent-bright: #7a560c;
  --cyan: #0284c7;
  --violet: #7c3aed;
  --danger: #e11d48;
  --amber: #d97706;

  --shadow-card: 0 14px 36px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-glow: 0 10px 26px rgba(138, 98, 16, 0.22);
  --on-accent: #ffffff;
  --ok: #087a4b;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.pro-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.hidden { display: none !important; }
.pro-muted { color: var(--ink-3); font-size: 0.9rem; margin: 0; }
.pro-mono-sm { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }

/* Ambient futuristic background mesh */
.pro-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 5%, rgba(217, 174, 87, 0.16), transparent 70%),
    radial-gradient(50% 40% at 88% 12%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(40% 35% at 60% 95%, rgba(167, 139, 250, 0.09), transparent 75%);
}
html[data-theme="light"] .pro-ambient-bg {
  background:
    radial-gradient(55% 40% at 12% 0%, rgba(217, 174, 87, 0.10), transparent 70%),
    radial-gradient(45% 35% at 90% 8%, rgba(2, 132, 199, 0.09), transparent 70%);
}

.pro-wrap {
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.pro-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.pro-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pro-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.pro-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0d08a, #c9973f);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.pro-badge-glow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(217, 174, 87, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(217, 174, 87, 0.35);
  margin-left: 0.25rem;
}

.pro-top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pro-top-nav a {
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.pro-top-nav a:hover,
.pro-top-nav a.is-current {
  color: var(--ink);
  background: rgba(148, 163, 184, 0.12);
}

.pro-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pro-select-pill {
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.pro-btn-primary,
.pro-btn-secondary,
.pro-btn-ghost,
.pro-btn-upgrade,
.pro-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.pro-btn-primary:hover,
.pro-btn-upgrade:hover {
  transform: translateY(-1px);
}
.pro-btn-primary {
  background: linear-gradient(135deg, #f0d08a, #c9973f);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.pro-btn-primary:hover {
  filter: brightness(1.07);
}
.pro-btn-upgrade {
  background: linear-gradient(135deg, #f6dc9c, #c9973f);
  color: #2a1d05;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(217, 174, 87, 0.34);
}
.pro-btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink);
  border-color: var(--line-bright);
}
.pro-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: var(--accent-bright);
}
.pro-btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
  min-height: 36px;
  padding: 0.4rem 0.78rem;
  font-size: 0.84rem;
}
.pro-btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--ink);
}
.pro-btn-danger {
  background: rgba(244, 63, 94, 0.14);
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.38);
}
.pro-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.pro-btn-full { width: 100%; }
.pro-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.pro-link-btn:hover { text-decoration: underline; }
.pro-center-link { display: block; margin: 0.35rem auto 0; }
.pro-inline-right { display: flex; justify-content: flex-end; margin-top: -0.35rem; }

/* ==========================================================================
   LANDING / AUTH VIEW
   ========================================================================== */
.pro-landing {
  padding-block: clamp(2rem, 4vw, 3.6rem) 4rem;
}
.pro-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(217, 174, 87, 0.1);
  border: 1px solid rgba(217, 174, 87, 0.28);
}
.pro-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
}
.pro-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 1rem 0 1rem;
  text-wrap: balance;
}
.pro-lead {
  font-size: 1.04rem;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 1.6rem;
}

/* Live Preview Deck */
.pro-preview-deck {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-bright);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.pro-deck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line);
}
.pro-deck-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.pro-deck-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.pro-deck-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pro-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.pro-chip.is-cyan { background: rgba(56, 189, 248, 0.14); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.pro-chip.is-emerald { background: rgba(217, 174, 87, 0.14); color: var(--accent-bright); border: 1px solid rgba(217, 174, 87, 0.3); }
.pro-chip.is-purple { background: rgba(167, 139, 250, 0.14); color: var(--violet); border: 1px solid rgba(167, 139, 250, 0.3); }
.pro-chip.is-ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.32); }

.pro-features-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.pro-feat-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pro-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(217, 174, 87, 0.12);
  border: 1px solid rgba(217, 174, 87, 0.25);
  font-size: 1rem;
}
.pro-feat-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.pro-feat-card p { margin: 0; font-size: 0.86rem; color: var(--ink-3); }

.pro-pricing-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.pro-tier-card {
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pro-tier-card.is-featured {
  border-color: rgba(217, 174, 87, 0.45);
  background: linear-gradient(160deg, rgba(217, 174, 87, 0.12), var(--bg-card));
  box-shadow: var(--shadow-glow);
}
.pro-tier-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.pro-tier-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.35rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
}
.pro-tier-price small { font-size: 0.88rem; color: var(--ink-3); font-weight: 500; }
.pro-tier-card p { margin: 0; font-size: 0.84rem; color: var(--ink-3); }

/* Auth Card */
.pro-auth-card {
  position: sticky;
  top: 88px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-bright);
  box-shadow: var(--shadow-card);
}
.pro-seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.pro-seg-btn {
  min-height: 38px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.pro-seg-btn.is-active,
.pro-seg-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.pro-form { display: grid; gap: 0.9rem; }
.pro-field { display: grid; gap: 0.36rem; }
.pro-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.pro-field input,
.pro-field select,
.pro-field textarea {
  width: 100%;
  padding: 0.65rem 0.82rem;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.pro-field input:focus,
.pro-field select:focus,
.pro-field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(217, 174, 87, 0.18);
}
.pro-otp-input {
  font-family: var(--font-mono) !important;
  font-size: 1.4rem !important;
  text-align: center;
  letter-spacing: 0.45em;
  font-weight: 700;
}
.pro-info-banner {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.86rem;
  color: var(--ink-2);
}
.pro-alert-error {
  margin: 0;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.84rem;
}
html[data-theme="light"] .pro-alert-error { color: #be123c; }
.pro-form-foot-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}
.pro-auth-foot {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

/* ==========================================================================
   AUTHENTICATED SAAS APP SHELL
   ========================================================================== */
.pro-app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: calc(100dvh - 65px);
}
.pro-sidebar {
  position: sticky;
  top: 65px;
  height: calc(100dvh - 65px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.pro-ws-identity {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.pro-ws-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0d08a, #c9973f);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pro-ws-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-ws-meta { min-width: 0; }
.pro-ws-name {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-ws-email {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-side-nav { display: grid; gap: 0.3rem; }
.pro-side-link {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  width: 100%;
  padding: 0.68rem 0.82rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.pro-side-link:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink);
}
.pro-side-link.is-active {
  background: rgba(217, 174, 87, 0.14);
  color: var(--accent-bright);
  border-color: rgba(217, 174, 87, 0.3);
  font-weight: 600;
}
.pro-ico { font-size: 0.95rem; width: 18px; text-align: center; }

.pro-quota-card {
  padding: 0.95rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.pro-quota-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.pro-plan-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink);
}
.pro-plan-pill.is-pro {
  background: rgba(217, 174, 87, 0.2);
  color: var(--accent-bright);
  border: 1px solid rgba(217, 174, 87, 0.4);
}
.pro-quota-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.pro-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9973f, #f0d08a);
  border-radius: 999px;
  transition: width 320ms var(--ease);
}
.pro-side-logout {
  width: 100%;
  padding: 0.58rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.pro-side-logout:hover { color: var(--danger); border-color: rgba(244, 63, 94, 0.35); }

/* Workspace Main */
.pro-workspace-main {
  padding: clamp(1.25rem, 2.5vw, 2.2rem);
  max-width: 1180px;
  width: 100%;
  margin-inline: auto;
}
.pro-ws-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pro-ws-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.pro-ws-sub { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-3); font-family: var(--font-mono); }
.pro-top-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* KPI Grid */
.pro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.pro-kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.pro-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.pro-kpi-card.is-cyan::before { background: var(--cyan); }
.pro-kpi-card.is-danger::before { background: var(--danger); }
.pro-kpi-card.is-violet::before { background: var(--violet); }
.pro-kpi-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.pro-kpi-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0.35rem 0 0.2rem;
}
.pro-kpi-card.is-emerald .pro-kpi-val { color: var(--accent-bright); }
.pro-kpi-card.is-danger .pro-kpi-val { color: var(--danger); }
.pro-kpi-sub { font-size: 0.78rem; color: var(--ink-3); }

/* Panels & Filter Bar */
.pro-panel {
  animation: fadeSlide 240ms var(--ease);
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pro-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.pro-panel-head h2 { margin: 0 0 0.2rem; font-family: var(--font-display); }

.pro-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pro-filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pro-pill {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.pro-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pro-search-input {
  min-width: 240px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 0.86rem;
}

/* Document & Client Rows */
.pro-list { display: grid; gap: 0.75rem; }
.pro-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.pro-row-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-1px);
}
.pro-row-card.is-overdue { border-left: 3px solid var(--danger); }
.pro-row-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.28rem;
}
.pro-doc-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; }
.pro-doc-client { font-weight: 600; font-size: 0.96rem; }
.pro-status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
}
.pro-status-paid { background: rgba(217, 174, 87, 0.16); color: var(--accent-bright); }
.pro-status-sent { background: rgba(56, 189, 248, 0.16); color: var(--cyan); }
.pro-status-overdue { background: rgba(244, 63, 94, 0.18); color: #fb7185; }
.pro-status-draft, .pro-status-cancelled { background: rgba(148, 163, 184, 0.16); color: var(--ink-3); }
.pro-meta-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
}
.pro-meta-chip.is-auto { background: rgba(217, 174, 87, 0.12); color: var(--accent-bright); }
.pro-meta-chip.is-rec { background: rgba(167, 139, 250, 0.14); color: var(--violet); }
.pro-row-sub { font-size: 0.82rem; color: var(--ink-3); }
.pro-row-right { display: grid; gap: 0.5rem; justify-items: end; }
.pro-row-amount {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pro-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.pro-mini-btn {
  padding: 0.32rem 0.62rem;
  border-radius: 8px;
  border: 1px solid var(--line-bright);
  background: rgba(148, 163, 184, 0.08);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.pro-mini-btn:hover { background: rgba(148, 163, 184, 0.18); color: var(--ink); }
.pro-mini-btn.is-primary { background: rgba(217, 174, 87, 0.16); color: var(--accent-bright); border-color: rgba(217, 174, 87, 0.35); }
.pro-mini-btn.is-danger:hover { background: rgba(244, 63, 94, 0.18); color: var(--danger); border-color: rgba(244, 63, 94, 0.35); }

.pro-empty-box {
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--line-bright);
  color: var(--ink-3);
}

/* Editor Grid */
.pro-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pro-span-full { grid-column: 1 / -1; }
.pro-items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.pro-section-label { font-weight: 700; font-size: 0.92rem; }
.pro-items-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.pro-select-compact {
  min-height: 38px;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 0.82rem;
}
.pro-items-list { display: grid; gap: 0.55rem; }
.pro-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 130px 38px;
  gap: 0.5rem;
  align-items: center;
}

.pro-auto-box {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(217, 174, 87, 0.06);
  border: 1px solid rgba(217, 174, 87, 0.25);
}
.pro-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  cursor: pointer;
}
.pro-toggle-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.pro-toggle-row > span,
.pro-toggle-inline > span { flex: 1; min-width: 200px; }
.pro-toggle-row strong { display: block; font-size: 0.88rem; }
.pro-toggle-row small { display: block; font-size: 0.78rem; color: var(--ink-3); }
.pro-toggle-inline { display: flex; align-items: center; gap: 0.7rem; flex: 1; cursor: pointer; }
.pro-rec-day-wrap { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--ink-2); }
.pro-rec-day-wrap input { width: 64px; padding: 0.38rem 0.5rem; }
.pro-tag-mini {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(217, 174, 87, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(217, 174, 87, 0.35);
}

.pro-editor-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pro-total-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

/* Two-Column Panels (Clients, Catalog, Settings) */
.pro-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.4rem;
  align-items: start;
}
.pro-wrap-head { flex-wrap: wrap; }
.pro-code {
  margin: 0;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
@media (min-width: 641px) { .pro-kpi-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pro-side-tools { display: block; margin-top: 0.5rem; text-align: center; font-size: 0.78rem; color: var(--ink-3); }
.pro-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.9rem; margin-top: 1rem; }
a.pro-tool-card { color: inherit; text-decoration: none; align-content: start; }
a.pro-tool-card:hover, a.pro-tool-card:focus-visible { border-color: var(--accent); }
.pro-card-box {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 0.9rem;
}
.pro-card-box h2, .pro-card-box h3 { margin: 0; font-family: var(--font-display); }
.pro-settings-right { display: grid; gap: 1.2rem; }
.pro-license-glow {
  border-color: rgba(217, 174, 87, 0.42);
  background: linear-gradient(155deg, rgba(217, 174, 87, 0.12), var(--bg-card));
}
.pro-license-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}
.pro-eyebrow-sm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.pro-danger-zone {
  border-color: rgba(244, 63, 94, 0.35);
}
.pro-form-row-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Logo Uploader */
.pro-logo-uploader {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px dashed var(--line-bright);
}
.pro-logo-box {
  width: 78px;
  height: 56px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pro-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pro-logo-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pro-logo-controls small { flex-basis: 100%; }
.pro-file-label { cursor: pointer; }

/* Dialogs */
.pro-dialog {
  width: min(560px, calc(100% - 1.5rem));
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-bright);
  background: var(--bg-card-solid);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pro-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}
.pro-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.pro-dialog-head h3 { margin: 0.2rem 0 0; font-family: var(--font-display); }
.pro-dialog-body { padding: 1.25rem 1.35rem 1.4rem; display: grid; gap: 0.95rem; }
.pro-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }

.pro-upgrade-reason { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.pro-upgrade-highlight {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(217, 174, 87, 0.12);
  border: 1px solid rgba(217, 174, 87, 0.32);
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.92rem;
}
.pro-upgrade-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* Toast */
.pro-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  max-width: 380px;
  padding: 0.82rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--accent-bright);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.pro-toast.is-open { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1020px) {
  .pro-hero-split,
  .pro-two-col { grid-template-columns: 1fr; }
  .pro-hero-split { row-gap: 0; }
  .pro-auth-card { position: static; order: 1; margin-bottom: 1.5rem; }
  .pro-hero-copy { display: contents; }
  .pro-hero-copy > .pro-eyebrow { justify-self: start; }
  .pro-hero-copy > :is(.pro-preview-deck, .pro-features-grid, .pro-pricing-pair) { order: 2; }
  .pro-app-shell { grid-template-columns: 1fr; }
  .pro-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pro-side-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .pro-side-link { width: auto; white-space: nowrap; }
  .pro-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pro-top-nav { display: none; }
  #pro-logout-btn { display: none; } /* sidebar already has a logout button */
  .pro-pricing-pair,
  .pro-editor-grid,
  .pro-kpi-grid { grid-template-columns: 1fr; }
  .pro-item-row { grid-template-columns: 1fr 72px 96px 34px; }
  .pro-row-card { grid-template-columns: 1fr; }
  .pro-row-right { justify-items: start; }
  .pro-row-actions { justify-content: flex-start; }
}

/* ===== Simple, outcome-first workspace ===== */
.pro-app-shell { --radius: 18px; --radius-lg: 22px; }
.pro-why { margin: 0.35rem 0 0; font-size: 1.02rem; color: var(--ink-2); max-width: 56ch; }
.pro-app-shell .pro-ws-sub { font-family: var(--font-body); }
.pro-app-shell .pro-ws-sub:empty { display: none; }
.pro-app-shell .pro-kpi-label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600; }
.pro-app-shell .pro-kpi-val { font-size: 1.7rem; }
.pro-app-shell .pro-kpi-card::before { display: none; }
.pro-app-shell .pro-btn-primary, .pro-app-shell .pro-btn-secondary { border-radius: 999px; min-height: 46px; }
.pro-app-shell .pro-side-link { font-size: 0.98rem; min-height: 46px; border-radius: 14px; }
.pro-app-shell .pro-list + h2, .pro-app-shell .pro-panel > h2 { font-family: var(--font-display); margin-block: 1.6rem 0.8rem; }
.pro-app-shell .pro-empty-box { padding: 2.2rem 1.2rem; font-size: 1rem; line-height: 1.6; border-radius: var(--radius-lg); }
.pro-app-shell:not([data-tab="documents"]) :is(.pro-quick, .pro-more, .pro-ws-main-kpi, .pro-workspace-main > .pro-kpi-grid, .pro-ws-topbar .pro-top-actions) { display: none; }
.pro-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.2rem; }
.pro-qa {
  display: grid; justify-items: start; gap: 0.2rem; padding: 1.15rem; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--ink);
  font: inherit; box-shadow: var(--shadow-card); transition: transform 160ms var(--ease);
}
.pro-qa:hover { transform: translateY(-2px); }
.pro-qa strong { font-size: 1.05rem; }
.pro-qa > span:last-child { font-size: 0.86rem; color: var(--ink-3); }
.pro-qa-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.25rem; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: 0.5rem; }
.pro-qa.is-main { background: linear-gradient(135deg, #f0d08a, #bd8a34); border-color: transparent; color: #fff; }
.pro-qa.is-main > span:last-child { color: #2a1d05; }
.pro-qa.is-main .pro-qa-ico { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pro-more { display: none; }
.pro-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; color: var(--ink-2); }
.pro-actions-start { justify-content: flex-start; }
.pro-site summary { cursor: pointer; font-weight: 600; }
#pro-panel-reviews > * + * { margin-top: 1rem; }

/* Phones: app-style bottom tab bar */
@media (max-width: 760px) {
  .pro-app-shell:not(.hidden) { display: flex; flex-direction: column; padding-bottom: 84px; }
  .pro-app-shell :is(.pro-sidebar, .pro-sidebar-top) { display: contents; }
  .pro-app-shell .pro-ws-identity { display: none; }
  .pro-app-shell .pro-sidebar-bottom { order: 2; padding: 1rem; display: grid; gap: 0.6rem; }
  .pro-app-shell .pro-workspace-main { order: 1; padding: 1rem; }
  .pro-app-shell .pro-side-nav {
    position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: visible;
    padding: 0.4rem 0.3rem calc(0.4rem + env(safe-area-inset-bottom)); background: var(--bg-elev); border-top: 1px solid var(--line);
  }
  .pro-app-shell .pro-side-link { flex-direction: column; justify-content: center; gap: 0.15rem; padding: 0.2rem; min-height: 56px; font-size: 0.72rem; text-align: center; border: 0; }
  .pro-app-shell .pro-side-link .pro-ico { font-size: 1.3rem; width: auto; }
  .pro-app-shell .pro-side-link:is([data-pro-tab="catalog"], [data-pro-tab="toolbox"]) { display: none; }
  .pro-side-link[data-pro-tab="documents"] { order: 1; }
  .pro-side-link[data-pro-tab="clients"] { order: 2; }
  .pro-side-link[data-pro-tab="editor"] { order: 3; }
  .pro-app-shell .pro-side-link[data-pro-tab="editor"] .pro-ico { width: 42px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
  .pro-side-link[data-pro-tab="reviews"] { order: 4; }
  .pro-side-link[data-pro-tab="settings"] { order: 5; }
  .pro-quick { grid-template-columns: 1fr; gap: 0.6rem; }
  .pro-qa { grid-template-columns: 44px 1fr; column-gap: 0.9rem; align-items: center; padding: 0.85rem; }
  .pro-qa-ico { grid-row: span 2; margin: 0; }
  .pro-app-shell[data-tab="documents"] .pro-more { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
  .pro-app-shell .pro-workspace-main > .pro-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .pro-app-shell .pro-kpi-val { font-size: 1.25rem; }
  .pro-toast { bottom: 96px; }
}

/* the big "Create" button replaces this one (kept in the DOM: the quick action clicks it) */
.pro-app-shell #btn-new-doc { display: none; }

/* ==========================================================================
   Premium layer: obsidian & gold
   ========================================================================== */
.pro-ambient-bg, html[data-theme="light"] .pro-ambient-bg {
  background:
    radial-gradient(60% 45% at 12% 0%, color-mix(in srgb, #d9ae57 17%, transparent), transparent 70%),
    radial-gradient(45% 40% at 95% 8%, color-mix(in srgb, #b8741f 12%, transparent), transparent 70%);
}
h1, h2, h3 { letter-spacing: -0.025em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.pro-brand-mark, .pro-btn-primary, .pro-btn-upgrade, .pro-qa.is-main { color: #1c1404; }
.pro-btn-primary, .pro-btn-upgrade { background: linear-gradient(135deg, #f3d592, #c9973f); font-weight: 700; }
.pro-brand-mark { background: linear-gradient(135deg, #f3d592, #b8842c); }
.pro-link-btn { color: var(--accent-bright); }
.pro-status-paid, .pro-chip.is-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

#pro-theme-toggle::before { content: ""; width: 0.9rem; height: 0.9rem; flex: none; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.pro-btn-primary, .pro-btn-secondary, .pro-btn-ghost, .pro-btn-upgrade, .pro-btn-danger { border-radius: 999px; min-height: 42px; }
.pro-field input, .pro-field select, .pro-field textarea { border-radius: 12px; min-height: 46px; }
.pro-field :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); }

/* landing */
.pro-h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  background: linear-gradient(105deg, var(--ink) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.pro-lead { font-size: 1.14rem; }
.pro-preview-deck { position: relative; padding: 1.25rem; border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 40px 80px -40px rgba(217, 174, 87, 0.45), var(--shadow-card); }
.pro-deck-row { padding: 0.95rem 1.05rem; border-radius: 16px; }
.pro-deck-val { font-size: 1.5rem; }
.pro-features-grid { gap: 0.75rem; }
.pro-feat-card { grid-template-columns: 48px 1fr; padding: 1.15rem; border-radius: 18px; }
.pro-feat-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--accent-bright); font-size: 1.2rem; }
.pro-tier-card { border-radius: 20px; padding: 1.35rem; }
.pro-tier-card.is-featured { border: 1.5px solid var(--accent); }
.pro-auth-card { border-radius: 24px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 40px 90px -50px rgba(217, 174, 87, 0.55), var(--shadow-card); }

/* workspace */
.pro-app-shell .pro-side-link.is-active { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); }
.pro-side-link .pro-ico { display: grid; place-items: center; width: 22px; font-size: 1.05rem; }
.pro-qa-ico { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-bright); border-radius: 14px; width: 48px; height: 48px; }
.pro-qa.is-main > span:last-child { color: #3b2a08; }
.pro-qa.is-main .pro-qa-ico { background: rgba(28, 20, 4, 0.14); color: #1c1404; }
.pro-qa:hover { border-color: var(--accent); }
.pro-app-shell .pro-kpi-card { border-radius: var(--radius-lg); }
.pro-app-shell .pro-ws-h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; }
.pro-tool-card h3 { display: flex; align-items: center; gap: 0.55rem; }
.pro-tool-card .pro-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-bright); }
.pro-upgrade-list { list-style: none; padding-left: 0; }
.pro-upgrade-list li { position: relative; padding-left: 1.6rem; }
.pro-upgrade-list li::before { content: ""; position: absolute; left: 0.3rem; top: 0.3em; width: 0.35rem; height: 0.65rem; border: solid var(--accent-bright); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* invoice form in 4 steps, total and Save always in reach */
.pro-step { display: flex; align-items: center; gap: 0.7rem; margin: 1.4rem 0 0; font-family: var(--font-display); font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pro-step:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pro-step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f3d592, #c9973f); color: #1c1404; font-size: 0.92rem; }
.pro-editor-summary { position: sticky; bottom: 0.75rem; z-index: 5; background: var(--bg-card-solid); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
@media (max-width: 760px) {
  .pro-editor-summary { bottom: 80px; padding: 0.6rem 0.8rem; gap: 0.4rem; }
  .pro-editor-summary .pro-total-big { font-size: 1.3rem; }
  .pro-editor-summary .pro-top-actions { flex-wrap: nowrap; width: 100%; }
  .pro-editor-summary .pro-top-actions button { flex: 1; min-height: 42px; padding-inline: 0.5rem; }
  .pro-editor-summary .pro-muted { display: none; }
  .pro-app-shell .pro-side-link[data-pro-tab="editor"] .pro-ico { background: linear-gradient(135deg, #f3d592, #c9973f); color: #1c1404; }
}

.pro-install { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border: 1px solid var(--accent); border-radius: 20px; background: var(--bg-card-solid); box-shadow: var(--shadow-glow); }
.pro-install img { border-radius: 12px; }
.pro-install > div { flex: 1 1 14rem; }
.pro-install p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }
