:root {
  --brand: #00A651;
  --brand-dark: #00833f;
  --brand-light: #e6f6ec;
  --accent: #0B132B;
  --ink: #0B132B;
  --muted: #64748b;
  --line: #e8edf2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 19, 43, .07);
  --shadow-lg: 0 20px 50px rgba(11, 19, 43, .14);
  --success: #16a34a;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #f7fafb;
  overflow-x: hidden;
}

a { text-decoration: none; }

.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-light) !important; }
.bg-ink { background: var(--ink) !important; }
.text-accent { color: var(--accent) !important; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #e85a27; border-color: #e85a27; color: #fff; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Navbar */
.main-nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
  transition: box-shadow .2s ease;
}
.main-nav.sticky-top { position: sticky; }
.brand-logo { font-weight: 800; letter-spacing: -.5px; font-size: 1.35rem; color: var(--ink); }
.brand-logo .dot { color: var(--accent); }
.brand-badge {
  font-size: .6rem; font-weight: 700; letter-spacing: .5px;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 2px 7px; border-radius: 20px; vertical-align: middle;
}
.nav-search {
  background: #f1f5f9; border: 1px solid transparent; border-radius: 12px;
  padding: .55rem .9rem; min-width: 240px;
}
.nav-search:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(15,157,143,.12); }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 12px;
  color: var(--ink); border: 1px solid var(--line); background: #fff;
}
.icon-btn:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand-light); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; border-radius: 20px; padding: 2px 6px; min-width: 20px;
}

/* =========================================================
   GlobalDrop Header v2 - modern e-commerce header
   ========================================================= */
.gdh-header {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1029;
  transition: box-shadow .25s ease, background .25s ease;
}
.gdh-header.gdh-scrolled {
  box-shadow: 0 4px 20px rgba(11, 19, 43, .08);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gdh-topbar { padding: 10px 0; }
.gdh-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
@media (max-width: 991.98px){
  .gdh-row { flex-wrap: wrap; }
}
.gdh-row-left{ display:flex; align-items:center; gap:12px; flex-shrink:0; min-width:0; }
.gdh-search-mobile{ margin-top: 10px; }
@media (min-width: 992px){
  .gdh-search-mobile{ display:none !important; }
}

/* Brand */
.gdh-brand { display: flex; align-items: center; gap: 8px; }
.gdh-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; letter-spacing: -.5px; font-size: 1.38rem; color: var(--ink); white-space: nowrap;
}
.gdh-logo-ic { font-size: 1.45rem; color: var(--brand); }
.gdh-logo-img { height: 40px; width: auto; display: block; max-width: 180px; object-fit: contain; }
.side-logo-img { height: 36px; width: auto; display: inline-block; max-width: 160px; object-fit: contain; vertical-align: middle; border-radius: 8px; background: #fff; padding: 3px; }
.gdh-logo-dot { color: var(--brand-dark); }
.gdh-logo-badge {
  font-size: .6rem; font-weight: 700; letter-spacing: .5px;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 2px 7px; border-radius: 20px; vertical-align: middle;
}

/* Burger (mobile) */
.gdh-burger {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.3rem; line-height: 1;
}
.gdh-burger:hover { border-color: var(--brand); color: var(--brand); }

/* Categories trigger */
.gdh-cat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  background: var(--brand); border: none; border-radius: 12px; color: #fff;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background .15s ease;
}
.gdh-cat-btn:hover { background: var(--brand-dark); }
.gdh-cat-caret { font-size: .82rem; transition: transform .2s ease; }

/* Search */
.gdh-search { flex: 1 1 auto; min-width: 0; max-width: 640px; }
@media (min-width: 992px){
  .gdh-search{ margin: 0 8px; }
}
@media (max-width: 991.98px){
  .gdh-search{ max-width:none; min-width:0; }
}
.gdh-search-box {
  display: flex; align-items: center; background: #f1f5f9; border: 1px solid transparent;
  border-radius: 14px; overflow: hidden; height: 44px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gdh-search-box:focus-within {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,135,90,.12);
}
.gdh-search-select {
  border: none; background: transparent; outline: none; height: 100%;
  padding: 0 6px 0 14px; font-size: .84rem; font-weight: 600; color: var(--ink);
  cursor: pointer; max-width: 128px; flex-shrink: 0;
}
.gdh-search-sep { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }
.gdh-search-input {
  flex: 1 1 auto; min-width: 0; border: none; background: transparent; outline: none;
  padding: 0 10px; font-size: .92rem; color: var(--ink);
}
.gdh-search-input::placeholder { color: #94a3b8; }
.gdh-search-btn {
  border: none; background: var(--brand); color: #fff; width: 44px; height: 44px;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; transition: background .15s ease;
}
.gdh-search-btn:hover { background: var(--brand-dark); }
.gdh-search-img-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: var(--brand-light);
  color: var(--brand-dark); font-size: .95rem; cursor: pointer; flex-shrink: 0;
  transition: all .15s ease;
}
.gdh-search-img-btn:hover { background: var(--brand); color: #fff; }
.gdh-search-preview {
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; border-radius: 8px;
  background: var(--brand-light);
}
.gdh-search-preview img { width: 100%; height: 100%; object-fit: cover; }
.gdh-search-preview .spinner-border { width: 16px; height: 16px; border-width: 2px; color: var(--brand); }

/* Actions */
.gdh-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; flex-wrap: nowrap; }
@media (max-width: 1199.98px){
  .gdh-actions{ gap:5px; }
}
.gdh-nav-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font-weight: 600; font-size: .88rem; white-space: nowrap;
  transition: all .15s ease;
}
.gdh-nav-cta:hover { border-color: var(--brand); color: var(--brand); }
.gdh-ico {
  position: relative; width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.15rem;
  transition: all .15s ease; flex-shrink: 0;
}
.gdh-ico:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.gdh-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800;
  border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.gdh-login {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px;
  background: var(--brand); color: #fff; border: none; border-radius: 12px;
  font-weight: 700; font-size: .88rem; white-space: nowrap; transition: background .15s ease;
}
.gdh-login:hover { background: var(--brand-dark); color: #fff; }

/* Dropdowns */
.gdh-drop {
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: .45rem; min-width: 240px; border-top: 3px solid var(--brand);
}
.gdh-drop .dropdown-item { border-radius: 10px; padding: .55rem .85rem; font-size: .88rem; font-weight: 600; }
.gdh-drop .dropdown-item:hover { background: var(--brand-light); color: var(--brand-dark); }
.gdh-drop-head {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); padding: .55rem .85rem .3rem;
}
.gdh-drop a.dropdown-item i { margin-right: 10px; color: var(--brand); }

/* Categories mega modal */
.gdh-cat-modal .modal-content {
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.gdh-cat-modal .modal-header { border-bottom: 1px solid var(--line); padding: 1.05rem 1.35rem; }
.gdh-cat-modal .modal-title { font-size: 1.1rem; }
.gdh-cat-modal .modal-body { padding: 1.25rem; background: #fbfdfe; }
.gdh-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; height: 100%; transition: all .15s ease;
}
.gdh-cat-card:hover {
  border-color: var(--brand); background: var(--brand-light);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.gdh-cat-ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand-light);
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; transition: all .15s ease;
}
.gdh-cat-card:hover .gdh-cat-ic { background: var(--brand); color: #fff; }
.gdh-cat-name { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.25; }

/* Mobile drawer */
.gdh-drawer { width: 320px !important; }
.gdh-drawer-cat {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.gdh-drawer-cat:hover { border-color: var(--brand); color: var(--brand); }
.gdh-drawer-list { display: grid; gap: 2px; }
.gdh-drawer-list a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  font-weight: 600; font-size: .9rem; color: #334155;
}
.gdh-drawer-list a:hover { background: var(--brand-light); color: var(--brand-dark); }

/* Notification + mini-cart dropdown panels */
.gdh-drop-wide { min-width: 330px; max-width: 340px; max-height: 70vh; overflow-y: auto; }
.gdh-notif-item, .gdh-mini-item {
  display: flex; align-items: flex-start; gap: 10px; white-space: normal;
}
.gdh-notif-item > i { font-size: 1.1rem; margin-top: 2px; margin-right: 0 !important; flex-shrink: 0; }
.gdh-notif-item b { font-size: .84rem; }
.gdh-notif-item small, .gdh-mini-item .m { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.gdh-mini-item { align-items: center; }
.gdh-mini-item img {
  width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  background: #f1f5f9; flex-shrink: 0;
}
.gdh-mini-item .t { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.gdh-mini-item .p { font-weight: 800; font-size: .88rem; color: var(--brand-dark); white-space: nowrap; }

/* Homepage banner carousel */
.gdh-banner-slide {
  display: flex; align-items: center; border-radius: 18px; overflow: hidden;
  position: relative; text-decoration: none;
  width: 100%; aspect-ratio: 2290 / 590; min-height: 170px;
}
.gdh-banner-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.gdh-banner-grad { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); }
.gdh-banner-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(0,0,0,.5), rgba(0,0,0,.15));
}
.gdh-banner-content { position: relative; z-index: 2; color: #fff; padding: 24px 28px; max-width: 560px; }
.gdh-banner-content h3 { font-size: 1.35rem; }
.gdh-banner-content p { font-size: .92rem; }
#homeBanner .carousel-indicators { margin-bottom: 8px; }
#homeBanner .carousel-control-prev, #homeBanner .carousel-control-next { z-index: 3; }
@media (max-width: 575.98px) {
  .gdh-banner-slide { border-radius: 14px; min-height: 150px; }
  .gdh-banner-content { padding: 18px 20px; }
  .gdh-banner-content h3 { font-size: 1.08rem; }
  .gdh-banner-content p { font-size: .78rem; }
}
@media (min-width: 768px) {
  .gdh-banner-slide { min-height: 200px; border-radius: 22px; }
  .gdh-banner-content { padding: 32px 36px; max-width: 620px; }
  .gdh-banner-content h3 { font-size: 1.55rem; }
}

/* Mobile bottom navigation */
.gdh-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
  display: flex; align-items: stretch; gap: 2px; padding: 5px 8px;
  padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
}
.gdh-bottomnav a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 5px 4px 4px;
  border-radius: 12px; color: var(--muted); font-size: .62rem; font-weight: 700;
  position: relative; transition: all .15s ease;
}
.gdh-bottomnav a i { font-size: 1.28rem; line-height: 1; }
.gdh-bottomnav a span:last-child { line-height: 1.1; }
.gdh-bottomnav a:hover { color: var(--brand); }
.gdh-bottomnav a.gdh-active, .gdh-bottomnav a.gdh-active:hover { color: var(--brand); background: var(--brand-light); }
.gdh-bottomnav a .gdh-badge { top: 1px; right: calc(50% - 22px); }

@media (max-width: 991.98px) {
  body { padding-bottom: 64px; }
}

@media (max-width: 991px) {
  .gdh-search { max-width: none; }
  .gdh-cat-btn{ display:none !important; }
  .gdh-logo{ font-size:1.18rem; }
  .gdh-logo-img{ height:34px; max-width:140px; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 100% 0%, #0f9d8f22, transparent),
              radial-gradient(900px 500px at 0% 100%, #ff6b3515, transparent),
              linear-gradient(180deg, #0b6b62 0%, #0f9d8f 100%);
  color: #fff;
  border-radius: 0 0 34px 34px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero-search {
  background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
  display: flex; gap: 8px; align-items: center; max-width: 680px;
}
.hero-search input {
  border: none; outline: none; flex: 1; padding: .75rem 1rem; font-size: 1rem; border-radius: 12px;
}
.hero-search select.hero-source {
  border: none; background: #f1f5f9; border-radius: 12px; padding: .7rem .6rem; font-weight: 600; color: var(--ink);
}
.hero-chipline a {
  color: #dffbf7; border: 1px solid rgba(255,255,255,.3); border-radius: 30px;
  padding: .3rem .8rem; font-size: .8rem; display: inline-block; margin: 4px 4px 0 0;
}
.hero-chipline a:hover { background: rgba(255,255,255,.15); color: #fff; }

.hero-img-card {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.4);
}

/* Cards */
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; height: 100%;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-thumb {
  aspect-ratio: 1 / 1; background: #f1f5f9; overflow: hidden; position: relative;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.p-card:hover .p-thumb img { transform: scale(1.06); }
.p-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .68rem; font-weight: 700;
  background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 20px;
}
.p-src-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; font-size: .68rem; font-weight: 700;
  background: rgba(15,23,42,.72); color: #fff; padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(4px);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 0 8px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(16, 185, 129, .3);
}
.p-title { font-size: .93rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.p-title:hover { color: var(--brand); }
.price-now { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .82rem; }
.price-orig { color: var(--muted); font-size: .78rem; }

/* Section */
.section-title { font-weight: 800; letter-spacing: -.5px; }
.eyebrow {
  color: var(--brand); font-weight: 700; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Feature steps */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%;
}
.step-num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display:flex; align-items:center; justify-content:center;
  font-size: 1.4rem; background: var(--brand-light); color: var(--brand-dark);
}

/* Pricing breakdown */
.breakdown { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.breakdown .row-line {
  display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.breakdown .row-line:last-child { border-bottom: none; }
.breakdown .total-line { font-weight: 800; font-size: 1.15rem; color: var(--brand-dark); }

/* Chips */
.chip {
  display: inline-block; padding: .35rem .8rem; border-radius: 30px; background: #f1f5f9;
  color: var(--ink); font-size: .82rem; font-weight: 600; border: 1px solid transparent;
}
.chip.active, .chip:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .6rem .85rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(15,157,143,.12); }
.form-label { font-weight: 600; font-size: .88rem; }

/* Sidebar / dashboard */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.stat-card .num { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }

.side-menu { list-style: none; margin: 0; padding: .5rem; }
.side-menu a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 10px;
  color: #334155; font-weight: 600; font-size: .92rem;
}
.side-menu a:hover { background: #f1f5f9; color: var(--ink); }
.side-menu a.active { background: var(--brand); color: #fff; }

/* Tables */
.table-modern thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  border-bottom: 1px solid var(--line); font-weight: 700; background: #fbfdfe;
}
.table-modern td { vertical-align: middle; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline li.done::before { background: var(--brand); }
.timeline li:last-child { padding-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-head { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.pay-pill {
  display:inline-flex; align-items:center; gap:.4rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); padding: .35rem .7rem; border-radius: 10px; font-size: .8rem; color:#e2e8f0;
}

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand)); color: #fff; padding: 3rem;
  display:flex; flex-direction:column; justify-content:space-between; position: relative; overflow:hidden;
}
.auth-card { max-width: 460px; width: 100%; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Misc */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--brand-light); }
.divider-or { display:flex; align-items:center; gap:1rem; color: var(--muted); font-size:.85rem; }
.divider-or::before, .divider-or::after { content:""; height:1px; background: var(--line); flex:1; }
.empty-state { text-align:center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: #cbd5e1; }

.required-star { color: var(--accent); }

@media (max-width: 767px) {
  .hero { border-radius: 0 0 24px 24px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; align-items: stretch; }
  .hero-search button { width: 100%; }
  .nav-search { min-width: 0; }
  .stat-card .num { font-size: 1.35rem; }
}

/* Admin theme */
.admin-body { background: #f4f6f9; }
.admin-side {
  width: 258px; background: var(--ink); color: #cbd5e1; position: fixed; inset: 0 auto 0 0; z-index: 1040;
  transition: transform .25s ease; overflow-y: auto;
}
.admin-side .brand { color: #fff; font-weight: 800; padding: 1.2rem 1.25rem; display:block; }
.admin-side .side-menu a { color: #cbd5e1; }
.admin-side .side-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side .side-menu a.active { background: var(--brand); color: #fff; }
.admin-side .menu-head { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; padding: 1rem 1.1rem .4rem; }
.admin-main { margin-left: 258px; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); }
@media (max-width: 991px) {
  .admin-side { transform: translateX(-100%); }
  .admin-side.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* =========================================================
   Modern user panel + dashboard
   ========================================================= */
.d-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.dash-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 18px; padding: 1.4rem 1.5rem; color: #fff;
}
.dash-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.dash-hero .eyebrow { color: rgba(255,255,255,.75); }
.dash-hero .btn-brand { background: #fff; color: var(--brand-dark); border: none; font-weight: 700; }
.dash-hero .btn-brand:hover { background: #e9fffb; }
.dash-hero .btn-outline-brand { border-color: rgba(255,255,255,.5); color: #fff; }
.dash-hero .btn-outline-brand:hover { background: rgba(255,255,255,.12); color: #fff; }
.dash-hero-ava {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem;
}
.stat-mini { padding: 1rem 1.1rem; transition: transform .15s ease, box-shadow .15s ease; }
.stat-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.quick-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px;
  font-size: .78rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.quick-act i { font-size: 1.35rem; }
.quick-act:hover { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand-dark); transform: translateY(-2px); }
.dash-support { border-style: dashed; }

/* Add-to-cart toast */
.gdh-toast-wrap { position: fixed; bottom: 84px; right: 16px; z-index: 1085; display: flex; flex-direction: column; gap: 8px; }
.gdh-toast { background: #0f172a; color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 32px rgba(15,23,42,.25); }
.gdh-toast-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.gdh-toast-title { font-weight: 700; font-size: .9rem; }
.gdh-toast-sub { color: #94a3b8; font-size: .8rem; margin-top: 2px; }
.gdh-toast .btn-close { filter: invert(1); opacity: .6; }
.gdh-addcart-ok { background: var(--success, #16a34a) !important; border-color: var(--success, #16a34a) !important; }
@media (max-width: 575px) { .gdh-toast-wrap { left: 12px; right: 12px; bottom: 76px; } }

/* Step progress bar (cart / checkout) */
.stepbar { display: flex; align-items: center; gap: 8px; max-width: 520px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; flex: 0 0 auto; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #94a3b8; font-size: .78rem; font-weight: 700;
}
.step.active { color: var(--brand-dark); }
.step.active .step-n { background: var(--brand); color: #fff; }
.step.done .step-n { background: var(--brand-soft); color: var(--brand-dark); }
.stepbar .step:not(:last-child)::after { content: ""; width: 34px; height: 2px; background: var(--line); border-radius: 2px; }
.stepbar .step:not(:last-child) { margin-right: 8px; }
@media (max-width: 575px) {
  .step { font-size: .72rem; gap: 6px; }
  .step-n { width: 22px; height: 22px; font-size: .7rem; }
  .stepbar .step:not(:last-child)::after { width: 18px; }
  .stepbar .step:not(:last-child) { margin-right: 4px; }
}

/* Payment method cards (checkout) */
.pm-select input { display: none; }
.pm-card {
  display: block; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  cursor: pointer; height: 100%; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pm-card .pm-sub { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.pm-card .pm-ins { font-size: .74rem; }
.pm-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s ease;
}
.pm-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s ease; }
.pm-select input:checked + .pm-card { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 14px rgba(0,135,90,.12); }
.pm-select input:checked + .pm-card .pm-radio { border-color: var(--brand); }
.pm-select input:checked + .pm-card .pm-radio::after { background: var(--brand); transform: scale(1); }
.pm-select:hover .pm-card { border-color: var(--brand-light); }

/* Contact page */
.contact-card {
  padding: 1rem; text-align: center; transition: transform .15s ease, box-shadow .15s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.contact-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }

/* Message bubbles (chat style) */
.msg-list { max-height: 540px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.msg-thread { display: flex; flex-direction: column; gap: 6px; }
.msg-bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .88rem;
  line-height: 1.5; word-break: break-word;
}
.msg-mine {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-admin {
  align-self: flex-start; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.msg-admin-name { font-weight: 700; font-size: .78rem; color: var(--brand-dark); margin-bottom: 4px; }
.msg-waiting { align-self: flex-start; background: #f8fafc; border: 1px dashed #cbd5e1; color: #94a3b8; font-size: .8rem; border-radius: 16px; padding: 8px 14px; }
.msg-time { font-size: .68rem; margin-top: 4px; }
.msg-mine .msg-time { color: rgba(255,255,255,.7); text-align: right; }
.msg-admin .msg-time { color: #94a3b8; }

/* User panel chrome */
.user-side { background: linear-gradient(180deg, #0f172a, #0c111f); }
.user-side .user-profile-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 14px; padding: 12px;
}
.user-side .user-profile-edit {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .15s ease;
}
.user-side .user-profile-edit:hover { background: rgba(255,255,255,.35); color: #fff; }
.user-side-foot { padding: .9rem 1.1rem; }
.user-side-foot a { color: #94a3b8; font-size: .85rem; }
.user-side-foot a:hover { color: #fff; }
.user-main { background: #f4f6f9; }
.user-top-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 1.05rem; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.user-top-btn:hover { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand-dark); }
@media (max-width: 991px) { .admin-main.user-main { margin-left: 0; } }

/* Product gallery (multiple photos) */
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--ink); cursor: pointer; z-index: 3;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gal-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(15,23,42,.72); color: #fff; font-size: .74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}
.gal-slide { display: block; }
.gal-media { display: block; width: 100%; }
.gal-thumb {
  position: relative; width: 70px; height: 70px; padding: 0; overflow: hidden;
  border-radius: 12px; border: 2px solid var(--line); background: #f1f5f9;
  cursor: pointer; opacity: .75;
  transition: border-color .15s ease, opacity .15s ease;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover, .gal-thumb.active { border-color: var(--brand); opacity: 1; }
.gal-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.35); color: #fff; font-size: 1.3rem;
}

/* Admin media tiles (photo + video) */
.media-tile {
  position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--line); cursor: pointer; display: block; background: #f1f5f9;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile input { position: absolute; top: 4px; left: 4px; z-index: 3; }
.media-tile-x {
  position: absolute; top: 2px; right: 2px; color: #fff; z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.media-tile-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.35); color: #fff; font-size: 1.4rem;
}
.media-tile input:checked ~ .media-tile-x,
.media-tile input:checked ~ .media-tile-play { opacity: .35; }
.media-tile input:checked ~ img { opacity: .35; }

/* Favourite heart on product cards */
.p-fav {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.p-fav:hover { color: #e11d48; border-color: #e11d48; }
.p-fav.active { color: #e11d48; border-color: #e11d48; background: #fff1f2; }

/* Product page favourite button */
.btn.gdh-fav.active { background: #fff1f2; border-color: #e11d48; color: #e11d48; }
.btn.gdh-fav.active i { color: #e11d48; }

/* =========================================================
    Shipping Method Dropdown (product page)
    ========================================================= */
#shipMethodSelect {
    min-width: 190px;
    font-weight: 600;
    cursor: pointer;
}
#shipMethodSelect:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(0,166,81,.12);
}

/* =========================================================
    Transparent Price Breakdown Accordion
    ========================================================= */
.breakdown-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease;
}
.breakdown-panel:hover {
    box-shadow: var(--shadow);
}
.accordion-toggle {
    background: linear-gradient(120deg, #f8fafc, #f1f5f9);
    border: none;
    padding: 14px 18px;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s ease;
}
.accordion-toggle:hover {
    background: linear-gradient(120deg, #f0fdf4, #dcfce7);
}
.accordion-toggle .transition-all {
    transition: transform .3s ease;
}
.accordion-toggle[aria-expanded="true"] .transition-all {
    transform: rotate(180deg);
}
.accordion-body {
    padding: 0 !important;
}
.row-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .88rem;
}
.row-line span:first-child {
    color: var(--muted);
}
.row-line span:last-child {
    font-weight: 600;
}
.row-line.total-line {
    background: var(--brand-light) !important;
    border-bottom: none !important;
    padding: 12px 18px !important;
    font-size: 1.05rem !important;
    color: var(--brand-dark) !important;
}
.row-line.total-line span:last-child {
    color: var(--brand-dark);
    font-size: 1.15rem;
}

/* =========================================================
    Sticky Mobile Order Bar
    ========================================================= */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    display: none;
}
@media (max-width: 991.98px) {
    .sticky-mobile-bar {
        display: flex;
        align-items: center;
    }
    body {
        padding-bottom: 80px;
    }
}
.sticky-mobile-bar .btn {
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 700;
    border-radius: 12px;
}
.sticky-mobile-bar .price-now {
    font-size: 1.1rem;
}

/* =========================================================
    Air/Sea CBM indicator
    ========================================================= */
.cbm-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}
.cbm-indicator .bi-cube {
    font-size: .85rem;
}

/* =========================================================
    Language Switcher - Flags real-time without reload
   ========================================================= */
.gdh-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 3px;
}
.gdh-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
    color: var(--muted);
}
.gdh-lang-btn:hover {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}
.gdh-lang-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(0,135,90,.25);
}
.auth-lang {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

/* Dark/Light mode */
[data-theme="dark"]{ --bg:#0b1220; --card:#121a2e; --ink:#e2e8f0; --line:#1e293b; --muted:#94a3b8 }
[data-theme="dark"] body{ background:var(--bg); color:var(--ink) }
[data-theme="dark"] .gdh-header, [data-theme="dark"] .panel, [data-theme="dark"] .d-panel, [data-theme="dark"] .admin-side{ background:var(--card); border-color:var(--line) }
[data-theme="dark"] .gdh-search-box{ background:#1e293b }
[data-theme="dark"] .table-modern thead th{ background:#1e293b; color:var(--muted) }

/* B2C Timeline */
.b2c-timeline{ display:flex; flex-direction:column; gap:10px; position:relative; padding-left:4px }
.b2c-step{ display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:14px; padding:10px 14px; background:#fff; position:relative }
.b2c-step.done{ border-color:#bbf7d0; background:#f0fdf4 }
.b2c-step.current{ border-color:var(--brand); box-shadow:0 4px 14px rgba(0,135,90,.12) }
.b2c-step-icon{ width:36px; height:36px; border-radius:10px; background:var(--brand-light); color:var(--brand-dark); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0 }
.b2c-step.done .b2c-step-icon{ background:var(--brand); color:#fff }
.b2c-step-check{ position:absolute; top:8px; right:10px; width:22px; height:22px; border-radius:50%; background:#16a34a; color:#fff; display:flex; align-items:center; justify-content:center; font-size:.75rem }
[data-theme="dark"] .b2c-step{ background:var(--card) }

/* =========================================================
     Modern Search Box
     ========================================================= */
.gdh-search-modern {
    flex: 1;
    max-width: 560px;
    margin: 0 24px;
}
.gdh-search-modern-box {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 5px 6px 5px 16px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.gdh-search-modern-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, .1), 0 4px 12px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}
.gdh-search-modern-icon {
    font-size: 1.1rem;
    color: var(--muted);
    flex-shrink: 0;
    margin-right: 4px;
    transition: color .2s ease;
}
.gdh-search-modern-box:focus-within .gdh-search-modern-icon {
    color: var(--brand);
}
.gdh-search-modern-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: .92rem;
    color: var(--ink);
    outline: none;
    min-width: 0;
    letter-spacing: .1px;
}
.gdh-search-modern-input::placeholder {
    color: var(--muted);
    opacity: .7;
}
.gdh-search-modern-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s ease;
}
.gdh-search-modern-img:hover {
    background: rgba(255, 107, 0, .08);
    color: var(--brand);
    transform: scale(1.05);
}
.gdh-search-modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, #ff8533 100%);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 0, .25);
}
.gdh-search-modern-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 107, 0, .35);
}
.gdh-search-modern-btn:active {
    transform: scale(.98);
}
.gdh-search-modern-mobile {
    padding: 0 16px 12px;
}
.gdh-search-modern-mobile .gdh-search-modern-box {
    border-width: 1.5px;
    border-radius: 14px;
    padding: 4px 5px 4px 14px;
}
.gdh-search-modern-mobile .gdh-search-modern-input {
    padding: 10px 6px;
    font-size: .88rem;
}
.gdh-search-modern-mobile .gdh-search-modern-img {
    width: 38px;
    height: 38px;
}
.gdh-search-modern-mobile .gdh-search-modern-btn {
    width: 40px;
    height: 40px;
}

/* =========================================================
     AI Search Results Modal
     ========================================================= */
.gdh-ai-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.gdh-ai-modal .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
}
.gdh-ai-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.ai-upload-zone {
    border: 2px dashed var(--line);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    margin-bottom: 20px;
}
.ai-upload-zone:hover {
    border-color: var(--brand);
    background: rgba(255, 107, 0, .03);
}
.ai-upload-zone i {
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 10px;
}
.ai-upload-zone p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}
.ai-upload-zone .ai-upload-hint {
    font-size: .78rem;
    margin-top: 6px;
    color: var(--muted);
    opacity: .7;
}
.ai-analysis-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.ai-analysis-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.ai-analysis-info {
    flex: 1;
}
.ai-analysis-info .ai-confidence {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
}
.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ai-tag {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
}
.ai-results-section {
    margin-top: 16px;
}
.ai-results-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all .15s ease;
    text-decoration: none;
    color: inherit;
}
.ai-product-card:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(255, 107, 0, .1);
}
.ai-product-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.ai-product-card .ai-product-info {
    flex: 1;
    min-width: 0;
}
.ai-product-card .ai-product-name {
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ai-product-card .ai-product-meta {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 2px;
}
.ai-product-card .ai-product-price {
    font-weight: 700;
    color: var(--brand);
    font-size: .85rem;
    white-space: nowrap;
}
.ai-intl-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ai-intl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line);
    transition: all .15s ease;
}
.ai-intl-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ai-intl-link-1688 { background: #ff6600; color: #fff; border-color: #ff6600; }
.ai-intl-link-alibaba { background: #ff6a00; color: #fff; border-color: #ff6a00; }
.ai-intl-link-taobao { background: #ff4400; color: #fff; border-color: #ff4400; }
.ai-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s ease;
}
.ai-import-btn:hover {
    background: #e55f00;
}
[data-theme="dark"] .gdh-search-modern-box {
    background: var(--bg);
    border-color: var(--line);
}
[data-theme="dark"] .gdh-search-modern-input {
    color: var(--ink);
}
[data-theme="dark"] .gdh-search-modern-img:hover {
    background: var(--card);
}
[data-theme="dark"] .gdh-ai-modal .modal-content {
    background: var(--card);
    color: var(--ink);
}
[data-theme="dark"] .ai-upload-zone:hover {
    background: rgba(255, 107, 0, .05);
}
[data-theme="dark"] .ai-product-card {
    background: var(--bg);
    border-color: var(--line);
}
[data-theme="dark"] .ai-tag {
    background: var(--bg);
    border-color: var(--line);
}

/* =========================================================
   International agent theme — clean white + green, mobile-first
   ========================================================= */
body { background: #f6f9f7; }
.gdh-header { background: #fff; }
.btn-brand { background: var(--brand); border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-brand { color: var(--brand-dark); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); }
.text-brand { color: var(--brand-dark) !important; }
.gdh-search-modern-btn { background: linear-gradient(135deg, var(--brand) 0%, #2ecc71 100%); box-shadow: 0 2px 8px rgba(0,166,81,.25); }
.linkparse-hint { color: var(--brand-dark); }

/* Agent product card */
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.agent-thumb { aspect-ratio: 1/1; background: #f1f5f9; position: relative; overflow: hidden; }
.agent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agent-badge-hot { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .65rem; font-weight: 800; background: #e11d48; color: #fff; padding: 2px 8px; border-radius: 20px; }
.agent-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex-grow: 1; }
.agent-title { font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.agent-title:hover { color: var(--brand-dark); }
.agent-local { font-size: .75rem; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.agent-moq { background: #f1f5f9; border-radius: 6px; padding: 0 6px; font-weight: 700; white-space: nowrap; }
.agent-price { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; margin-top: 2px; }
.agent-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.agent-stars { color: #f59e0b; display: inline-flex; align-items: center; gap: 2px; }
.agent-stars b { color: var(--ink); margin-left: 3px; }
.agent-sold { font-weight: 600; }
.agent-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.agent-tag { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); background: #f8fafc; }
.agent-tag.years { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.agent-tag.rep { background: #fefce8; border-color: #fde68a; color: #92400e; }
.agent-tag.verified { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.agent-tier-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.agent-tier-table tr.table-success { --bs-table-bg: #ecfdf5; }
.agent-calc { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.agent-seller { border-left: 3px solid var(--brand); }
.agent-seller-ava { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.agent-rating-grid { display: grid; gap: 4px; }
.agent-rating-row { display: grid; grid-template-columns: 30px 1fr 44px; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.agent-rating-bar { height: 8px; background: #eef2f7; border-radius: 10px; overflow: hidden; }
.agent-rating-bar div { height: 100%; background: linear-gradient(90deg, var(--brand), #2ecc71); border-radius: 10px; }
@media (max-width: 575.98px) {
  .agent-body { padding: 8px 10px 10px; }
  .agent-title { font-size: .8rem; }
  .agent-price { font-size: .98rem; }
  #shipMethodSelect { width: 100%; max-width: none; }
}

/* Live search suggestions */
.gdh-search-modern-box { position: relative; }
.gdh-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 380px; overflow-y: auto;
}
.gdh-sug {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  color: inherit; border-bottom: 1px solid #f1f5f9;
}
.gdh-sug:hover, .gdh-sug.on { background: var(--brand-light); }
.gdh-sug img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.gdh-sug-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gdh-sug-n { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdh-sug-m { font-size: .72rem; color: var(--muted); }
.gdh-sug-p { font-weight: 800; color: var(--brand-dark); font-size: .86rem; white-space: nowrap; }
.gdh-sug-all { display: block; text-align: center; padding: 9px; font-size: .82rem; font-weight: 700; color: var(--brand-dark); background: #f8fafc; }

/* PDP price breakdown — icon rows + highlight total */
.breakdown-panel .accordion-body.bd-pad { padding: 14px 16px !important; }
.bd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: .88rem;
}
.bd-ic {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.bd-label { color: var(--muted); flex: 1; }
.bd-val { font-weight: 700; white-space: nowrap; }
.bd-total {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(120deg, #00A651, #2ecc71); color: #fff;
  border-radius: 12px; padding: 10px 14px; margin-top: 10px;
  font-weight: 800; font-size: 1.02rem; box-shadow: 0 4px 14px rgba(0,166,81,.25);
}
.bd-total #accTotal { font-size: 1.3rem; }

/* Modern breakdown theme */
.bd-modern { border-radius: 18px; box-shadow: var(--shadow); }
.bd-head {
  background: linear-gradient(135deg, #00A651 0%, #2ecc71 100%) !important;
  color: #fff !important; padding: 12px 16px !important; border: none;
}
.bd-head:hover { filter: brightness(1.05); }
.bd-head-l { display: flex; align-items: center; gap: 10px; }
.bd-head-ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.bd-head-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.bd-head-t b { font-size: .95rem; }
.bd-head-t small { font-size: .7rem; opacity: .85; font-weight: 500; }
.bd-live {
  font-size: .62rem; font-weight: 800; letter-spacing: 1px;
  background: rgba(255,255,255,.25); color: #fff;
  padding: 3px 9px; border-radius: 20px;
  animation: bdPulse 2s ease-in-out infinite;
}
@keyframes bdPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.bd-head .transition-all { color: #fff; }
.bd-seg { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: #eef2f7; margin: 2px 2px 8px; }
.bd-seg div { transition: width .4s ease; min-width: 4px; }
#bdSegP { background: linear-gradient(90deg, #00A651, #2ecc71); }
#bdSegS { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
#bdSegF { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.bd-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.bd-legend .dot-p { background: #00A651; }
.bd-legend .dot-s { background: #3b82f6; }
.bd-legend .dot-f { background: #f59e0b; }
.bd-legend b { color: var(--ink); }
.bd-paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.bd-pay {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px;
}
.bd-pay-ic {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.bd-pay-t { display: flex; flex-direction: column; line-height: 1.3; }
.bd-pay-t small { font-size: .7rem; color: var(--muted); }
.bd-pay-t b { font-size: .92rem; }

/* PDP price + CTA quality */
#priceNow { letter-spacing: -.5px; }
#priceNow::after { content: " /pc"; font-size: .9rem; color: var(--muted); font-weight: 600; }
#tierNote { background: #dcfce7; color: #065f46; font-weight: 800; font-size: .68rem; padding: 2px 10px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
#tierNote:empty { display: none; }
#rateLine .rate-on { background: var(--brand-light); color: var(--brand-dark); font-weight: 800; padding: 1px 9px; border-radius: 12px; }
.pdp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-cta .btn {
  border-radius: 14px; padding: 13px 10px; font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.pdp-cta .btn:active { transform: scale(.97); }
.cta-add { background: linear-gradient(135deg, #00A651, #2ecc71); border: none; color: #fff; box-shadow: 0 6px 18px rgba(0,166,81,.35); }
.cta-add:hover { filter: brightness(1.07); color: #fff; transform: translateY(-1px); }
.cta-buy { background: #0B132B; border: none; color: #fff; box-shadow: 0 6px 18px rgba(11,19,43,.28); }
.cta-buy:hover { background: #1c2947; color: #fff; transform: translateY(-1px); }
.cta-ghost { background: #fff; }
@media (max-width: 575.98px) {
  .pdp-cta .btn { font-size: .84rem; padding: 12px 6px; }
}

/* PDP live total + gallery lightbox */
.agent-totalbox {
  background: linear-gradient(120deg, #f0fdf4, #dcfce7);
  border: 1px solid #6ee7b7; border-radius: 12px; padding: 10px 14px;
}
.agent-totalbox .total-price { font-size: 1.35rem; font-weight: 800; color: var(--brand-dark); }
#galLight .modal-content { background: #0b132b; border: none; border-radius: 16px; overflow: hidden; }
#galLightBody { min-height: 200px; display: flex; align-items: center; justify-content: center; background: #0b132b; }
#galLightBody img, #galLightBody video { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto; }
#galLightBody iframe { width: 100%; height: 60vh; border: 0; }
.gal-light-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: #0b132b; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.gal-light-prev { left: 12px; }
.gal-light-next { right: 12px; }
.gal-light-close { position: absolute; top: 10px; right: 10px; z-index: 5; }
.gal-slide { cursor: zoom-in; }

/* ===== Reference PDP layout: gallery left / info right + tabs ===== */
.pdp-wrap .breadcrumb-small { font-size: .82rem; }
.pdp-gallery-sticky { position: sticky; top: 92px; }
@media (max-width: 991.98px){ .pdp-gallery-sticky { position: static; } }
.pdp-gallery-sticky .panel .gal-media { aspect-ratio: 1/1; }
.pdp-off-badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: #e11d48; color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 20px; box-shadow: 0 4px 14px rgba(225,29,72,.4); }
.agent-badge-off { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: .65rem; font-weight: 800; background: #0B132B; color: #fff; padding: 2px 8px; border-radius: 20px; }
.pdp-trust-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.pdp-trust-row i { color: var(--brand); margin-right: 4px; }
.pdp-title { letter-spacing: -.3px; }
.pdp-meta .pdp-stars { color: #f59e0b; font-size: .9rem; display: inline-flex; align-items: center; gap: 3px; }
.pdp-meta .pdp-stars b, .pdp-meta .pdp-sold b { color: var(--ink); }
.pdp-meta .pdp-dot { color: #cbd5e1; }
.pdp-price-panel { border: 1px solid #bbf7d0; background: linear-gradient(180deg,#f0fdf4 0%,#fff 38%); }
.pdp-offer { background: linear-gradient(120deg,#0B132B,#1c2947); color: #fff; border-radius: 12px; padding: 10px 14px; }
.pdp-offer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.pdp-offer-ends { background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 20px; font-size: .8rem; }
.pdp-offer-ends b { font-variant-numeric: tabular-nums; }
.pdp-offer-plain { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.pdp-ship-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
@media (max-width: 575.98px){ .pdp-ship-grid { grid-template-columns: repeat(2,1fr); } }
.pdp-ship-card { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; margin: 0; }
.pdp-ship-card input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-ship-card.active { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 .15rem rgba(0,166,81,.12); }
.pdp-ship-t { font-weight: 700; font-size: .82rem; display: flex; align-items: center; gap: 5px; }
.pdp-ship-t i { color: var(--brand); }
.pdp-ship-s { font-size: .72rem; color: var(--muted); }
.pdp-var-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-var-pill { margin: 0; cursor: pointer; }
.pdp-var-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-var-pill span { display: inline-block; border: 1.5px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: .84rem; font-weight: 600; background: #fff; transition: all .15s ease; }
.pdp-var-pill.active span, .pdp-var-pill span:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.pdp-tabs .pdp-tabbar { border-bottom: 1px solid var(--line); background: #f8fafc; padding: 6px 10px 0; gap: 4px; }
.pdp-tabs .pdp-tabbar .nav-link { white-space: nowrap; border: none; color: var(--muted); font-weight: 700; font-size: .86rem; border-radius: 10px 10px 0 0; }
.pdp-tabs .pdp-tabbar .nav-link.active { color: var(--brand-dark); background: #fff; box-shadow: inset 0 -3px 0 var(--brand); }
.pdp-desc { line-height: 1.7; }
.pdp-desc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.pdp-review-list { display: flex; flex-direction: column; gap: 12px; }
.pdp-review { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pdp-review-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pdp-review .pdp-stars { color: #f59e0b; }
.pdp-cta { grid-template-columns: 1fr 1fr; }
.pdp-cta .cta-ghost { grid-column: 1 / -1; }
@media (min-width: 576px){ .pdp-cta { grid-template-columns: 1fr 1fr auto; } .pdp-cta .cta-ghost { grid-column: auto; } }

/* =========================================================
   Account types, stage counters, recently viewed, coupons
   ========================================================= */

/* Registration / profile Personal vs Business picker */
.acct-type-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: #fff; transition: all .15s ease; height: 100%;
}
.acct-type-opt:hover { border-color: var(--brand-light); }
.acct-type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acct-type-face {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.acct-type-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.acct-type-txt b { font-size: .88rem; }
.acct-type-txt small { color: var(--muted); font-size: .72rem; }
.acct-type-opt.on { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 .15rem rgba(0,166,81,.12); }

/* Account type badge (profile header, dashboard hero) */
.acct-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-size: .64rem; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase;
}
.acct-badge-business { background: rgba(13,110,253,.14); color: #0d6efd; }
.acct-badge-personal { background: rgba(100,116,139,.16); color: var(--muted); }
.admin-side .acct-badge { background: rgba(255,255,255,.16); color: #fff; }
[data-theme="dark"] .acct-badge-business { background: rgba(13,110,253,.25); color: #7db0ff; }
[data-theme="dark"] .acct-badge-personal { background: rgba(148,163,184,.2); color: #cbd5e1; }

/* Order stage counters (Buy & Ship / Ship for me) */
.stage-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
}
.stage-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 12px; text-decoration: none;
  color: var(--muted); border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.stage-cell:hover { background: var(--brand-light); transform: translateY(-2px); }
.stage-ic { position: relative; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.stage-cell.has-items .stage-ic { color: var(--brand); }
.stage-count {
  position: absolute; top: -6px; left: 60%; transform: translateX(-50%);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.stage-label { font-size: .68rem; font-weight: 700; text-align: center; line-height: 1.2; }
.stage-cell.has-items { border-color: var(--line); }
@media (max-width: 575.98px) {
  .stage-label { font-size: .62rem; }
  .stage-ic { font-size: 1.3rem; }
}

/* Recently viewed horizontal rail */
.rv-rail {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.rv-rail::-webkit-scrollbar { height: 5px; }
.rv-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.rv-item {
  flex: 0 0 104px; scroll-snap-align: start; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 4px;
}
.rv-thumb {
  width: 104px; height: 104px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #f8fafc;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-name { font-size: .7rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-price { font-size: .74rem; font-weight: 700; color: var(--brand-dark); }

/* Account tile grid */
.acct-tile { position: relative; padding: 14px 6px; min-height: 88px; }
.acct-tile i { font-size: 1.4rem; }
.acct-tile span { font-size: .72rem; }
.acct-dot {
  position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--bs-danger); color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 18px; text-align: center;
}

/* Coupon card */
.coupon-card {
  display: flex; border: 1px dashed var(--brand); border-radius: 14px;
  overflow: hidden; background: #fff; height: 100%;
}
.coupon-val {
  flex: 0 0 40%; background: var(--brand-light); color: var(--brand-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 14px 8px; text-align: center; border-right: 1px dashed var(--brand);
}
.coupon-val b { font-size: .92rem; word-break: break-all; }
.coupon-val small { font-size: .74rem; font-weight: 700; }
.coupon-body { flex: 1; padding: 12px; min-width: 0; }

/* Favourite seller initials */
.seller-badge {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
}
.seller-badge.top { background: var(--brand); color: #fff; }

/* Password strength meter (user/security.php) */
.pw-meter { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; background: var(--muted); transition: width .2s ease, background .2s ease; }
.pw-rules { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pw-rules li::before { content: "\2022 "; }

/* Legal pages */
.legal-body { font-size: .92rem; line-height: 1.75; color: var(--ink); }
.legal-body h6 { margin-top: 1.25rem; margin-bottom: .35rem; }
.legal-body h6:first-child { margin-top: 0; }
.legal-body p { margin-bottom: .6rem; color: var(--muted); }
.legal-body a { color: var(--brand-dark); }[data-theme="dark"] .acct-type-opt,
[data-theme="dark"] .coupon-card,
[data-theme="dark"] .rv-thumb { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .coupon-card { border-color: var(--brand); }
[data-theme="dark"] .coupon-val { background: rgba(0,166,81,.16); }
[data-theme="dark"] .rv-name { color: var(--ink); }
[data-theme="dark"] .seller-badge { background: rgba(0,166,81,.16); }
[data-theme="dark"] .legal-body p { color: #94a3b8; }