/* Truck Bus Auto — admin panelin dizaynı */

:root {
  --ink: #0c1420;
  --ink-2: #263140;
  --muted: #5d6878;
  --muted-2: #8b95a4;
  --bg: #f3f5f8;
  --surface: #fff;
  --line: #e2e6ec;
  --line-2: #eef1f5;
  --brand: #f26a2e;
  --brand-600: #dc5519;
  --brand-50: #fff1e9;
  --navy: #0a111c;
  --navy-2: #131d2c;
  --on-navy: #b6c0cf;
  --green: #1a9a4e;
  --green-50: #e7f6ed;
  --red: #d63b3b;
  --red-50: #fdecec;
  --blue: #2f6fde;
  --blue-50: #eaf1fd;
  --r: 14px;
  --shadow: 0 1px 2px rgba(12, 20, 32, 0.05), 0 2px 8px rgba(12, 20, 32, 0.04);
  --shadow-lg: 0 30px 70px -20px rgba(12, 20, 32, 0.4);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.locked {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
em {
  font-style: normal;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.spacer {
  flex: 1;
}
.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.link {
  color: var(--brand-600);
  font-weight: 600;
  font-size: 13.5px;
}
.link:hover {
  text-decoration: underline;
}

.boot {
  display: grid;
  place-items: center;
  min-height: 50vh;
  color: var(--muted);
}
#root > .boot {
  min-height: 100vh;
}
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Loqo ───────────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.logo-svg {
  display: block;
  width: auto;
  height: 40px;
}
.logo-box {
  fill: var(--brand);
}
.logo-ink {
  fill: #fff;
}
.logo-word {
  fill: currentColor;
}
.logo-tag {
  fill: var(--on-navy);
}

/* ── Düymələr və sahələr ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.15s;
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn.sm {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
}
.btn.sm .icon {
  width: 15px;
  height: 15px;
}
.btn.block {
  width: 100%;
  min-height: 48px;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover:not(:disabled) {
  background: var(--brand-600);
}
.btn.ghost {
  border-color: var(--line);
  background: var(--surface);
}
.btn.ghost:hover {
  border-color: var(--muted-2);
}
.btn.danger {
  background: var(--red);
  color: #fff;
}
.btn.danger-text {
  color: var(--red);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  transition: 0.15s;
}
.icon-btn:hover:not(:disabled) {
  background: var(--line-2);
  color: var(--ink);
}
.icon-btn.danger:hover:not(:disabled) {
  background: var(--red-50);
  color: var(--red);
}
.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.icon-btn.sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.icon-btn.sm .icon {
  width: 16px;
  height: 16px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}
.field > span {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
}
.field > span em {
  margin-left: 4px;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
}
.input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  outline: 0;
  transition: 0.15s;
}
textarea.input {
  resize: vertical;
  line-height: 1.5;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(242, 106, 46, 0.16);
}
.input.compact {
  width: auto;
  min-width: 170px;
}
.input.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row.three {
  grid-template-columns: repeat(3, 1fr);
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-50);
  color: #8a3d14;
  font-size: 13.5px;
}
code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 12.5px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 23px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd5de;
  transition: 0.2s;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}
.switch input:checked + i {
  background: var(--green);
}
.switch input:checked + i::after {
  transform: translateX(17px);
}
.switch input:focus-visible + i {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Giriş ──────────────────────────────────────────────────────────────── */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 100vh;
}
.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  background:
    radial-gradient(520px 380px at 100% 0%, rgba(242, 106, 46, 0.32), transparent 65%),
    var(--navy);
  color: #fff;
}
.auth-side h1 {
  max-width: 420px;
  font: 800 clamp(30px, 3.4vw, 44px) / 1.12 var(--display);
  letter-spacing: -0.02em;
}
.auth-side h1 em {
  color: var(--brand);
}
.auth-side p {
  max-width: 400px;
  margin-top: 16px;
  color: var(--on-navy);
  font-size: 16px;
  line-height: 1.6;
}
.auth-side small {
  color: var(--muted-2);
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: var(--surface);
}
.auth-form {
  display: grid;
  gap: 16px;
  width: min(400px, 100%);
}
.auth-form h2 {
  font: 700 28px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.auth-form .muted {
  margin: -8px 0 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13.5px;
}
.back-link:hover {
  color: var(--ink);
}

/* ── Çərçivə ────────────────────────────────────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 14px 16px;
  background: var(--navy);
  color: var(--on-navy);
}
.side .logo {
  padding: 0 8px 24px;
}
.side-nav {
  display: grid;
  gap: 3px;
}
.side a:not(.logo),
.side-foot button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--on-navy);
  font-weight: 500;
  text-align: left;
  transition: 0.15s;
}
.side a:not(.logo):hover,
.side-foot button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.side-nav a.active {
  background: var(--navy-2);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand);
}
.side-nav a.active .icon {
  color: var(--brand);
}
.side-foot {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.side-user {
  padding: 10px 12px 0;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
}
.main {
  min-width: 0;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 248, 0.88);
  backdrop-filter: blur(10px);
}
.top h1 {
  margin-right: auto;
  font: 700 22px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.side-toggle {
  display: none;
}
.content {
  padding: 28px 32px 56px;
}

/* ── Panellər ───────────────────────────────────────────────────────────── */

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel.narrow {
  display: grid;
  gap: 16px;
  max-width: 820px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel.narrow .panel-head {
  margin-bottom: 2px;
}
.panel-head h2 {
  font: 700 16.5px/1.3 var(--display);
}
.panel-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.sub {
  margin-top: 6px;
  font: 700 14px/1.3 var(--display);
}
.sub small {
  margin-left: 6px;
  color: var(--muted-2);
  font: 500 12.5px var(--font);
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.grid-2.top-align {
  align-items: start;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--muted-2);
}

/* ── İcmal ──────────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand);
}
.stat.green .stat-icon {
  background: var(--green-50);
  color: var(--green);
}
.stat.gray .stat-icon {
  background: var(--line-2);
  color: var(--muted);
}
.stat.blue .stat-icon {
  background: var(--blue-50);
  color: var(--blue);
}
.stat-icon .icon {
  width: 22px;
  height: 22px;
}
.stat strong {
  display: block;
  font: 700 26px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.stat span:not(.stat-icon) {
  color: var(--muted);
  font-size: 13px;
}
.bars {
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 210px) 1fr 28px;
  align-items: center;
  gap: 12px;
}
.bar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bar-label .icon {
  color: var(--brand);
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-2);
}
.bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 99px;
  background: var(--brand);
}
.bar-row b {
  text-align: right;
}
.recent button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 11px;
  background: none;
  text-align: left;
}
.recent button:hover {
  background: var(--bg);
}
.recent button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.recent strong,
.cell-product strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.recent small,
.cell-product small {
  color: var(--muted);
  font-size: 12.5px;
}
.thumb {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line-2);
  object-fit: cover;
}
.badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 12px;
}
.badge.on {
  background: var(--green-50);
  color: var(--green);
}
.badge.off {
  background: var(--line-2);
  color: var(--muted);
}

/* ── Məhsul cədvəli ─────────────────────────────────────────────────────── */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted-2);
}
.search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  outline: 0;
}
.search input:focus {
  border-color: var(--brand);
  background: #fff;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 11px 16px;
  background: #fafbfc;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td {
  padding: 10px 16px;
  border-top: 1px solid var(--line-2);
  vertical-align: middle;
}
.table tbody tr:hover {
  background: #fafbfc;
}
.cell-product {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.cell-product span {
  min-width: 0;
}
.cell-product:hover strong {
  color: var(--brand-600);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tags span {
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.pager div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ── Kataloq quruluşu ───────────────────────────────────────────────────── */

.rows li,
.brand-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
}
.rows li + li {
  border-top: 1px solid var(--line-2);
}
.row-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 6px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
}
.row-text {
  flex: 1;
  min-width: 0;
}
.row-text strong {
  display: block;
  font-weight: 600;
}
.row-text small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.count {
  min-width: 28px;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--line-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
}
.brand-block {
  padding: 6px 0 14px;
}
.brand-block + .brand-block {
  border-top: 1px solid var(--line-2);
}
.brand-head strong {
  font-size: 15.5px;
}
.model-pills,
.fit-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-weight: 500;
  font-size: 13px;
  transition: 0.15s;
}
.pill:hover {
  border-color: var(--ink);
}
.pill.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.pill.add {
  border-style: dashed;
  color: var(--muted);
}
.pill .icon {
  width: 14px;
  height: 14px;
}
.content > .hint {
  margin-top: 16px;
}
.icon-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.icon-picker label {
  position: relative;
}
.icon-picker input {
  position: absolute;
  opacity: 0;
}
.icon-picker span {
  display: grid;
  place-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.15s;
}
.icon-picker span .icon {
  width: 22px;
  height: 22px;
}
.icon-picker input:checked + span {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand);
}
.icon-picker input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Sayt məzmunu ───────────────────────────────────────────────────────── */

.stack.wide {
  gap: 20px;
  max-width: 1040px;
}
.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.photo {
  display: grid;
  gap: 10px;
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line-2);
  object-fit: cover;
  transition: opacity 0.2s;
}
.photo.busy img {
  opacity: 0.4;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-actions label {
  cursor: pointer;
}
.field.short {
  max-width: 220px;
}
.input::placeholder {
  color: #b3bbc7;
}

/* ── Pəncərələr ─────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 17, 28, 0.55);
  backdrop-filter: blur(3px);
  animation: fade 0.18s ease;
}
.overlay.top {
  z-index: 120;
}
.overlay.side-overlay {
  place-items: stretch end;
  padding: 0;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.dialog {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
}
.dialog.small {
  width: min(420px, 100%);
  padding: 24px;
}
.dialog.small h3 {
  font: 700 19px/1.3 var(--display);
}
.dialog.small p {
  margin: 8px 0 22px;
  color: var(--muted);
}
.dialog.small .dialog-foot {
  padding: 0;
  border: 0;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h3 {
  font: 700 18px/1.3 var(--display);
}
.dialog-body {
  display: grid;
  gap: 14px;
  padding: 22px;
  overflow-y: auto;
}
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.drawer {
  display: flex;
  flex-direction: column;
  width: min(620px, 100vw);
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: slide 0.25s ease;
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
}
.form-section {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.form-section + .form-section {
  border-top: 1px solid var(--line-2);
}
.form-section h4 {
  font: 700 15px/1.3 var(--display);
}
.form-section h4 small {
  margin-left: 6px;
  color: var(--muted-2);
  font: 500 12.5px var(--font);
}
.images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line-2);
}
.image.main {
  border: 2px solid var(--brand);
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image.loading,
.image.add {
  display: grid;
  place-items: center;
}
.image.add {
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1.5px dashed #c5ccd6;
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.image.add:hover {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand-600);
}
.image.add .icon {
  width: 22px;
  height: 22px;
}
.image-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}
.image-btn {
  position: absolute;
  top: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(12, 20, 32, 0.72);
  color: #fff;
}
.image-btn .icon {
  width: 14px;
  height: 14px;
}
.image-btn.remove {
  right: 6px;
}
.image-btn.star {
  left: 6px;
}
.image-btn:hover {
  background: var(--ink);
}
.lang-tabs {
  display: inline-flex;
  gap: 3px;
  justify-self: start;
  padding: 3px;
  border-radius: 11px;
  background: var(--line-2);
}
.lang-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.lang-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lang-tabs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8cfd9;
}
.lang-tabs .filled i {
  background: var(--green);
}
.lang-pane {
  display: grid;
  gap: 14px;
}
.fit {
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: 0.15s;
}
.fit + .fit {
  margin-top: 8px;
}
.fit.on {
  border-color: var(--brand);
  background: #fffaf7;
}
.fit-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  font-weight: 600;
  text-align: left;
}
.fit-brand small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
}
.check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c5ccd6;
  border-radius: 6px;
  color: transparent;
}
.check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.fit.on .check {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.fit-models {
  padding: 0 14px 14px 45px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.switch-row strong,
.switch-row small {
  display: block;
}
.switch-row small {
  color: var(--muted);
  font-size: 13px;
}

/* ── Bildirişlər ────────────────────────────────────────────────────────── */

#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  padding: 12px 16px 12px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
  transition: 0.3s;
}
.toast .icon {
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  stroke-width: 2.6;
}
.toast.error .icon {
  background: var(--red);
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
}

/* ── Kiçik ekranlar ─────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .side-open .side {
    transform: none;
    box-shadow: 0 0 0 100vmax rgba(10, 17, 28, 0.5);
  }
  .side-toggle {
    display: inline-grid;
  }
  .top {
    padding: 10px 16px;
  }
  .content {
    padding: 18px 16px 48px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
  }
  .images {
    grid-template-columns: repeat(3, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .photo {
    max-width: 280px;
  }
  .top-actions .btn {
    padding: 0 12px;
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: minmax(0, 1fr) 70px 24px;
  }
}
