:root {
  --bg: #0a0b0f;
  --sidebar: #101218;
  --card: #141820;
  --card-2: #1a2030;
  --line: rgba(255, 255, 255, 0.06);
  --text: #eef1f8;
  --muted: #8b93a7;
  --gold: #d4af37;
  --gold-2: #f5d76e;
  --gold-dark: #9a7b1a;
  --theme-rgb: 212, 175, 55;
  --theme-border: rgba(var(--theme-rgb), 0.22);
  --theme-border-strong: rgba(var(--theme-rgb), 0.55);
  --theme-a08: rgba(var(--theme-rgb), 0.08);
  --theme-a12: rgba(var(--theme-rgb), 0.12);
  --theme-a18: rgba(var(--theme-rgb), 0.18);
  --theme-a25: rgba(var(--theme-rgb), 0.25);
  --theme-a35: rgba(var(--theme-rgb), 0.35);
  --theme-shadow: 0 8px 24px rgba(var(--theme-rgb), 0.25);
  --theme-ring: 0 0 0 6px rgba(var(--theme-rgb), 0.08);
  --grad-gold: linear-gradient(135deg, #d4af37, #f5d76e);
  --green: #22c55e;
  --brand-image: url('/setor/assets/setor-logo.png?v=9');
  --hero-bg: url('/setor/assets/setor-hero-bg.png?v=4');
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--grad-gold);
  color: #1a1200;
  box-shadow: var(--theme-shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(var(--theme-rgb), 0.35);
}

.btn-ghost {
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--theme-border);
  background: var(--theme-a08);
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ── Nav ── */
.setor-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 11, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.setor-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setor-nav-brand img {
  width: auto;
  height: 42px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.setor-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.setor-nav--minimal { justify-content: flex-end; }

.setor-nav-links { display: flex; gap: 10px; align-items: center; }

/* ── Landing hero (split like painel login) ── */
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: calc(100vh - 77px);
  background: #050608;
}

.landing-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.landing-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.1), rgba(5, 6, 8, 0.88)),
    linear-gradient(180deg, transparent 35%, rgba(5, 6, 8, 0.98));
}

.landing-hero__caption {
  position: absolute;
  left: 32px;
  bottom: 40px;
  z-index: 1;
}

.landing-hero__badge {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid var(--theme-border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  margin-bottom: 16px;
}

.landing-hero__caption h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.landing-hero__caption p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 420px;
  line-height: 1.55;
}

.landing-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(circle at 80% 15%, var(--theme-a08), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(124, 77, 255, 0.06), transparent 45%),
    var(--bg);
}

.landing-hero__content .hero-badge {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--theme-a12);
  border: 1px solid var(--theme-border);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.landing-hero__content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}

.landing-hero__content > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.landing-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 24, 32, 0.85);
  border: 1px solid var(--line);
}

.landing-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.landing-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Brand banner strip ── */
.brand-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 140px;
  margin: 0 auto 48px;
  max-width: 1100px;
  border: 1px solid var(--theme-border);
}

.brand-banner > img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  object-position: center 20%;
}

.brand-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.45) 55%, rgba(5, 6, 8, 0.75) 100%);
}

.brand-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.brand-banner__badge {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--theme-border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.brand-banner__content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.brand-banner__content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Features ── */
.features-strip {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-box {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-gold);
  opacity: 0.85;
}

.feature-box h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--gold-2);
}

.feature-box p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ── Plans ── */
.plans-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.plans-section__head {
  text-align: center;
  margin-bottom: 32px;
}

.plans-section__head h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.plans-section__head p {
  color: var(--muted);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.plan-card:hover {
  border-color: var(--theme-border);
  transform: translateY(-2px);
}

.plan-card.popular {
  border-color: var(--theme-border-strong);
  box-shadow: 0 0 0 1px var(--theme-a18), var(--theme-shadow);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: #1a1200;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.plan-tier {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 6px 0 4px;
}

.plan-members {
  color: var(--gold-2);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.plan-price {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-period {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  flex: 1;
}

.plan-features li {
  padding: 7px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

.plan-card .btn-primary { width: 100%; }

/* ── Footer ── */
.setor-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: #08090d;
}

.setor-footer img {
  width: auto;
  height: 56px;
  border: none;
  border-radius: 0;
  background: none;
  margin-bottom: 12px;
}

.setor-footer a {
  color: var(--gold-2);
}

.setor-footer a:hover { text-decoration: underline; }

/* ── Checkout ── */
.checkout-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.checkout-hero-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--theme-border);
  overflow: hidden;
  position: relative;
}

.checkout-hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-image) center / cover no-repeat;
  opacity: 0.12;
}

.checkout-hero-mini img {
  width: auto;
  height: 72px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: none;
  position: relative;
  z-index: 1;
}

.checkout-hero-mini div { position: relative; z-index: 1; }
.checkout-hero-mini h1 { font-size: 1.5rem; margin-bottom: 4px; }
.checkout-hero-mini p { color: var(--muted); font-size: 0.92rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold-2);
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 0.95rem;
}

.field input:focus {
  outline: none;
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-ring);
}

.pay-methods { display: grid; gap: 10px; margin-bottom: 16px; }

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card-2);
}

.pay-method.selected {
  border-color: var(--theme-border-strong);
  background: var(--theme-a08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.92rem;
}

.summary-row.discount { color: var(--green); }

.summary-total {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 12px;
  color: var(--gold-2);
}

.error-msg {
  color: #ff5252;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

.pix-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
}

.pix-box img {
  max-width: 220px;
  display: block;
  margin: 12px auto;
}

.pix-copy {
  word-break: break-all;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Checkout auth (OAuth + e-mail) ── */
.logged-in-banner {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.9rem;
  text-align: center;
}

.logged-in-banner__email {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-oauth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.btn-oauth {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-oauth:hover {
  border-color: var(--theme-border-strong);
  background: var(--theme-a08);
}

.btn-oauth-discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
}

.google-signin-slot {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.turnstile-wrap {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.terms-check input {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.terms-check a {
  color: var(--gold-2);
  text-decoration: underline;
}

.password-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
}

.password-reqs .req {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.password-reqs .req.valid {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }

.tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  color: var(--text);
  border-color: var(--theme-border-strong);
  background: var(--theme-a08);
}

/* ── Admin shell (CRM-style) ── */
.setor-admin { min-height: 100vh; background: var(--bg); }

.admin-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #050608;
}

.admin-login__hero {
  position: relative;
  overflow: hidden;
}

.admin-login__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.admin-login__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.15), rgba(5, 6, 8, 0.9));
}

.admin-login__panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 80% 20%, var(--theme-a08), transparent 35%),
    var(--bg);
}

.admin-login__card {
  width: min(400px, 100%);
  padding: 36px 32px;
  border-radius: var(--radius);
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid var(--theme-border);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.admin-login__card img {
  width: auto;
  height: 120px;
  max-width: 100%;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: none;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 32px rgba(var(--theme-rgb), 0.3));
}

.admin-login__card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: var(--brand-image) center / cover no-repeat;
}

.admin-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 16px;
}

.admin-brand img {
  width: auto;
  height: 48px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.admin-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.admin-brand span {
  font-size: 12px;
  color: var(--muted);
}

.admin-sidebar-banner {
  position: relative;
  z-index: 1;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--theme-border);
}

.admin-sidebar-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.admin-sidebar-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.85));
}

.admin-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav button {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: var(--theme-a08);
  color: var(--text);
  border: 1px solid var(--theme-border);
}

.admin-main {
  position: relative;
  overflow: auto;
}

.admin-main::before {
  content: '';
  position: fixed;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background: var(--brand-image) center / cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
  border-radius: 50%;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-body {
  padding: 24px 28px 48px;
  max-width: 1200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-gold);
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-card .value {
  font-size: 1.55rem;
  font-weight: 800;
  margin-top: 6px;
}

.stat-card .value.gold { color: var(--gold-2); }

.admin-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.admin-panel h2 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold-2);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-grid label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.price-grid input,
.admin-panel input,
.admin-panel select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
}

.admin-table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td { background: var(--theme-a08); }

.status-approved { color: var(--green); }
.status-pending { color: var(--gold-2); }

.coupon-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

/* ── Success page ── */
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, var(--theme-a08), transparent 50%),
    var(--bg);
}

.success-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.success-card img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--theme-border-strong);
  margin-bottom: 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 700;
}

.success-card h1 { font-size: 1.5rem; margin-bottom: 12px; }
.success-card p { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.success-card .actions { display: flex; flex-direction: column; gap: 10px; }

/* ═══════════════════════════════════════════
   LANDING CRIATIVA v4
   ═══════════════════════════════════════════ */

.landing-page { overflow-x: hidden; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--theme-a12);
  border: 1px solid var(--theme-border);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pill--outline { background: transparent; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* ── Mega hero ── */
.mega-hero {
  position: relative;
  min-height: 92vh;
  padding: 48px 32px 120px;
  overflow: hidden;
}

.mega-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center top / cover no-repeat;
  transform: scale(1.05);
  animation: heroKen 18s ease-in-out infinite alternate;
}

@keyframes heroKen {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-12px); }
}

.mega-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, transparent 0%, rgba(5, 6, 8, 0.55) 55%, rgba(5, 6, 8, 0.95) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.3) 0%, rgba(5, 6, 8, 0.85) 70%, var(--bg) 100%);
}

.mega-hero__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--theme-rgb), 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, #000 20%, transparent 80%);
}

.mega-hero__grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
}

.mega-hero__copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}

.mega-hero__copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 28px;
}

.mega-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mega-hero__logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.mega-hero__logo {
  width: min(560px, 95%);
  height: auto;
  background: none;
  border: none;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

.logo-orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid var(--theme-a25);
  animation: orbitSpin 20s linear infinite;
}

.logo-orbit--2 {
  width: 420px;
  height: 420px;
  border-color: var(--theme-a12);
  animation-direction: reverse;
  animation-duration: 28s;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Leak cards */
.leak-cards {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: -60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 24px;
}

.leak-card {
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), var(--theme-shadow);
}

.leak-card span { font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 6px; }
.leak-card strong { font-size: 2rem; font-weight: 900; color: var(--gold-2); display: block; }
.leak-card small { font-size: 0.78rem; color: var(--muted); }

.leak-card--1 { transform: rotate(-2deg) translateY(8px); }
.leak-card--2 { transform: translateY(-16px) scale(1.04); z-index: 2; border-color: var(--theme-border-strong); }
.leak-card--3 { transform: rotate(2deg) translateY(12px); }

.leak-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  overflow: hidden;
}

.leak-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-gold);
}

/* ── Showcase / panel sim ── */
.showcase {
  position: relative;
  z-index: 4;
  padding: 40px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase__intro {
  text-align: center;
  margin-bottom: 40px;
}

.showcase__intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 14px 0 10px;
}

.showcase__intro p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.panel-sim-wrap {
  position: relative;
  perspective: 1200px;
}

.panel-sim {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--theme-border-strong);
  background: var(--bg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--theme-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotateX(2deg) rotateY(-1deg);
  transition: transform 0.4s ease;
}

.panel-sim-wrap:hover .panel-sim {
  transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
}

.panel-sim__shadow {
  position: absolute;
  inset: 20px -20px -30px;
  background: radial-gradient(ellipse at center, rgba(var(--theme-rgb), 0.15), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

.ps-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
}

.ps-brand img {
  width: auto;
  height: 40px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: none;
}

.ps-brand strong { display: block; font-size: 13px; letter-spacing: 0.08em; }
.ps-brand span { font-size: 11px; color: var(--muted); }

.ps-banner {
  position: relative;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--theme-a18);
  margin-bottom: 8px;
}

.ps-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ps-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.ps-nav button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 2px;
}

.ps-nav button.active,
.ps-nav button:hover {
  background: var(--theme-a12);
  color: var(--gold-2);
  box-shadow: inset 0 0 0 1px var(--theme-border);
}

.ps-live { margin-top: auto; padding: 8px 6px; }
.ps-live__title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.ps-live__item { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ps-live__item .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ps-main { padding: 18px 20px; position: relative; overflow: hidden; }
.ps-main::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  background: var(--brand-image) center / contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ps-header h3 { font-size: 20px; margin: 0 0 4px; }
.ps-time { font-size: 12px; color: var(--muted); }
.ps-pulse { font-size: 11px; color: var(--gold); animation: pulseDot 2s ease infinite; }

.ps-tab { display: none; animation: tabIn 0.4s ease; }
.ps-tab--active { display: block; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ps-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ps-metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.ps-metric span { font-size: 12px; color: var(--muted); }
.ps-metric strong { display: block; font-size: 28px; margin: 4px 0; }
.ps-metric small { font-size: 11px; color: var(--muted); }
.ps-metric--gold {
  background: var(--grad-gold);
  color: #1a1200;
  border: none;
}
.ps-metric--gold span, .ps-metric--gold small { opacity: 0.75; }

.ps-widgets { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

.ps-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.ps-widget--wide { grid-column: span 1; }
.ps-widget__head h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }

.ps-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-top: 8px;
}

.ps-chart__bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-dark));
  min-height: 8px;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-rank { display: grid; gap: 10px; }
.ps-rank--full { padding: 8px 0; }

.ps-rank__row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
}

.ps-rank__row > span:first-child { color: var(--gold); font-weight: 700; font-size: 13px; }
.ps-rank__row b { display: block; font-size: 13px; margin-bottom: 4px; }
.ps-rank__row i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  max-width: 100%;
}
.ps-rank__row em { font-size: 12px; color: var(--muted); font-style: normal; }

.ps-members { display: grid; gap: 10px; }
.ps-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ps-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-a18);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--gold-2);
  font-size: 14px;
}

.ps-member b { display: block; font-size: 13px; }
.ps-member small { color: var(--muted); font-size: 11px; }
.ps-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.ps-badge--on { background: rgba(34, 197, 94, 0.15); color: var(--green); }

/* ── Features cascade ── */
.features-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-section__head {
  text-align: center;
  margin-bottom: 48px;
}

.features-section__head h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.features-section__head p { color: var(--muted); }

.features-cascade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.feature-float {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-float:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: var(--theme-border-strong);
}

.feature-float:nth-child(2) { transform: translateY(24px); }
.feature-float:nth-child(2):hover { transform: translateY(16px) rotate(1deg); }
.feature-float:nth-child(3) { transform: translateY(48px); }
.feature-float:nth-child(3):hover { transform: translateY(40px) rotate(-0.5deg); }

.feature-float__num {
  font-size: 2.5rem;
  font-weight: 900;
  opacity: 0.12;
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--gold);
}

.feature-float h3 { color: var(--gold-2); margin-bottom: 10px; font-size: 1rem; }
.feature-float p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ── Plans dramatic ── */
.plans-section--dramatic {
  padding-top: 60px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--theme-a08), transparent 60%),
    var(--bg);
}

.plans-section__logo {
  display: block;
  width: auto;
  height: clamp(130px, 23vw, 182px);
  max-width: min(416px, 90vw);
  margin: 0 auto 20px;
  border: none;
  border-radius: 0;
  background: none;
  object-fit: contain;
}

.plans-grid--leak {
  align-items: end;
  padding-top: 20px;
}

.plans-grid--leak .plan-card:nth-child(1) {
  transform: rotate(-1.5deg) translateY(12px);
}

.plans-grid--leak .plan-card:nth-child(2) {
  transform: scale(1.06) translateY(-20px);
  z-index: 2;
}

.plans-grid--leak .plan-card:nth-child(3) {
  transform: rotate(1.5deg) translateY(16px);
}

.plans-grid--leak .plan-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.plans-grid--leak .plan-card:hover {
  transform: scale(1.04) translateY(-8px) !important;
  z-index: 3;
}

/* ── Responsive landing ── */
@media (max-width: 960px) {
  .mega-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .mega-hero__copy p { margin-left: auto; margin-right: auto; }
  .mega-hero__actions { justify-content: center; }
  .mega-hero__logo-stage { min-height: 360px; order: -1; }
  .leak-cards { grid-template-columns: 1fr; margin-top: -20px; }
  .leak-card--1, .leak-card--2, .leak-card--3 { transform: none !important; }
  .panel-sim { grid-template-columns: 1fr; transform: none; }
  .ps-sidebar { display: none; }
  .ps-metrics { grid-template-columns: 1fr 1fr; }
  .ps-widgets { grid-template-columns: 1fr; }
  .features-cascade { grid-template-columns: 1fr; }
  .feature-float:nth-child(n) { transform: none !important; }
  .plans-grid--leak .plan-card:nth-child(n) { transform: none !important; }
  .setor-nav-links { flex-wrap: wrap; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mega-hero__bg, .mega-hero__logo, .logo-orbit, .ps-live__item .dot, .ps-pulse { animation: none; }
}

/* ── Responsive (legacy) ── */
@media (max-width: 960px) {
  .landing-hero,
  .admin-login,
  .admin-shell { grid-template-columns: 1fr; }

  .landing-hero__visual { min-height: 320px; }
  .landing-stats { grid-template-columns: 1fr; }
  .features-strip,
  .plans-grid,
  .stats-grid,
  .price-grid { grid-template-columns: 1fr; }

  .checkout-grid { grid-template-columns: 1fr; }
  .admin-login__hero { min-height: 240px; }
}

/* ── Admin: clientes + modal ── */
.clients-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.search-box input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  padding: 10px 0;
  font-size: 0.88rem;
  outline: none;
}

.clients-toolbar select {
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
}

.clients-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--theme-border-strong);
  color: var(--text);
}

.page-btn.active {
  background: var(--theme-a15);
  border-color: var(--gold);
  color: var(--gold-2);
}

.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-info {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 8px;
}

.action-btns { display: flex; gap: 4px; flex-wrap: wrap; }

.action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--theme-a08);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.action-btn:hover { background: var(--theme-a15); }

.action-btn.danger {
  border-color: rgba(255, 82, 82, 0.35);
  background: rgba(255, 82, 82, 0.1);
  color: #ff8a80;
}

.action-btn.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-active { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.badge-expired { background: rgba(255, 152, 0, 0.15); color: #ffb74d; }
.badge-disabled { background: rgba(255, 82, 82, 0.12); color: #ff8a80; }
.badge-trial { background: var(--theme-a08); color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  padding: 16px;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--card);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 1rem;
  color: var(--gold-2);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 22px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-item label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.detail-item .val {
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

.detail-item input,
.detail-item select,
.detail-item textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 0.88rem;
}

.detail-item--wide {
  grid-column: 1 / -1;
}

.detail-item textarea {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
}

.license-key {
  font-family: monospace;
  font-size: 0.75rem !important;
  cursor: pointer;
}

.quick-dates {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.detail-section { margin-top: 20px; }

.detail-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.grant-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

.grant-form input,
.grant-form select {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
}

.hint-text {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.btn-save {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1208;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-save:hover { opacity: 0.92; }

.btn-cancel {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── Setor Scripts hub (multi-produto) ── */
.hub-page .setor-nav-brand small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.hub-hero__grid { align-items: start; }
.hub-section { max-width: 1100px; margin: 0 auto 72px; padding: 0 24px; }
.hub-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.hub-product-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.hub-product-card__badge { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-2); }
.hub-product-card h3 { font-size: 1.15rem; }
.hub-product-card p, .hub-product-card small { color: var(--muted); line-height: 1.55; font-size: 0.9rem; }
.hub-products-preview { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.hub-mini-card { background: var(--card); border: 1px solid var(--theme-border); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
.hub-mini-card strong { color: var(--gold-2); }
.hub-flow { max-width: 800px; margin: 0 auto 64px; padding: 0 24px; text-align: left; }
.hub-flow__steps { color: var(--muted); line-height: 1.8; padding-left: 1.2rem; }
.hub-flow__steps a { color: var(--gold-2); text-decoration: underline; }
.hub-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto 20px; padding: 0 24px; }
.hub-plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; }
.hub-plan-card img { max-width: 100%; border-radius: 10px; margin-bottom: 12px; }
.hub-plan-price { font-size: 1.35rem; font-weight: 800; color: var(--gold-2); margin: 8px 0; }
.hub-plan-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; min-height: 3.2em; }
.hub-status { margin-top: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
.hub-status--ok { border-color: rgba(34, 197, 94, 0.35); }
.hub-status--warn { border-color: rgba(245, 158, 11, 0.35); }
.hub-status span { color: var(--muted); }
.hub-support-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 720px; margin: 20px auto 0; }
.hub-support-list { color: var(--muted); line-height: 1.8; margin: 12px 0 18px; padding-left: 1.2rem; }
.hub-empty, .hub-loading, .hub-hint { color: var(--muted); text-align: center; padding: 12px; }
.hub-tab-placeholder { color: var(--muted); padding: 24px; }
.hub-store-fallback { text-align: center; padding-bottom: 48px; }
