
:root {
  --bg:#f6f7f8;
  --surface:#fff;
  --surface-soft:#f0f2f4;
  --dark:#111214;
  --text:#111214;
  --muted:#686d74;
  --border:#e1e4e8;
  --shadow:0 18px 50px rgba(17,18,20,.10);
  --radius:24px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  min-height:100vh;color:var(--text);
  background:
    radial-gradient(circle at 8% 10%,rgba(17,18,20,.04),transparent 25%),
    linear-gradient(180deg,#fff 0%,#f6f7f8 50%,#f1f2f4 100%);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.admin-wrap{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:34px 0 70px}
.admin-top{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:26px;padding:16px 18px;border:1px solid var(--border);
  border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 8px 22px rgba(17,18,20,.05)
}
.admin-brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.admin-brand img{width:36px;height:36px;border-radius:9px;object-fit:cover}
.admin-actions{display:flex;gap:9px;flex-wrap:wrap}
.btn{
  min-height:44px;padding:0 17px;border-radius:999px;border:1px solid #d8dce0;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:#fff;color:#111214;text-decoration:none;font:inherit;font-size:.78rem;
  font-weight:800;letter-spacing:.03em;cursor:pointer
}
.btn:hover{border-color:#aeb4bb}
.btn-dark{background:#111214;color:#fff;border-color:#111214}
.btn-danger{color:#8b3f3f}
.hero-admin{
  padding:34px;border-radius:30px;color:#fff;margin-bottom:24px;
  background:radial-gradient(circle at 90% 10%,rgba(255,255,255,.1),transparent 25%),linear-gradient(135deg,#17191c,#0b0c0e);
  box-shadow:0 24px 55px rgba(17,18,20,.16)
}
.hero-admin small{display:block;margin-bottom:10px;color:rgba(255,255,255,.55);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hero-admin h1{font-size:clamp(2.2rem,5vw,4.7rem);line-height:.92;letter-spacing:-.05em;margin-bottom:13px}
.hero-admin p{max-width:720px;color:rgba(255,255,255,.66);line-height:1.7}
.grid{display:grid;grid-template-columns:1.35fr .65fr;gap:22px;align-items:start}
.card{background:#fff;border:1px solid var(--border);border-radius:26px;box-shadow:0 10px 30px rgba(17,18,20,.06);overflow:hidden}
.card-head{padding:22px 24px;border-bottom:1px solid #eceef0;display:flex;align-items:center;justify-content:space-between;gap:14px}
.card-head h2{font-size:1.25rem;letter-spacing:-.02em}
.card-body{padding:22px 24px}
.flash{margin-bottom:20px;padding:14px 16px;border-radius:15px;font-size:.9rem;font-weight:700}
.flash.success{background:#edf6ef;color:#376449;border:1px solid #cee4d4}
.flash.error{background:#faeeee;color:#874242;border:1px solid #eccfcf}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{padding:13px 10px;text-align:left;border-bottom:1px solid #eceef0;vertical-align:middle}
th{color:#858a91;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase}
td{font-size:.88rem}
.product-mini{display:flex;align-items:center;gap:12px;min-width:210px}
.product-mini img{width:58px;height:58px;object-fit:contain;border-radius:13px;background:#f4f5f6;border:1px solid #e8eaed}
.product-mini strong{display:block;margin-bottom:4px}
.product-mini small{color:#8b9097}
.field{display:grid;gap:7px;margin-bottom:16px}
.field label{font-size:.76rem;font-weight:800;color:#555b62}
.field input,.field textarea,.field select{
  width:100%;min-height:46px;padding:11px 13px;border:1px solid #d9dde1;border-radius:13px;background:#fff;color:#111214;font:inherit
}
.field textarea{min-height:110px;resize:vertical;line-height:1.55}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:#8f969e;box-shadow:0 0 0 3px rgba(17,18,20,.06)}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.input-small{width:105px!important}
.stock-input{width:90px!important}
.quick-form td input{min-height:40px;padding:8px 9px;border-radius:11px;border:1px solid #d9dde1;font:inherit}
.note{padding:13px 14px;border-radius:14px;background:#f5f6f7;border:1px solid #e5e8eb;color:#686d74;font-size:.78rem;line-height:1.55}
.preview{width:110px;height:110px;padding:8px;object-fit:contain;border-radius:17px;background:#f6f7f8;border:1px solid #e2e5e8}
.checkbox{display:flex;align-items:center;gap:9px;font-size:.85rem;font-weight:700}
.checkbox input{width:18px;height:18px}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(470px,100%);padding:30px;border-radius:28px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow)}
.login-logo{width:58px;height:58px;margin-bottom:20px;border-radius:15px;object-fit:cover}
.login-card h1{font-size:2rem;letter-spacing:-.04em;margin-bottom:8px}
.login-card>p{color:var(--muted);line-height:1.65;margin-bottom:24px}
.login-foot{margin-top:18px;color:#8a8f96;font-size:.75rem;line-height:1.5}
.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.67rem;font-weight:800}
.status.on{background:#edf6ef;color:#3e6c4d}
.status.off{background:#f5eeee;color:#8a4a4a}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap}
.inline-actions form{display:inline}
@media(max-width:920px){.grid{grid-template-columns:1fr}.row-3{grid-template-columns:1fr 1fr}.admin-top{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.admin-wrap{width:min(100% - 18px,1180px);padding-top:12px}.hero-admin{padding:25px 20px;border-radius:23px}.card-head,.card-body{padding-left:16px;padding-right:16px}.row-2,.row-3{grid-template-columns:1fr}.login-card{padding:24px 18px}.btn{width:100%}.admin-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}}
