:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-muted: #f8fbff;
  --line: #dfe8f4;
  --text: #1b2330;
  --muted: #66748b;
  --primary: #1fa971;
  --primary-dark: #138257;
  --primary-soft: #eafaf4;
  --danger: #d95c5c;
  --warning: #f5b63f;
  --info: #4c8df6;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(18, 35, 61, 0.08);
  --shadow-soft: 0 12px 30px rgba(18, 35, 61, 0.06);
  --container: min(1220px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(51, 197, 138, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(76, 141, 246, 0.09), transparent 28%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: 32px 0; }
.section-lg { padding: 56px 0; }
.stack { display: grid; gap: 20px; }
.grid { display: grid; gap: 20px; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.page-shell { padding: 24px 0 48px; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.card,
.panel,
.sidebar-card,
.summary-card,
.table-card,
.auth-card,
.form-card,
.kpi,
.info-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}
.card,
.panel,
.sidebar-card,
.summary-card,
.table-card,
.auth-card,
.form-card {
  padding: 26px;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: var(--container);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 999px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.logo-image {
  display: block;
  height: 78px;
  width: auto;
  max-width: min(100%, 380px);
  object-fit: contain;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), #42dca0);
  box-shadow: 0 10px 24px rgba(31, 169, 113, 0.28);
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
}
.ui-icon-lg {
  width: 24px;
  height: 24px;
}
.logo-mark .ui-icon {
  width: 24px;
  height: 24px;
}
.search-compact > .ui-icon {
  color: var(--muted);
}
.icon-btn .ui-icon {
  width: 22px;
  height: 22px;
}
.feature-icon .ui-icon,
.auth-point .ui-icon,
.notice .ui-icon {
  width: 24px;
  height: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: .2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,.85);
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 290px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}
.search-compact input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}
.icon-btn,
.btn,
.quantity-box button,
.tab,
.select,
.input,
.textarea {
  transition: .2s ease;
}
.icon-btn,
.btn {
  border: 0;
  border-radius: 999px;
}
.icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.btn {
  padding: 13px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(31,169,113,.2);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn-danger { background: #fff2f2; color: var(--danger); box-shadow: none; }
.btn-sm {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.btn-outline {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--text);
  border: 1px solid #d9e4f2;
  box-shadow: 0 8px 18px rgba(18, 35, 61, 0.05);
}
.btn-outline:hover {
  background: #ffffff;
  border-color: #c6d6ea;
}
.btn-danger-soft {
  background: linear-gradient(180deg, #fff8f8, #fff1f1);
  color: #cf5656;
  border: 1px solid #f3d9d9;
  box-shadow: 0 8px 18px rgba(217, 92, 92, 0.08);
}
.btn-danger-soft:hover {
  background: #fff6f6;
  border-color: #efc9c9;
}
.money-nowrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero,
.product-grid,
.feature-grid,
.profile-grid,
.admin-grid,
.checkout-grid,
.auth-grid,
.catalog-layout,
.form-grid,
.footer-grid,
.hero-metrics,
.kpi-row,
.info-list {
  display: grid;
  gap: 20px;
}
.hero { grid-template-columns: 1.2fr .9fr; align-items: stretch; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
}
.hero-card::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 70%);
}
.hero-content { position: relative; z-index: 1; display: grid; gap: 18px; }
.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.82);
  color: var(--primary-dark);
  font-weight: 700;
}
.hero h1,
.page-title {
  margin: 0;
  line-height: 1.04;
  font-size: clamp(30px, 4vw, 54px);
}
.page-title { font-size: clamp(28px, 3vw, 40px); }
.hero p,
.lead { margin: 0; line-height: 1.65; font-size: 17px; color: rgba(27,35,48,.8); }
.hero-actions,
.form-actions,
.product-actions,
.cart-actions,
.tabs,
.toolbar,
.breadcrumbs,
.hero-search-row,
.product-buy-row,
.summary-list,
.summary-row,
.footer-bottom,
.auth-points,
.auth-point,
.notice,
.section-head,
.price-row,
.cart-item,
.range-row {
  display: flex;
  gap: 12px;
}
.hero-actions,
.form-actions,
.product-actions,
.tabs,
.toolbar,
.breadcrumbs,
.cart-actions { flex-wrap: wrap; }
.hero-metrics { grid-template-columns: repeat(3, 1fr); }
.metric,
.info-card,
.kpi {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.72);
}
.metric strong,
.kpi b { display: block; font-size: 24px; margin-bottom: 6px; }
.hero-side { display: grid; gap: 20px; align-content: start; }
.hero-search {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 16px;
}
.hero-search-row { align-items: center; }
.tags,
.product-meta,
.check-list,
.profile-menu,
.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag,
.chip,
.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.tag,
.chip,
.pill { background: var(--surface-muted); border: 1px solid var(--line); }
.tag.active,
.chip.active { background: var(--primary-soft); color: var(--primary-dark); border-color: rgba(31,169,113,.18); }
.section-head {
  align-items: end;
  justify-content: space-between;
}
.section-head h2,
.section-head h3,
.form-head h2,
.form-head h3,
.card h3,
.sidebar-card h3 {
  margin: 0 0 6px;
}
.section-head p,
.form-head .muted,
.sidebar-card .muted { margin: 0; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.product-card:hover { transform: translateY(-3px); }
.product-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f6fbff, #eef5ff);
  padding: 24px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
  flex: 1;
}
.product-body strong { font-size: 18px; }
.price-row { align-items: center; justify-content: space-between; }
.price { font-size: 28px; font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; }

.catalog-layout { grid-template-columns: 280px 1fr; align-items: start; }
.profile-grid { grid-template-columns: 300px 1fr; }
.admin-grid { grid-template-columns: 280px 1fr; }
.checkout-grid { grid-template-columns: 1.18fr .82fr; align-items: start; }
.auth-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar-card { position: sticky; top: 100px; }
.filter-block { display: grid; gap: 12px; margin-bottom: 20px; }
.check-list { display: grid; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}
.menu-link.active,
.menu-link:hover { color: var(--text); background: var(--surface-muted); border-color: var(--line); }
.toolbar { align-items: center; margin-bottom: 18px; }
.select,
.input,
.textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.input,
.select { min-height: 50px; padding: 0 16px; }
.textarea { min-height: 130px; padding: 14px 16px; resize: vertical; }
.input:focus,
.textarea:focus,
.select:focus,
.search-compact:focus-within {
  outline: none;
  border-color: rgba(31,169,113,.35);
  box-shadow: 0 0 0 4px rgba(31,169,113,.12);
}
.form-row { display: grid; gap: 8px; }
.label { font-weight: 700; }
.auth-banner {
  padding: 34px;
  border-radius: var(--radius-xl);
  min-height: 100%;
  background: linear-gradient(145deg, #178a5c, #2bb678 55%, #44d59b);
  box-shadow: var(--shadow);
}
.auth-points { flex-direction: column; margin-top: 24px; }
.auth-point {
  align-items: start;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px;
}
.auth-point span:first-child,
.notice > div:first-child {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  flex: none;
}
.notice > div:first-child {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}
.breadcrumbs { color: var(--muted); font-size: 14px; align-items: center; }
.notice {
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.gallery-main,
.gallery-thumb,
.cart-thumb {
  background: linear-gradient(180deg, #f6fbff, #eef5ff);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.gallery-main { padding: 34px; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery-thumb { padding: 12px; aspect-ratio: 1 / 1; cursor: pointer; }
.gallery-thumb.active { box-shadow: 0 0 0 3px rgba(31,169,113,.18); }
.product-info { display: grid; gap: 14px; }
.product-buy-row { align-items: center; flex-wrap: wrap; }
.quantity-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.quantity-box button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-muted);
}
.info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.tabs { margin-bottom: 20px; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.tab.active { background: var(--primary-soft); color: var(--primary-dark); border-color: rgba(31,169,113,.18); }
.tab-panel.hidden { display: none; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}
.cart-item > div:nth-child(2) { flex: 1; }
.cart-thumb { width: 112px; padding: 14px; flex: none; }
.summary-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}
.summary-list { flex-direction: column; }
.summary-row { justify-content: space-between; align-items: center; }
.summary-row.total {
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 22px;
  font-weight: 800;
}
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.table th,
.table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
#admin-products-table th:nth-child(3),
#admin-products-table td:nth-child(3),
#admin-orders-table th:last-child,
#admin-orders-table td:last-child {
  white-space: nowrap;
}
#admin-products-table th:last-child,
#admin-products-table td:last-child {
  width: 240px;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.table-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
}
.status { font-size: 13px; }
.status.ok { color: #107850; background: #eafaf4; }
.status.pending { color: #a26b07; background: #fff6df; }
.status.off { color: #9f4a4a; background: #fff0f0; }
.kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer {
  width: var(--container);
  margin: 0 auto 24px;
  border-radius: 28px;
  padding: 24px;
}
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.footer-bottom {
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.68);
  color: var(--muted);
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.52);
}
.message {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 600;
}
.message.success { background: #eafaf4; color: #107850; }
.message.error { background: #fff0f0; color: #b03b3b; }
.message.info { background: #eef5ff; color: #245fc7; }
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 260px;
  max-width: min(90vw, 360px);
  padding: 14px 16px;
  border-radius: 18px;
  color: white;
  box-shadow: var(--shadow);
  animation: toastIn .2s ease;
}
.toast.success { background: linear-gradient(135deg, #169a66, #28bf80); }
.toast.error { background: linear-gradient(135deg, #cc4f4f, #e16969); }
.toast.info { background: linear-gradient(135deg, #3f7de2, #4f93ff); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }

@media (max-width: 1180px) {
  .hero,
  .auth-grid,
  .checkout-grid,
  .catalog-layout,
  .profile-grid,
  .admin-grid,
  .product-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar-card,
  .summary-card { position: static; }
}

@media (max-width: 900px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    border-radius: 28px;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 8px;
  }
  .nav.open { display: grid; gap: 8px; }
  .nav-link { background: rgba(255,255,255,.72); }
  .spacer { display: none; }
  .header-actions {
    justify-self: end;
    gap: 8px;
  }
  .search-compact { min-width: 0; width: min(100%, 280px); }
  .hero,
  .feature-grid,
  .hero-metrics,
  .kpi-row,
  .product-grid,
  .form-grid.two,
  .info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom,
  .section-head,
  .cart-item,
  .product-buy-row,
  .hero-search-row { flex-direction: column; align-items: stretch; }
  .auth-banner,
  .hero-card,
  .card,
  .sidebar-card,
  .summary-card,
  .table-card,
  .auth-card,
  .form-card { padding: 22px; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 20px, 100% - 20px); }
  .page-shell { padding-top: 18px; }
  .header { margin-top: 10px; padding: 12px; }
  .logo { font-size: 16px; }
  .logo-image { height: 62px; max-width: 260px; }
  .logo-mark,
  .icon-btn,
  .nav-toggle { width: 42px; height: 42px; }
  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr auto auto;
  }
  .search-compact { width: 100%; }
  .hero,
  .feature-grid,
  .hero-metrics,
  .kpi-row,
  .product-grid,
  .gallery-strip,
  .form-grid.two,
  .info-list { grid-template-columns: 1fr; }
  .price { font-size: 24px; }
  .hero h1,
  .page-title { font-size: clamp(28px, 8vw, 34px); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .cart-thumb { width: 100%; max-width: 112px; }
  .cart-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 460px) {
  .btn,
  .btn-secondary,
  .btn-danger,
  .icon-btn,
  .quantity-box,
  .input,
  .select { width: 100%; }
  .header-actions { grid-template-columns: 1fr; }
  .product-actions,
  .form-actions,
  .tabs,
  .hero-actions,
  .tags,
  .product-meta { display: grid; }
  .price-row { flex-direction: column; align-items: start; }
  .toast-wrap { left: 10px; right: 10px; bottom: 10px; }
  .toast { min-width: 0; max-width: 100%; }
}

.admin-image-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.admin-image-preview img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6fbff, #eef5ff);
  border: 1px solid var(--line);
  padding: 14px;
}
.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.admin-table-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbff, #eef5ff);
  border: 1px solid var(--line);
  padding: 8px;
  flex: none;
}

@media (max-width: 680px) {
  .admin-product-cell {
    min-width: 0;
    align-items: flex-start;
  }
  .admin-table-thumb {
    width: 56px;
    height: 56px;
  }
  .table-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .table-actions .btn {
    width: 100%;
    min-width: 0;
  }
}


.admin-order-status-wrap {
  display: grid;
  gap: 10px;
  min-width: 190px;
}
.order-actions {
  min-width: 170px;
}
.admin-order-toggle {
  min-width: 110px;
}
.order-detail-row td {
  background: #fbfdff;
}
.order-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.order-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.order-detail-list {
  display: grid;
  gap: 10px;
}
.order-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
#admin-orders-table th:nth-child(6),
#admin-orders-table td:nth-child(6) {
  white-space: nowrap;
}
#admin-orders-table th:nth-child(8),
#admin-orders-table td:nth-child(8) {
  width: 220px;
}
@media (max-width: 680px) {
  .admin-order-status-wrap {
    min-width: 150px;
  }
  .order-detail-item {
    align-items: flex-start;
    flex-direction: column;
  }
}


.profile-order-toggle {
  min-width: 128px;
}
.compact-order-detail-card {
  gap: 12px;
  padding: 16px;
}
.compact-order-detail-list {
  gap: 8px;
}
.compact-order-detail-item {
  padding: 10px 12px;
}
.table td .money-nowrap,
.table td .status {
  vertical-align: middle;
}
