/* =====================================================
   Kzap Design System — style.css
   Paleta: WhatsApp Green (#25D366) + Dark Slate
   Fonte: Outfit (Google Fonts)
   ===================================================== */

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --wa-green:    #25D366;
  --wa-dark:     #128C7E;
  --wa-light:    #DCF8C6;
  --accent-blue: #5B8DEF;
  --accent-purple: #9B59B6;
  --accent-orange: #F39C12;
  --accent-teal:  #1ABC9C;
  --accent-pink:  #E91E8C;

  /* Dark Theme */
  --bg-base:     #0D1117;
  --bg-surface:  #161B22;
  --bg-card:     #1C2230;
  --bg-hover:    #21283A;
  --border:      rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.04);

  /* Text */
  --text-primary:   #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted:     #484F58;

  /* Gradients */
  --grad-wa:     linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --grad-dark:   linear-gradient(135deg, #1C2230 0%, #0D1117 100%);
  --grad-glow:   radial-gradient(ellipse at center, rgba(37,211,102,.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.6);
  --shadow-wa:   0 8px 32px rgba(37,211,102,.25);
  --shadow-glow: 0 0 0 1px rgba(37,211,102,.3), 0 8px 32px rgba(37,211,102,.2);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Outfit', sans-serif;
  --fw-light: 300;
  --fw-reg:   400;
  --fw-med:   500;
  --fw-semi:  600;
  --fw-bold:  700;
  --fw-black: 800;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: var(--fw-reg);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: var(--fw-bold); line-height: 1.2; }
a { color: var(--wa-green); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #4de88e; }

.gradient-text {
  background: var(--grad-wa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: var(--fw-semi);
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-wa);
  color: #fff;
  box-shadow: var(--shadow-wa);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: rgba(255,255,255,.15); }

.btn-outline {
  background: transparent;
  color: var(--wa-green);
  border: 1.5px solid var(--wa-green);
}
.btn-outline:hover { background: rgba(37,211,102,.1); color: var(--wa-green); }

.btn-wa {
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
}
.btn-wa:hover { background: #1dba57; color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ─── Spinner ───────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner-lg {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--wa-green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Alerts ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: var(--fw-med);
  margin-bottom: 1rem;
}
.alert-error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.3); color: #86efac; }
.alert-info    { background: rgba(91,141,239,.15); border: 1px solid rgba(91,141,239,.3); color: #93c5fd; }

/* ─── Forms ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: var(--fw-semi); color: var(--text-secondary); }
.label-hint { font-weight: var(--fw-reg); color: var(--text-muted); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
input:focus {
  outline: none;
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}
input::placeholder { color: var(--text-muted); }

.input-password { position: relative; }
.input-password input { padding-right: 48px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--text-muted);
}

/* ─── Navbar ────────────────────────────────────────── */
.nav, .navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; flex-shrink: 0; }
.nav-brand-name { font-size: 1.3rem; font-weight: var(--fw-bold); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: 1rem; }
.nav-link { color: var(--text-secondary); font-weight: var(--fw-med); font-size: .9rem; text-decoration: none; }
.nav-link:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; white-space: nowrap; }
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
  line-height: 1;
}

/* ─── LANDING PAGE ─────────────────────────────────── */
.landing-page { overflow-x: hidden; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .15;
  animation: float 6s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--wa-green); top: -200px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-blue); bottom: 0; right: -100px; animation-delay: -2s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent-purple); top: 50%; left: 40%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.25);
  color: var(--wa-green); padding: 6px 14px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: var(--fw-semi); margin-bottom: 1.5rem;
}
.badge-dot { width: 6px; height: 6px; background: var(--wa-green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: var(--fw-black); margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: var(--fw-bold); color: var(--wa-green); }
.stat span { font-size: .8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone Mockup */
.hero-visual { flex: 1; position: relative; z-index: 1; display: flex; justify-content: center; }

.phone-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 280px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  animation: float-slow 4s ease-in-out infinite;
}
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.phone-screen { background: #ECE5DD; }
.wa-header { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px; }
.wa-avatar { width: 36px; height: 36px; background: #25D366; border-radius: 50%; }
.wa-name { font-size: .9rem; font-weight: 600; }
.wa-status { font-size: .75rem; opacity: .8; }
.wa-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.wa-msg { padding: 8px 12px; border-radius: 8px; font-size: .85rem; max-width: 85%; }
.wa-msg-in { background: #fff; border-radius: 0 8px 8px 8px; align-self: flex-start; color: #333; }
.wa-msg-out { background: #DCF8C6; border-radius: 8px 0 8px 8px; align-self: flex-end; color: #333; }
.wa-input-bar { background: #F0F0F0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.wa-input-text { color: #999; font-size: .85rem; }
.wa-send { color: #075E54; font-weight: bold; }

.round-robin-indicator {
  background: var(--bg-card);
  padding: 12px;
  border-top: 1px solid var(--border);
}
.rr-label { font-size: .7rem; color: var(--wa-green); font-weight: var(--fw-semi); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.rr-numbers { display: flex; flex-direction: column; gap: 4px; }
.rr-num { font-size: .8rem; padding: 5px 10px; border-radius: var(--radius-sm); color: var(--text-muted); background: var(--bg-surface); border: 1px solid var(--border); }
.rr-active { color: var(--wa-green); border-color: rgba(37,211,102,.4); background: rgba(37,211,102,.08); }

/* ─── Features ──────────────────────────────────────── */
.features {
  padding: 80px 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: rgba(37,211,102,.1); color: var(--wa-green);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: var(--fw-semi);
  margin-bottom: .75rem; letter-spacing: .05em; text-transform: uppercase;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--t-base);
}
.feature-card:hover {
  border-color: rgba(37,211,102,.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.feature-card p  { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }

.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon--green  { background: rgba(37,211,102,.15); color: var(--wa-green); }
.feature-icon--blue   { background: rgba(91,141,239,.15); color: var(--accent-blue); }
.feature-icon--purple { background: rgba(155,89,182,.15); color: var(--accent-purple); }
.feature-icon--orange { background: rgba(243,156,18,.15); color: var(--accent-orange); }
.feature-icon--teal   { background: rgba(26,188,156,.15); color: var(--accent-teal); }
.feature-icon--pink   { background: rgba(233,30,140,.15); color: var(--accent-pink); }

/* ─── How it works ──────────────────────────────────── */
.how-it-works {
  padding: 80px 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.how-it-works .section-header { max-width: 1280px; margin: 0 auto 3rem; }

.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.step {
  flex: 1; min-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center;
}
.step-num {
  font-size: 2.5rem; font-weight: var(--fw-black);
  color: var(--wa-green); opacity: .4; margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.step p  { color: var(--text-secondary); font-size: .88rem; }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* ─── Pricing ───────────────────────────────────────── */
.pricing {
  padding: 80px 2rem;
  max-width: 1280px; margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 700px; margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}
.pricing-card--pro {
  border-color: rgba(37,211,102,.35);
  background: linear-gradient(145deg, rgba(37,211,102,.05) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  display: inline-block;
  background: var(--bg-surface); color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: var(--fw-semi);
  margin-bottom: 1.25rem;
}
.plan-badge--pro {
  background: rgba(37,211,102,.15); color: var(--wa-green);
  border-color: rgba(37,211,102,.3);
}

.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: .25rem; }
.price-val { font-size: 2.25rem; font-weight: var(--fw-black); }
.price-per { font-size: .9rem; color: var(--text-muted); }
.plan-name  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }

.plan-features { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.feat-ok::before { content: '✓'; color: var(--wa-green); font-weight: bold; width: 16px; flex-shrink: 0; }
.feat-no { color: var(--text-muted); }
.feat-no::before { content: '✗'; color: var(--text-muted); font-weight: bold; width: 16px; flex-shrink: 0; }

/* ─── Footer ────────────────────────────────────────── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; font-weight: var(--fw-bold); }
.footer-by { color: var(--text-muted); font-size: .85rem; }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* ─── AUTH PAGE ─────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; }

.auth-split { display: flex; width: 100%; min-height: 100vh; }

.auth-left {
  width: 420px; flex-shrink: 0;
  background: linear-gradient(160deg, rgba(37,211,102,.12) 0%, var(--bg-surface) 50%);
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex; flex-direction: column;
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 3rem; font-size: 1.2rem; font-weight: var(--fw-bold); color: var(--text-primary); }
.auth-left-content { flex: 1; }
.auth-left-content h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.auth-left-content p { color: var(--text-secondary); font-size: .95rem; margin-bottom: 1.5rem; }
.auth-features { display: flex; flex-direction: column; gap: .6rem; }
.auth-feat { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-secondary); }
.feat-check { color: var(--wa-green); font-weight: bold; }
.auth-left-footer { color: var(--text-muted); font-size: .8rem; }

.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.75rem; margin-bottom: .4rem; }
.auth-sub { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: .9rem; }
.terms-note { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }
.terms-note a { color: var(--text-muted); text-decoration: underline; }

/* Plan comparison mini */
.plan-comparison-mini { margin-top: 1.5rem; }
.pcm-row {
  display: grid; grid-template-columns: 1fr 60px 60px;
  padding: 6px 0; border-bottom: 1px solid var(--border-soft);
  font-size: .85rem; color: var(--text-secondary);
}
.pcm-header { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.pcm-row span:nth-child(2), .pcm-row span:nth-child(3) { text-align: center; }
.pcm-row:last-child span:last-child { color: var(--wa-green); font-weight: var(--fw-semi); }

/* ─── DASHBOARD PAGE ────────────────────────────────── */
.dashboard-page { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 50;
  padding: 1.5rem 1rem;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: var(--fw-bold);
  margin-bottom: 2rem; padding: 0 .5rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-weight: var(--fw-med); font-size: .9rem;
  transition: all var(--t-fast);
  text-decoration: none;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-link.active { background: rgba(37,211,102,.1); color: var(--wa-green); border-color: transparent; }

.badge-pro {
  background: rgba(37,211,102,.15); color: var(--wa-green);
  font-size: .7rem; font-weight: var(--fw-semi);
  padding: 2px 6px; border-radius: var(--radius-full);
  margin-left: auto;
}

.sidebar-bottom { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.plan-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 12px;
  font-size: .8rem; font-weight: var(--fw-semi);
}
.plan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); }
.sidebar-logout { font-size: .85rem; }

/* Dashboard main */
.dashboard-main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-surface);
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 1.4rem; font-weight: var(--fw-bold); }
.topbar-sub { color: var(--text-muted); font-size: .85rem; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: 1rem; cursor: pointer;
}

.dash-section { display: none; padding: 2rem; }
.dash-section.active { display: block; }

.section-actions { display: flex; gap: .75rem; margin-bottom: 1.5rem; }

/* Card Form */
.card-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem; animation: slideDown .2s ease;
}
.card-form h3 { font-size: 1rem; margin-bottom: 1rem; }
.form-row { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Links Grid */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

.link-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: all var(--t-base);
  animation: fadeIn .3s ease;
}
.link-card:hover { border-color: rgba(37,211,102,.25); box-shadow: var(--shadow-md); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.link-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.link-card-title { font-weight: var(--fw-semi); font-size: .95rem; }
.link-card-slug {
  font-family: 'Courier New', monospace; font-size: .75rem;
  color: var(--wa-green); background: rgba(37,211,102,.08);
  padding: 3px 8px; border-radius: var(--radius-sm);
  border: 1px solid rgba(37,211,102,.2);
}
.link-card-meta { display: flex; gap: 1rem; margin-bottom: 1rem; }
.link-meta-item { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--text-muted); }
.link-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-card-actions .btn { padding: 6px 12px; font-size: .8rem; }

/* Numbers List (Modal) */
.numbers-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; max-height: 280px; overflow-y: auto; }
.number-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
}
.number-item-info { display: flex; align-items: center; gap: 10px; }
.number-rr-badge {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(37,211,102,.15); color: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: var(--fw-bold); flex-shrink: 0;
}
.number-phone { font-weight: var(--fw-semi); font-size: .9rem; }
.number-label { color: var(--text-muted); font-size: .8rem; }
.btn-remove { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.2); padding: 5px 10px; font-size: .78rem; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font); transition: all var(--t-fast); }
.btn-remove:hover { background: rgba(239,68,68,.2); }

.rr-preview { padding: 8px 0; font-size: .8rem; color: var(--text-muted); }

/* Add number form */
.add-number-form { display: flex; flex-direction: column; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft); }
.add-number-form .btn { align-self: flex-start; }

/* Pixels form */
.pixels-form { display: flex; flex-direction: column; gap: 1rem; }
.pixel-row { display: flex; align-items: center; gap: .75rem; }
.pixel-type { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: var(--fw-semi); width: 120px; flex-shrink: 0; }
.pixel-type svg { flex-shrink: 0; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-soft);
}
.modal-header h2 { font-size: 1.05rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color var(--t-fast); }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: .75rem 1.5rem; border-top: 1px solid var(--border-soft); }

/* Empty & Loading states */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .75rem; padding: 3rem 1rem;
  text-align: center;
}
.empty-icon { font-size: 3rem; }
.empty-state p { color: var(--text-muted); font-size: .9rem; }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2rem; }
.loading-state p { color: var(--text-muted); font-size: .9rem; }

/* Upgrade gate */
.upgrade-gate {
  text-align: center; padding: 3rem 2rem;
  background: var(--bg-card); border: 1px solid rgba(37,211,102,.2);
  border-radius: var(--radius-xl);
}
.upgrade-icon { font-size: 3rem; margin-bottom: 1rem; }
.upgrade-gate h3 { margin-bottom: .5rem; }
.upgrade-gate p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9rem; }

.section-header-inline { margin-bottom: 1.5rem; }
.section-header-inline h2 { font-size: 1.3rem; margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; }
.section-header-inline p { color: var(--text-muted); font-size: .88rem; }

/* ─── REDIRECT PAGE ─────────────────────────────────── */
.redirect-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(37,211,102,.08) 0%, var(--bg-base) 70%);
}
.redirect-container { text-align: center; padding: 2rem; }
.redirect-logo { margin-bottom: 2rem; }
.redirect-spinner { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.spinner-wa {
  width: 60px; height: 60px;
  border: 4px solid rgba(37,211,102,.2);
  border-top-color: var(--wa-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.redirect-title { font-size: 1.5rem; margin-bottom: .5rem; }
.redirect-sub { color: var(--text-muted); margin-bottom: 2rem; }
.redirect-powered { color: var(--text-muted); font-size: .75rem; margin-top: 1.5rem; }

/* ─── ERROR PAGES ───────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.error-container { text-align: center; padding: 2rem; }
.error-code { font-size: 8rem; font-weight: var(--fw-black); color: var(--wa-green); opacity: .3; line-height: 1; margin-bottom: .5rem; }
.error-code--500 { color: #f87171; }
.error-container h1 { margin-bottom: .75rem; }
.error-container p { color: var(--text-muted); margin-bottom: 2rem; }

/* ─── Copy button ───────────────────────────────────── */
.btn-copy {
  background: rgba(37,211,102,.08); color: var(--wa-green);
  border: 1px solid rgba(37,211,102,.2); padding: 5px 10px;
  font-size: .78rem; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font); transition: all var(--t-fast);
}
.btn-copy:hover { background: rgba(37,211,102,.15); }
.btn-copy.copied { background: rgba(37,211,102,.2); }

/* ─── Responsive & Mobile Enhancements ──────────────── */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.menu-toggle-btn:hover { background: var(--bg-hover); }

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
}
.sidebar-close-btn:hover { color: var(--text-primary); }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

@media (max-width: 1024px) {
  .hero { padding-top: 100px; gap: 2rem; }
  .pricing-grid { max-width: 100%; }
}

@media (max-width: 900px) {
  /* Layout Base */
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; width: 100%; }
  .hero-cta .btn { flex: 1; min-width: 220px; justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .hero-visual { order: -1; width: 100%; }
  .phone-mockup { width: 100%; max-width: 290px; }
  
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 1.5rem 1rem; }
  
  /* Navigation */
  .nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
  
  /* Dashboard Mobile Drawer */
  .menu-toggle-btn { display: flex; }
  .sidebar-close-btn { display: block; }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  
  .dashboard-main { margin-left: 0; width: 100%; }
  .topbar { padding: 1rem 1.25rem; }
  .topbar-title { font-size: 1.2rem; }
  .topbar-sub { font-size: 0.8rem; }
  
  .dash-section { padding: 1.25rem 1rem; }
  
  /* Cards & Forms Responsivos */
  .links-grid { grid-template-columns: 1fr; }
  .link-card { padding: 1rem; }
  .link-card-header { flex-direction: column; gap: 6px; }
  .link-card-actions { width: 100%; }
  .link-card-actions .btn, .link-card-actions .btn-copy { flex: 1; min-width: 80px; text-align: center; justify-content: center; }
  
  .card-form { padding: 1rem; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .form-group { min-width: 100%; }
  
  /* Public Shortener Box */
  .public-shortener-box { padding: 1.25rem 1rem !important; }
  #public-shortener-form { flex-direction: column; }
  #public-shortener-form input, #public-shortener-form button { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: -0.5rem 0; }
  
  .number-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .number-item button { align-self: flex-end; }
}
