.admin-body {
  min-height: 100dvh;
  padding: 0;
  background: #f3f5f7;
}

.admin-login {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(430px, 0.78fr) 1.22fr;
  color: var(--ink);
  background: var(--paper);
}

.login-card {
  display: flex;
  width: min(470px, calc(100% - 70px));
  justify-self: center;
  justify-content: center;
  flex-direction: column;
  padding-block: 50px;
}

.login-copy {
  margin: 65px 0 29px;
}

.login-copy h1 {
  margin: 7px 0 10px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.login-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

#admin-login-form {
  display: grid;
  gap: 11px;
}

#admin-login-form .field-hint {
  margin: -2px 0 0;
}

.login-disclaimer {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.login-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 70% 20%, rgba(157, 187, 210, 0.25), transparent 25%),
    radial-gradient(circle at 15% 85%, rgba(111, 153, 184, 0.2), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900), #153a5b);
}

.login-art::after {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.05);
  filter: blur(2px);
}

.login-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.orbit-one {
  width: 520px;
  height: 520px;
}

.orbit-two {
  width: 720px;
  height: 720px;
}

.login-monogram {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 210px;
  line-height: 1;
  text-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.admin-app {
  min-height: 100dvh;
}

.admin-sidebar {
  position: fixed;
  z-index: 80;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 260px;
  flex-direction: column;
  color: white;
  background: var(--navy-900);
  box-shadow: 12px 0 40px rgba(7, 18, 34, 0.08);
}

.sidebar-brand {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.48);
}

.sidebar-close {
  display: none;
}

.admin-nav {
  display: grid;
  overflow-y: auto;
  gap: 5px;
  padding: 20px 13px;
}

.admin-nav button {
  display: grid;
  min-height: 45px;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  text-align: left;
  transition: 150ms ease;
}

.admin-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.admin-nav button.active {
  color: var(--navy-900);
  background: var(--off-white);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
}

.admin-nav button > span {
  font-size: 19px;
  text-align: center;
}

.admin-nav button b {
  font-size: 11px;
  font-weight: 700;
}

.admin-nav button i {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 20px;
  color: var(--navy-900);
  background: var(--blue-300);
  font-size: 8px;
  font-style: normal;
}

.admin-nav button.active i {
  color: white;
  background: var(--navy-900);
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-store-status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  padding: 10px 7px;
}

.demo-store-status > span:last-child {
  display: flex;
  flex-direction: column;
}

.demo-store-status small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
}

.demo-store-status strong {
  font-size: 10px;
}

.sidebar-bottom .button-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-logout {
  padding: 8px;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.admin-main {
  min-height: 100dvh;
  margin-left: 260px;
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 32px;
  border-bottom: 1px solid rgba(11, 27, 50, 0.08);
  background: rgba(243, 245, 247, 0.92);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  margin: 3px 0 0;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.admin-breadcrumb {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-breadcrumb b {
  color: var(--navy-700);
}

.menu-toggle {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-button {
  position: relative;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 19px;
}

.notification-button i {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border: 2px solid #f3f5f7;
  border-radius: 20px;
  color: white;
  background: var(--danger);
  font-size: 7px;
  font-style: normal;
}

.admin-avatar {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--blue-300);
  font-family: Georgia, serif;
  font-size: 13px;
}

.admin-content {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 31px 0 60px;
}

.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.view-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.view-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 4px 14px rgba(7, 18, 34, 0.03);
}

.stat-card::after {
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  content: "";
  background: var(--blue-100);
}

.stat-card.highlight {
  color: white;
  background: var(--navy-900);
}

.stat-card.highlight::after {
  background: rgba(255, 255, 255, 0.05);
}

.stat-card > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  color: var(--navy-900);
  background: var(--blue-100);
  font-size: 17px;
}

.stat-card.highlight > span {
  color: var(--navy-900);
  background: var(--blue-300);
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 15px;
  color: var(--navy-900);
  font-size: 22px;
}

.stat-card.highlight strong {
  color: white;
}

.stat-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.stat-card.highlight small {
  color: rgba(255, 255, 255, 0.55);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 4px 14px rgba(7, 18, 34, 0.025);
}

.admin-panel-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 12px;
}

.admin-panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.panel-link {
  padding: 0;
  border: 0;
  color: var(--navy-700);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: left;
}

.admin-table th {
  padding: 11px 15px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 15px;
  border-top: 1px solid rgba(11, 27, 50, 0.07);
  color: var(--muted);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(157, 187, 210, 0.06);
}

.admin-table td strong {
  display: block;
  color: var(--navy-900);
  font-size: 10px;
}

.admin-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.admin-table .status-badge {
  font-size: 7px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-action {
  display: grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-800);
  background: white;
  font-size: 9px;
  font-weight: 750;
}

.table-action:hover {
  border-color: var(--navy-700);
  background: var(--blue-100);
}

.table-action.danger {
  color: var(--danger);
}

.sales-chart {
  min-height: 274px;
  padding: 21px 18px;
}

.bar-chart {
  display: flex;
  height: 185px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
}

.bar-item {
  display: flex;
  height: 100%;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 7px;
}

.bar-item span {
  width: min(30px, 70%);
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: var(--blue-300);
  transition: 200ms ease;
}

.bar-item:hover span {
  background: var(--navy-700);
}

.bar-item small {
  color: var(--muted);
  font-size: 7px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 8px;
}

.chart-legend strong {
  color: var(--navy-900);
  font-size: 14px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 16px;
}

.quick-action {
  display: flex;
  min-height: 89px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy-900);
  background: white;
  text-align: left;
  transition: 150ms ease;
}

.quick-action:hover {
  border-color: var(--navy-700);
  background: var(--blue-100);
}

.quick-action > span {
  font-size: 19px;
}

.quick-action b {
  font-size: 9px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.filter-bar-left,
.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search {
  display: flex;
  min-width: 260px;
  height: 39px;
  align-items: center;
  gap: 8px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.admin-select {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
  font-size: 9px;
  font-weight: 650;
}

.product-admin-cell {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.product-admin-art {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  font-size: 21px;
}

.product-admin-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  border-radius: 20px;
  background: #cdd3d8;
  cursor: pointer;
  inset: 0;
  transition: 160ms ease;
}

.switch span::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--success);
}

.switch input:checked + span::before {
  transform: translateX(16px);
}

.order-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  margin-bottom: 15px;
  scrollbar-width: none;
}

.order-tabs button {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: white;
  font-size: 8px;
  font-weight: 750;
}

.order-tabs button.active {
  border-color: var(--navy-900);
  color: white;
  background: var(--navy-900);
}

.order-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.order-column {
  min-height: 470px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf0f2;
}

.order-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 3px 3px 9px;
}

.order-column-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 9px;
  text-transform: uppercase;
}

.order-column-header span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: var(--navy-700);
  font-size: 7px;
}

.admin-order-card {
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 9px rgba(7, 18, 34, 0.04);
}

.admin-order-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.admin-order-card h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 10px;
}

.admin-order-card time {
  color: var(--muted);
  font-size: 7px;
}

.admin-order-card p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.admin-order-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.admin-order-card-meta strong {
  color: var(--navy-900);
}

.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 9px;
}

.admin-order-actions select {
  min-width: 0;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 7px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: start;
  gap: 17px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.settings-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.settings-section-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 12px;
}

.settings-section-header p {
  max-width: 510px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.settings-save {
  position: sticky;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.tip-card {
  position: sticky;
  top: 106px;
  padding: 18px;
  border-radius: 16px;
  color: white;
  background: var(--navy-900);
}

.tip-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--blue-300);
}

.tip-card h3 {
  margin: 15px 0 7px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.tip-card p,
.tip-card li {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.65;
}

.tip-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 16px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.color-field {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.color-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 750;
}

.color-field input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.theme-preview {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin-top: 16px;
  padding: 30px;
  border-radius: 17px;
  color: white;
  background: var(--preview-primary, var(--navy-900));
}

.theme-preview::after {
  position: absolute;
  right: -30px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  content: "";
  background: var(--preview-accent, var(--blue-300));
  opacity: 0.18;
}

.theme-preview h3 {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 8px 0 10px;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
}

.theme-preview p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.theme-preview .button {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: var(--preview-primary, var(--navy-900));
  background: var(--preview-background, var(--off-white));
}

.category-admin-list,
.coupon-admin-list,
.zone-admin-list {
  display: grid;
  gap: 9px;
}

.list-card {
  display: grid;
  min-height: 68px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.list-card-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--blue-100);
  font-size: 17px;
}

.list-card-copy {
  display: flex;
  flex-direction: column;
}

.list-card-copy strong {
  color: var(--navy-900);
  font-size: 10px;
}

.list-card-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.list-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.backup-card {
  display: flex;
  min-height: 230px;
  align-items: flex-start;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.backup-card > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy-900);
  background: var(--blue-100);
  font-size: 22px;
}

.backup-card h3 {
  margin: 19px 0 6px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.backup-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.backup-card .button,
.backup-card .file-button {
  width: 100%;
  margin-top: auto;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.admin-empty {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.admin-empty > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-700);
  background: var(--blue-100);
  font-size: 28px;
}

.admin-empty h3 {
  margin: 14px 0 4px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.admin-empty p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.admin-editor-modal {
  width: min(760px, calc(100% - 30px)) !important;
}

.admin-editor-modal .modal-body {
  max-height: calc(90dvh - 160px);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 22px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.editor-section {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.editor-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.editor-section h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 11px;
}

.image-preview {
  display: grid;
  overflow: hidden;
  min-height: 160px;
  place-items: center;
  margin-bottom: 12px;
  border: 1px dashed rgba(11, 27, 50, 0.25);
  border-radius: 13px;
  color: var(--navy-900);
  background: var(--blue-100);
  font-size: 46px;
}

.image-preview img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 650;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy-900);
}

.option-builder {
  display: grid;
  gap: 10px;
}

.option-builder-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}

.option-builder-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.option-builder-card h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 9px;
}

.option-builder-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  margin-top: 7px;
}

.option-builder-row input {
  min-width: 0;
  height: 37px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: white;
  font-size: 8px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.order-detail-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.order-detail-card.full {
  grid-column: 1 / -1;
}

.order-detail-card h3 {
  margin: 0 0 9px;
  color: var(--navy-900);
  font-size: 10px;
}

.order-detail-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.confirm-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .order-board {
    overflow-x: auto;
  }

  .color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .backup-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .admin-login {
    grid-template-columns: 1fr;
  }

  .login-art {
    display: none;
  }

  .admin-sidebar {
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    z-index: 70;
    background: rgba(7, 18, 34, 0.58);
    backdrop-filter: blur(3px);
    inset: 0;
  }

  .sidebar-close {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    background: transparent;
    font-size: 19px;
  }

  .admin-main {
    margin-left: 0;
  }

  .menu-toggle {
    display: grid;
    width: 41px;
    height: 41px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
  }

  .admin-topbar {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .admin-content {
    width: calc(100% - 36px);
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .tip-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 600px) {
  body.admin-body {
    padding-bottom: 0;
  }

  .login-card {
    width: calc(100% - 36px);
  }

  .login-copy {
    margin-top: 55px;
  }

  .admin-topbar h1 {
    font-size: 22px;
  }

  .admin-avatar {
    display: none;
  }

  .stats-grid,
  .backup-grid,
  .form-grid,
  .color-grid {
    grid-template-columns: 1fr;
  }

  .view-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .view-actions .button {
    flex: 1;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar-left,
  .filter-bar-right {
    width: 100%;
  }

  .admin-search {
    min-width: 0;
    width: 100%;
  }

  .admin-select {
    flex: 1;
  }

  .settings-section {
    padding: 16px;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-card.full {
    grid-column: auto;
  }

  .admin-editor-modal .modal-body {
    max-height: calc(94dvh - 160px);
  }
}
