:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0b0f19;
  --muted: #5b6475;
  --line: #e7eaf0;
  --accent: #e11d2e;
  --accent-dark: #c41424;
  --accent-soft: #fff1f2;
  --ok: #128a4c;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(11, 15, 25, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.saas-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Nav */
.saas-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem;
}
.saas-nav nav {
  display: flex; gap: 22px; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.saas-nav nav a:hover { color: var(--ink); }

/* Buttons */
.btn, .admin-btn.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 12px 20px;
  font-weight: 700; border: none; cursor: pointer;
  font-size: 14px; letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-nav { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { background: var(--bg-soft); border-color: #d5dae3; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--ink); border: 1px solid var(--line); background: #fff;
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light {
  background: #fff; color: var(--ink);
}
.btn-light:hover { background: #f3f4f6; }

/* Hero — Brendi-like centered */
.saas-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.saas-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38ch;
  margin: 0 auto 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 18px;
}
.trust-row {
  list-style: none;
  display: flex; gap: 18px; flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 48px;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
}
.stage-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.stage-label {
  font-size: 12px; font-weight: 700; color: var(--ok);
  margin-bottom: 6px;
}
.stage-url {
  font-size: 13px; color: var(--muted); font-weight: 600;
  margin-bottom: 18px; letter-spacing: -0.01em;
}
.stage-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.stage-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px;
}
.stage-item span {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #ffb4a8, #e11d2e);
}
.stage-item span.alt { background: linear-gradient(135deg, #ffd39a, #ea580c); }
.stage-item span.alt2 { background: linear-gradient(135deg, #a7f3d0, #10b981); }
.stage-item strong { font-size: 14px; letter-spacing: -0.02em; }
.stage-item em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 13px; }
.stage-bar {
  background: var(--accent); color: #fff;
  text-align: center; padding: 13px; border-radius: 12px;
  font-weight: 700; font-size: 13px;
}
.stage-side { display: flex; flex-direction: column; gap: 12px; }
.side-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow);
}
.side-card span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.side-card strong { font-size: 15px; letter-spacing: -0.02em; }
.side-demo {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
}
.side-demo:hover { opacity: 0.92; }

/* Sections */
.saas-section { max-width: var(--max); margin: 0 auto; padding: 48px 24px; }
.social-proof { text-align: center; padding-bottom: 12px; }
.eyebrow {
  color: var(--accent); font-size: 13px; font-weight: 800;
  letter-spacing: 0.02em; margin-bottom: 12px; text-transform: none;
}
.saas-section h2, .saas-cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 12px;
}
.social-proof h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.section-sub {
  color: var(--muted); font-size: 1.05rem; font-weight: 500;
  margin-bottom: 32px; max-width: 42ch;
}

.feat-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feat-modern article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feat-modern article:hover {
  border-color: #d5dae3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: #fff;
}
.feat-modern span {
  display: block; font-size: 12px; font-weight: 800;
  color: var(--accent); margin-bottom: 14px; letter-spacing: -0.01em;
}
.feat-modern h3 {
  font-size: 1.25rem; letter-spacing: -0.03em;
  margin-bottom: 8px; font-weight: 800;
}
.feat-modern p { color: var(--muted); font-size: 14px; font-weight: 500; max-width: 36ch; }

/* Plans */
.plans-section { padding-top: 24px; }
.plans-section > .eyebrow,
.plans-section > h2,
.plans-section > .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}
.plan-card .tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
}
.plan-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.plan-card .price {
  font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.045em; margin-bottom: 8px;
}
.plan-card .price span {
  font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px;
}
.plan-card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; font-weight: 500; }
.plan-list { list-style: none; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; }
.plan-list li {
  font-size: 13px; color: #303848; padding-left: 18px; position: relative; font-weight: 600;
}
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}
.plan-card .btn { width: 100%; margin-top: auto; }

/* CTA */
.saas-cta { max-width: var(--max); margin: 12px auto 48px; padding: 0 24px; }
.cta-box {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
}
.cta-box h2 { color: #fff; max-width: 16ch; margin: 0 auto 12px; }
.cta-box p { color: #9aa3b5; margin: 0 auto 24px; max-width: 40ch; font-weight: 500; }

/* Footer */
.saas-footer { padding: 8px 24px 40px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; font-weight: 500;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--ink); }

/* Auth (login / cadastro) */
.auth-page {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ink);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
}
.auth-shell--wide {
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 640px);
}
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 44px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 12% 18%, rgba(225, 29, 46, .48), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 85%, rgba(225, 29, 46, .2), transparent 50%),
    var(--ink);
  animation: authBrandIn .65s ease both;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 15%, transparent 75%);
  pointer-events: none;
}
.auth-brand .logo { position: relative; z-index: 1; color: #fff; }
.auth-brand .logo-mark {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(225, 29, 46, .35);
}
.auth-brand-body {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: 48px 0;
}
.auth-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 14px;
  animation: authFadeUp .55s .08s ease both;
}
.auth-brand-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 16px;
  color: #fff;
  animation: authFadeUp .55s .16s ease both;
}
.auth-brand-lead {
  color: #9aa3b5;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34ch;
  font-weight: 500;
  animation: authFadeUp .55s .24s ease both;
}
.auth-perks {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
  animation: authFadeUp .55s .32s ease both;
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #e7eaf0;
}
.auth-perks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, .22);
  flex-shrink: 0;
}
.auth-brand-foot {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #9aa3b5;
  font-weight: 500;
}
.auth-brand-foot a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.auth-brand-foot a:hover { border-color: #fff; }

.auth-panel {
  background: var(--bg-soft);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 28px;
  animation: authPanelIn .55s .1s ease both;
}
.auth-panel-inner {
  width: 100%;
  max-width: 520px;
  margin: auto 0;
}
.auth-panel-inner--narrow { max-width: 400px; }
.auth-panel-head { margin-bottom: 28px; }
.auth-panel-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.auth-panel-head p { color: var(--muted); font-size: 14px; line-height: 1.45; font-weight: 500; }

.auth-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.auth-form { display: grid; gap: 22px; }
.auth-section { display: grid; gap: 12px; }
.auth-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #303848;
}
.auth-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-trial-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(225, 29, 46, .22);
}
.auth-section-sub { font-size: 13px; color: var(--muted); margin-top: -4px; font-weight: 500; }
.plan-pick-trial {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-field { display: grid; gap: 6px; }
.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: #303848;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input::placeholder { color: #9aa3b5; }
.auth-field input:hover,
.auth-field select:hover { border-color: #c9d0db; }
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: #f0a0a3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .12);
}

.plan-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.plan-pick-item {
  cursor: pointer;
  position: relative;
}
.plan-pick-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-pick-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
  min-height: 108px;
}
.plan-pick-item:hover .plan-pick-body {
  border-color: #f0a0a3;
  transform: translateY(-1px);
}
.plan-pick-item input:checked + .plan-pick-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .12);
  background: var(--accent-soft);
}
.plan-pick-item.is-featured .plan-pick-body { padding-top: 24px; }
.plan-pick-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 8px;
}
.plan-pick-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.plan-pick-price {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.plan-pick-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 15px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 10px 24px rgba(225, 29, 46, .28);
}
.auth-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }
.auth-fine {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: -8px;
  font-weight: 500;
}
.auth-mobile-link {
  display: none;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.auth-mobile-link a { color: var(--accent); font-weight: 700; }

@keyframes authBrandIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .auth-shell,
  .auth-shell--wide { grid-template-columns: 1fr; }
  .auth-brand {
    padding: 28px 24px 32px;
    min-height: auto;
  }
  .auth-brand-body { padding: 20px 0 8px; }
  .auth-brand-title { font-size: 2rem; }
  .auth-brand-foot { display: none; }
  .auth-perks { display: none; }
  .auth-panel { padding: 28px 20px 40px; }
  .auth-mobile-link { display: block; }
  .auth-grid { grid-template-columns: 1fr; }
  .plan-pick { grid-template-columns: 1fr; }
  .plan-pick-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    min-height: 0;
  }
  .plan-pick-trial { width: 100%; margin-bottom: 0; }
  .plan-pick-item.is-featured .plan-pick-body { padding-top: 14px; }
}

.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  font-family: var(--font);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; color: var(--ink);
  border-radius: 20px; padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: -0.03em; font-weight: 800; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; font-weight: 500; }
.auth-card label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 4px; color: #303848; }
.auth-card input, .auth-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa;
  font-family: inherit;
}
.auth-card input:focus, .auth-card select:focus {
  outline: none; border-color: #f0a0a3; background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}
.auth-card .btn { width: 100%; margin-top: 16px; }
.auth-card .alert { background: #fef2f2; color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.auth-card .alert.ok { background: #ecfdf5; color: #047857; }
.auth-card .links { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-card .links a { color: var(--accent); font-weight: 700; }


/* Panel */
.panel-body {
  background: #f4f5f7;
  color: #111;
  min-height: 100vh;
  font-family: var(--font);
  overflow-x: hidden;
}
.panel-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  min-width: 0;
}
.panel-side {
  background: #fff;
  color: var(--ink);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.panel-side-top { margin-bottom: 8px; }
.panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
}
.panel-brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff5a66);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(225, 29, 46, .22);
  overflow: hidden;
  border: 1px solid transparent;
}
.panel-brand-mark.has-logo {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 6px 16px rgba(11,15,25,.06);
  padding: 4px;
}
.panel-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.panel-brand-text { min-width: 0; display: grid; gap: 2px; }
.panel-brand-text strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-plan {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.panel-nav .nav-sep,
.panel-nav .nav-sep-spacer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.panel-nav .nav-sep-spacer { display: block; height: 0; overflow: hidden; border: none; padding: 0; margin-top: auto; }
.panel-nav a.nav-extra { border-radius: 12px; }
.nav-ico {
  width: 18px; height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #8b93a7;
}
.nav-ico svg { width: 18px; height: 18px; display: block; }
.panel-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #5b6475;
  font-size: 13.5px;
  font-weight: 650;
  transition: background .15s, color .15s;
}
.panel-nav a:hover {
  background: #f4f5f7;
  color: var(--ink);
}
.panel-nav a:hover .nav-ico { color: var(--accent); }
.panel-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px #fecaca;
  font-weight: 750;
}
.panel-nav a.active .nav-ico { color: var(--accent); }
.nav-logout:hover { color: var(--accent) !important; }

.logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px dashed #d7dbe3;
  border-radius: 16px;
  background: #fafbfc;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.logo-upload-preview {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
}
.logo-upload-preview img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}
.logo-upload-copy { flex: 1; min-width: 200px; }
.logo-upload-copy strong { display: block; font-size: 14px; margin-bottom: 4px; }
.logo-upload-copy p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.logo-upload-copy input[type=file] {
  font-size: 13px;
  max-width: 100%;
}

.panel-main {
  padding: 28px;
  min-width: 0;
  overflow-x: hidden;
}
.panel-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.panel-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.panel-main h1 {
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.panel-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  transition: transform .15s, background .15s;
}
.panel-head-btn:hover { background: #1a2030; transform: translateY(-1px); }
.panel-head-btn .nav-ico { color: #fda4af; }

.trial-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.trial-banner-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(225,29,46,.12);
  flex-shrink: 0;
}
.trial-banner-ico svg { width: 20px; height: 20px; }
.trial-banner-copy { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.trial-banner-copy strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.trial-banner-copy span { font-size: 13px; color: var(--muted); font-weight: 500; }
.trial-banner-copy b { color: var(--accent); }
.trial-banner-btn {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(225,29,46,.22);
}
.trial-banner-btn:hover { background: var(--accent-dark); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  min-width: 0;
  box-shadow: 0 8px 24px rgba(11,15,25,.03);
  transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.stat-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat-ico svg { width: 18px; height: 18px; }
.stat-ico.accent { background: var(--accent-soft); color: var(--accent); }
.stat-ico.ok { background: #ecfdf5; color: #059669; }
.stat-ico.warn { background: #fff7ed; color: #ea580c; }
.stat-ico.info { background: #eff6ff; color: #2563eb; }
.stat .label { color: #6b7280; font-size: 12px; font-weight: 700; }
.stat .value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-break: break-word;
  line-height: 1.1;
}

.panel-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(11,15,25,.03);
}
.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-card-title .nav-ico { color: var(--accent); }
.panel-card-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.panel-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.panel-card-link:hover { text-decoration: underline; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.panel-table th, .panel-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.panel-table th { color: #6b7280; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.panel-table tr:last-child td { border-bottom: none; }
.muted { color: #6b7280; font-size: 12px; }

.empty-state {
  text-align: center;
  padding: 36px 16px 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.empty-state-ico { margin-bottom: 6px; }
.empty-state-ico svg { width: 120px; height: auto; }
.empty-state strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-bottom: 10px; }

.field { margin-bottom: 12px; }
.field label { display:block; font-size:12px; font-weight:700; margin-bottom:4px; color:#374151; }
.field input, .field select, .field textarea {
  width:100%; padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; font-family: inherit;
  max-width: 100%;
}
.badge { display:inline-block; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:700; background:#e5e7eb; }
.badge.ok { background:#dcfce7; color:#166534; }
.badge.warn { background:#fef3c7; color:#92400e; }
.badge.err { background:#fee2e2; color:#991b1b; }
.alert { padding:10px 12px; border-radius:8px; margin-bottom:12px; background:#fef2f2; color:#b91c1c; word-break: break-word; }
.alert.ok { background:#ecfdf5; color:#047857; }

/* Welcome onboarding */
.welcome-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(225, 29, 46, .35), transparent 55%),
    linear-gradient(145deg, #0b0f19 0%, #1a2030 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px 28px 28px 32px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  animation: welcomeIn .55s ease both;
  min-width: 0;
}
.welcome-copy { position: relative; z-index: 1; max-width: 36rem; min-width: 0; }
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 46, .18);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 46, .35);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.welcome-hero h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  line-height: 1.15;
  word-break: break-word;
}
.welcome-hero p {
  color: #9aa3b5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 42ch;
}
.welcome-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.welcome-link-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(225, 29, 46, .15);
  color: #fda4af;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.welcome-link-text { flex: 1; min-width: 0; }
.welcome-link-text span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9aa3b5;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.welcome-link-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.welcome-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(225, 29, 46, .3);
  transition: transform .15s, background .15s;
  flex-shrink: 0;
}
.welcome-open:hover { background: var(--accent-dark); transform: translateY(-1px); }
.welcome-art {
  display: grid;
  place-items: center;
  animation: welcomeFloat 4.5s ease-in-out infinite;
}
.welcome-art svg { width: 100%; max-width: 260px; height: auto; }

.welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  animation: welcomeIn .55s .12s ease both;
}
.welcome-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  display: grid;
  gap: 6px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  min-width: 0;
}
.welcome-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #f0a0a3;
}
.welcome-step-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.welcome-step-icon svg { width: 22px; height: 22px; }
.welcome-step strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.welcome-step span:last-child {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes welcomeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}



/* Products manager */
.prod-form-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 22px;
  align-items: start;
}
.prod-form-main { display: grid; gap: 4px; }
.prod-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.prod-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}
.check-pill input { accent-color: var(--accent); width: auto; }
.prod-form-side { display: grid; gap: 12px; }
.prod-image-box {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.prod-image-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}
.prod-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-image-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.prod-image-empty .nav-ico { color: #fda4af; width: 28px; height: 28px; }
.prod-image-empty .nav-ico svg { width: 28px; height: 28px; }
.prod-image-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.prod-image-label input[type=file] { font-size: 12px; max-width: 100%; }
.prod-save-btn {
  width: 100%;
  border-radius: 12px;
  padding: 13px 16px;
}

.prod-list { display: grid; gap: 12px; }
.prod-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.prod-item:hover {
  border-color: #f0a0a3;
  box-shadow: 0 10px 24px rgba(11,15,25,.04);
}
.prod-item.is-off { opacity: .62; }
.prod-item-img {
  width: 88px; height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.prod-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.prod-item-body { min-width: 0; }
.prod-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.prod-item-top h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.prod-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-item-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.prod-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.prod-item-meta strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.prod-item-meta s {
  color: #9ca3af;
  font-weight: 600;
  margin-left: 6px;
  font-size: 12px;
}
.prod-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
}
.prod-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.prod-action svg { width: 14px; height: 14px; }
.prod-action:hover { background: #f8fafc; border-color: #d7dbe3; color: var(--ink); }
.prod-action.danger { color: #b91c1c; }
.prod-action.danger:hover { background: #fef2f2; border-color: #fecaca; }

@media (max-width: 900px) {
  .prod-form-grid { grid-template-columns: 1fr; }
  .prod-form-row { grid-template-columns: 1fr; }
  .prod-item {
    grid-template-columns: 72px 1fr;
  }
  .prod-item-img { width: 72px; height: 72px; }
  .prod-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }
  .prod-action { flex: 1; }
}



/* Product addons editor */
.addons-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfc;
}
.addons-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.addons-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.addons-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.addons-list { display: grid; gap: 12px; }
.addon-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.addon-group-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.addon-group-top strong { font-size: 13px; font-weight: 800; }
.addon-options { display: grid; gap: 10px; }
.addon-option {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d7dbe3;
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-outline:hover { background: #f8fafc; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .saas-nav nav a:not(.btn) { display: none; }
  .hero-stage, .feat-modern, .plan-grid { grid-template-columns: 1fr; }
  .saas-hero { padding-top: 40px; }
  .trust-row { gap: 10px 14px; }
  .cta-box { padding: 40px 22px; }

  .panel-shell { grid-template-columns: 1fr; }
  .panel-side {
    position: sticky;
    top: 0;
    z-index: 60;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
    border-right: none;
    box-shadow: 0 8px 20px rgba(11,15,25,.04);
  }
  .panel-side-top { margin-bottom: 0; }
  .panel-brand { padding: 0; }
  .panel-brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
  .panel-brand-text strong { font-size: 13px; max-width: 42vw; }
  .panel-plan { font-size: 10px; }
  .panel-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 0 0 auto;
    margin: 0 -4px;
    padding: 0 4px 2px;
  }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }
  .panel-nav .nav-sep,
  .panel-nav .nav-sep-spacer {
    margin-top: 0;
    border-top: none;
    padding-top: 8px;
  }

  .panel-main { padding: 16px 14px 28px; }
  .panel-main h1 { font-size: 1.35rem; }
  .panel-page-head { margin-bottom: 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; border-radius: 14px; }
  .stat .value { font-size: 1.2rem; }
  .panel-card { padding: 14px; border-radius: 14px; }
  .trial-banner { padding: 12px; }
  .trial-banner-btn { width: 100%; text-align: center; }

  .welcome-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 18px;
    gap: 0;
  }
  .welcome-art { display: none; }
  .welcome-badge { font-size: 11px; padding: 5px 10px; margin-bottom: 12px; }
  .welcome-hero h2 { font-size: 1.35rem; }
  .welcome-hero p { font-size: 13px; margin-bottom: 16px; }
  .welcome-link-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .welcome-link-icon { display: none; }
  .welcome-open { width: 100%; }
  .welcome-steps { grid-template-columns: 1fr; gap: 10px; }
  .welcome-step {
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
  }
  .welcome-step-icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
}
