*{box-sizing:border-box}
:root{--bg:#f4f5f7;--surface:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--dark:#111;--dark2:#292929;--okbg:#ecfdf3;--ok:#166534;--errbg:#fef2f2;--err:#991b1b;--shadow:0 12px 35px rgba(15,23,42,.07)}
html{font-size:16px}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#f8f8f9 0%,var(--bg) 100%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}
a{color:var(--text);text-decoration:none;font-weight:650;transition:.18s ease}a:hover{color:#555}
.wrap,.container{width:min(1420px,calc(100% - 32px));margin:0 auto;padding:34px 0 60px}
.top{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}
.top>div:last-child{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.top>div:last-child a{display:inline-flex;align-items:center;min-height:42px;padding:9px 14px;border-radius:10px}
.top>div:last-child a:hover{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.logo{font-size:42px;line-height:1;font-weight:950;letter-spacing:-2.5px;color:#0b0b0b}
.top .muted{margin-top:7px;font-size:15px}.muted{color:var(--muted)}
.card{background:var(--surface);border:1px solid rgba(229,231,235,.9);border-radius:22px;padding:34px;box-shadow:var(--shadow)}
h1{margin:0 0 26px;font-size:34px;line-height:1.15;letter-spacing:-1px}
h2{font-size:24px;line-height:1.2;letter-spacing:-.5px}h3{font-size:19px}p{margin:0 0 15px}
label{display:block;margin-bottom:7px;font-size:14px;font-weight:750;color:#374151}
input,select,textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #d7dbe1;border-radius:11px;background:#fff;color:var(--text);font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}
textarea{min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(17,17,17,.08)}
button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;margin-top:10px;border:0;border-radius:11px;background:var(--dark);color:#fff;font:inherit;font-weight:750;cursor:pointer;transition:.15s;box-shadow:0 5px 14px rgba(17,17,17,.12)}
button:hover{background:var(--dark2);transform:translateY(-1px)}
table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff}
th{background:#f7f7f8;color:#374151;text-align:left;font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;padding:15px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:15px 16px;border-bottom:1px solid #edf0f2;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafafa}
.price{display:flex;justify-content:flex-end;margin-top:20px;padding:18px 4px 2px;font-size:25px;font-weight:900;letter-spacing:-.5px}
.ok,.error{border-radius:13px;padding:14px 16px;margin:0 0 20px;border:1px solid}
.ok{background:var(--okbg);color:var(--ok);border-color:#bbf7d0}.error{background:var(--errbg);color:var(--err);border-color:#fecaca}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.section{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:8px 0 30px}
.stat{min-height:135px;border:1px solid var(--line);border-radius:17px;padding:21px;background:linear-gradient(145deg,#fff,#f8f8f9);box-shadow:0 5px 16px rgba(15,23,42,.04)}
.stat-label{font-size:11px;color:#6b7280;font-weight:850;letter-spacing:.06em}.stat-value{margin-top:10px;font-size:29px;line-height:1;font-weight:950;letter-spacing:-1px}.stat-sub{margin-top:9px;color:#6b7280;font-size:12px}
.badge,.status{display:inline-flex;align-items:center;min-height:29px;padding:5px 10px;border-radius:999px;background:#f1f3f5;color:#374151;font-size:12px;font-weight:800;white-space:nowrap}
.table-wrap{width:100%;overflow-x:auto;border-radius:15px}.order-actions a{margin-right:8px}.note{margin-top:18px;padding:15px 17px;border:1px solid var(--line);border-radius:13px;background:#fafafa}.back{margin-bottom:18px}.back a{color:#6b7280;font-size:14px}
form.card{background:#f8f9fa;box-shadow:none}
@media(max-width:1050px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.wrap,.container{width:min(100% - 20px,1420px);padding-top:20px}.top{align-items:flex-start;flex-direction:column;margin-bottom:20px}.top>div:last-child{width:100%;justify-content:flex-start}.top>div:last-child a{background:#fff;border:1px solid var(--line)}.card{padding:22px 16px;border-radius:17px}h1{font-size:28px;margin-bottom:20px}.logo{font-size:36px}.grid,.dashboard{grid-template-columns:1fr}th,td{padding:12px 11px}.price{font-size:22px}}
@media(max-width:480px){.top>div:last-child{display:grid;grid-template-columns:1fr 1fr}.top>div:last-child a{justify-content:center;width:100%}button{width:100%}}
