:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-2:#eef4ff;
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.08);
  --shadow:0 16px 60px rgba(15,23,42,.08);
  --shadow-soft:0 10px 28px rgba(15,23,42,.06);
  --primary:#1d4ed8;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(191,219,254,.18), transparent 26%),
    var(--bg);
}
.hidden{display:none!important}
.glass{
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  border-radius:28px;
}
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  padding:18px;
}
.sidebar{
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:14px}
.brand-mark{
  width:52px;height:52px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#0f172a,#2563eb);
  color:#fff;font-weight:800;font-size:1.2rem
}
.brand-name{font-weight:800}
.brand-sub{color:var(--muted);font-size:.92rem}
.menu{display:grid;gap:10px;margin-top:26px}
.menu-btn,.logout-btn{
  min-height:48px;border:none;border-radius:16px;padding:0 16px;text-align:left;
  background:#fff;color:var(--text);font-weight:700;cursor:pointer;
  box-shadow:var(--shadow-soft)
}
.menu-btn.active{background:linear-gradient(135deg,var(--primary),#60a5fa);color:#fff}
.logout-btn{margin-top:18px}
.main{padding:6px}
.login-wrap,.admin-wrap{min-height:calc(100vh - 36px)}
.login-wrap{display:grid;place-items:center}
.login-card{width:min(100%,520px);padding:34px}
.eyebrow{
  display:inline-flex;padding:9px 13px;border-radius:999px;
  background:#eef4ff;color:#1d4ed8;font-weight:800;font-size:.82rem
}
h1,h2,h3{margin:14px 0 10px}
.muted{color:var(--muted)}
.login-form,.grid{display:grid;gap:16px}
.grid{grid-template-columns:1fr 1fr}
.grid .full{grid-column:1 / -1}
label{display:grid;gap:8px}
label span{font-size:.92rem;font-weight:700;color:#334155}
input{
  min-height:52px;border-radius:16px;border:1px solid rgba(148,163,184,.25);
  background:#fff;padding:0 14px;font:inherit;color:var(--text)
}
.btn{
  min-height:50px;border:none;border-radius:16px;padding:0 18px;font-weight:800;cursor:pointer
}
.btn.primary{background:linear-gradient(135deg,var(--primary),#3b82f6);color:#fff}
.btn.secondary{background:#fff;color:var(--text);box-shadow:var(--shadow-soft)}
.status{color:var(--muted);font-size:.95rem}
.header{
  display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px
}
.badge{
  min-width:110px;min-height:44px;padding:0 16px;border-radius:14px;
  background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-soft);font-weight:800
}
.cards{display:grid;gap:16px}
.cards-5{grid-template-columns:repeat(5,1fr)}
.card{padding:24px}
.card-label{color:var(--muted);margin-bottom:8px}
.card-value{font-size:1.8rem;font-weight:800}
.tab{display:none}
.tab.active{display:block}
.section-head{margin-bottom:18px}
.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.tariff-editor{display:grid;gap:14px}
.tariff-row{
  display:grid;
  grid-template-columns:1.25fr .75fr .8fr .8fr .7fr .7fr auto;
  gap:10px;
  align-items:end;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.tariff-row button,.mini-btn{
  min-height:44px;border:none;border-radius:14px;padding:0 14px;cursor:pointer;font-weight:800
}
.tariff-row .remove,.btn-danger{background:#fee2e2;color:#991b1b}
.btn-light{background:#eef4ff;color:#1d4ed8}
.table-wrap{overflow:auto}
table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
}
th,td{
  padding:14px 12px;
  border-bottom:1px solid rgba(15,23,42,.06);
  text-align:left;
  vertical-align:top
}
th{background:#f8fbff}
.wheels-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:20px
}
.wheel-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  box-shadow:var(--shadow-soft)
}
.wheel-preview{
  width:100%;
  height:220px;
  object-fit:contain;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid rgba(15,23,42,.06)
}
.wheel-meta{display:grid;gap:6px;margin-top:12px}
.wheel-title{font-weight:800}
.wheel-sub{color:var(--muted)}
.wheel-actions{display:flex;gap:10px;margin-top:14px}
.wheel-actions button{
  min-height:42px;border:none;border-radius:14px;padding:0 14px;cursor:pointer;font-weight:800
}
@media (max-width: 1300px){
  .cards-5,.wheels-grid,.grid,.tariff-row{grid-template-columns:1fr}
  .shell{grid-template-columns:1fr}
}
