
:root {
  --bg: #030711;
  --bg2: #07101f;
  --card: rgba(10, 18, 33, .86);
  --card2: rgba(14, 24, 42, .72);
  --stroke: rgba(71, 128, 255, .18);
  --text: #f5f8ff;
  --muted: #9fb0d8;
  --blue: #2e7cff;
  --blue2: #0f61ff;
  --green: #2dd584;
  --yellow: #ffbd3d;
  --red: #ff5d73;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 30px rgba(17, 99, 255, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(46,124,255,.18), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(0,98,255,.16), transparent 28%),
    linear-gradient(180deg, #02050c 0%, #06101d 42%, #030711 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,.7), transparent 85%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.glow, .card, .metric, .panel, .auth-card, .table-card, .modal-card {
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.soft { background: var(--card2); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(3, 7, 17, .64);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .06em; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.brand.small img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 26px; color: #d5e0ff; }
.nav a:hover { color: white; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue2)); box-shadow: 0 14px 34px rgba(17,99,255,.35); }
.btn-secondary { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: #d9e5ff; }
.btn-danger { background: rgba(255,93,115,.14); color: #ffd5db; border: 1px solid rgba(255,93,115,.22); }
.btn-small { padding: 9px 12px; font-size: .88rem; }
.btn-full { width: 100%; }
.badge, .pill, .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .78rem;
  font-weight: 800;
  color: #a9caff;
  background: rgba(46,124,255,.10);
  border: 1px solid rgba(46,124,255,.20);
  text-transform: uppercase;
  letter-spacing: .045em;
}
.status.active, .tag.green { color: #c7ffdf; background: rgba(45,213,132,.14); border-color: rgba(45,213,132,.18); }
.status.pending, .tag.yellow { color: #ffebb9; background: rgba(255,189,61,.14); border-color: rgba(255,189,61,.2); }
.status.suspended, .tag.red { color: #ffd5db; background: rgba(255,93,115,.14); border-color: rgba(255,93,115,.2); }
.tag.blue { color: #d7e7ff; background: rgba(46,124,255,.16); border-color: rgba(46,124,255,.18); }
.tag.gray { color: #dce4f7; background: rgba(159,176,216,.12); border-color: rgba(159,176,216,.16); }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 68px 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .94; letter-spacing: -.065em; margin: 18px 0; }
.hero h1 span, .blue-text { color: var(--blue); }
.hero p, .muted { color: var(--muted); line-height: 1.7; }
.hero p { font-size: 1.18rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.mini-list { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; color: #c6d6f8; }
.mini-list li::before { content: "✓"; color: var(--blue); margin-right: 8px; }
.hero-card { padding: 24px; }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mock-metric { padding: 16px; }
.mock-metric strong { display: block; font-size: 2rem; margin: 6px 0; }
.mock-chart { height: 250px; margin-top: 16px; position: relative; overflow: hidden; background:
  linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
  rgba(4,10,20,.68);
  background-size: 100% 50px, 64px 100%;
}
.mock-chart::before, .mock-chart::after {
  content: "";
  position: absolute;
  left: 6%;
  width: 88%;
  height: 4px;
  border-radius: 999px;
  transform: skewY(-8deg);
}
.mock-chart::before { top: 35%; border-top: 4px dashed rgba(180,195,225,.36); }
.mock-chart::after { top: 62%; border-top: 5px solid var(--blue); box-shadow: 0 0 22px rgba(46,124,255,.5); }
.qr-mini { position: absolute; right: -18px; bottom: -24px; width: 174px; padding: 16px; text-align: center; }
.qr, .qr-large {
  position: relative;
  margin: 14px auto;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 10px, transparent 10px) 0 0/22px 22px,
    linear-gradient(#fff 10px, transparent 10px) 0 0/22px 22px,
    linear-gradient(90deg, transparent 12px, #fff 12px) 0 0/22px 22px,
    linear-gradient(transparent 12px, #fff 12px) 0 0/22px 22px,
    #fff;
  overflow: hidden;
}
.qr { width: 112px; height: 112px; }
.qr-large { width: 270px; height: 270px; }
.qr::after, .qr-large::after {
  content: "WA";
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-weight: 900;
  display: grid;
  place-items: center;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(37,211,102,.45);
}
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 20px; margin-top: 18px; text-align: center; }
.compare strong { display: block; font-size: 2.1rem; }
.vs { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,124,255,.14); color: #accdff; border: 1px solid rgba(46,124,255,.3); font-weight: 900; }

.section { padding: 78px 0; }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head h2 { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.04em; }
.grid-3, .grid-2, .pricing { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.step, .feature, .price-card { padding: 24px; }
.step-num { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue2)); font-weight: 900; margin-bottom: 14px; }
.feature h3, .step h3, .price-card h3 { margin-top: 0; }
.price-card.featured { background: linear-gradient(180deg, rgba(46,124,255,.17), rgba(10,18,33,.86)); border-color: rgba(46,124,255,.3); }
.price { font-size: 2.6rem; font-weight: 900; display: block; margin: 12px 0; }
.price span { color: var(--muted); font-size: 1rem; font-weight: 600; }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); margin: 22px 0; }
.price-card li::before { content: "✓"; color: var(--blue); margin-right: 8px; }

.footer { padding: 36px 0 56px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); }

.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: min(460px, calc(100% - 28px)); padding: 28px; }
.auth-card h1 { margin: 18px 0 8px; }
.form { display: grid; gap: 14px; margin-top: 22px; }
label span { display: block; color: #c7d5f7; font-size: .9rem; margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  color: white;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(46,124,255,.55); box-shadow: 0 0 0 4px rgba(46,124,255,.10); }
.notice { padding: 13px 14px; border-radius: 14px; background: rgba(46,124,255,.12); color: #d8e7ff; border: 1px solid rgba(46,124,255,.18); }
.notice.error { background: rgba(255,93,115,.12); color: #ffd9df; border-color: rgba(255,93,115,.18); }
.notice.success { background: rgba(45,213,132,.12); color: #ceffdf; border-color: rgba(45,213,132,.18); }

.app-shell { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; padding: 18px; min-height: 100vh; }
.sidebar { position: sticky; top: 18px; height: calc(100vh - 36px); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.side-nav { display: grid; gap: 8px; }
.side-nav button, .side-nav a {
  border: 0;
  width: 100%;
  text-align: left;
  color: #c8d7f7;
  background: transparent;
  padding: 13px 14px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
}
.side-nav button.active, .side-nav button:hover, .side-nav a:hover { background: rgba(46,124,255,.14); color: white; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }

.main { padding: 6px 0 40px; }
.app-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.app-top h1 { margin: 0 0 7px; font-size: 2.2rem; letter-spacing: -.04em; }
.user-chip { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(46,124,255,.55), rgba(255,255,255,.08)); font-weight: 900; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { padding: 18px; }
.metric strong { display: block; font-size: 2rem; margin: 6px 0; }
.metric small { color: var(--green); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .7fr); gap: 18px; align-items: start; }
.panel { padding: 20px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.dashboard-chart { height: 260px; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-card { padding: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; font-size: .9rem; }
th { color: #bdd0f2; }
.tag { padding: 7px 10px; border-radius: 999px; display: inline-flex; font-size: .78rem; font-weight: 800; border: 1px solid transparent; }
.wa-box { text-align: center; }
.wa-box .qr-large { margin-top: 18px; }
.instructions { list-style: decimal; color: var(--muted); line-height: 1.8; padding-left: 22px; text-align: left; }
.hidden { display: none !important; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-card { width: min(560px, 100%); padding: 24px; }
.modal-card h2 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs button { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #d9e5ff; border-radius: 999px; padding: 10px 14px; }
.admin-tabs button.active { background: rgba(46,124,255,.16); color: white; border-color: rgba(46,124,255,.25); }

@media (max-width: 1120px) {
  .hero, .content-grid { grid-template-columns: 1fr; }
  .mock-row, .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .app-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .header-inner { height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .hero { padding: 42px 0; }
  .mock-row, .metrics, .grid-3, .grid-2, .pricing, .cards-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
  .compare { grid-template-columns: 1fr; }
  .qr-mini { position: static; width: 100%; margin-top: 18px; }
}


.qr-img {
  width: 270px;
  max-width: 100%;
  border-radius: 22px;
  margin: 18px auto;
  background: #fff;
  padding: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35), 0 0 30px rgba(46, 124, 255, .14);
}

.qr-large.hidden, .qr.hidden {
  display: none;
}
