:root{
  --bg:#f3f6fb;
  --bg-strong:#e9eefb;
  --card:#ffffff;
  --card-soft:#f8fbff;
  --text:#172033;
  --muted:#667085;
  --primary:#3b82f6;
  --primary-dark:#1d4ed8;
  --success:#16a34a;
  --warning:#f97316;
  --danger:#dc2626;
  --border:#dbe4f0;
  --shadow:0 18px 45px rgba(31,41,55,.10);
  --radius:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,.09), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:28px 20px 40px}
.nav{
  position:sticky;top:0;z-index:20;
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  padding:16px 20px;
  background:rgba(17,24,39,.90);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 30px rgba(15,23,42,.18);
}
.nav a{
  color:#fff;
  text-decoration:none;
  padding:10px 14px;
  border-radius:999px;
  transition:.2s ease;
  font-weight:600;
}
.nav a:hover,.nav a.active{background:rgba(255,255,255,.14)}
.page-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  margin:6px 0 20px;
}
.eyebrow{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
h1,h2,h3{margin:0 0 12px}
h1{font-size:clamp(28px,4vw,42px);line-height:1.05}
h2{font-size:24px}
h3{font-size:20px}
p{line-height:1.6}
.card{
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  border:1px solid rgba(219,228,240,.9);
  border-radius:var(--radius);
  padding:24px;
  margin:18px 0;
  box-shadow:var(--shadow);
}
.card.product{padding:18px}
.hero-card{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:center;
  overflow:hidden;
}
.hero-visual{
  min-height:220px;
  border-radius:18px;
  background:
    linear-gradient(135deg, rgba(59,130,246,.16), rgba(14,165,233,.10)),
    linear-gradient(135deg, #eef6ff, #fff7ed);
  border:1px solid rgba(148,163,184,.12);
}
.auth-shell{max-width:560px;margin:40px auto}
.muted{color:var(--muted)}
.small{font-size:13px}
.btn{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:700;
  box-shadow:0 12px 26px rgba(37,99,235,.25);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(37,99,235,.28)}
.btn.red{background:linear-gradient(135deg,#ef4444,#b91c1c);box-shadow:0 12px 26px rgba(220,38,38,.22)}
.btn.green{background:linear-gradient(135deg,#22c55e,#15803d);box-shadow:0 12px 26px rgba(22,163,74,.24)}
.btn.gray{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 12px 26px rgba(100,116,139,.22)}
.btn.orange{background:linear-gradient(135deg,#fb923c,#ea580c);box-shadow:0 12px 26px rgba(249,115,22,.24)}
button[disabled],.btn[disabled]{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}
input,textarea,select{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  margin:7px 0 14px;
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease;
}
input:focus,textarea:focus,select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
textarea{min-height:120px;resize:vertical}
label{display:block;font-weight:700;margin-top:6px;margin-bottom:4px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.two-col{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.product img{
  width:100%;height:190px;object-fit:cover;border-radius:16px;background:#eef2f7;
  margin-bottom:12px;
}
.alert,.success,.danger,.danger-soft{
  padding:16px 18px;
  border-radius:16px;
  border:1px solid transparent;
  margin:0 0 18px;
}
.alert{background:#fff7ed;border-color:#fed7aa}
.success{background:#ecfdf3;border-color:#bbf7d0}
.danger{background:#fef2f2;border-color:#fecaca}
.danger-soft{background:linear-gradient(180deg,#fff5f5,#fff);border-color:#fecaca}
.steps{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
.step{font-size:12px;padding:7px 10px;border-radius:999px;background:#e5e7eb;color:#374151;font-weight:700}
.step.done{background:#16a34a;color:#fff}
.step.wait{background:#e5e7eb;color:#374151}
.timer-box{margin:14px 0}
.countdown{margin-top:8px;font-size:30px;font-weight:800;letter-spacing:1px;color:#9a3412}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
}
td,th{border-bottom:1px solid #e8eef6;padding:14px 12px;text-align:left;vertical-align:top}
th{background:#f8fbff;color:#334155;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
tr:last-child td{border-bottom:0}
.modal{
  display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;
  background:rgba(15,23,42,.58);backdrop-filter:blur(4px)
}
.modal-content{
  background:#fff;margin:7% auto;padding:24px;border-radius:22px;max-width:560px;
  box-shadow:0 30px 50px rgba(15,23,42,.26)
}
.close{float:right;font-size:28px;cursor:pointer;color:#64748b}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}
.stat-card h2{font-size:34px;margin-bottom:6px}
.list-inline{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.list-inline > *{flex:0 0 auto}
.list-inline input,.list-inline select{width:auto;margin:0}
.category-pills{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.category-pill{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:999px;background:#eef4ff;color:#1e3a8a;font-weight:700
}
.category-pill b{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#fff;color:#2563eb
}
.catalog-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}
.category-sidebar{
  position:sticky;top:90px;
  display:flex;flex-direction:column;gap:10px;
  padding:14px;border:1px solid var(--border);border-radius:18px;background:#f8fbff
}
.category-link{
  width:100%;border:1px solid transparent;background:#fff;color:var(--text);
  border-radius:14px;padding:12px 14px;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;font-weight:700;box-shadow:none
}
.category-link span{display:flex;align-items:center;gap:10px;text-align:left}
.category-thumb{
  width:34px;height:34px;border-radius:10px;object-fit:cover;flex:0 0 34px;
  background:#e5e7eb;border:1px solid #dbe4f0
}
.category-link b{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:30px;padding:0 8px;border-radius:999px;background:#e8eefc;color:#1d4ed8
}
.category-link.active{border-color:#93c5fd;background:#eff6ff}
.category-toolbar{margin-bottom:10px}
.catalog-content{min-width:0}
@media(max-width:820px){
  .hero-card{grid-template-columns:1fr}
  .page-head{flex-direction:column}
  table{display:block;overflow-x:auto}
  .catalog-layout{grid-template-columns:1fr}
  .category-sidebar{position:static}
}
@media(max-width:700px){
  .wrap{padding:16px 12px 28px}
  .nav{padding:12px}
  .nav a{padding:9px 12px}
  .modal-content{margin:18% 12px}
}
