@font-face {font-family:Vazirmatn;src:url("/assets/Vazirmatn.ttf") format("truetype");font-display:swap}

:root {
  color-scheme: dark;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: #0b1220;
  color: #edf2ff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.shop-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.shop-form label{display:grid;gap:8px}.shop-form textarea{min-height:110px;font:inherit;padding:12px;background:#151f32;color:inherit;border:1px solid #41516b;border-radius:12px}.shop-form input[type=checkbox]{width:24px;height:24px}.shop-form button{align-self:end}button:active,a.button:active{transform:scale(.97);filter:brightness(1.2)}button:disabled{transform:none;filter:none;opacity:.5}@media(max-width:600px){.shop-form{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.shop-form input{min-width:0;width:100%}}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 0, #30336b55, transparent 38rem),
    radial-gradient(ellipse at 0 80%, #0b806e22, transparent 32rem),
    #0b1220;
}
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin: auto; padding: 26px 0 60px; }
.topbar, .page-heading, .toolbar, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { margin-bottom: 32px; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 800; }
.brand small { display: block; color: #96a2bb; font-size: 12px; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #8277f7, #5d50d0); font-size: 21px; }
.panel { border: 1px solid #ffffff15; background: #111a2ddd; box-shadow: 0 22px 75px #02061755; border-radius: 22px; }
.login-panel { width: min(450px, 100%); margin: 7vh auto 0; padding: 32px; }
.eyebrow { color: #9b94ff; font-size: 13px; font-weight: 700; }
h1 { margin: 4px 0 8px; font-size: clamp(26px, 5vw, 36px); }
h2 { margin: 0; font-size: 20px; }
p { margin: 0; color: #9daac1; line-height: 1.8; }
form label { display: block; margin: 17px 0 7px; color: #c7d0e0; font-size: 13px; }
input, select { min-width: 0; width: 100%; padding: 12px 13px; border: 1px solid #ffffff20; border-radius: 11px; outline: none; color: #f4f6ff; background: #0b1220; }
input:focus, select:focus { border-color: #8277f7; box-shadow: 0 0 0 3px #8277f733; }
.button { border: 1px solid #ffffff1e; border-radius: 11px; padding: 10px 15px; color: #e8edfa; background: #ffffff0a; cursor: pointer; white-space: nowrap; }
.button:hover { background: #ffffff16; }
.button.primary { width: 100%; margin-top: 22px; border: 0; background: linear-gradient(110deg, #7569ed, #574bc5); font-weight: 700; }
.button:disabled { opacity: .5; cursor: wait; }
.quiet { background: #ffffff08; }
.hidden { display: none !important; }
.message { min-height: 22px; margin-top: 10px; color: #fda4af; font-size: 13px; }
.page-heading { margin-bottom: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 17px; border: 1px solid #ffffff14; border-radius: 16px; background: #121b2e; }
.stat span { display: block; color: #9ba9c1; font-size: 12px; }
.stat strong { display: block; margin-top: 6px; font-size: 24px; }
.users-panel { padding: 22px; }
.toolbar { flex-wrap: wrap; margin-bottom: 16px; }
.toolbar p { margin-top: 3px; font-size: 12px; }
.search { width: min(380px, 100%); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; }
th, td { padding: 13px 10px; border-bottom: 1px solid #ffffff10; white-space: nowrap; }
th { color: #aeb9cc; font-size: 12px; font-weight: 600; }
td { font-size: 13px; }
td small { display: block; max-width: 280px; overflow: hidden; color: #8492ab; text-overflow: ellipsis; }
td select { width: auto; padding: 7px 9px; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 30px; font-size: 11px; }
.status.active { color: #86efc0; background: #0c59454d; }
.status.inactive { color: #fda4af; background: #7f1d1d44; }
.pagination { justify-content: center; margin-top: 18px; }
.user-dialog { width: min(540px, calc(100% - 28px)); max-height: 85vh; overflow: auto; padding: 24px; border: 1px solid #ffffff20; border-radius: 20px; color: inherit; background: #111a2d; }
.user-dialog::backdrop { background: #020617bb; backdrop-filter: blur(5px); }
.dialog-close { float: left; border: 0; color: #cbd5e1; background: transparent; font-size: 26px; cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.detail { padding: 12px; border-radius: 12px; background: #ffffff09; }
.detail span { display: block; color: #94a3b8; font-size: 11px; }
.detail strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .users-panel { padding: 15px; }
  .toolbar { align-items: stretch; }
  .search { width: 100%; }
}
