:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #111827;
  --primary2: #2563eb;
  --danger: #b91c1c;
  --success: #047857;
  --border: #e2e8f0;
  --shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--soft); }
a { color: inherit; }
.public-body { min-height: 100vh; background: radial-gradient(circle at top left, #334155, #0f172a 45%, #020617); color: white; padding: 32px; }
.hero { max-width: 1120px; margin: 0 auto; min-height: calc(100vh - 64px); display: grid; place-items: center; }
.hero-card, .auth-card, .install-card { width: min(100%, 960px); background: rgba(255,255,255,.96); color: var(--text); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.auth-card, .install-card { max-width: 560px; margin: 40px auto; }
.hero h1 { font-size: clamp(36px, 6vw, 72px); line-height: .95; margin: 18px 0; max-width: 860px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 720px; }
.pill { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; background: var(--soft); color: var(--muted); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; cursor: pointer; background: #e2e8f0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); }
.btn.primary { background: var(--primary); color: white; }
.btn.ghost { background: white; border: 1px solid var(--border); }
.btn.danger { background: #fee2e2; color: var(--danger); }
.feature-grid, .cards, .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.feature-grid div, .stat-card, .price-card, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.feature-grid span { display: block; color: var(--muted); margin-top: 8px; }
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: #020617; color: white; padding: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 18px; margin-bottom: 30px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: white; color: #020617; border-radius: 14px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a { color: #cbd5e1; text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.sidebar a.active, .sidebar a:hover { background: #1e293b; color: white; }
.nav-label { color: #64748b; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin: 16px 0 4px; }
.content { padding: 24px; min-width: 0; }
.topbar { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar span { display: block; color: var(--muted); font-size: 13px; }
.menu-btn { display: none; }
.flash { margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: #dbeafe; color: #1e3a8a; }
.flash.success { background: #dcfce7; color: var(--success); }
.flash.danger { background: #fee2e2; color: var(--danger); }
.panel { margin-bottom: 20px; }
.panel h2, .price-card h3 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-form { display: grid; gap: 14px; }
.grid-form.two-col { grid-template-columns: repeat(2, 1fr); }
.grid-form.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 800; color: #334155; }
label.check { display: flex; gap: 10px; align-items: center; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font: inherit; background: white; color: var(--text); }
textarea { resize: vertical; }
.muted { color: var(--muted); }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong { font-size: 36px; display: block; margin-top: 8px; }
.list { display: grid; gap: 10px; }
.list-item { padding: 14px; background: var(--soft); border-radius: 14px; }
.list-item span { color: var(--muted); display: block; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-card strong { font-size: 32px; display: block; }
.price-card strong span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 20; left: -290px; transition: .2s ease; width: 280px; }
  .sidebar.open { left: 0; }
  .menu-btn { display: inline-flex; border: 1px solid var(--border); background: white; border-radius: 10px; padding: 8px 12px; font-weight: 800; }
  .feature-grid, .cards, .price-grid, .split, .grid-form.two-col, .grid-form.compact { grid-template-columns: 1fr; }
  .public-body { padding: 16px; }
  .hero-card, .auth-card, .install-card { padding: 24px; border-radius: 20px; }
}
