:root {
  --bg: #070d18;
  --bg-2: #0c1526;
  --panel: #101a2e;
  --panel-2: #152038;
  --line: rgba(140, 180, 230, 0.12);
  --text: #e8f1ff;
  --muted: #8ea0be;
  --mint: #3ef0b0;
  --mint-dim: rgba(62, 240, 176, 0.14);
  --blue: #6ea8ff;
  --amber: #ffb020;
  --orange: #ff8a3d;
  --rose: #ff5d6c;
  --gray: #6b7c99;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --sidebar: 260px;
  --font: "Sora", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(62, 240, 176, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(110, 168, 255, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 600; cursor: pointer;
  background: var(--mint); color: #062016; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn.danger { background: var(--rose); color: #fff; }
.btn.ghost.danger {
  background: transparent; color: var(--rose);
  border: 1px solid rgba(255, 93, 108, 0.45);
}
.btn.warn { background: var(--amber); color: #2a1a00; }
.btn.blue { background: var(--blue); color: #061018; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.input, select, textarea {
  width: 100%; background: #0b1424; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: var(--mint); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; }
.grid { display: grid; gap: 16px; }
.hidden { display: none !important; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--mint-dim); color: var(--mint);
}
.pill.yellow { background: rgba(255,176,32,.14); color: var(--amber); }
.pill.blue { background: rgba(110,168,255,.14); color: var(--blue); }
.pill.orange { background: rgba(255,138,61,.14); color: var(--orange); }
.pill.red { background: rgba(255,93,108,.14); color: var(--rose); }
.pill.gray { background: rgba(107,124,153,.16); color: #c5d0e4; }

/* Landing */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 7vw; position: sticky; top: 0; backdrop-filter: blur(16px);
  background: rgba(7,13,24,.7); border-bottom: 1px solid var(--line); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.hero { padding: 72px 7vw 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; }
.hero-card { padding: 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.kpi { background: var(--panel-2); border-radius: 14px; padding: 12px; }
.kpi b { display: block; font-size: 20px; }
.features { padding: 20px 7vw 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature h3 { margin: 0 0 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--mint); }

.landing .land-nav { gap: 12px; }
.landing .land-nav-actions { flex-wrap: wrap; justify-content: flex-end; }
.landing .land-lang { margin: 0; }
.land-hero {
  text-align: center;
  padding: 72px 6vw 36px;
  max-width: 760px;
  margin: 0 auto;
}
.land-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  margin: 14px 0 12px;
  letter-spacing: -.03em;
}
.land-lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto 28px;
  max-width: 520px;
  line-height: 1.45;
}
.land-cta { justify-content: center; flex-wrap: wrap; }
.land-shot {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 6vw 48px;
}
.land-shot img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.land-features {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 6vw 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.land-plans-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 6vw 48px;
  text-align: center;
}
.land-plans-wrap h2 { margin: 0 0 18px; }
.land-plans .plan-card { min-height: auto; align-items: center; text-align: center; }
.land-foot {
  text-align: center;
  padding: 12px 6vw 48px;
}

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); padding: 28px; }
.auth-card h1 { margin: 8px 0 6px; }
.logo-lg { width: 48px; height: 48px; border-radius: 14px; }

/* App shell */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); padding: 18px 14px; background: rgba(8,14,26,.9);
  position: sticky; top: 0; height: 100vh;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px 12px;
  border-radius: 12px; text-decoration: none; margin-bottom: 4px;
}
.side-nav a.active, .side-nav a:hover { background: var(--mint-dim); color: var(--text); text-decoration: none; }
.main { padding: 22px 26px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.topbar h1 { margin: 0; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.toast {
  position: fixed; right: 18px; bottom: 18px; background: var(--panel-2); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 12px; display: none; z-index: 50; max-width: 360px;
}
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; place-items: center; z-index: 40;
}
.modal { width: min(520px, 92vw); padding: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); cursor: pointer; background: transparent;
}
.tab.active { background: var(--mint-dim); color: var(--mint); border-color: transparent; }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; height: 220px; object-fit: contain; }
.pairing {
  font-size: 32px; letter-spacing: 6px; font-weight: 700; color: var(--mint);
  background: #0b1424; padding: 12px 16px; border-radius: 12px; display: inline-block;
}
.switch { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bar { height: 8px; background: #0b1424; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--blue)); }
.chart { width: 100%; height: 160px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bot-card-actions { justify-content: flex-end; margin-top: 12px; }
.bot-card a:hover { text-decoration: none; }
.lang-switch {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 18px 8px 8px;
}
.lang-switch button {
  min-width: 42px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 0;
}
.lang-switch button.active, .lang-switch button:hover {
  background: var(--mint-dim); color: var(--mint); border-color: transparent;
}
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); color: var(--text);
  font-size: 22px; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50;
}
.cmd-row { justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cmd-row span { display: flex; flex-direction: column; gap: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.plan-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.plan-card.current { outline: 2px solid var(--mint); }
.plan-price { font-size: 13px; color: var(--muted); }
html { -webkit-text-size-adjust: 100%; }
input, select, textarea { font-size: 16px; }
.table { min-width: 480px; }
.card:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero, .features, .stats, .split, .connect-grid, .land-features { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 88vw);
    height: 100vh; z-index: 60; transform: translateX(-110%);
    transition: transform .2s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .sidebar #who { position: static !important; margin-top: 24px; }
  .main { padding: 14px 14px 88px; }
  .topbar { flex-wrap: wrap; align-items: flex-start; }
  .topbar h1 { font-size: 22px; }
  .nav { padding: 12px 4vw; }
  .hero { padding: 36px 5vw 24px; }
  .features { padding: 12px 5vw 48px; }
  .qr { width: 180px; height: 180px; }
  .pairing { font-size: 22px; letter-spacing: 3px; word-break: break-all; }
  .modal { width: min(520px, 94vw); }
  .stat .value { font-size: 22px; }
}

@media (max-width: 640px) {
  .stats, .kpis, .plans-grid, .grid { grid-template-columns: 1fr !important; }
  .btn, .btn.sm { min-height: 44px; }
  .tab { min-height: 40px; }
  .row { flex-wrap: wrap; }
  .auth-card { padding: 20px; }
  .hero h1 { font-size: 32px; }
  .upgrade-cta { flex-direction: column; align-items: center; }
  .btn.paypal, .btn.whatsapp { width: min(320px, 100%); }
  .fire-banner { height: 110px; margin-left: -14px; margin-right: -14px; width: calc(100% + 28px); border-radius: 0; }
}

.upgrade-page {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.upgrade-page h1 { margin: 10px 0 8px; font-size: clamp(28px, 4vw, 42px); }
.upgrade-lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.upgrade-shots { display: grid; gap: 22px; margin: 8px 0 28px; }
.upgrade-shot { margin: 0; }
.upgrade-shot img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.upgrade-shot figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.upgrade-points {
  list-style: none;
  padding: 0;
  margin: 0 auto 18px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.upgrade-points li {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.upgrade-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}
.btn.paypal {
  background: #0070ba;
  color: #fff;
  min-width: 230px;
  padding: 14px 22px;
}
.btn.whatsapp {
  background: #25d366;
  color: #062016;
  min-width: 230px;
  padding: 14px 22px;
}
.upgrade-owner { margin: 18px auto 0; max-width: 420px; }
.fire-banner {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center bottom;
  margin: 28px 0 0;
  border-radius: 16px;
  border: 1px solid var(--line);
}
