/* ModaZone dizayn tizimi (dizayn maketlaridagi ranglar va shakllar) */
:root {
  --ink: #17140F; --ink-2: #4A443B; --muted: #7A7368; --line: #E4DDD0; --line-2: #EFE9DF;
  --bg: #FBF8F3; --panel: #FFFFFF; --soft: #F6F1E9; --accent: #E8431A; --accent-2: #C93811;
  --green: #0E7C66; --green-bg: #E3F3EE; --amber: #B7791F; --amber-bg: #FBF0DC; --red: #C0392B; --red-bg: #FBE7E4; --blue: #2457C5; --blue-bg: #E6EDFB;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(23,20,15,.06), 0 4px 16px rgba(23,20,15,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni 72", "Didot", "Bodoni MT", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); } .small { font-size: 12px; } .num { font-variant-numeric: tabular-nums; } .right { text-align: end; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; } .col { display: flex; flex-direction: column; gap: 10px; }
.hide { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.accent:hover { background: var(--accent-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; } .btn[disabled] { opacity: .5; cursor: default; }
.input, select.input, textarea.input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: 100%; }
textarea.input { height: auto; padding: 10px 12px; }
.input:focus, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
label.f .input { font-weight: 400; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.g { background: var(--green-bg); color: var(--green); } .badge.w { background: var(--amber-bg); color: var(--amber); } .badge.r { background: var(--red-bg); color: var(--red); } .badge.b { background: var(--blue-bg); color: var(--blue); }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #FCFAF6; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--soft); object-fit: cover; flex: none; }

#toasts { position: fixed; inset-inline-end: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; }
.toast.err { background: var(--red); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
