:root {
  color-scheme: dark;
  --bg: #08070f;
  --panel: #11101a;
  --panel-2: #171522;
  --line: rgba(255,255,255,.10);
  --text: #f7f4ff;
  --muted: #a9a3b8;
  --brand: #ff244c;
  --brand-2: #00e5ff;
  --good: #40f59a;
  --warn: #ffd166;
  --radius: 22px;
  --shadow: 0 14px 38px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(255,36,76,.22), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(0,229,255,.12), transparent 22rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 99;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 12px;
}
.skip-link:focus { top: 12px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(8,7,15,.88);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { border-radius: 13px; object-fit: cover; border: 1px solid var(--line); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.desktop-nav { display: flex; gap: 8px; }
.desktop-nav a {
  color: var(--muted); padding: 10px 14px; border-radius: 999px;
}
.desktop-nav a.active, .desktop-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.app-shell { width: min(1120px, 100%); margin: 0 auto; padding: 20px clamp(16px, 4vw, 42px) 110px; }
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center;
  min-height: 420px;
}
.hero-card, .panel, .product-card, .modal-card, .admin-box {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(22px, 4vw, 42px); position: relative; overflow: hidden; }
.hero-card::after {
  content: ""; position: absolute; inset: auto -50px -80px auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,36,76,.22), transparent 68%);
  pointer-events: none;
}
.eyebrow { color: var(--brand-2); font-weight: 800; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 8vw, 76px); line-height: .88; margin: 12px 0 18px; letter-spacing: -.06em; }
h2 { font-size: clamp(26px, 5vw, 42px); line-height: 1; margin-bottom: 12px; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; }
p { color: var(--muted); line-height: 1.65; }
.hero-actions, .row-actions, .toolbar, .form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 999px;
  color: var(--text); background: rgba(255,255,255,.08); transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), #ff7a3d); color: white; box-shadow: 0 12px 28px rgba(255,36,76,.22); }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.danger { background: rgba(255,36,76,.12); color: #ffb8c5; border-color: rgba(255,36,76,.26); }
.btn.small { min-height: 36px; padding: 8px 12px; font-size: 14px; }
.phone-preview { padding: 14px; }
.phone-preview .screen {
  border-radius: 30px; min-height: 440px; padding: 14px;
  background: #0c0b13; border: 1px solid rgba(255,255,255,.12); overflow: hidden;
}
.mini-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.mini-chip, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 12px; }
.badge.ready { color: #14171a; background: var(--good); font-weight: 800; }
.badge.sold { color: #ffdce4; background: rgba(255,36,76,.18); }
.mini-product { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 10px; margin: 10px 0; border-radius: 18px; background: rgba(255,255,255,.055); }
.mini-product img { width: 74px; height: 74px; object-fit: cover; border-radius: 16px; }
.section { margin: 26px 0; }
.panel { padding: clamp(18px, 3vw, 28px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.step b { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgba(0,229,255,.12); color: var(--brand-2); margin-bottom: 12px; }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.04); }
summary { cursor: pointer; font-weight: 750; }
.toolbar { justify-content: space-between; margin: 14px 0 18px; }
.field { display: grid; gap: 7px; flex: 1 1 180px; }
label { color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%; color: var(--text); background: rgba(255,255,255,.07);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
}
textarea { resize: vertical; min-height: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { overflow: hidden; contain: content; }
.product-media { aspect-ratio: 4/3; background: rgba(255,255,255,.05); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; }
.product-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.product-title h3 { font-size: 18px; line-height: 1.2; }
.price { color: white; font-weight: 900; font-size: 18px; }
.notes { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
.notes li { color: var(--muted); font-size: 12px; border: 1px solid var(--line); padding: 6px 8px; border-radius: 999px; }
.empty-state, .skeleton { padding: 22px; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.skeleton { min-height: 260px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.075), rgba(255,255,255,.04)); background-size: 240% 100%; animation: shimmer 1.1s linear infinite; }
.modal {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 18px;
  background: rgba(0,0,0,.62);
}
.modal.open { display: grid; }
.modal-card { width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 18px; }
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rating-summary { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: stretch; }
.rating-big { display: grid; place-items: center; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.rating-big strong { font-size: 54px; line-height: 1; }
.rating-list { display: grid; gap: 10px; }
.review { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,36,76,.5), rgba(0,229,255,.35)); font-weight: 900; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-wrap { display: grid; gap: 16px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.admin-box { padding: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.toast {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%) translateY(20px);
  opacity: 0; pointer-events: none; z-index: 80; min-width: min(92vw, 420px);
  padding: 12px 16px; border-radius: 16px; color: white; background: #16131f; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bottom-nav {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 4px;
  width: min(420px, calc(100vw - 24px)); padding: 8px;
  background: rgba(16,15,25,.94); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.bottom-nav a { display: grid; place-items: center; gap: 3px; padding: 8px 6px; color: var(--muted); border-radius: 17px; font-size: 12px; }
.bottom-nav a span { font-size: 18px; line-height: 1; }
.bottom-nav a.active { color: var(--text); background: rgba(255,255,255,.09); }
.wa-float {
  position: fixed; right: 18px; bottom: 88px; z-index: 31; width: 62px; height: 62px; padding: 5px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(18,17,25,.82); box-shadow: var(--shadow);
}
.wa-float img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.hidden { display: none !important; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: grid; }
  .app-shell { padding-bottom: 118px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .phone-preview { order: -1; }
  .phone-preview .screen { min-height: 320px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .rating-summary { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { padding: 12px 16px; }
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .hero-card, .panel { border-radius: 20px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .toolbar { display: grid; }
  .wa-float { bottom: 92px; width: 58px; height: 58px; right: 14px; }
  h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
