:root {
  --bg1: #1d83ff;
  --bg2: #11b6b0;
  --bg3: #ffb321;
  --surface-bg: #07090d;
  --card: rgba(17, 20, 27, 0.9);
  --card-soft: rgba(24, 28, 37, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --border-color: rgba(255, 255, 255, 0.08);
  --btn-primary: #0e8fff;
  --btn-primary-text: #ffffff;
  --text: #edf2ff;
  --muted: #9da8bb;
  --site-font: "Tajawal", sans-serif;
}

html, body { overflow-x: hidden; }
body {
  font-family: var(--site-font), Tahoma, Arial, sans-serif;
  font-size: var(--site-font-size, 16px);
  font-weight: var(--site-font-weight, 500);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(17, 182, 176, 0.14), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(29, 131, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #090c12 0%, #05070b 100%);
}
a { text-decoration: none; }

.glass-nav {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.96), rgba(14, 17, 24, 0.86));
  border-color: var(--border-color) !important;
}
.navbar-brand, .nav-link, .dropdown-item, .table, .form-label { color: var(--text); }
.nav-link { color: var(--muted); }
.nav-link.active, .nav-link:hover { color: #fff !important; }
.navbar-toggler { border: 0; background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
.navbar-toggler-icon { filter: invert(1); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(14, 143, 255, 0.35);
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-wrap,
.section-card,
.pricing-card,
.info-card,
.account-card,
.wallet-card,
.list-card,
.footer-box,
.table-wrap,
.form-card,
.metric-card,
.hero-side-card,
.product-card,
.admin-card-stat,
.affiliate-hero-card,
.affiliate-mini-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  border-radius: 26px;
}

.form-control,
.form-select,
.input-group-text,
textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  min-height: 48px;
}
.form-control::placeholder,
textarea::placeholder { color: rgba(237, 242, 255, 0.4); }
.form-control:focus,
.form-select:focus,
textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 143, 255, 0.16) !important;
  border-color: rgba(14, 143, 255, 0.45) !important;
}

.btn-primary,
.btn-preview-primary {
  background: linear-gradient(135deg, var(--btn-primary), color-mix(in srgb, var(--btn-primary) 72%, white)) !important;
  border-color: transparent !important;
  color: var(--btn-primary-text) !important;
}
.btn-outline-primary {
  color: #8ed2ff !important;
  border-color: rgba(84, 180, 255, 0.42) !important;
}
.btn-outline-light,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-success,
.theme-toggle {
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.soft-badge,
.hero-badge,
.mini-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .84rem;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e8ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pill { color: #8ed2ff; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-heading h2,
.admin-title h1,
.admin-title h2,
.admin-title h3,
.h4,
.h3,
.h2,
h1, h2, h3, h4, h5, h6 {
  color: #fff;
}
.text-secondary, .small.text-secondary, .hero-checks li, .table thead th { color: var(--muted) !important; }
.price-text { font-size: 1.28rem; font-weight: 800; color: #fff; }

.home-shell { max-width: 1180px; }
.home-slider .carousel-indicators { margin-bottom: .55rem; }
.home-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-slide-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}
.hero-slide-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.1), rgba(7, 9, 13, 0.72));
}
.hero-slide-copy {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
  max-width: min(520px, 100%);
}
.hero-slide-copy h2 { font-size: clamp(1.4rem, 2vw, 2.2rem); margin-bottom: .45rem; }
.hero-slide-copy p { color: #d7dbea; margin-bottom: .9rem; }

.home-notice-inner {
  border-radius: 18px;
  padding: .85rem 1.2rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #eceff7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
}
.home-notice-inner span { display:inline-block; padding-inline-start:0; animation: notice-marquee 16s linear infinite; will-change: transform; }

.home-search-card {
  padding: 0;
  border-radius: 22px;
  background: transparent;
  border: 0;
}
.home-search-form {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .2rem .25rem .2rem .8rem;
  border-radius: 999px;
  background: #0c141d;
  border: 1px solid rgba(255,255,255,.06);
  max-width: 560px;
  margin-inline: auto;
}
.home-search-form i { color: var(--muted); padding-inline-start: 1rem; }
.home-search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  min-height: 48px;
}
.home-search-form .btn { min-width: 88px; min-height: 44px; padding-inline: 1.2rem !important; }

.category-spotlight {
  display: block;
  overflow: hidden;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.category-spotlight:hover { transform: translateY(-4px); border-color: rgba(84, 180, 255, 0.35); }
.category-spotlight-media { height: 180px; overflow: hidden; }
.category-spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.category-spotlight-body { padding: 1rem; }
.category-spotlight-body h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.category-spotlight-body p { margin: 0; color: var(--muted); }

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card { padding: 1.15rem 1.2rem; }

.product-card {
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(84, 180, 255, 0.3);
}
.product-media {
  position: relative;
  height: 215px;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.gradient-strip { height: 4px; background: linear-gradient(90deg, var(--bg1), var(--bg2), var(--bg3)); }
.product-card .card-body { padding: 1rem; }
.home-product-card .home-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  color: var(--muted);
  font-size: .88rem;
}

.home-feature-band {
  padding: 1.35rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}
.feature-tile {
  height: 100%;
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feature-tile i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: #fff;
}
.feature-tile p { margin: 0; color: var(--muted); }

.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 56px;
  background: linear-gradient(135deg, rgba(29, 131, 255, 0.18), rgba(17, 182, 176, 0.12));
}
.hero-checks { list-style: none; padding: 0; margin: 0; }
.hero-checks li { margin-bottom: .6rem; }

.affiliate-hero {
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 143, 255, 0.16), rgba(17, 182, 176, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.affiliate-hero-card,
.affiliate-mini-card { padding: 1.1rem; }
.affiliate-link-box {
  padding: .95rem;
  border-radius: 18px;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.affiliate-step {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.affiliate-step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: #fff;
  font-weight: 800;
}

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 290px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #080b11 0%, #0d1421 100%);
  color: #dbe6ff;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.admin-sidebar .nav-link {
  color: #b2c0da;
  border: 1px solid transparent;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.admin-main { flex: 1; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 13, 0.92) !important;
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.table-responsive { border-radius: 20px; }
.table { margin-bottom: 0; color: var(--text); }
.table td, .table th {
  padding: .95rem;
  border-color: rgba(255, 255, 255, 0.06);
  background: transparent !important;
}

.dropdown-menu {
  background: rgba(16, 19, 27, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255, 255, 255, 0.06); }

.slide-row.active-slide-picker {
  border-color: rgba(84, 180, 255, 0.42) !important;
  box-shadow: 0 0 0 0.2rem rgba(14, 143, 255, 0.14), var(--shadow);
}
.slide-thumb {
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-thumb-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: .55rem;
}
.gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: .35rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.gallery-card img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 10px;
  z-index: 1050;
  background: rgba(8, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-bottom-nav a {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  opacity: .78;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { opacity: 1; }
.mobile-bottom-nav i { font-size: 18px; }

.flash, .alert {
  border: 0;
  box-shadow: var(--shadow);
  border-radius: 20px !important;
}

@media (max-width: 991px) {
  body { padding-bottom: 86px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; height: auto; width: auto; }
  .hero-wrap { padding: 28px; }
  .product-media { height: 180px; }
  .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .container, .container-fluid { padding-inline: 14px; }
  .glass-nav .container { padding-inline: 8px; }
  .hero-slide-card,
  .hero-slide-card img { min-height: 170px; height: 210px; border-radius: 22px; }
  .hero-slide-copy h2 { font-size: 1.1rem; }
  .home-notice-inner { font-size: .98rem; }
  .home-search-form { padding: .25rem .25rem .25rem .2rem; }
  .home-search-form button { padding-inline: 1rem !important; }
  .category-spotlight-media { height: 132px; }
  .home-feature-band { padding: 1rem; }
}

[data-bs-theme="light"] body {
  background:
    radial-gradient(circle at top center, rgba(17, 182, 176, 0.12), transparent 30%),
    radial-gradient(circle at 20% 0%, rgba(29, 131, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #edf4ff 0%, #e8eef8 100%);
  color: #0e1624;
}
[data-bs-theme="light"] .glass-nav { background: rgba(247, 250, 255, 0.88); }
[data-bs-theme="light"] .hero-wrap,
[data-bs-theme="light"] .section-card,
[data-bs-theme="light"] .pricing-card,
[data-bs-theme="light"] .info-card,
[data-bs-theme="light"] .account-card,
[data-bs-theme="light"] .wallet-card,
[data-bs-theme="light"] .list-card,
[data-bs-theme="light"] .footer-box,
[data-bs-theme="light"] .table-wrap,
[data-bs-theme="light"] .form-card,
[data-bs-theme="light"] .metric-card,
[data-bs-theme="light"] .hero-side-card,
[data-bs-theme="light"] .product-card,
[data-bs-theme="light"] .admin-card-stat,
[data-bs-theme="light"] .affiliate-hero-card,
[data-bs-theme="light"] .affiliate-mini-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(12, 23, 45, 0.08);
}
[data-bs-theme="light"] .text-secondary,
[data-bs-theme="light"] .small.text-secondary,
[data-bs-theme="light"] .table thead th { color: #5e697f !important; }
[data-bs-theme="light"] .navbar-brand,
[data-bs-theme="light"] .nav-link,
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6,
[data-bs-theme="light"] .table,
[data-bs-theme="light"] .dropdown-item,
[data-bs-theme="light"] .form-label { color: #0f1828; }
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select,
[data-bs-theme="light"] textarea {
  background: rgba(12, 23, 45, 0.04) !important;
  border-color: rgba(12, 23, 45, 0.08) !important;
  color: #0f1828 !important;
}
[data-bs-theme="light"] .home-search-card,
[data-bs-theme="light"] .home-feature-band,
[data-bs-theme="light"] .affiliate-hero,
[data-bs-theme="light"] .category-spotlight,
[data-bs-theme="light"] .gallery-card,
[data-bs-theme="light"] .home-notice-inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(12, 23, 45, 0.08);
  color: #0f1828;
}
[data-bs-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(12, 23, 45, 0.08);
}
[data-bs-theme="light"] .mobile-bottom-nav a { color: #0f1828; }

.mobile-topbar {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(20, 23, 31, 0.9));
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  z-index: 1055;
}
.mobile-topbar-right,
.mobile-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-btn,
.icon-chip {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
}
.icon-chip-add { background: rgba(255,255,255,.12); font-weight: 700; }
.wallet-mini { color: #fff; font-weight: 800; }
.mobile-drawer {
  width: min(84vw, 360px) !important;
  background: #0c0e13;
  color: #fff;
}
.drawer-profile {
  padding: 22px 18px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-avatar-wrap { display:flex; justify-content:center; margin-bottom:10px; }
.drawer-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(29,131,255,.4), rgba(17,182,176,.28));
  border: 2px solid rgba(255,255,255,.14);
  font-size: 2rem;
}
.drawer-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.drawer-balance { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.drawer-quick-icons {
  display:flex;
  justify-content:center;
  gap:20px;
  margin-bottom:14px;
}
.drawer-quick-icons a { color:#fff; font-size:1.15rem; }
.drawer-currency-pill .btn { min-width: 150px; font-weight: 800; }
.drawer-auth-grid { display:grid; gap:10px; }
.google-login-btn { color:#111 !important; }
.drawer-links { padding: 14px; display: grid; gap: 10px; }
.drawer-link {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,.06);
}
.drawer-link i { font-size: 1.15rem; }
.text-purple { color: #b976ff; }

.mobile-page-head h1,
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}
.mobile-category-hero {
  position: relative;
  min-height: 180px;
  border-radius: 28px;
  overflow: hidden;
}
.mobile-category-hero img { width:100%; height:180px; object-fit:cover; filter: blur(1px); }
.mobile-category-hero-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.66)); }
.mobile-category-hero-copy { position:absolute; inset:auto 20px 20px 20px; z-index:2; }
.mobile-category-hero-copy h1 { margin-bottom: 6px; }
.mobile-search-shell { padding: 0; }
.parent-category-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  padding: 16px;
}
.parent-category-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
.parent-category-head img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
}
.sub-category-chip-wrap {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.sub-category-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.mobile-grid-card h5 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.mobile-grid-card .product-media { height: 170px; }

.product-detail-shell {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 28px;
  overflow: hidden;
}
.product-media-large { height: 320px; }
.product-detail-hero { padding: 18px; }
.product-detail-badges {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.product-order-form .product-action-row {
  display:flex;
  gap:10px;
}

.checkout-block {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.order-summary-item {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.orders-search-row {
  display:flex;
  align-items:center;
  gap:12px;
}
.search-icon-bubble {
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 24px rgba(255,255,255,.08);
}
.orders-filter-pills {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.status-pill {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.status-pill.active { border-color: rgba(36, 211, 124, .5); background: rgba(16, 108, 58, .28); }
.status-pill.danger { border-color: rgba(255, 84, 84, .4); }
.orders-total-bar {
  padding:14px 18px;
  border-radius:999px;
  border:1px solid #e0b400;
  color:#ffcf20;
  text-align:center;
  font-weight:900;
}
.empty-state-box {
  min-height: 260px;
  display:grid;
  place-items:center;
  color: var(--muted);
  text-align:center;
  font-size: 1.6rem;
}
.empty-state-box i { font-size: 4rem; display:block; margin-bottom: 14px; }
.order-mobile-card {
  display:block;
  padding:16px;
  border-radius:24px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  color:#fff;
}

.account-summary-card {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(39,49,66,.95), rgba(17,21,29,.92));
  border: 1px solid rgba(255,255,255,.09);
}
.account-summary-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.account-balance { font-size: 2rem; font-weight: 900; color: #17dc7b; }
.progress-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
}
.progress-line span {
  display:block;
  height:100%;
  background: linear-gradient(90deg, #1d83ff, #11b6b0);
}
.account-kpis {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
.account-kpis div { flex:1; }
.account-kpis span { color: var(--muted); font-size:.9rem; display:block; }
.account-kpis strong { font-size:1.1rem; }
.dashboard-mini-card {
  height:100%;
  padding:16px;
  border-radius:22px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}
.dashboard-mini-card i { font-size:1.5rem; display:block; margin-bottom:10px; color:#2d96ff; }
.dashboard-mini-card strong { font-size:1.7rem; display:block; }

.delivery-choice {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.product-meta-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.product-meta-grid div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.product-meta-grid span {
  display:block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 6px;
}
.product-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111827;
  border: 1px solid rgba(255,255,255,.85);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15,23,42,.24);
}
.product-meta-card {
  border: 1px solid rgba(37,99,235,.75);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.22);
}
[data-bs-theme="light"] .product-meta-chip {
  background: #eff6ff;
  color: #0f172a;
  border-color: rgba(37,99,235,.2);
}
.topup-close-btn {
  width: 46px;
  height: 46px;
  display:grid;
  place-items:center;
}
.topup-amount-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.topup-method-card {
  display:block;
  position:relative;
  padding:14px;
  border-radius:20px;
  background: linear-gradient(180deg, rgba(54,60,71,.95), rgba(38,43,51,.95));
  border: 1px solid rgba(255,255,255,.08);
  min-height:154px;
  overflow:hidden;
}
.topup-method-card input { position:absolute; opacity:0; }
.topup-method-inner {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.topup-method-copy strong {
  display:block;
  font-size:1.1rem;
  margin-bottom:6px;
}
.topup-method-copy span {
  color: var(--muted);
  font-size:.9rem;
}
.topup-method-card img,
.topup-method-placeholder {
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:contain;
}
.topup-method-placeholder {
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
}
.topup-method-icons {
  position:absolute;
  inset:auto 14px 12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: rgba(255,255,255,.7);
}
.topup-method-icons i:last-child { font-size:1.65rem; }
.topup-method-card:has(input:checked) {
  border-color: rgba(52,126,255,.55);
  box-shadow: 0 0 0 2px rgba(52,126,255,.2);
}
.category-sort-list {
  display: grid;
  gap: 12px;
}
.category-sort-item {
  display: grid;
  grid-template-columns: 34px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.category-sort-item.dragging {
  opacity: .55;
  border-color: rgba(52,126,255,.55);
}
.category-sort-handle {
  display:grid;
  place-items:center;
  cursor: grab;
  color: var(--muted);
  font-size: 1.2rem;
}
.category-sort-thumb {
  min-height: 52px;
  display:grid;
  align-items:center;
}
.category-sort-main {
  min-width: 0;
}
.category-sort-actions {
  flex-wrap: wrap;
}
[data-bs-theme="light"] .category-sort-item {
  background: #fff;
  border-color: rgba(15,23,42,.08);
}
@keyframes notice-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(120%); }
}

@media (min-width: 992px) {
  .mobile-topbar,
  .mobile-drawer,
  .mobile-bottom-nav { display:none !important; }
}

@media (max-width: 991px) {
  .site-footer { padding-bottom: 90px; }
  .product-action-row { flex-direction: column; }
  .product-meta-grid { grid-template-columns: 1fr; }
  .home-search-form { max-width: 100%; }
  .category-sort-item {
    grid-template-columns: 28px 54px 1fr;
  }
  .category-sort-actions {
    grid-column: 1 / -1;
  }
}

[data-bs-theme="light"] .mobile-topbar {
  background: rgba(255,255,255,.95);
  border-bottom-color: rgba(12,23,45,.08);
}
[data-bs-theme="light"] body {
  background:
    radial-gradient(circle at top center, rgba(17, 182, 176, 0.08), transparent 30%),
    radial-gradient(circle at 20% 0%, rgba(29, 131, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #0f172a;
}
[data-bs-theme="light"] .mobile-menu-btn,
[data-bs-theme="light"] .icon-chip,
[data-bs-theme="light"] .drawer-link,
[data-bs-theme="light"] .status-pill,
[data-bs-theme="light"] .order-mobile-card,
[data-bs-theme="light"] .parent-category-card,
[data-bs-theme="light"] .checkout-block,
[data-bs-theme="light"] .delivery-choice,
[data-bs-theme="light"] .account-summary-card,
[data-bs-theme="light"] .dashboard-mini-card,
[data-bs-theme="light"] .product-detail-shell {
  background: rgba(255,255,255,.9);
  color: #0f1828;
  border-color: rgba(12,23,45,.08);
}
[data-bs-theme="light"] .mobile-drawer { background: #f5f8fd; color: #0f1828; }
[data-bs-theme="light"] .drawer-link,
[data-bs-theme="light"] .drawer-quick-icons a,
[data-bs-theme="light"] .wallet-mini { color: #0f1828; }

.admin-sidebar-head {
  background: linear-gradient(180deg, rgba(29,131,255,.12), rgba(17,182,176,.04));
}
.admin-sidebar .nav-link {
  color: var(--text);
  border: 1px solid transparent;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: rgba(29,131,255,.1);
  border-color: rgba(29,131,255,.18);
}
.currency-top-trigger::after,
.currency-switcher::after {
  display: none !important;
}
.home-main-category-card {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}
.home-main-category-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  display: block;
}
.home-main-category-card span {
  display: block;
  padding: 10px 12px 14px;
  font-weight: 800;
  font-size: 1.05rem;
}
.subcategory-card span {
  font-size: .98rem;
}
[data-bs-theme="light"] .home-main-category-card {
  background: #fff;
  color: #101827;
  border-color: rgba(16,24,39,.08);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}
[data-bs-theme="light"] .mobile-drawer {
  background: #fbfcff;
}
[data-bs-theme="light"] .mobile-topbar .brand-logo,
[data-bs-theme="light"] .mobile-topbar .brand-mark {
  filter: none;
}
[data-bs-theme="light"] .home-notice-inner,
[data-bs-theme="light"] .home-search-form,
[data-bs-theme="light"] .hero-slide-card,
[data-bs-theme="light"] .mobile-category-hero,
[data-bs-theme="light"] .mobile-grid-card {
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
[data-bs-theme="light"] .topup-method-card,
[data-bs-theme="light"] .topup-amount-card {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15,23,42,.08);
}
[data-bs-theme="light"] .home-search-form {
  background: #ffffff;
}
.admin-nav-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-nav-badges .badge {
  min-width: 28px;
  padding: 6px 8px;
  font-size: .72rem;
  box-shadow: 0 10px 18px rgba(15,23,42,.16);
}
.mobile-bottom-nav a {
  position: relative;
}
.order-hint-toggle {
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.order-hint-toggle summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.order-hint-toggle summary::-webkit-details-marker {
  display: none;
}
.order-tap-hint {
  margin-top: 12px;
  font-size: .86rem;
  color: #8ec5ff;
  font-weight: 700;
}
.delivery-detail-panel {
  border: 1px solid rgba(29,131,255,.16);
}
.delivery-detail-card {
  height: 100%;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.delivery-detail-type {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.delivery-qr-wrap {
  margin-bottom: 16px;
  text-align: center;
}
.delivery-qr-wrap img {
  max-width: 220px;
  background: #fff;
  padding: 10px;
}
.delivery-detail-lines {
  display: grid;
  gap: 10px;
  line-height: 1.75;
  word-break: break-word;
}
.delivery-detail-notes {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29,131,255,.08);
  color: var(--text);
}
.sortable-list {
  display: grid;
  gap: 12px;
}
.sortable-item {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.sortable-item.dragging {
  opacity: .45;
}
.sort-handle {
  font-size: 1.2rem;
  opacity: .75;
  cursor: grab;
}
.product-sort-item .qr-preview {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}
.category-sort-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.category-sort-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.category-sort-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
[data-bs-theme="light"] .order-hint-toggle,
[data-bs-theme="light"] .delivery-detail-card,
[data-bs-theme="light"] .sortable-item,
[data-bs-theme="light"] .category-sort-group {
  background: rgba(255,255,255,.94);
  border-color: rgba(15,23,42,.08);
  color: #0f172a;
}
