:root {
  --blue: #075EA8;
  --blue-dark: #062F57;
  --blue-soft: #EAF4FF;
  --gold: #C8A24A;
  --gold-soft: #FFF6DE;
  --ink: #0B1726;
  --muted: #667085;
  --line: #E6EDF5;
  --paper: #FFFFFF;
  --soft: #F7FAFE;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(6, 47, 87, .12);
  --shadow-soft: 0 12px 34px rgba(6, 47, 87, .08);
}

body {
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(7, 94, 168, .08), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #F8FBFF 58%, #fff 100%);
}

a, button, .btn, input, select, textarea, .product-card, .summary-card, .admin-panel {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

button, .btn {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #0A78CF);
  box-shadow: 0 14px 30px rgba(7, 94, 168, .22);
  letter-spacing: 0;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(7, 94, 168, .28);
}

.btn.secondary, button.secondary {
  color: var(--blue-dark);
  border-color: rgba(7, 94, 168, .16);
  background: rgba(255, 255, 255, .92);
}

.btn.gold, .badge, .product-ribbon {
  background: linear-gradient(135deg, var(--gold), #E4C76A);
  color: #111827;
}

input, select, textarea {
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(7, 94, 168, .55);
  box-shadow: 0 0 0 4px rgba(7, 94, 168, .1);
}

.topbar {
  padding-inline: clamp(16px, 4vw, 64px);
  background: rgba(255, 255, 255, .88);
  border-bottom-color: rgba(230, 237, 245, .8);
  box-shadow: 0 14px 40px rgba(6, 47, 87, .07);
}

.topbar-service {
  min-height: 36px;
  justify-content: flex-end;
  background: linear-gradient(90deg, #062F57, #075EA8 52%, #0A78CF);
  letter-spacing: .02em;
}

.topbar-main {
  min-height: 82px;
}

.brand {
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark, .brand-logo {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(7, 94, 168, .16);
}

.nav-search {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-search input {
  border: 0;
  box-shadow: none;
}

.nav-search button {
  min-height: 38px;
  border-radius: 12px;
}

.nav a, .nav-icon-link, .account-link, .cart-link {
  border-radius: 12px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 900;
}

.nav a.active, .nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.topbar-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 0 14px;
}

.nav-row-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(200, 162, 74, .28);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #765713;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  width: min(1040px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(230, 237, 245, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(18px);
}

.topbar-nav-row:hover .mega-menu,
.topbar-nav-row:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
}

.mega-menu a:hover {
  background: var(--blue-soft);
}

.mega-menu span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mega-menu strong {
  color: var(--blue-dark);
  line-height: 1.25;
}

.topbar-nav-row .nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(230, 237, 245, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 32px rgba(6, 47, 87, .07);
  backdrop-filter: blur(14px);
}

.topbar-nav-row .nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 13px;
  color: var(--muted);
}

.topbar-nav-row .nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.topbar-nav-row .nav a.active {
  background: linear-gradient(135deg, var(--blue), #0A78CF);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 94, 168, .2);
}

.topbar-nav-row .nav a.active::after {
  display: none;
}

.hero {
  min-height: min(760px, calc(100vh - 118px));
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(105deg, rgba(6, 47, 87, .92), rgba(7, 94, 168, .62) 48%, rgba(255, 255, 255, .08)),
    var(--hero-image, linear-gradient(135deg, #062F57, #075EA8));
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  max-width: 780px;
  font-size: 72px;
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  color: rgba(255, 255, 255, .9);
}

.container {
  max-width: 1240px;
  padding-block: clamp(34px, 6vw, 78px);
}

.premium-home-hero .trust-strip span {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
}

.premium-category-grid,
.premium-promo-grid,
.premium-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.premium-category-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: end;
  background:
    linear-gradient(145deg, rgba(7, 94, 168, .06), rgba(200, 162, 74, .08)),
    #fff;
}

.premium-category-card span,
.premium-promo-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-category-card strong {
  font-size: 22px;
}

.premium-promo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-promo-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: end;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(7, 94, 168, .18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6, 47, 87, .92), rgba(7, 94, 168, .7)),
    var(--soft);
  color: #fff;
  box-shadow: var(--shadow);
}

.premium-promo-card.gold {
  border-color: rgba(200, 162, 74, .38);
  background:
    linear-gradient(135deg, rgba(11, 23, 38, .82), rgba(200, 162, 74, .62)),
    var(--soft);
}

.premium-promo-card strong {
  max-width: 520px;
  font-size: 38px;
  line-height: 1.05;
}

.premium-promo-card small {
  max-width: 560px;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
}

.premium-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-testimonial-grid .summary-card {
  display: grid;
  gap: 10px;
}

.premium-about-hero {
  background:
    linear-gradient(105deg, rgba(6, 47, 87, .94), rgba(7, 94, 168, .74) 56%, rgba(200, 162, 74, .36)),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, .18), transparent 18rem);
}

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

.about-stats-grid .summary-card {
  min-height: 150px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.about-stats-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.about-stats-grid strong {
  color: var(--blue-dark);
  font-size: 34px;
}

.premium-about-story {
  gap: clamp(28px, 5vw, 64px);
}

.about-showcase-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(6, 47, 87, .92), rgba(7, 94, 168, .72)),
    var(--blue-dark);
}

.about-showcase-panel div {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}

.about-showcase-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.about-showcase-panel strong {
  max-width: 420px;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
}

.about-offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-offer-grid .feature-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: start;
}

.about-values-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.about-values-section h2 {
  margin: 12px 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.about-values-section p {
  color: var(--muted);
}

.about-values-list {
  display: grid;
  gap: 12px;
}

.about-values-list p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-values-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: #765713;
  font-weight: 950;
}

.about-values-list strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.about-values-list small {
  color: var(--muted);
  font-size: 14px;
}

.premium-contact-hero {
  background:
    linear-gradient(110deg, rgba(6, 47, 87, .92), rgba(7, 94, 168, .72)),
    url('../img-placeholder.php') center/cover;
}

.contact-support-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.contact-primary-card {
  padding: 34px;
  border: 1px solid rgba(7, 94, 168, .12);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #F6FAFF);
  box-shadow: 0 22px 50px rgba(6, 47, 87, .08);
}

.contact-primary-card h2 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 34px;
}

.contact-primary-card p {
  margin-bottom: 24px;
  color: #5F6F86;
  line-height: 1.7;
}

.contact-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-info-card {
  display: grid;
  gap: 9px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 162, 74, .48);
  box-shadow: 0 18px 38px rgba(6, 47, 87, .1);
}

.contact-info-card span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 94, 168, .08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.contact-info-card strong {
  color: var(--blue-dark);
  font-size: 19px;
}

.contact-info-card small {
  color: #65758B;
  line-height: 1.55;
}

.contact-location-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(7, 94, 168, .12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 47, 87, .07);
}

.contact-location-grid h2 {
  margin: 14px 0 10px;
  color: var(--blue-dark);
  font-size: 32px;
}

.contact-location-grid iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 20px;
  background: #F3F7FC;
}

.contact-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-inline-links a {
  padding: 10px 14px;
  border: 1px solid rgba(7, 94, 168, .14);
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.section-title {
  align-items: end;
  margin-bottom: 24px;
}

.section-title h1, .section-title h2 {
  letter-spacing: 0;
}

.summary-card, .admin-panel, .product-card, .panel, .account-card {
  border-color: rgba(230, 237, 245, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.summary-card:hover, .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 162, 74, .55);
  box-shadow: var(--shadow);
}

.grid.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  overflow: hidden;
}

.product-media {
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(135deg, var(--soft), #fff);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.055);
}

.product-card-actions {
  inset: 12px 12px auto auto;
  display: flex;
  gap: 8px;
}

.product-card-actions a,
.product-card-actions button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--blue-dark);
  box-shadow: 0 12px 26px rgba(6, 47, 87, .12);
  backdrop-filter: blur(10px);
}

.product-card .body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.product-card .muted {
  margin: 0;
}

.product-card-footer {
  margin-top: 4px;
}

.product-card-footer .price {
  font-size: 25px;
}

.product-card-footer .btn {
  min-width: 132px;
}

.product-model-summary {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-model-summary span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-model-summary strong {
  color: var(--blue-dark);
}

.product-model-summary em {
  color: var(--blue-dark);
  font-style: normal;
  text-align: right;
}

.product-meta {
  align-items: center;
}

.rating {
  color: var(--gold);
  font-weight: 950;
}

.price {
  color: var(--blue-dark);
  font-weight: 950;
}

.price-label {
  color: var(--gold);
}

.filters, .admin-filter, .checkout-layout > .panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.product-detail {
  align-items: start;
  grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr);
  gap: clamp(20px, 4vw, 42px);
}

.product-gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
  box-shadow: var(--shadow-soft);
}

.gallery-main img {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-main:hover img {
  transform: scale(1.08);
}

.gallery-main span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(9, 22, 38, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.thumbs button.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, .18);
}

.thumbs button img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
}

.product-purchase-summary,
.product-detail > div:nth-child(2) {
  position: sticky;
  top: 132px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.product-purchase-summary > h1 {
  margin: 10px 0 6px;
  font-size: clamp(30px, 4vw, 46px);
}

.product-purchase-summary > .muted {
  margin: 0;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.product-spec-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.product-spec-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-spec-grid strong {
  color: var(--blue-dark);
}

.product-badge-row,
.product-availability-strip,
.product-gallery-note,
.product-buy-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-gallery-note {
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.product-gallery-note strong {
  color: var(--blue-dark);
}

.product-price-block {
  display: grid;
  gap: 2px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(200, 162, 74, .34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 223, .8), #fff);
}

.product-price-block > span {
  color: #7a5b17;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-availability-strip {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.product-availability-strip span,
.product-availability-strip strong,
.product-availability-strip em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.product-availability-strip span {
  color: var(--success);
}

.product-buy-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-buy-heading {
  justify-content: space-between;
}

.product-buy-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
}

.product-variation-help {
  margin-top: -4px;
  font-size: 13px;
}

.mode-detail-box {
  margin: 12px 0;
  padding: 12px;
}

.mode-detail-box h2 {
  font-size: 16px;
}

.product-description-panel {
  padding: 18px;
}

.product-description-panel p {
  margin: 0;
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 70px clamp(14px, 4vw, 44px) 34px;
  background: rgba(8, 16, 28, .92);
}

.product-lightbox img {
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-lightbox-close,
.product-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.product-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.product-lightbox-nav {
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
}

.product-lightbox span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 900;
}

body.lightbox-open {
  overflow: hidden;
}

.cart-choice-overlay[hidden] {
  display: none;
}

.cart-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 16, 28, .52);
  backdrop-filter: blur(8px);
}

.cart-choice-card {
  position: relative;
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-choice-card h2 {
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: 24px;
}

.cart-choice-card p {
  margin: 0;
}

.cart-choice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

.cart-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.cart-choice-actions .btn,
.cart-choice-actions button {
  width: 100%;
  justify-content: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
}

.checkout-sections {
  display: grid;
  gap: 14px;
  width: 100%;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-progress span,
.checkout-progress button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  box-shadow: none;
  text-align: center;
}

.checkout-progress button {
  width: 100%;
  cursor: pointer;
}

.checkout-progress span.active,
.checkout-progress button.active {
  border-color: rgba(7, 94, 168, .22);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.checkout-step {
  padding: 18px;
}

.checkout-step[hidden] {
  display: none;
}

.checkout-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.checkout-step-header h2 {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: 22px;
}

.checkout-cart-list {
  display: grid;
  gap: 10px;
}

.checkout-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-cart-item:last-child {
  border-bottom: 0;
}

.checkout-cart-item div {
  display: grid;
  gap: 4px;
}

.checkout-cart-item div:last-child {
  justify-items: end;
  text-align: right;
}

.checkout-cart-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.checkout-summary {
  position: static;
  border-radius: 18px;
  border-color: rgba(7, 94, 168, .16);
  width: 100%;
}

.order-success-page {
  display: grid;
  gap: 20px;
}

.order-success-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(7, 94, 168, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #F5FAFF);
  box-shadow: var(--shadow-soft);
}

.order-success-hero.paid {
  border-color: rgba(18, 130, 76, .24);
  background: linear-gradient(135deg, #fff, #F1FBF5);
}

.order-success-hero.failed {
  border-color: rgba(180, 35, 24, .24);
  background: linear-gradient(135deg, #fff, #FFF5F3);
}

.order-success-hero h1 {
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.order-success-hero p,
.order-success-reference {
  margin: 0;
}

.order-success-number {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.order-success-number span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-success-number strong {
  color: var(--blue-dark);
  font-size: 24px;
}

.order-success-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.order-success-section,
.order-success-summary {
  padding: 18px;
}

.compact-title {
  margin-bottom: 12px;
}

.compact-title h2 {
  font-size: 22px;
}

.order-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.order-success-actions .btn {
  width: 100%;
  justify-content: center;
}

.track-page {
  display: grid;
  gap: 20px;
}

.track-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 20px;
  align-items: end;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(7, 94, 168, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #F5FAFF);
  box-shadow: var(--shadow-soft);
}

.track-hero h1 {
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.track-hero p {
  margin: 0;
  color: var(--muted);
}

.track-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.current-status-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(200, 162, 74, .36);
  border-radius: 14px;
  background: #FFF8DF;
  box-shadow: var(--shadow-soft);
}

.current-status-panel span {
  color: #7A5A12;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.current-status-panel strong {
  color: var(--blue-dark);
  font-size: 28px;
}

.current-status-panel p {
  margin: 0;
  color: var(--muted);
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.tracking-step {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 94px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.tracking-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 950;
}

.tracking-step strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.tracking-step.active {
  border-color: rgba(7, 94, 168, .24);
  background: var(--blue-soft);
}

.tracking-step.current {
  border-color: rgba(200, 162, 74, .5);
  box-shadow: 0 16px 34px rgba(6, 47, 87, .1);
}

.tracking-step.current span {
  background: var(--gold);
  color: #111827;
}

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #061F3D, #073F73);
  color: rgba(255, 255, 255, .9);
}

.footer a:hover {
  color: #fff;
  transform: translateX(2px);
}

.admin-body {
  background: #F6F9FD;
}

.admin-sidebar {
  background: linear-gradient(180deg, #061F3D, #082F56);
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.admin-content {
  background:
    radial-gradient(circle at top right, rgba(7, 94, 168, .08), transparent 28rem),
    #F6F9FD;
}

.admin-top, .admin-panel, .kpi-card {
  border-radius: 18px;
}

.kpi-card {
  overflow: hidden;
  position: relative;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: #F8FBFF;
  color: var(--blue-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

tbody tr:hover {
  background: rgba(7, 94, 168, .035);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.account-dashboard-grid .summary-card {
  min-height: 132px;
}

.preorder-season-panel {
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1100px) {
  .account-dashboard-grid,
  .premium-category-grid,
  .premium-testimonial-grid,
  .grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-main .nav-search,
  .topbar-main .nav-actions,
  .topbar-nav-row {
    display: none;
  }
  .topbar.menu-open .topbar-main .nav-search,
  .topbar.menu-open .topbar-main .nav-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .topbar.menu-open .topbar-nav-row {
    display: flex;
  }
  .topbar-nav-row .nav {
    display: none;
  }
  .topbar.menu-open .topbar-nav-row .nav {
    display: flex;
  }
  .mega-menu {
    display: none;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-purchase-summary,
  .product-detail > div:nth-child(2),
  .checkout-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar-main {
    min-height: 72px;
    gap: 10px;
  }
  .hero {
    min-height: 620px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .premium-promo-card strong {
    font-size: 30px;
  }
  .account-dashboard-grid,
  .premium-category-grid,
  .premium-promo-grid,
  .premium-testimonial-grid,
  .grid.products {
    grid-template-columns: 1fr;
  }
  .mega-menu,
  .checkout-progress {
    grid-template-columns: 1fr;
  }
  .checkout-step-header {
    display: grid;
    align-items: start;
  }
  .checkout-cart-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .checkout-cart-item div:last-child {
    justify-items: start;
    text-align: left;
  }
  .checkout-step-actions,
  .checkout-step-actions .btn,
  .checkout-summary button,
  .checkout-summary .btn {
    width: 100%;
  }
  .order-success-hero,
  .order-success-layout {
    grid-template-columns: 1fr;
  }
  .order-success-number {
    justify-items: start;
    text-align: left;
  }
  .track-hero,
  .track-search,
  .tracking-timeline {
    grid-template-columns: 1fr;
  }
  .topbar-nav-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding-bottom: 10px;
  }
  .topbar.menu-open .topbar-main .nav-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .topbar.menu-open .topbar-nav-row .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
  }
  .topbar.menu-open .topbar-nav-row .nav a {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }
  .nav-row-label {
    width: fit-content;
  }
  .topbar-nav-row .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .section-title {
    align-items: flex-start;
  }
  .product-detail {
    gap: 18px;
  }
  .gallery-main img {
    max-height: 58vh;
    aspect-ratio: 1 / 1;
  }
  .gallery-main span {
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
  }
  .thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .thumbs button {
    flex: 0 0 64px;
    scroll-snap-align: start;
  }
  .product-purchase-summary,
  .product-detail > div:nth-child(2) {
    padding: 14px;
  }
  .product-purchase-summary > h1 {
    font-size: 30px;
  }
  .product-spec-grid {
    grid-template-columns: 1fr;
  }
  .product-buy-heading {
    display: grid;
    gap: 3px;
  }
  .product-buy-panel button,
  .product-buy-panel .btn {
    width: 100%;
  }
  .product-description-panel {
    padding: 14px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  .product-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 66px 10px 34px;
  }

  .product-lightbox-nav {
    min-width: 44px;
    min-height: 44px;
    font-size: 12px;
  }

  .product-lightbox img {
    max-height: calc(100vh - 122px);
  }
}

/* Premium public footer */
.premium-footer {
  display: block;
  padding: clamp(26px, 5vw, 64px) clamp(18px, 5vw, 72px) 26px;
  border-top: 1px solid rgba(200, 162, 74, .28);
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 162, 74, .14), transparent 26rem),
    linear-gradient(135deg, #061F3D, #073F73 58%, #062F57);
  color: rgba(255, 255, 255, .9);
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
}

.footer-cta h2 {
  max-width: 780px;
  margin: 8px 0 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.premium-footer .btn.secondary {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, .9fr) repeat(3, minmax(150px, .65fr));
  gap: clamp(20px, 3vw, 34px);
  max-width: 1240px;
  margin: 0 auto;
}

.premium-footer h3,
.premium-footer strong {
  color: #fff;
}

.premium-footer h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.premium-footer p {
  max-width: 470px;
  color: rgba(255, 255, 255, .76);
}

.footer-contact-card,
.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-contact-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
}

.premium-footer a,
.footer-contact-card span {
  width: fit-content;
  color: rgba(255, 255, 255, .76);
}

.premium-footer a:hover {
  color: #fff;
  transform: translateX(3px);
}

.premium-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.premium-footer .footer-badges span {
  border-color: rgba(200, 162, 74, .36);
  border-radius: 999px;
  background: rgba(200, 162, 74, .12);
  color: #F7E3A3;
  font-size: 12px;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-cta,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-cta-actions {
    justify-content: stretch;
  }
  .footer-cta-actions .btn {
    width: 100%;
  }
  .footer-cta h2 {
    font-size: 28px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Premium Admin Studio */
.admin-body {
  --admin-sidebar-w: 292px;
  background: #F6F9FD;
}

.admin-layout {
  grid-template-columns: var(--admin-sidebar-w) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background:
    linear-gradient(180deg, rgba(6, 47, 87, .98), rgba(5, 28, 52, .98)),
    #062F57;
  border-right: 1px solid rgba(200, 162, 74, .22);
  box-shadow: 18px 0 48px rgba(6, 47, 87, .14);
}

.admin-brand {
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-brand .brand-logo,
.admin-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.admin-nav {
  gap: 10px;
  margin-top: 18px;
  padding-right: 2px;
  overflow-y: auto;
}

.admin-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.admin-nav-group {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.admin-nav-heading {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  box-shadow: none;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-nav-heading:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-nav-group-items {
  gap: 5px;
  padding-top: 6px;
}

.admin-nav a,
.admin-sidebar-footer a {
  min-height: 44px;
  padding: 10px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .78);
  font-weight: 850;
}

.admin-nav a span {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--gold);
}

.admin-nav a.active,
.admin-nav a:hover,
.admin-sidebar-footer a.active,
.admin-sidebar-footer a:hover {
  background: linear-gradient(135deg, rgba(7, 94, 168, .8), rgba(200, 162, 74, .28));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.admin-nav a.active span,
.admin-nav a:hover span {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.admin-sidebar-footer {
  border-top-color: rgba(255, 255, 255, .12);
}

.admin-content {
  padding: 30px;
  background:
    radial-gradient(circle at 86% 0%, rgba(7, 94, 168, .12), transparent 30rem),
    linear-gradient(180deg, #F8FBFF 0%, #F3F7FC 100%);
}

.admin-top {
  position: sticky;
  top: 18px;
  z-index: 20;
  padding: 20px;
  border: 1px solid rgba(230, 237, 245, .86);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.admin-top h1 {
  font-size: 40px;
  letter-spacing: 0;
}

.admin-eyebrow {
  color: var(--gold);
  font-weight: 950;
}

.admin-top-actions {
  gap: 12px;
}

.admin-search {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-search input {
  border: 0;
  box-shadow: none;
}

.notification-pill,
.icon-btn,
.admin-user {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 47, 87, .06);
}

.notification-pill.warn {
  border-color: rgba(200, 162, 74, .38);
  background: var(--gold-soft);
  color: #7A5A12;
}

.admin-user span {
  background: linear-gradient(135deg, var(--blue), var(--gold));
}

.stats {
  gap: 18px;
}

.admin-body .summary-card,
.admin-body .admin-panel,
.admin-body .panel,
.admin-body .settings-subpanel {
  border: 1px solid rgba(230, 237, 245, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.admin-body .summary-card:hover,
.admin-body .admin-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admin-body .kpi-card {
  padding: 20px;
  border-top: 0;
}

.admin-body .kpi-card::before {
  width: 5px;
}

.admin-body .kpi-card span:first-child {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-body .kpi-card strong {
  font-size: 34px;
  letter-spacing: 0;
}

.admin-panel-header {
  min-height: 70px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #FBFDFF);
}

.admin-panel-header h2 {
  color: var(--blue-dark);
  font-size: 20px;
  letter-spacing: 0;
}

.admin-panel-body {
  padding: 22px;
}

.admin-filter,
.bulk-actions {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-row-actions {
  gap: 8px;
}

.action-link,
.link-button,
.danger-link {
  border-radius: 10px;
  font-weight: 900;
}

.action-link {
  color: var(--blue);
}

.danger-link {
  color: #B42318;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 47, 87, .05);
}

.admin-body table {
  overflow: hidden;
}

.admin-body th {
  padding: 14px 16px;
  background: #F5F9FE;
  color: var(--blue-dark);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-body td {
  padding: 15px 16px;
  border-bottom-color: #EEF3F8;
}

.admin-body tbody tr:hover {
  background: #F8FBFF;
}

.status,
.trend,
.badge {
  border-radius: 999px;
  font-weight: 950;
}

.form-grid label,
.settings-form label {
  color: var(--blue-dark);
  font-weight: 900;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
  min-height: 46px;
  border-radius: 14px;
  background: #fff;
}

.settings-dropdown-stack {
  display: grid;
  gap: 12px;
}

.settings-dropdown {
  border: 1px solid rgba(230, 237, 245, .92);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.settings-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, #fff, #FBFDFF);
}

.settings-dropdown summary::-webkit-details-marker {
  display: none;
}

.settings-dropdown summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue-dark);
  font-weight: 950;
}

.settings-dropdown[open] summary::after {
  content: '-';
}

.settings-dropdown summary span {
  display: grid;
  gap: 4px;
}

.settings-dropdown summary strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.settings-dropdown summary small {
  color: var(--muted);
  font-weight: 800;
}

.settings-dropdown-body {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.settings-form > button {
  margin-top: 16px;
}

.mini-chart {
  padding: 18px;
}

.mini-chart span {
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
}

.report-bar-fill,
.report-inline-bar span,
.report-meter span {
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.admin-product-thumb,
.admin-order-item-product img,
.admin-banner-cell img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(6, 47, 87, .08);
}

.editor-aside {
  position: sticky;
  top: 128px;
}

.editor-save-card {
  border-color: rgba(200, 162, 74, .36);
}

.upload-zone,
.asset-upload {
  border-radius: 18px;
  border-color: rgba(7, 94, 168, .18);
  background: #F8FBFF;
}

@media (max-width: 1024px) {
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    border-radius: 0 0 22px 22px;
  }
  .admin-top {
    position: static;
  }
  .editor-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-content {
    padding: 16px 12px;
  }
  .admin-top h1 {
    font-size: 32px;
  }
  .admin-filter,
  .bulk-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .about-stats-grid,
  .about-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-values-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .about-stats-grid,
  .about-offer-grid,
  .premium-about-story {
    grid-template-columns: 1fr;
  }

  .about-values-section {
    padding: 28px;
  }

  .about-values-section h2 {
    font-size: 34px;
  }

  .about-values-list p {
    grid-template-columns: 1fr;
  }

  .about-values-list span {
    grid-row: auto;
  }

  .contact-support-grid,
  .contact-info-list,
  .contact-location-grid {
    grid-template-columns: 1fr;
  }

  .contact-primary-card,
  .contact-location-grid {
    padding: 24px;
  }

  .contact-primary-card h2,
  .contact-location-grid h2 {
    font-size: 28px;
  }
}

/* Modern admin shell */
.admin-mobile-menu {
  display: none;
}

.admin-sidebar-backdrop[hidden],
.admin-dropdown[hidden] {
  display: none !important;
}

.admin-menu-wrap {
  position: relative;
  display: inline-flex;
}

.admin-icon-btn,
.admin-mobile-menu {
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 93, 156, .14);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(7, 31, 58, .08);
  cursor: pointer;
  font-weight: 900;
}

.admin-icon-btn {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
}

.admin-icon-btn svg,
.admin-mobile-menu svg,
.admin-user svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.admin-notification-btn > span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d63d2e;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  border: 2px solid #fff;
}

.admin-user {
  border: 1px solid rgba(15, 93, 156, .14);
  color: #071f3a;
  cursor: pointer;
}

.admin-user strong {
  color: #071f3a;
}

.admin-user small,
.admin-top p,
.admin-body .muted {
  color: #64748b;
}

.admin-user > span {
  color: #fff;
}

.admin-user svg {
  color: #071f3a;
}

.admin-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  z-index: 90;
  padding: 10px;
  border: 1px solid rgba(15, 93, 156, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 31, 58, .18);
}

.admin-dropdown header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(15, 93, 156, .08);
  margin-bottom: 8px;
}

.admin-dropdown header a,
.admin-profile-menu a,
.admin-theme-menu button,
.admin-notifications a,
.admin-activity-item {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--blue-dark);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.admin-dropdown a:hover,
.admin-theme-menu button:hover,
.admin-theme-menu button.active,
.admin-activity-item:hover {
  background: rgba(15, 93, 156, .08);
}

.admin-notifications a > span,
.admin-activity-item > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background: var(--gold-soft);
  color: #071f3a;
  font-weight: 900;
}

.admin-dropdown strong,
.admin-dropdown small {
  display: block;
}

.admin-dropdown strong,
.admin-theme-menu button,
.admin-profile-menu a,
.admin-notifications a,
.admin-activity-item {
  color: #071f3a;
}

.admin-dropdown small {
  color: #64748b;
  line-height: 1.35;
}

.admin-theme-menu {
  width: 180px;
}

.admin-theme-menu button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.admin-theme-menu button.active::after {
  content: "Active";
  margin-left: auto;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.backup-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.backup-action-grid .summary-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.backup-action-grid .summary-card h2,
.backup-action-grid .summary-card p {
  margin: 0;
}

.backup-action-grid .summary-card button {
  justify-self: start;
}

html[data-admin-theme="dark"] .admin-body {
  --paper: #111827;
  --soft: #0b1220;
  --line: #243044;
  --muted: #b6c2d2;
  --blue-dark: #e5eefb;
  --blue: #7ab8ff;
  background: #080d16;
  color: #e5eefb;
}

html[data-admin-theme="dark"] .admin-body .admin-content,
html[data-admin-theme="dark"] .admin-body .admin-top,
html[data-admin-theme="dark"] .admin-body .admin-panel,
html[data-admin-theme="dark"] .admin-body .panel,
html[data-admin-theme="dark"] .admin-body .summary-card,
html[data-admin-theme="dark"] .admin-body .settings-subpanel,
html[data-admin-theme="dark"] .admin-body input,
html[data-admin-theme="dark"] .admin-body select,
html[data-admin-theme="dark"] .admin-body textarea,
html[data-admin-theme="dark"] .admin-dropdown {
  background: #111827;
  color: #e5eefb;
  border-color: #243044;
}

html[data-admin-theme="dark"] .admin-body .admin-sidebar {
  background: linear-gradient(180deg, #050914, #0b1220);
  border-color: #243044;
}

html[data-admin-theme="dark"] .admin-body table,
html[data-admin-theme="dark"] .admin-body tbody tr {
  background: #111827;
  color: #e5eefb;
}

html[data-admin-theme="dark"] .admin-body th,
html[data-admin-theme="dark"] .admin-body td {
  border-color: #243044;
}

html[data-admin-theme="dark"] .admin-body h1,
html[data-admin-theme="dark"] .admin-body h2,
html[data-admin-theme="dark"] .admin-body h3,
html[data-admin-theme="dark"] .admin-body h4,
html[data-admin-theme="dark"] .admin-body label,
html[data-admin-theme="dark"] .admin-body strong,
html[data-admin-theme="dark"] .admin-body .admin-eyebrow,
html[data-admin-theme="dark"] .admin-body .section-title h2,
html[data-admin-theme="dark"] .admin-body .cart-product-title,
html[data-admin-theme="dark"] .admin-body .action-link,
html[data-admin-theme="dark"] .admin-body .admin-product-name,
html[data-admin-theme="dark"] .admin-body .admin-product-preview,
html[data-admin-theme="dark"] .admin-dropdown strong,
html[data-admin-theme="dark"] .admin-profile-menu a,
html[data-admin-theme="dark"] .admin-theme-menu button,
html[data-admin-theme="dark"] .admin-notifications a,
html[data-admin-theme="dark"] .admin-activity-item {
  color: #eef6ff;
}

html[data-admin-theme="dark"] .admin-body p,
html[data-admin-theme="dark"] .admin-body small,
html[data-admin-theme="dark"] .admin-body .muted,
html[data-admin-theme="dark"] .admin-body .field-help,
html[data-admin-theme="dark"] .admin-body .kpi-meta,
html[data-admin-theme="dark"] .admin-body .admin-top p,
html[data-admin-theme="dark"] .admin-body .admin-user small,
html[data-admin-theme="dark"] .admin-dropdown small {
  color: #b6c2d2;
}

html[data-admin-theme="dark"] .admin-body input::placeholder,
html[data-admin-theme="dark"] .admin-body textarea::placeholder {
  color: #8997aa;
}

html[data-admin-theme="dark"] .admin-body .admin-icon-btn,
html[data-admin-theme="dark"] .admin-body .admin-mobile-menu,
html[data-admin-theme="dark"] .admin-body .admin-user {
  background: #111827;
  color: #e5eefb;
  border-color: #243044;
}

html[data-admin-theme="dark"] .admin-body .admin-user strong,
html[data-admin-theme="dark"] .admin-body .admin-user svg {
  color: #eef6ff;
}

html[data-admin-theme="dark"] .admin-body .admin-user > span {
  color: #071f3a;
  background: linear-gradient(135deg, #9bd1ff, #d4af37);
}

html[data-admin-theme="dark"] .admin-body .badge,
html[data-admin-theme="dark"] .admin-body .status,
html[data-admin-theme="dark"] .admin-body .notification-pill.warn,
html[data-admin-theme="dark"] .admin-notifications a > span,
html[data-admin-theme="dark"] .admin-activity-item > span {
  background: rgba(212, 175, 55, .18);
  color: #f9dfa0;
}

html[data-admin-theme="dark"] .admin-body .admin-dropdown a:hover,
html[data-admin-theme="dark"] .admin-body .admin-theme-menu button:hover,
html[data-admin-theme="dark"] .admin-body .admin-theme-menu button.active,
html[data-admin-theme="dark"] .admin-body .admin-activity-item:hover {
  background: rgba(122, 184, 255, .12);
}

@media (max-width: 1024px) {
  .admin-mobile-menu {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 120;
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
  }

  .admin-layout {
    display: block;
  }

  .admin-content {
    padding-top: 68px;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 115;
    width: min(86vw, 320px);
    height: 100vh;
    max-height: none;
    border-radius: 0 22px 22px 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }

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

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(7, 31, 58, .45);
    backdrop-filter: blur(2px);
  }

  .admin-top {
    position: static;
    padding-left: 56px;
  }
}

@media (max-width: 760px) {
  .admin-top {
    padding: 18px 14px 18px 56px;
    border-radius: 18px;
  }

  .admin-top-actions {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    width: 100%;
    gap: 8px;
  }

  .admin-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .notification-pill,
  .icon-btn {
    min-height: 42px;
    padding: 0 12px;
  }

  .admin-user {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .admin-user div {
    display: none;
  }

  .admin-dropdown {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

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

/* Mobile chat assistant */
@media (max-width: 640px) {
  .whatsapp-bot {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 95;
  }

  .whatsapp-bot-toggle {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .whatsapp-bot-toggle svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-bot-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: min(620px, calc(100dvh - 98px));
    display: grid;
    grid-template-rows: auto minmax(120px, 1fr) auto auto auto;
    border-radius: 18px;
    overflow: hidden;
  }

  .whatsapp-bot-panel header {
    align-items: center;
    padding: 12px;
  }

  .whatsapp-bot-panel header strong,
  .whatsapp-bot-panel header span {
    line-height: 1.25;
  }

  .whatsapp-bot-panel header button {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .bot-messages {
    max-height: none;
    min-height: 120px;
    padding: 12px;
    overscroll-behavior: contain;
  }

  .bot-message {
    max-width: 92%;
    padding: 9px 11px;
    font-size: 14px;
    line-height: 1.35;
  }

  .bot-quick-replies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .bot-quick-replies button {
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  .whatsapp-bot-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }

  .whatsapp-bot-panel form input {
    min-width: 0;
    width: 100%;
  }

  .whatsapp-bot-panel form button {
    min-width: 68px;
    padding-inline: 12px;
  }

  .bot-whatsapp-link {
    margin: 0 12px 12px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .bot-quick-replies {
    grid-template-columns: 1fr;
  }

  .whatsapp-bot-panel form {
    grid-template-columns: 1fr;
  }

  .whatsapp-bot-panel form button {
    width: 100%;
  }
}

/* Admin dark theme coverage */
html[data-admin-theme="dark"] {
  color-scheme: dark;
}

html[data-admin-theme="dark"] .admin-body {
  --admin-bg: #070b12;
  --admin-bg-soft: #0b1220;
  --admin-surface: #111827;
  --admin-surface-2: #162033;
  --admin-surface-3: #1d2a40;
  --admin-line: #2a3850;
  --admin-text: #edf5ff;
  --admin-muted: #b8c5d6;
  --admin-faint: #8fa0b6;
  --admin-link: #8cc8ff;
  --admin-gold: #f3d47a;
  --admin-success: #72e4a4;
  --admin-danger: #ff9a8f;
  --admin-warning: #f6d47b;
  --line: var(--admin-line);
  --muted: var(--admin-muted);
  --blue-dark: var(--admin-text);
  --blue: var(--admin-link);
  --gold: var(--admin-gold);
  --paper: var(--admin-surface);
  --soft: var(--admin-bg-soft);
  --success: var(--admin-success);
  --danger: var(--admin-danger);
  background: var(--admin-bg);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body .admin-content {
  background:
    radial-gradient(circle at 82% 0%, rgba(140, 200, 255, .12), transparent 28rem),
    linear-gradient(180deg, #0a101b 0%, #070b12 100%);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 9, 20, .98), rgba(11, 18, 32, .98)),
    #050914;
  border-color: var(--admin-line);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .3);
}

html[data-admin-theme="dark"] .admin-body .admin-brand,
html[data-admin-theme="dark"] .admin-body .admin-nav-group {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .09);
}

html[data-admin-theme="dark"] .admin-body .admin-nav-heading,
html[data-admin-theme="dark"] .admin-body .admin-nav a,
html[data-admin-theme="dark"] .admin-body .admin-sidebar-footer a {
  color: #dce8f8;
}

html[data-admin-theme="dark"] .admin-body .admin-nav a span {
  background: rgba(140, 200, 255, .12);
  color: var(--admin-gold);
}

html[data-admin-theme="dark"] .admin-body .admin-nav a.active,
html[data-admin-theme="dark"] .admin-body .admin-nav a:hover,
html[data-admin-theme="dark"] .admin-body .admin-sidebar-footer a:hover {
  background: linear-gradient(135deg, rgba(64, 147, 219, .38), rgba(243, 212, 122, .16));
  color: #fff;
}

html[data-admin-theme="dark"] .admin-body .admin-top,
html[data-admin-theme="dark"] .admin-body .admin-panel,
html[data-admin-theme="dark"] .admin-body .panel,
html[data-admin-theme="dark"] .admin-body .summary-card,
html[data-admin-theme="dark"] .admin-body .settings-subpanel,
html[data-admin-theme="dark"] .admin-body .settings-dropdown,
html[data-admin-theme="dark"] .admin-body .admin-filter,
html[data-admin-theme="dark"] .admin-body .bulk-actions,
html[data-admin-theme="dark"] .admin-body .table-wrap,
html[data-admin-theme="dark"] .admin-body .admin-dropdown,
html[data-admin-theme="dark"] .admin-body .report-stock-item,
html[data-admin-theme="dark"] .admin-body .admin-details,
html[data-admin-theme="dark"] .admin-body .admin-details-panel {
  background: rgba(17, 24, 39, .96);
  border-color: var(--admin-line);
  color: var(--admin-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

html[data-admin-theme="dark"] .admin-body .admin-panel-header,
html[data-admin-theme="dark"] .admin-body .settings-dropdown summary,
html[data-admin-theme="dark"] .admin-body .settings-dropdown-body,
html[data-admin-theme="dark"] .admin-body .admin-panel-body {
  background: transparent;
  border-color: var(--admin-line);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body h1,
html[data-admin-theme="dark"] .admin-body h2,
html[data-admin-theme="dark"] .admin-body h3,
html[data-admin-theme="dark"] .admin-body h4,
html[data-admin-theme="dark"] .admin-body label,
html[data-admin-theme="dark"] .admin-body th,
html[data-admin-theme="dark"] .admin-body strong,
html[data-admin-theme="dark"] .admin-body .admin-panel-header h2,
html[data-admin-theme="dark"] .admin-body .mini-heading,
html[data-admin-theme="dark"] .admin-body .cart-product-title,
html[data-admin-theme="dark"] .admin-body .admin-product-name,
html[data-admin-theme="dark"] .admin-body .admin-price-stack strong,
html[data-admin-theme="dark"] .admin-body .admin-stock-cell strong,
html[data-admin-theme="dark"] .admin-body .report-meter-row strong,
html[data-admin-theme="dark"] .admin-body .report-stock-item strong {
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body p,
html[data-admin-theme="dark"] .admin-body small,
html[data-admin-theme="dark"] .admin-body td,
html[data-admin-theme="dark"] .admin-body .muted,
html[data-admin-theme="dark"] .admin-body .field-help,
html[data-admin-theme="dark"] .admin-body .kpi-meta,
html[data-admin-theme="dark"] .admin-body .admin-top p,
html[data-admin-theme="dark"] .admin-body .admin-user small,
html[data-admin-theme="dark"] .admin-body .admin-product-cell .muted,
html[data-admin-theme="dark"] .admin-body .admin-price-stack span,
html[data-admin-theme="dark"] .admin-body .report-product span,
html[data-admin-theme="dark"] .admin-body .report-stock-item small,
html[data-admin-theme="dark"] .admin-dropdown small {
  color: var(--admin-muted);
}

html[data-admin-theme="dark"] .admin-body .admin-eyebrow,
html[data-admin-theme="dark"] .admin-body .action-link,
html[data-admin-theme="dark"] .admin-body .admin-product-preview,
html[data-admin-theme="dark"] .admin-body a:not(.btn):not(.admin-brand):not(.admin-user):not(.icon-btn):not(.notification-pill) {
  color: var(--admin-link);
}

html[data-admin-theme="dark"] .admin-body input,
html[data-admin-theme="dark"] .admin-body select,
html[data-admin-theme="dark"] .admin-body textarea,
html[data-admin-theme="dark"] .admin-body .admin-search {
  background: var(--admin-bg-soft);
  border-color: var(--admin-line);
  color: var(--admin-text);
  box-shadow: none;
}

html[data-admin-theme="dark"] .admin-body input::placeholder,
html[data-admin-theme="dark"] .admin-body textarea::placeholder {
  color: var(--admin-faint);
}

html[data-admin-theme="dark"] .admin-body select option {
  background: var(--admin-bg-soft);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body input:focus,
html[data-admin-theme="dark"] .admin-body select:focus,
html[data-admin-theme="dark"] .admin-body textarea:focus {
  border-color: var(--admin-link);
  box-shadow: 0 0 0 4px rgba(140, 200, 255, .16);
}

html[data-admin-theme="dark"] .admin-body table {
  background: var(--admin-surface);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body thead,
html[data-admin-theme="dark"] .admin-body th {
  background: var(--admin-surface-2);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body tbody tr {
  background: var(--admin-surface);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body tbody tr:nth-child(even) {
  background: rgba(22, 32, 51, .7);
}

html[data-admin-theme="dark"] .admin-body tbody tr:hover {
  background: rgba(140, 200, 255, .1);
}

html[data-admin-theme="dark"] .admin-body td,
html[data-admin-theme="dark"] .admin-body th {
  border-color: var(--admin-line);
}

html[data-admin-theme="dark"] .admin-body .btn,
html[data-admin-theme="dark"] .admin-body button,
html[data-admin-theme="dark"] .admin-body .admin-search button {
  color: #07111f;
}

html[data-admin-theme="dark"] .admin-body .btn.secondary,
html[data-admin-theme="dark"] .admin-body button.secondary,
html[data-admin-theme="dark"] .admin-body .icon-btn,
html[data-admin-theme="dark"] .admin-body .admin-icon-btn,
html[data-admin-theme="dark"] .admin-body .admin-mobile-menu,
html[data-admin-theme="dark"] .admin-body .admin-user,
html[data-admin-theme="dark"] .admin-body .notification-pill {
  background: var(--admin-surface-2);
  border-color: var(--admin-line);
  color: var(--admin-text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

html[data-admin-theme="dark"] .admin-body .admin-user strong,
html[data-admin-theme="dark"] .admin-body .admin-user svg {
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body .admin-user > span {
  background: linear-gradient(135deg, #8cc8ff, #f3d47a);
  color: #07111f;
}

html[data-admin-theme="dark"] .admin-body .admin-dropdown header,
html[data-admin-theme="dark"] .admin-body .admin-dropdown a,
html[data-admin-theme="dark"] .admin-body .admin-theme-menu button,
html[data-admin-theme="dark"] .admin-body .admin-activity-item {
  border-color: var(--admin-line);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body .admin-dropdown a:hover,
html[data-admin-theme="dark"] .admin-body .admin-theme-menu button:hover,
html[data-admin-theme="dark"] .admin-body .admin-theme-menu button.active,
html[data-admin-theme="dark"] .admin-body .admin-activity-item:hover {
  background: rgba(140, 200, 255, .12);
}

html[data-admin-theme="dark"] .admin-body .badge,
html[data-admin-theme="dark"] .admin-body .status {
  border-color: rgba(243, 212, 122, .22);
  background: rgba(243, 212, 122, .15);
  color: #f8df94;
}

html[data-admin-theme="dark"] .admin-body .status.paid,
html[data-admin-theme="dark"] .admin-body .status.success,
html[data-admin-theme="dark"] .admin-body .status.in_stock,
html[data-admin-theme="dark"] .admin-body .status.completed,
html[data-admin-theme="dark"] .admin-body .status.approved,
html[data-admin-theme="dark"] .admin-body .status.received,
html[data-admin-theme="dark"] .admin-body .status.delivered,
html[data-admin-theme="dark"] .admin-body .status.ready_for_delivery {
  background: rgba(114, 228, 164, .15);
  color: var(--admin-success);
}

html[data-admin-theme="dark"] .admin-body .status.cancelled,
html[data-admin-theme="dark"] .admin-body .status.failed,
html[data-admin-theme="dark"] .admin-body .status.rejected,
html[data-admin-theme="dark"] .admin-body .status.out_of_stock,
html[data-admin-theme="dark"] .admin-body .danger-link {
  background: rgba(255, 154, 143, .13);
  color: var(--admin-danger);
}

html[data-admin-theme="dark"] .admin-body .alert {
  background: rgba(140, 200, 255, .1);
  border-color: rgba(140, 200, 255, .22);
  color: var(--admin-text);
}

html[data-admin-theme="dark"] .admin-body .alert.success {
  background: rgba(114, 228, 164, .12);
  border-color: rgba(114, 228, 164, .24);
  color: var(--admin-success);
}

html[data-admin-theme="dark"] .admin-body .alert.error {
  background: rgba(255, 154, 143, .12);
  border-color: rgba(255, 154, 143, .24);
  color: var(--admin-danger);
}

html[data-admin-theme="dark"] .admin-body .notification-pill.warn,
html[data-admin-theme="dark"] .admin-body .trend.warn,
html[data-admin-theme="dark"] .admin-body .trend {
  color: var(--admin-warning);
}

html[data-admin-theme="dark"] .admin-body .report-bar,
html[data-admin-theme="dark"] .admin-body .report-meter,
html[data-admin-theme="dark"] .admin-body .report-inline-bar {
  background: var(--admin-surface-3);
}

html[data-admin-theme="dark"] .admin-body .admin-product-thumb,
html[data-admin-theme="dark"] .admin-body .admin-order-item-product img,
html[data-admin-theme="dark"] .admin-body .admin-banner-cell img,
html[data-admin-theme="dark"] .admin-body .report-product img,
html[data-admin-theme="dark"] .admin-body .report-stock-item img {
  background: var(--admin-bg-soft);
  border-color: var(--admin-line);
}

html[data-admin-theme="dark"] .admin-body .admin-notifications a > span,
html[data-admin-theme="dark"] .admin-body .admin-activity-item > span {
  background: rgba(140, 200, 255, .14);
  color: var(--admin-link);
}

/* Responsive safety layer for the admin workspace */
.admin-body,
.admin-body main,
.admin-layout,
.admin-content,
.admin-top,
.admin-panel,
.admin-panel-body,
.summary-card,
.table-wrap,
.admin-filter,
.bulk-actions,
.inline-form,
.admin-row-actions {
  min-width: 0;
}

.admin-body {
  overflow-x: hidden;
}

.admin-body p,
.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body strong,
.admin-body span,
.admin-body small,
.admin-body td,
.admin-body th,
.admin-body label,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body .muted,
.admin-body .badge,
.admin-body .status,
.admin-body .action-link,
.admin-body .btn,
.admin-body button {
  overflow-wrap: anywhere;
}

.admin-body .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.admin-body .table-wrap table {
  min-width: 760px;
}

.admin-body .table-wrap th,
.admin-body .table-wrap td {
  white-space: normal;
}

.admin-top-actions,
.admin-filter,
.bulk-actions,
.inline-form,
.admin-row-actions,
.admin-panel-header {
  min-width: 0;
}

.admin-body img,
.admin-product-thumb,
.admin-order-item-product img,
.admin-banner-cell img,
.report-product img,
.report-stock-item img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .admin-layout,
  .admin-dashboard-grid,
  .admin-profile-grid,
  .admin-banner-grid,
  .admin-report-grid,
  .report-overview-grid,
  .product-editor,
  .backup-action-grid,
  .settings-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    width: 100%;
  }

  .admin-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .admin-content {
    padding-inline: 10px;
  }

  .admin-top {
    gap: 12px;
  }

  .admin-top h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .admin-top-actions {
    grid-template-columns: 1fr auto auto;
  }

  .admin-user {
    grid-column: 1 / -1;
  }

  .admin-filter,
  .bulk-actions,
  .inline-form,
  .admin-row-actions,
  .settings-form .form-grid,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-filter button,
  .bulk-actions button,
  .inline-form button,
  .inline-form .btn,
  .admin-row-actions a,
  .admin-row-actions button,
  .admin-panel-header .btn,
  .admin-panel-header .action-link {
    width: 100%;
  }

  .admin-body .summary-card,
  .admin-panel,
  .admin-panel-body,
  .settings-dropdown-body {
    padding: 14px;
  }

  .settings-dropdown summary {
    min-height: 58px;
    padding: 14px;
  }

  .admin-body .table-wrap {
    border-radius: 8px;
  }

  .admin-body .table-wrap table {
    min-width: 660px;
  }
}

@media (max-width: 420px) {
  .admin-mobile-menu {
    left: 8px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .admin-top {
    padding-left: 48px;
  }

  .admin-top-actions {
    grid-template-columns: 1fr 44px 44px;
  }

  .notification-pill,
  .icon-btn {
    width: 44px;
    padding-inline: 0;
  }

  .admin-body .table-wrap table {
    min-width: 560px;
  }
}
