@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: radial-gradient(circle at 20% 20%, #192042 0, #0c1024 40%, #060915 100%);
  --card: rgba(17, 24, 39, 0.72);
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --success: #10b981;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

body.page-scroll {
  align-items: flex-start;
}

.glass {
  width: min(1080px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px 32px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.38);
  backdrop-filter: blur(12px);
}

header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.top-link:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.top-link-active {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(125deg, rgba(6, 182, 212, 0.22), rgba(14, 165, 233, 0.16));
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,0.32); }

nav.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 140ms ease;
}

.tab-btn.active {
  border-color: rgba(79,70,229,0.6);
  background: linear-gradient(120deg, rgba(79,70,229,0.18), rgba(139,92,246,0.14));
  box-shadow: 0 8px 26px rgba(79,70,229,0.28);
}

.tab-btn:hover { transform: translateY(-1px); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
}

.muted { color: var(--muted); font-size: 0.95rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.28);
  font-size: 0.9rem;
  margin-left: 8px;
}

button.secondary,
a.secondary {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

ul { list-style: none; padding: 0; margin: 10px 0 0; }
li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

#invite-list .invite-item {
  padding: 10px 12px;
  flex-wrap: wrap;
}

.invite-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.invite-name {
  min-width: 0;
  word-break: break-word;
}

.invite-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.invite-actions .cta {
  white-space: nowrap;
}

.badge { background: rgba(255,255,255,0.06); padding: 4px 8px; border-radius: 8px; font-size: 0.85rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.server-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-card:hover { transform: translateY(-2px); border-color: rgba(79,70,229,0.5); }

.server-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
}

.server-icon img { width: 100%; height: 100%; object-fit: cover; }

.server-meta { color: var(--muted); font-size: 0.9rem; }

.hidden { display: none; }

.alert {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(79,70,229,0.08));
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.summary-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.summary-title { font-weight: 600; color: var(--muted); }
.summary-value { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }

.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscriber-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.subscriber-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-neutral {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.legal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-footer a {
  color: var(--text);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-page .glass {
  width: min(860px, 100%);
}

.legal-page header {
  margin-bottom: 8px;
}

.legal-meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.08rem;
  margin: 16px 0 8px;
}

.legal-content p {
  margin: 0 0 10px;
  line-height: 1.5;
}

/* Modern refresh */
:root {
  --bg: radial-gradient(1200px 700px at 12% -8%, #1e293b 0%, transparent 55%),
    radial-gradient(900px 520px at 92% -12%, #0b3b5a 0%, transparent 58%),
    linear-gradient(170deg, #040712 0%, #080c1b 45%, #050913 100%);
  --card: rgba(12, 20, 38, 0.8);
  --accent: #22d3ee;
  --accent-2: #0ea5e9;
  --text: #f3f7ff;
  --muted: #a5b4cf;
  --border: rgba(148, 163, 184, 0.2);
}

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  padding: 36px 16px;
  background-attachment: fixed;
}

.glass {
  border-radius: 20px;
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card,
.summary-box,
li,
.server-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.8), rgba(10, 17, 32, 0.66));
}

h1 {
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  letter-spacing: -0.03em;
}

.cta {
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(120deg, #06b6d4 0%, #0ea5e9 100%);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.3);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.42);
}

.tab-btn {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(10, 18, 34, 0.76);
}

.tab-btn.active {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(125deg, rgba(6, 182, 212, 0.22), rgba(14, 165, 233, 0.18));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.tab-btn:focus-visible,
.cta:focus-visible,
button.secondary:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.85);
  outline-offset: 2px;
}

.server-card:hover {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.2);
}

.server-card-premium {
  border-color: rgba(250, 204, 21, 0.64);
  background: linear-gradient(155deg, rgba(47, 33, 8, 0.74), rgba(27, 21, 8, 0.7));
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.server-card-premium:hover {
  border-color: rgba(251, 191, 36, 0.92);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.3), inset 0 0 0 1px rgba(250, 204, 21, 0.25);
}

.premium-chip {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffe8ad;
  border: 1px solid rgba(251, 191, 36, 0.65);
  background: linear-gradient(125deg, rgba(245, 158, 11, 0.38), rgba(202, 138, 4, 0.28));
  vertical-align: middle;
}

.server-icon {
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.2), rgba(14, 116, 144, 0.14));
  color: #67e8f9;
}

.summary-value {
  color: #dbeafe;
}

.vip-renew-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.vip-renew-item {
  align-items: center;
}

.vip-renew-btn {
  padding: 7px 12px;
  font-size: 0.88rem;
}

.legal-footer a {
  color: #c9ddff;
}

@media (max-width: 760px) {
  .glass {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }
  .top-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }
  .cta {
    padding: 9px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
 * LANDING PAGE (lp-*)
 * Tema escuro moderno com gradientes, glow e mock visual do editor.
 * ═══════════════════════════════════════════════════════════════════════ */

body.lp-body {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 500px at 10% 30%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
}

/* Top nav */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(8, 12, 25, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.lp-brand-glyph {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}
.lp-nav-links {
  display: flex;
  gap: 22px;
}
.lp-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.lp-nav-links a:hover {
  color: var(--text);
}
.lp-nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cta-sm {
  padding: 8px 14px !important;
  font-size: 13px !important;
}

/* Shell */
.lp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.lp-public {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 48px;
}
.lp-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lp-h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.lp-grad {
  background: linear-gradient(120deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-grad-2 {
  background: linear-gradient(120deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 540px;
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.cta-lg {
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}
.secondary-lg {
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.lp-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.lp-trust-strip > div {
  display: flex;
  flex-direction: column;
}
.lp-trust-strip strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-trust-strip span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Hero mockup */
.lp-hero-art {
  position: relative;
  perspective: 1200px;
}
.lp-mock {
  background: rgba(15, 19, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px -20px rgba(99, 102, 241, 0.4);
  transform: rotate3d(0.3, 1, 0, -8deg) rotate3d(1, 0, 0, 4deg);
}
.lp-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lp-mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.lp-mock-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.lp-mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}
.lp-mock-side {
  background: #2b2d31;
  padding: 12px 8px;
  font-size: 12px;
}
.lp-mock-cat {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #80848e;
  padding: 8px 8px 4px;
}
.lp-mock-row {
  padding: 5px 8px;
  margin: 1px 0;
  border-radius: 4px;
  color: #80848e;
  cursor: default;
}
.lp-mock-row.active {
  background: #404249;
  color: #f2f3f5;
}
.lp-mock-main {
  background: #313338;
  padding: 18px 20px;
}
.lp-mock-h {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #f2f3f5;
}
.lp-mock-field {
  margin-bottom: 12px;
}
.lp-mock-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b5bac1;
  margin-bottom: 4px;
}
.lp-mock-input {
  background: #1e1f22;
  padding: 8px 11px;
  border-radius: 4px;
  font-size: 13px;
  color: #f2f3f5;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.lp-mock-input-tall {
  min-height: 38px;
}
.lp-mock-stage {
  margin-top: 18px;
  padding: 10px 12px;
  background: rgba(240, 178, 50, 0.12);
  border-left: 3px solid #f0b232;
  border-radius: 4px;
  font-size: 12px;
  color: #b5bac1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-mock-save {
  background: #5865f2;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

/* Sections */
.lp-section {
  padding: 32px 0;
}
.lp-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.lp-section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.lp-section-head p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
}

/* Features */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-feature {
  background: rgba(20, 25, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.lp-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(20, 25, 48, 0.8);
}
.lp-feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 14px;
}
.lp-feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.lp-feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Showcase */
.lp-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-showcase-card {
  background: rgba(20, 25, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-showcase-card.lp-showcase-feat {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(20, 25, 48, 0.6));
  border-color: rgba(99, 102, 241, 0.3);
}
.lp-showcase-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.lp-showcase-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.lp-showcase-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.lp-link {
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}
.lp-link:hover {
  color: #c7d2fe;
}

/* FAQ */
.lp-faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-faq-item {
  background: rgba(20, 25, 48, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.lp-faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lp-faq-item summary::-webkit-details-marker {
  display: none;
}
.lp-faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s;
}
.lp-faq-item[open] summary::after {
  content: "−";
}
.lp-faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Bottom CTA */
.lp-cta {
  background:
    radial-gradient(ellipse 600px 300px at 50% 50%, rgba(99, 102, 241, 0.18), transparent 70%),
    rgba(20, 25, 48, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  padding: 56px 24px;
  text-align: center;
}
.lp-cta-inner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
}
.lp-cta-inner p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 22px;
}
.lp-cta .lp-cta-row {
  justify-content: center;
  margin: 0;
}

/* Footer */
.lp-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.lp-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-footer-col strong {
  font-size: 15px;
  font-weight: 800;
}
.lp-footer-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.lp-footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.lp-footer-col a:hover {
  color: var(--text);
}
.lp-footer-col p.small {
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.lp-footer-bottom {
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Private dashboard adjustments to play nice with the landing nav */
.lp-private {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-private-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

/* Mobile */
@media (max-width: 920px) {
  .lp-nav {
    padding: 12px 16px;
  }
  .lp-nav-links {
    display: none;
  }
  .lp-shell {
    padding: 24px 16px 32px;
  }
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0 24px;
  }
  .lp-hero-art {
    order: -1;
  }
  .lp-mock {
    transform: none;
  }
  .lp-footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lp-cta {
    padding: 36px 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
 * DASHBOARD INTERNO — layout TARGEX-like (sidebar fixa + main scroll)
 * ═══════════════════════════════════════════════════════════════════════ */

body.dash-body {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background:
    radial-gradient(ellipse 800px 400px at 0% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 400px at 100% 100%, rgba(139, 92, 246, 0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.dash-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: rgba(13, 17, 35, 0.85);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(12px);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.dash-brand-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

/* Profile card */
.dash-profile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  overflow: hidden;
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}
.dash-userid {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}
.dash-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 999px;
  font-size: 11px;
  color: #a5b4fc;
}
.dash-owner-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* Menu */
.dash-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s, transform 0.12s;
  cursor: pointer;
}
.dash-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.dash-menu-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.1));
  color: #c7d2fe;
  border-left: 2px solid #818cf8;
  padding-left: 10px;
}
.dash-menu-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* Sidebar footer */
.dash-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-logout-btn,
.dash-login-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.dash-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.dash-login-cta {
  background: var(--accent);
  color: white;
  border-color: transparent;
}
.dash-login-cta:hover {
  background: var(--accent-2);
}

/* Main content */
.dash-main {
  padding: 32px 36px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.dash-main-head {
  margin-bottom: 24px;
}
.dash-main-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
}
.dash-main-head .muted {
  margin: 0;
}

.dash-foot {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.dash-foot a {
  color: var(--muted);
  text-decoration: none;
}
.dash-foot a:hover {
  color: var(--text);
}

/* Mobile: sidebar vira topo retratil */
@media (max-width: 920px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: relative;
    height: auto;
    flex-direction: column;
    padding: 16px;
  }
  .dash-main {
    padding: 20px 16px;
  }
  .dash-profile {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  .dash-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .dash-discord-link {
    margin-top: 4px;
  }
  .dash-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dash-menu-item {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
 * ADMIN PREMIUM COMMANDS (apc-*) — pagina standalone, layout TARGEX-like
 * ═══════════════════════════════════════════════════════════════════════ */

.apc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.apc-stat {
  background: rgba(20, 25, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.apc-stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.apc-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.apc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.apc-filter {
  flex: 1;
  min-width: 240px;
  background: rgba(20, 25, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}
.apc-filter:focus {
  border-color: var(--accent);
}
.apc-toolbar-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.apc-toolbar-buttons button.active,
.apc-toolbar-buttons button.se-btn-ghost.active {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.apc-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 100px; /* espaco pra savebar fixa */
}

.apc-cat {
  background: rgba(20, 25, 48, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.apc-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid var(--border);
}
.apc-cat-name {
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.apc-cat-count {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.apc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 14px;
}
.apc-card {
  background: rgba(13, 17, 35, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.apc-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.apc-card.locked {
  opacity: 0.6;
}
.apc-card.active {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(13, 17, 35, 0.6));
  border-color: rgba(99, 102, 241, 0.35);
}
.apc-card.pending {
  border-left: 3px solid var(--warn, #f59e0b);
  padding-left: 10px;
}
.apc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.apc-card.locked .apc-card-head {
  cursor: not-allowed;
}
.apc-card-head input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: inherit;
  flex-shrink: 0;
}
.apc-cmd-name {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.apc-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.apc-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.apc-tag.default {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
.apc-tag.free {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.apc-tag.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.apc-notes {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-family: inherit;
  resize: vertical;
  min-height: 32px;
  outline: none;
  box-sizing: border-box;
}
.apc-notes:focus {
  border-color: var(--accent);
}

.apc-empty {
  padding: 32px;
  text-align: center;
}

/* Sticky savebar */
.apc-savebar {
  position: fixed;
  bottom: 16px;
  left: 296px; /* sidebar 280px + 16px gap */
  right: 16px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(13, 17, 35, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 30;
}
.apc-savebar-info {
  font-size: 13px;
  color: var(--muted);
}
#apc-pending-count {
  font-weight: 800;
  color: var(--warn, #f59e0b);
}
.apc-savebar-actions {
  display: flex;
  gap: 8px;
}
.apc-savebar-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.apc-savebar-actions .se-btn-primary {
  background: var(--accent);
  color: white;
}
.apc-savebar-actions .se-btn-primary:hover {
  background: var(--accent-2);
}
.apc-savebar-actions .se-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.apc-savebar-actions .se-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.apc-savebar-actions .se-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 920px) {
  .apc-savebar {
    left: 16px;
    right: 16px;
  }
  .apc-grid {
    grid-template-columns: 1fr;
  }
}
