:root {
  --ink:        #14161c;
  --ink-soft:   #656b78;
  --ink-faint:  #9299a6;
  --line:       #e7e9ee;
  --line-soft:  #f0f1f5;
  --bg:         #f4f5f9;
  --panel:      #ffffff;

  --brand:        #e0202f;
  --brand-dark:   #b8111e;
  --brand-light:  #fdeceb;
  --brand-grad:   linear-gradient(135deg, #ef3c4a 0%, #d21f2f 60%, #b8111e 100%);

  --studio:       #7c5cf0;
  --studio-dark:  #5c3ed6;
  --studio-light: #f1edfd;
  --studio-grad:  linear-gradient(135deg, #9376f7 0%, #7c5cf0 60%, #5c3ed6 100%);

  --ok:      #12875a;
  --ok-bg:   #e5f8ef;
  --err:     #d8283f;
  --err-bg:  #fdecee;

  --radius:    12px;
  --radius-lg: 16px;
  --sidebar-w: 252px;
  --topbar-h:  64px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .04), 0 1px 1px rgba(20, 22, 28, .03);
  --shadow-md: 0 4px 14px rgba(20, 22, 28, .06), 0 1px 3px rgba(20, 22, 28, .05);
  --shadow-lg: 0 18px 44px rgba(20, 22, 28, .16), 0 4px 12px rgba(20, 22, 28, .08);

  font-size: 15px;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b7bbc4; }

/* ---------- Layout shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(190deg, #191b22 0%, #121319 100%);
  color: #cfd2d9;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform .25s ease;
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-weight: 800; color: #fff; font-size: 15.5px;
  letter-spacing: -.01em;
}
.sidebar__brand::before {
  content: "A";
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-grad);
  font-size: 13px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 12px rgba(224,32,47,.35);
  flex-shrink: 0;
}
.sidebar__brand img { height: 28px; width: auto; border-radius: 6px; }
.sidebar nav { padding: 16px 12px 30px; }
.nav-group-label {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: #767c88; padding: 18px 12px 8px; font-weight: 700;
}
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px; font-size: 13.8px; font-weight: 500;
  color: #b7bcc7; margin-bottom: 2px;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link:active { transform: scale(.98); }
.nav-link.is-active {
  background: var(--brand-grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(224,32,47,.28);
}
.nav-link.is-active.studio-active {
  background: var(--studio-grad);
  box-shadow: 0 4px 12px rgba(124,92,240,.32);
}
.nav-icon { width: 18px; text-align: center; opacity: .85; font-size: 14px; }
.badge-count {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px;
  background: #ff4d5e; color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255,77,94,.25);
}

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__left { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle {
  display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  width: 38px; height: 38px; cursor: pointer; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.topbar__title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.topbar__right { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--ink-soft); }
.topbar__right span {
  display: flex; align-items: center; gap: 8px;
}
.topbar__right span::before {
  content: "";
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: var(--shadow-sm);
}
.btn-logout {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
  transition: all .15s ease;
}
.btn-logout:hover { background: var(--err-bg); border-color: #f5c3c9; color: var(--err); }

.content { padding: 26px 28px 60px; max-width: 1220px; }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(10,10,14,.5);
  backdrop-filter: blur(2px); z-index: 35;
}

/* ---------- Cards / grid ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 14px; margin: 22px 0; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: ""; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,32,47,.08), transparent 70%);
}
.stat-card__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat-card__label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; font-weight: 500; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 18px; margin-top: 20px; }
.site-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.site-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--accent, var(--brand-grad));
}
.site-card h2 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.site-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.site-card .btn { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9px; padding: 10px 18px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(224,32,47,.28); }
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(224,32,47,.36); }
.btn--studio { background: var(--studio-grad); color: #fff; box-shadow: 0 4px 14px rgba(124,92,240,.28); }
.btn--studio:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(124,92,240,.36); }
.btn--outline { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--outline:hover { background: var(--bg); border-color: #d4d7de; }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }
.btn--danger { background: var(--err-bg); color: var(--err); }
.btn--danger:hover { background: #fadde0; }

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 23px; letter-spacing: -.015em; }
.crumb {
  font-size: 11.5px; color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 4px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 13px 18px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px;
  font-weight: 500; box-shadow: var(--shadow-sm); border: 1px solid transparent;
}
.alert--success { background: var(--ok-bg); color: var(--ok); border-color: #c7ecd9; }
.alert--error { background: var(--err-bg); color: var(--err); border-color: #f7c9ce; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.toolbar input[type=text], .toolbar select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px;
  background: var(--panel); font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.toolbar input[type=text]:focus, .toolbar select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224,32,47,.12);
}
.toolbar input[type=text] { min-width: 220px; flex: 1; }

/* ---------- Table ---------- */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--ink-soft); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: #fafbfc; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #fafbfd; }
tr:last-child td { border-bottom: none; }
td.wrap, th.wrap { white-space: normal; }
.thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--bg); border: 1px solid var(--line); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.badge--active { background: var(--ok-bg); color: var(--ok); }
.badge--inactive { background: #eef0f3; color: var(--ink-soft); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.subcategory-row { padding-left: 34px !important; color: var(--ink-soft); font-weight: 500; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }
.field input[type=text], .field input[type=number], .field input[type=email],
.field input[type=password], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px;
  font-family: inherit; background: var(--panel); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224,32,47,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input[type=file] {
  font-size: 13px; padding: 9px 12px; border: 1px dashed var(--line); border-radius: 9px;
  background: var(--bg); cursor: pointer;
}
.current-image { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.current-image img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.repeat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.repeat-row--single { grid-template-columns: 1fr auto; }
.repeat-row .btn { align-self: center; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.status-toggle { display: flex; gap: 18px; align-items: center; }
.status-toggle label { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.status-toggle input[type=radio],
.status-toggle input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.field input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }

/* ---------- Price Visibility Toggle Button ---------- */
.btn-price-toggle {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--line);
  transition: all .18s ease;
  user-select: none;
}
.btn-price-toggle.btn--price-visible {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #c7ecd9;
}
.btn-price-toggle.btn--price-visible:hover {
  background: #c3ebd5;
}
.btn-price-toggle.btn--price-hidden {
  background: #f1f3f6;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-price-toggle.btn--price-hidden:hover {
  background: #e4e7ed;
  color: var(--ink);
}

/* ---------- Contact Message Cards / Boxes ---------- */
.messages-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}

.message-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d8dbe4;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.msg-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(224, 32, 47, 0.2);
}

.msg-avatar.studio-avatar {
  background: var(--studio-grad);
  box-shadow: 0 4px 10px rgba(124, 92, 240, 0.2);
}

.msg-user-details h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.msg-date {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-subject-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f2f7;
  color: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.msg-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 9px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.msg-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.msg-contact-item:hover {
  color: var(--brand);
  text-decoration: underline;
}

.msg-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1E9E52;
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .15s ease, transform .1s ease;
}

.msg-wa-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.msg-body {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .message-card {
    padding: 16px 14px;
  }
  .msg-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .msg-actions {
    width: 100%;
    justify-content: space-between;
  }
  .msg-contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
}

/* ---------- Login / setup page ---------- */
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #0c0d11;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(224, 32, 47, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(124, 92, 240, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, #23222f 0%, #13141a 60%, #0c0d11 100%);
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}
.login-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 38px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.login-card h1 { font-size: 24px; margin: 0 0 24px; letter-spacing: -.015em; text-align: center; }
.login-card p.sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 22px; line-height: 1.5; text-align: center; }
.login-card .field { margin-bottom: 18px; }
.login-card .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.login-card .field input[type=text],
.login-card .field input[type=password],
.login-card .field input[type=email] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.login-card .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  box-sizing: border-box;
  margin-top: 4px;
}

/* ---------- Responsive Breakpoints & Mobile Polish ---------- */
.sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: #a0a6b5;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  margin-left: auto;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .sidebar {
    width: 275px;
    max-width: 84vw;
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .main { margin-left: 0; }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .topbar__right span::before { display: none; }
}

@media (max-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .site-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .toolbar input[type=text],
  .toolbar select {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-head .btn {
    width: 100%;
    justify-content: center;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .repeat-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    background: var(--bg);
    border-radius: 9px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .repeat-row .btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 14px;
    height: 58px;
  }
  .topbar__left {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .topbar__title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar__right span {
    display: none;
  }
  .btn-logout {
    padding: 6px 11px;
    font-size: 12px;
  }
  .content {
    padding: 16px 14px 44px;
  }
  .card, .site-card {
    padding: 16px;
    border-radius: 12px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 13px 14px;
    border-radius: 12px;
  }
  .stat-card__value {
    font-size: 22px;
  }
  .stat-card__label {
    font-size: 11px;
  }
  table th, table td {
    padding: 9px 10px;
    font-size: 12px;
  }
  .thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
  }
  .btn--sm {
    padding: 5px 8px;
    font-size: 11px;
  }
  .row-actions {
    gap: 4px;
  }
  .field label {
    font-size: 12.5px;
  }
  .field input[type=text],
  .field input[type=number],
  .field input[type=email],
  .field input[type=password],
  .field textarea,
  .field select {
    padding: 9px 11px;
    font-size: 13.5px;
  }
  .btn-price-toggle {
    padding: 8px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .btn-price-toggle svg {
    width: 14px;
    height: 14px;
  }
  .login-shell {
    padding: 20px 16px;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-card {
    padding: 32px 22px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .login-card h1 {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .login-card .field {
    margin-bottom: 16px;
  }
  .login-card .field label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .login-card .field input[type=text],
  .login-card .field input[type=password],
  .login-card .field input[type=email] {
    font-size: 16px; /* Prevents auto-zoom on mobile browsers (iOS Safari) */
    padding: 12px 14px;
    border-radius: 10px;
    min-height: 48px;
  }
  .login-card .btn {
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
  }
  .login-card .alert {
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .login-shell {
    padding: 16px 12px;
  }
  .login-card {
    padding: 26px 16px;
    border-radius: 16px;
  }
  .login-card h1 {
    font-size: 20px;
    margin-bottom: 18px;
  }
}
