:root {
  --brand: #0453f0;
  --brand-dark: #06359a;
  --brand-soft: #eaf1ff;
  --ink: #172033;
  --muted: #66758a;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --black: #111827;
  --gold: #f4b63f;
  --green: #0f9f6e;
  --red: #dc2626;
  --shadow: 0 24px 70px rgba(5, 25, 66, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.top-strip {
  color: white;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #2f78ff);
}
.top-strip-inner,
.nav,
.section,
.footer-inner {
  max-width: 1240px;
  margin: auto;
  padding-inline: 22px;
}
.top-strip-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 48vw;
}
.ticker span {
  display: inline-block;
  animation: ticker 16s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(-20%); }
  to { transform: translateX(100%); }
}

.site-header {
  position: relative;
  top: auto;
  z-index: 30;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,228,239,.85);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
  font-weight: 900;
}
.brand img {
  width: 122px;
  max-height: 48px;
  object-fit: contain;
}
.brand-title small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.nav-center,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-center a {
  padding: 9px 10px;
  color: #31425a;
  font-size: 14px;
  border-radius: 8px;
}
.nav-center a:hover { color: var(--brand); background: var(--brand-soft); }
.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: white;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(4,83,240,.12);
}
.btn.primary {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
.btn.dark {
  color: white;
  border-color: var(--black);
  background: var(--black);
}
.btn.gold {
  color: #111827;
  border-color: var(--gold);
  background: var(--gold);
}
.btn.danger {
  color: white;
  border-color: var(--red);
  background: var(--red);
}
.btn.ghost { background: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  color: white;
  background: radial-gradient(circle at 12% 18%, #3c85ff 0, rgba(60,133,255,0) 30%),
    linear-gradient(135deg, #071b47 0%, #0453f0 52%, #0b1736 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to top, var(--soft), rgba(243,246,249,0));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: auto;
  padding: 62px 22px 44px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  color: #dbe8ff;
  background: rgba(255,255,255,.10);
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbe8ff;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 680px;
}
.hero-stat {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.11);
}
.hero-stat strong { display: block; font-size: 27px; }
.hero-stat span { color: #dbe8ff; font-size: 13px; }
.hero-stage {
  position: relative;
  min-height: 486px;
}
.showcase {
  position: absolute;
  inset: 36px 0 auto auto;
  width: 78%;
  min-height: 390px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 35px 80px rgba(0,0,0,.24);
  overflow: hidden;
  animation: floaty 5s ease-in-out infinite;
}
.showcase img {
  width: 100%;
  height: 390px;
  object-fit: contain;
  padding: 30px;
}
.mini-product {
  position: absolute;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  width: min(310px, 86%);
  padding: 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.mini-product img { width: 72px; height: 62px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.mini-product.one { left: 0; top: 30px; }
.mini-product.two { left: 24px; bottom: 42px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section { padding-block: 40px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}
.section-head p { margin: 4px 0 0; color: var(--muted); }

.ad-strip {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}
.ads-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}
.banner-card {
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: white;
  background: #0b1736;
  box-shadow: var(--shadow);
}
.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
}
.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,83,240,.92), rgba(4,83,240,.20));
}
.banner-content {
  position: relative;
  z-index: 1;
  padding: 22px;
  max-width: 620px;
}
.banner-content h3 { margin: 0 0 8px; font-size: 27px; }
.banner-content p { margin: 0 0 16px; color: #eaf1ff; }

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: white;
  box-shadow: 0 12px 28px rgba(5,25,66,.05);
}
.category-card strong { display: block; color: var(--brand); font-size: 22px; }
.category-card span { color: var(--muted); font-size: 13px; }

.tools {
  display: grid;
  grid-template-columns: 1fr 230px 190px;
  gap: 10px;
  margin-bottom: 18px;
}
.field,
.select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}
.field:focus,
.select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(4,83,240,.10);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(5,25,66,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(4,83,240,.32);
  box-shadow: 0 25px 60px rgba(4,83,240,.13);
}
.product-img {
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform .28s ease;
}
.product:hover .product-img img { transform: scale(1.05) rotate(-1deg); }
.product-body { padding: 15px; }
.product h3 {
  min-height: 52px;
  margin: 8px 0 5px;
  font-size: 17px;
  line-height: 1.45;
}
.meta { color: var(--muted); font-size: 13px; }
.price {
  margin-top: 11px;
  color: var(--brand-dark);
  font-size: 21px;
  font-weight: 900;
}
.price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.wholesale-note {
  margin-top: 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}
.stock-pill {
  position: absolute;
  inset: 12px 12px auto auto;
  color: white;
  background: var(--black);
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.detail-page {
  background: white;
}
.detail-hero {
  max-width: 1240px;
  margin: auto;
  padding: 34px 22px 46px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 32px;
  align-items: start;
}
.detail-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  box-shadow: var(--shadow);
}
.detail-media img {
  width: 100%;
  aspect-ratio: 1 / .86;
  object-fit: contain;
  padding: 34px;
}
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.detail-copy h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 54px); line-height: 1.1; }
.detail-copy p { color: var(--muted); font-size: 17px; }
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.spec-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.services-band {
  color: white;
  background: #111827;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.service h3 { margin-top: 0; }
.service p { color: #cbd5e1; margin-bottom: 0; }

.site-footer {
  color: #dbe8ff;
  background: linear-gradient(135deg, #061331, #041d56);
}
.footer-inner {
  padding-block: 38px;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr .9fr;
  gap: 24px;
}
.footer-logo { width: 138px; margin-bottom: 14px; }
.footer-inner h3 { color: white; margin: 0 0 10px; }
.footer-inner p,
.footer-inner li { color: #c8d7f2; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 22px;
  text-align: center;
  color: #aebfe0;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(540px, 100%);
  background: white;
  z-index: 70;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: .25s ease;
  overflow: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.drawer-body { padding: 18px; }
.cart-row,
.line-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 64px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.admin-layout {
  display: grid;
  grid-template-columns: 284px 1fr;
  min-height: 100vh;
  background: #eef3fb;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  color: white;
  background: linear-gradient(180deg, #061331, #082f88 62%, #0453f0);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.admin-brand img { width: 112px; background: white; border-radius: 8px; padding: 8px; }
.side-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  color: #eaf1ff;
  text-align: right;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.side-btn.active,
.side-btn:hover {
  color: var(--brand-dark);
  background: white;
}
.admin-main {
  min-width: 0;
  padding: 24px;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-top h1 { margin: 0; font-size: 30px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  overflow: hidden;
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(5,25,66,.06);
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(4,83,240,.10);
}
.kpi span { color: var(--muted); }
.kpi strong { display: block; margin-top: 5px; font-size: 30px; color: var(--brand-dark); }
.panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(5,25,66,.05);
}
.panel h3 { margin-top: 0; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fbff;
}
.thumb {
  width: 52px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f6f9;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span2 { grid-column: span 2; }
.status-ok { color: var(--green); font-weight: 800; }
.status-off { color: var(--red); font-weight: 800; }
.toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 15px;
  color: white;
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.fade-up {
  animation: fadeUp .55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1060px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero-inner,
  .detail-hero { grid-template-columns: 1fr; }
  .showcase { position: relative; inset: auto; width: 100%; }
  .mini-product { position: relative; inset: auto; margin-top: 12px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .category-row,
  .services-grid,
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}
@media (max-width: 720px) {
  .top-strip-inner { align-items: flex-start; flex-direction: column; padding-block: 8px; }
  .ticker { max-width: 100%; }
  .nav-center,
  .nav-actions { width: 100%; }
  .nav-center a,
  .nav-actions .btn,
  .nav-actions a { flex: 1; text-align: center; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 36px; }
  .hero-stats,
  .ads-grid,
  .tools,
  .grid,
  .category-row,
  .services-grid,
  .kpis,
  .footer-inner,
  .spec-list,
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .section-head,
  .admin-top { align-items: stretch; flex-direction: column; }
  .admin-main { padding: 16px; }
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 15px;
  color: white;
  border-radius: 8px;
  background: #16a34a;
  box-shadow: 0 18px 42px rgba(22, 163, 74, .25);
  font-weight: 800;
}
.floating-whatsapp svg,
.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floating-whatsapp .wa-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(4,83,240,.22), transparent 32%),
    linear-gradient(135deg, #eef5ff, #ffffff);
}
.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(4,83,240,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(5,25,66,.14);
}
.admin-login-card img {
  width: 150px;
  margin: 0 auto 8px;
}
.admin-login-card h1,
.admin-login-card p {
  margin: 0;
  text-align: center;
}
.admin-login-card p {
  color: var(--muted);
}
.login-error {
  min-height: 22px;
  color: var(--red);
  text-align: center;
  font-weight: 700;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 21, 47, .58);
  backdrop-filter: blur(12px);
}
.order-modal {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}
.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.order-modal-body {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  padding: 18px;
}
.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbff;
}
.order-summary img {
  width: 100%;
  aspect-ratio: 1 / .72;
  object-fit: contain;
  padding: 22px;
  background: white;
}
.order-summary-content { padding: 14px; }
.qty-control {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
  align-items: center;
}
.qty-control input { text-align: center; }
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.pay-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.pay-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(4, 83, 240, .1);
}
.pay-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f6f9;
  overflow: hidden;
}
.pay-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.payment-info {
  display: none;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.payment-info.show { display: block; }
.admin-shell {
  background: #edf3ff;
}
.admin-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #061331, #0453f0);
  box-shadow: var(--shadow);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 34px rgba(5, 25, 66, .06);
}
.metric-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
}
.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 28px;
}
.metric-card span { color: var(--muted); }
.catalog-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.catalog-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 30px rgba(5, 25, 66, .05);
  text-align: center;
}
.catalog-tile .catalog-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.catalog-tile .catalog-symbol svg {
  width: 25px;
  height: 25px;
}
.product .stock-pill { display: none; }
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.file-hint {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .order-modal-body,
  .admin-hero { grid-template-columns: 1fr; }
  .metric-grid,
  .catalog-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .payment-grid,
  .metric-grid,
  .catalog-icon-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { left: 12px; right: 12px; justify-content: center; }
  .order-modal-body { padding: 12px; }
}

.display-banner {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 8px;
  background: #0b1736;
  box-shadow: var(--shadow);
}
.display-banner picture,
.display-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.display-banner img {
  object-fit: cover;
  opacity: .62;
}
.display-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 83, 240, .92), rgba(4, 83, 240, .18));
}
.display-banner .banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.catalog-showcase {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 14% 20%, rgba(4, 83, 240, .55), transparent 34%),
    linear-gradient(135deg, rgba(3, 14, 40, .90), rgba(4, 83, 240, .74), rgba(3, 14, 40, .88)),
    url("https://shopsource.singoo.cc/578/general/Rfd8yQXCQahDEsCF.jpg") center / cover;
}
.catalog-showcase .section-head h2,
.catalog-showcase .section-head p {
  color: white;
}
.catalog-showcase .catalog-icon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1060px;
  margin: auto;
}
.catalog-showcase .catalog-tile {
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    linear-gradient(135deg, #0453f0, #06359a);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .24);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.catalog-showcase .catalog-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.52);
  box-shadow: 0 28px 64px rgba(4, 83, 240, .35);
}
.catalog-showcase .catalog-symbol {
  width: 76px;
  height: 76px;
  color: white;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.catalog-showcase .catalog-symbol svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}
.catalog-showcase .catalog-tile strong {
  color: white;
  line-height: 1.25;
}
.catalog-showcase .catalog-tile .meta {
  color: rgba(255, 255, 255, .74);
}
.catalog-view-all {
  grid-column: span 2;
  min-height: 174px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #0453f0);
  color: white;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .24);
}
.banner-upload-grid,
.bank-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.upload-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.upload-box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: white;
}
.bank-upload-grid .upload-box img {
  height: 72px;
  object-fit: contain;
}
.product-upload {
  grid-column: span 2;
}
.product-upload img {
  object-fit: contain;
  background: #f8fbff;
}
@media (max-width: 1060px) {
  .catalog-showcase .catalog-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .display-banner { min-height: 360px; }
  .catalog-showcase .catalog-icon-grid,
  .banner-upload-grid,
  .bank-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-view-all { grid-column: span 2; font-size: 42px; }
}

.top-strip {
  background: #071b47;
}
.top-strip-inner {
  min-height: 34px;
}
.ticker span {
  animation: none;
}
.nav {
  min-height: 72px;
}
.catalog-showcase {
  padding-block: 56px;
  background:
    radial-gradient(circle at 82% 8%, rgba(4, 83, 240, .42), transparent 32%),
    linear-gradient(135deg, rgba(239, 245, 255, .92), rgba(216, 229, 255, .96));
}
.catalog-showcase .section-head h2 {
  color: #071b47;
}
.catalog-showcase .section-head p {
  color: #53657f;
}
.catalog-showcase .catalog-icon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
}
.catalog-showcase .catalog-tile {
  position: relative;
  grid-template-columns: 96px 1fr;
  place-items: center stretch;
  min-height: 142px;
  padding: 16px;
  text-align: right;
  border: 1px solid rgba(4, 83, 240, .14);
  background: linear-gradient(135deg, white, #edf4ff);
  box-shadow: 0 18px 44px rgba(5, 25, 66, .09);
}
.catalog-showcase .catalog-tile::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0453f0, #06359a);
}
.catalog-showcase .catalog-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(4, 83, 240, .36);
  box-shadow: 0 26px 64px rgba(4, 83, 240, .16);
}
.catalog-showcase .catalog-symbol {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(4, 83, 240, .12);
  background: white;
  box-shadow: inset 0 0 0 8px #f2f6ff;
}
.catalog-showcase .catalog-symbol img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 7px;
}
.catalog-showcase .catalog-symbol svg {
  width: 38px;
  height: 38px;
  color: #0453f0;
}
.catalog-showcase .catalog-tile strong {
  color: #071b47;
  font-size: 18px;
}
.catalog-showcase .catalog-tile .meta {
  color: #66758a;
}
.catalog-text {
  display: grid;
  gap: 4px;
}
.catalog-view-all {
  display: none;
}
@media (max-width: 920px) {
  .catalog-showcase .catalog-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .top-strip { display: none; }
  .nav {
    min-height: auto;
    padding-block: 14px;
    gap: 12px;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .nav-center {
    justify-content: center;
  }
  .catalog-showcase {
    padding-block: 34px;
  }
  .catalog-showcase .catalog-icon-grid {
    grid-template-columns: 1fr;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 78px 1fr;
    min-height: 116px;
    padding: 12px;
  }
  .catalog-showcase .catalog-symbol {
    width: 70px;
    height: 70px;
  }
  .catalog-showcase .catalog-symbol img {
    width: 64px;
    height: 64px;
  }
}

:root {
  --surface: #f7faff;
  --ring: rgba(4, 83, 240, .14);
}
body {
  background:
    radial-gradient(circle at 10% 4%, rgba(4, 83, 240, .10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  font-family: "Alexandria", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}
.site-header {
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(5, 25, 66, .08);
}
.nav {
  max-width: 1280px;
}
.brand img {
  width: 132px;
}
.nav-center {
  padding: 6px;
  border: 1px solid rgba(220, 228, 239, .76);
  border-radius: 8px;
  background: #f8fbff;
}
.nav-center a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #26364f;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}
.hero {
  min-height: 560px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 26%),
    radial-gradient(circle at 18% 12%, rgba(76, 136, 255, .72), transparent 30%),
    linear-gradient(135deg, #061331 0%, #0453f0 58%, #071b47 100%);
}
.hero-inner {
  max-width: 1280px;
}
.hero h1 {
  max-width: 760px;
  text-wrap: balance;
}
.showcase {
  border: 1px solid rgba(255,255,255,.28);
}
.section {
  max-width: 1280px;
}
.section-head {
  align-items: center;
}
.section-head h2 {
  color: #071b47;
  font-weight: 900;
}
.display-banner,
.product,
.panel,
.metric-card,
.catalog-showcase .catalog-tile {
  border-radius: 10px;
}
.display-banner {
  min-height: 230px;
}
.catalog-showcase {
  margin-inline: auto;
}
.catalog-showcase .section-head {
  max-width: 1120px;
  margin-inline: auto;
}
.catalog-showcase .catalog-tile {
  overflow: hidden;
}
.catalog-showcase .catalog-symbol {
  border-radius: 10px;
}
.product {
  background: rgba(255,255,255,.98);
}
.product-img {
  background:
    radial-gradient(circle at 50% 18%, white, transparent 48%),
    linear-gradient(180deg, #f8fbff, #edf4ff);
}
.product h3 a {
  color: #071b47;
}
.price {
  letter-spacing: 0;
}
.admin-layout {
  background:
    radial-gradient(circle at 85% 0%, rgba(4,83,240,.12), transparent 32%),
    #eef4fb;
}
.admin-hero {
  border-radius: 12px;
}
.floating-whatsapp {
  border-radius: 999px;
}

@media (max-width: 860px) {
  .nav {
    padding: 12px 14px;
  }
  .nav-center {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-center::-webkit-scrollbar {
    display: none;
  }
  .nav-center a {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 13px;
  }
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nav-actions .btn,
  .nav-actions a {
    width: 100%;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding: 28px 16px 34px;
    gap: 18px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stat {
    padding: 10px 8px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 11px;
  }
  .hero-stage {
    min-height: auto;
  }
  .showcase {
    min-height: 250px;
  }
  .showcase img {
    height: 250px;
    padding: 18px;
  }
  .mini-product {
    display: none;
  }
  .ad-strip {
    margin-top: 0;
  }
  .ads-grid {
    grid-template-columns: 1fr;
  }
  .display-banner {
    min-height: 250px;
  }
  .banner-content {
    padding: 18px;
  }
  .banner-content h3 {
    font-size: 22px;
  }
  .section {
    padding: 30px 14px;
  }
  .section-head {
    text-align: center;
    align-items: center;
  }
  .catalog-showcase {
    padding-block: 28px;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }
  .catalog-showcase .catalog-tile strong {
    font-size: 16px;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: stretch;
  }
  .product-img {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .product-img img {
    padding: 10px;
  }
  .product-body {
    padding: 12px;
  }
  .product h3 {
    min-height: 0;
    margin: 7px 0 4px;
    font-size: 14px;
  }
  .product .meta {
    font-size: 11px;
  }
  .product .price {
    font-size: 16px;
  }
  .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 9px;
  }
  .product-actions .btn {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .detail-hero {
    padding: 22px 14px 32px;
  }
  .detail-copy h1 {
    font-size: 30px;
  }
  .footer-inner {
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 116px;
  }
  .brand-title {
    font-size: 13px;
  }
  .nav-actions {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 72px 1fr;
  }
  .catalog-showcase .catalog-symbol {
    width: 66px;
    height: 66px;
  }
  .catalog-showcase .catalog-symbol img {
    width: 60px;
    height: 60px;
  }
  .product {
    grid-template-columns: 104px 1fr;
  }
}

/* Final polish for homepage rhythm and mobile storefront layout */
.hero .fade-up {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  margin: 22px 0 20px;
}
.hero p {
  margin: 0 0 30px;
  line-height: 1.9;
}
.hero-actions {
  margin-bottom: 32px;
}
.section-head {
  margin-bottom: 30px;
}
.section-head h2 {
  line-height: 1.25;
}
.section-head p {
  margin-top: 12px;
  line-height: 1.9;
}
.catalog-showcase .section-head {
  text-align: center;
}

@media (max-width: 860px) {
  .hero {
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.18), transparent 32%),
      linear-gradient(180deg, #074fdc 0%, #062c82 100%);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding: 26px 16px 24px;
    gap: 22px;
  }
  .hero .fade-up {
    width: 100%;
    align-items: stretch;
    text-align: center;
  }
  .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    line-height: 1.55;
  }
  .hero h1 {
    max-width: 100%;
    margin: 18px auto 18px;
    font-size: clamp(31px, 8.4vw, 43px);
    line-height: 1.24;
  }
  .hero p {
    max-width: 35rem;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.95;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-actions .btn {
    min-height: 46px;
  }
  .hero-stats {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-stat {
    display: grid;
    align-content: center;
    min-height: 76px;
    padding: 10px 6px;
    text-align: center;
  }
  .hero-stat strong {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .hero-stat span {
    font-size: 11px;
    line-height: 1.45;
  }
  .hero-stage {
    width: 100%;
    order: 2;
    min-height: 0;
  }
  .showcase {
    width: 100%;
    min-height: 210px;
    border-radius: 10px;
  }
  .showcase img {
    height: 210px;
    padding: 18px;
  }
  .section {
    padding-block: 36px;
  }
  .section-head {
    margin-bottom: 24px;
    text-align: center;
  }
  .section-head h2 {
    font-size: 30px;
    line-height: 1.3;
  }
  .section-head p {
    max-width: 32rem;
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.9;
  }
  .catalog-showcase {
    padding-block: 38px;
  }
  .floating-whatsapp {
    bottom: 18px;
    left: 16px;
    right: auto;
    width: auto;
    min-width: 132px;
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .nav {
    padding-inline: 12px;
  }
  .brand img {
    width: 126px;
  }
  .hero-inner {
    padding: 24px 14px 22px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stat {
    min-height: 72px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 10px;
  }
  .showcase {
    min-height: 190px;
  }
  .showcase img {
    height: 190px;
    padding: 14px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .catalog-showcase .catalog-tile {
    grid-template-columns: 70px 1fr;
    min-height: 104px;
    padding: 11px;
  }
  .floating-whatsapp {
    bottom: 14px;
    left: 14px;
    right: auto;
    min-width: 118px;
    min-height: 46px;
  }
}

/* Mobile admin drawer */
.admin-menu-toggle,
.admin-drawer-close,
.admin-menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body.admin-menu-lock {
    overflow: hidden;
  }
  .admin-layout.admin-shell {
    display: block;
    min-height: 100vh;
    position: relative;
  }
  .admin-main {
    width: 100%;
    padding: 72px 14px 18px;
  }
  .admin-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 80;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(4, 83, 240, .18);
    border-radius: 12px;
    color: #071b47;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 38px rgba(5, 25, 66, .16);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
  }
  .admin-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 17, 42, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  .admin-shell.menu-open .admin-menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .admin-layout .sidebar {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 90;
    width: min(86vw, 334px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-110%);
    transition: transform .24s cubic-bezier(.22, .86, .32, 1);
    will-change: transform;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-shadow: 28px 0 70px rgba(5, 17, 42, .32);
  }
  .admin-shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .admin-drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    color: white;
    background: rgba(255,255,255,.1);
    font-size: 22px;
    line-height: 1;
  }
  .admin-brand {
    padding-inline-end: 44px;
  }
  .side-btn {
    min-height: 48px;
    margin-top: 9px;
    border-radius: 12px;
  }
  .admin-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .admin-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.3;
  }
  .admin-hero p {
    margin: 0;
    line-height: 1.8;
  }
  .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-actions .btn {
    min-height: 42px;
    padding-inline: 10px;
  }
  .panel {
    overflow: hidden;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 901px) {
  .quick-actions .btn:first-child {
    display: none;
  }
}

@media (max-width: 430px) {
  .admin-main {
    padding: 70px 12px 16px;
  }
  .admin-layout .sidebar {
    width: min(88vw, 320px);
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin mobile experience */
@media (max-width: 760px) {
  .admin-layout.admin-shell {
    background:
      radial-gradient(circle at 90% 0%, rgba(4,83,240,.14), transparent 32%),
      #eef4fb;
  }
  .admin-main {
    padding: 72px 12px 20px;
  }
  .admin-hero {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 10% 10%, rgba(255,255,255,.2), transparent 34%),
      linear-gradient(135deg, #061331, #0453f0);
  }
  .admin-hero h1 {
    font-size: 25px;
  }
  .admin-hero p {
    font-size: 13px;
    color: rgba(255,255,255,.82);
  }
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-actions .btn {
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }
  .metric-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 14px;
  }
  .metric-card,
  .kpi {
    min-height: 108px;
    padding: 13px;
    border-radius: 14px;
  }
  .metric-card .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .metric-card strong,
  .kpi strong {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.25;
  }
  .metric-card span,
  .kpi span {
    font-size: 12px;
    line-height: 1.55;
  }
  .panel {
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(5,25,66,.06);
  }
  .panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
  }
  .form-grid,
  .banner-upload-grid,
  .bank-upload-grid {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }
  .form-grid .full,
  .form-grid .span2 {
    grid-column: auto;
  }
  .field,
  .select,
  textarea {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
  }
  textarea {
    min-height: 92px;
  }
  .panel > .btn,
  .form-grid .btn {
    width: 100%;
    min-height: 46px;
  }
  .line-row {
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    padding: 12px 0;
  }
  .line-row strong {
    font-size: 14px;
  }
  .line-row label {
    font-size: 12px;
    white-space: nowrap;
  }
  .upload-box {
    border-radius: 14px;
  }
  .upload-box img {
    height: 112px;
    border-radius: 10px;
  }
  .table-wrap {
    overflow: visible;
  }
  .admin-main table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .admin-main thead {
    display: none;
  }
  .admin-main tbody {
    display: grid;
    gap: 10px;
  }
  .admin-main tr {
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5,25,66,.05);
  }
  .admin-main td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 6px;
    border-bottom: 1px solid #edf2f8;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
  }
  .admin-main td:last-child {
    border-bottom: 0;
  }
  .admin-main td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .admin-main td:empty {
    display: none;
  }
  .admin-main td .btn,
  .admin-main td button,
  .admin-main td .select {
    width: 100%;
    min-height: 38px;
    margin: 3px 0;
  }
  .admin-main td .thumb,
  .thumb {
    width: 64px;
    height: 56px;
  }
  .pay-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .pay-logo img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-actions .btn {
    font-size: 11px;
  }
  .metric-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .metric-card,
  .kpi {
    min-height: 100px;
    padding: 11px;
  }
  .metric-card strong,
  .kpi strong {
    font-size: 19px;
  }
  .admin-main td {
    grid-template-columns: 82px minmax(0, 1fr);
    font-size: 12px;
  }
}

/* Final admin polish: mobile drawer, reports, login, and storefront rhythm */
.admin-drawer-handle {
  display: none;
}
.enhanced-login {
  width: min(480px, 100%);
  gap: 14px;
}
.enhanced-login .pill {
  justify-self: center;
}
.security-note {
  padding: 12px 14px;
  border: 1px solid rgba(4,83,240,.14);
  border-radius: 12px;
  color: #274066;
  background: #f3f7ff;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.report-card {
  padding: 18px;
  border: 1px solid rgba(4,83,240,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 14px 34px rgba(5,25,66,.07);
}
.report-card h3,
.report-card p {
  margin: 0 0 10px;
}
.report-card strong {
  color: var(--brand);
  font-size: 22px;
}
.report-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-order-modal .order-modal-body {
  grid-template-columns: .75fr 1.25fr;
}
@media (max-width: 900px) {
  .admin-layout.admin-shell {
    overscroll-behavior-x: contain;
  }
  .admin-main {
    touch-action: pan-y;
  }
  .admin-drawer-handle {
    position: fixed;
    top: 48%;
    left: 10px;
    z-index: 84;
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 104px;
    padding: 10px 7px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #0453f0, #052a82);
    box-shadow: 0 18px 38px rgba(4,83,240,.32);
    font-weight: 900;
    writing-mode: vertical-rl;
    letter-spacing: 0;
    touch-action: manipulation;
  }
  .admin-shell.menu-open .admin-drawer-handle {
    opacity: 0;
    pointer-events: none;
  }
  .admin-login-page {
    align-items: start;
    padding-top: 34px;
  }
  .admin-login-card {
    padding: 22px;
    border-radius: 16px;
  }
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-order-modal .order-modal-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .hero h1 {
    margin-bottom: 18px;
  }
  .hero p {
    margin-bottom: 24px;
  }
  .hero-stage {
    margin-top: 4px;
  }
  .section-head h2 {
    margin-bottom: 14px;
  }
  .section-head p {
    margin-top: 0;
  }
  .report-grid,
  .report-actions {
    grid-template-columns: 1fr;
  }
  .admin-section-head {
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  .admin-drawer-handle {
    left: 8px;
    min-width: 38px;
    min-height: 92px;
    font-size: 12px;
  }
  .hero h1 {
    margin-top: 20px;
    margin-bottom: 16px;
  }
  .hero p {
    margin-bottom: 22px;
  }
}
