/* ═══════════════════════════════════════════════════════════════
   InfinityLogz — Main Stylesheet
   Palette: White #FFFFFF | Black #111111 | Orange #FF6A00
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --white:        #FFFFFF;
  --black:        #111111;
  --orange:       #FF6A00;
  --orange-dark:  #e05a00;
  --orange-light: #fff3eb;
  --bg:           #F7F7F7;
  --surface:      #FFFFFF;
  --border:       #EAEAEA;
  --muted:        #707070;
  --success:      #16A34A;
  --success-bg:   #F0FDF4;
  --error:        #DC2626;
  --error-bg:     #FEF2F2;
  --warning:      #D97706;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --nav-height:   68px;
  --nav-height-mobile: 52px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #111111;
    --surface: #1A1A1A;
    --border:  #2A2A2A;
    --muted:   #888888;
    --black:   #F5F5F5;
  }
}
:root[data-theme="dark"] {
  --bg:      #111111;
  --surface: #1A1A1A;
  --border:  #2A2A2A;
  --muted:   #888888;
  --black:   #F5F5F5;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--black); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ─── Layout ──────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; line-height: 1; transition: all .15s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline  { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-ghost { color: var(--black); background: transparent; }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-lg   { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm   { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ─── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-label-link { font-weight: 400; color: var(--orange); font-size: 13px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; background: var(--surface);
  color: var(--black); transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input::placeholder { color: var(--muted); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); padding: 4px;
}

/* ─── Alerts ──────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius); margin: 12px 0;
  font-size: 14px; position: relative;
}
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid #BBF7D0; }
.alert--error   { background: var(--error-bg); color: var(--error); border: 1px solid #FECACA; }
.alert-close { position: absolute; right: 10px; top: 10px; background: none; border: none; font-size: 18px; color: inherit; line-height: 1; opacity: .7; }
.alert-close:hover { opacity: 1; }
.alert-list { margin: 4px 0 0; padding-left: 16px; list-style: disc; }

/* ─── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 10px; z-index: 1000;
  padding: 0 12px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,.07);
  padding: 9px 18px; border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.nav-inner:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-inner {
    background: rgba(26,26,26,.88);
    border-color: rgba(255,255,255,.06);
  }
}
:root[data-theme="dark"] .nav-inner {
  background: rgba(26,26,26,.88);
  border-color: rgba(255,255,255,.06);
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.logo-icon {
  width: 32px; height: 32px; background: var(--orange); color: var(--white);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 7px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--muted); transition: all .15s; }
.nav-link:hover, .nav-link.active { color: var(--black); background: var(--bg); }
.nav-link.active { color: var(--orange); }
.nav-search { flex: 1; max-width: 360px; display: flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.nav-search-input { flex: 1; padding: 8px 12px; background: none; border: none; font-size: 14px; color: var(--black); outline: none; }
.nav-search-btn { padding: 8px 12px; background: none; border: none; color: var(--muted); }
.nav-search-btn:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-action-link { padding: 8px; border-radius: var(--radius-sm); color: var(--muted); display: flex; align-items: center; transition: .15s; }
.nav-action-link:hover { color: var(--black); background: var(--bg); }
.nav-user-menu { position: relative; }
.nav-avatar-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 20px; transition: .15s;
}
.nav-avatar-btn:hover { border-color: var(--orange); }
.avatar-circle {
  width: 28px; height: 28px; background: var(--orange); color: var(--white);
  border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 180px; padding: 6px; display: none; z-index: 100;
}
.nav-user-menu:hover .nav-dropdown,
.nav-user-menu:focus-within .nav-dropdown { display: block; }
.dropdown-item {
  display: block; padding: 9px 12px; font-size: 14px;
  border-radius: var(--radius-sm); color: var(--black); transition: .1s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item--danger { color: var(--error); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Badge */
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; margin-left: 4px;
}
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: .25s; }
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down nav panel */
.nav-mobile-panel {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface); z-index: 998; overflow-y: auto;
  padding: 80px 20px 120px; flex-direction: column; gap: 4px;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel .nav-m-link {
  display: block; padding: 14px 16px; font-size: 17px; font-weight: 600;
  border-radius: var(--radius); color: var(--black); transition: .15s;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel .nav-m-link:last-child { border-bottom: none; }
.nav-mobile-panel .nav-m-link:active { background: var(--bg); }
.nav-mobile-panel .nav-m-link.danger { color: var(--error); }
.nav-mobile-panel .nav-m-search {
  display: flex; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
}
.nav-mobile-panel .nav-m-search input {
  flex:1; padding: 12px 16px; background: none; border: none;
  font-size: 15px; color: var(--black); outline: none;
}
.nav-mobile-panel .nav-m-search button {
  padding: 12px 16px; background: var(--orange); border: none; color: #fff;
}

@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .nav-mobile-toggle { display: flex; }
  .navbar { top: 6px; }
  .nav-inner { padding: 7px 14px; gap: 8px; }
  /* Hide all desktop nav actions on mobile — use bottom nav / hamburger menu instead */
  .nav-action-link, .notif-btn, .nav-user-menu { display: none; }
  /* Hide sign-in / join buttons from top bar on mobile — they're in the slide menu */
  .nav-actions .btn { display: none; }
  /* Keep logo compact */
  .nav-logo { font-size: 16px; }
  .logo-text { display: none; }
}

/* ─── Floating bottom nav global support ──── */
/* Hide ALL old nav implementations — the new .bnav from app-nav.php is the only one */
.mobile-bottom-nav,
.navbar,
.nav-inner,
footer.site-footer,
.more-sheet { display: none !important; }

/* Ensure body leaves room for the floating nav on pages using main.css without app-nav.php */
body:not(:has(.bnav)) {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

/* Mobile Bottom Nav (kept but hidden — overridden above) */
.mobile-bottom-nav {
  display: none !important; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 999;
  box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mobile-bottom-nav {
    background: rgba(20,20,20,.92);
    border-top-color: rgba(255,255,255,.06);
  }
}
:root[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(20,20,20,.92);
  border-top-color: rgba(255,255,255,.06);
}
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } }
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 4px 2px; color: var(--muted); font-size: 10px; font-weight: 600;
  transition: color .2s, transform .15s; position: relative; border-radius: 14px;
}
.mobile-nav-item svg { transition: transform .2s; }
.mobile-nav-item.active { color: var(--orange); }
.mobile-nav-item.active svg { transform: scale(1.15); }
.mobile-nav-item.active::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--orange); border-radius: 0 0 3px 3px;
}
.mobile-nav-item:active { transform: scale(.92); }

/* ─── MORE Sheet ─────────────────────────────────────────────────── */
.more-sheet { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.more-sheet.open { pointer-events: all; }
.more-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); opacity: 0;
  transition: opacity .3s;
}
.more-sheet.open .more-sheet-backdrop { opacity: 1; }
.more-sheet-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,1,.24,1);
  max-height: 85vh; overflow-y: auto;
}
.more-sheet.open .more-sheet-panel { transform: translateY(0); }
.more-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 12px;
}
.more-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 20px 12px; border-bottom: 1px solid var(--border);
}
.more-sheet-title { font-size: 16px; font-weight: 700; }
.more-sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.more-sheet-close:hover { background: var(--border); }
.more-sheet-nav { padding: 8px 0; }
.more-sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; text-decoration: none; color: var(--text);
  font-size: 15px; font-weight: 500; transition: background .15s;
}
.more-sheet-item:hover { background: var(--surface); }
.more-sheet-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.more-sheet-item--danger { color: #ef4444; }
.more-sheet-item--danger .more-sheet-icon { background: rgba(239,68,68,.1); color: #ef4444; }
.more-sheet-divider { height: 1px; background: var(--border); margin: 6px 20px; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 480px; display: flex; align-items: center;
  background: var(--black); color: var(--white);
  padding: calc(var(--nav-height) + 40px) 0 56px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: .15;
  background: radial-gradient(ellipse at 30% 50%, var(--orange) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, var(--orange) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,106,0,.15); color: var(--orange); border: 1px solid rgba(255,106,0,.3);
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -.02em;
}
.hero-search {
  display: flex; background: var(--white); border-radius: var(--radius-xl);
  overflow: hidden; max-width: 540px; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-search-input { flex: 1; padding: 13px 18px; background: none; border: none; font-size: 15px; color: var(--black); outline: none; min-width: 0; }
.hero-search-btn { flex-shrink: 0; margin: 5px; border-radius: var(--radius-lg); white-space: nowrap; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { min-height: 360px; padding: calc(var(--nav-height) + 24px) 0 40px; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); margin-bottom: 18px; }
  .hero-search { max-width: 100%; }
  .hero-actions .btn-lg { padding: 12px 20px; font-size: 15px; }
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats-section { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 0; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; }
.stat-item { text-align: center; padding: 4px 8px; }
.stat-number { display: block; font-size: 26px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat-label  { font-size: 12px; color: var(--muted); font-weight: 500; }
@media (max-width: 480px) {
  .stats-grid { gap: 4px; }
  .stat-number { font-size: 20px; }
  .stat-label { font-size: 11px; }
}

/* ─── Trust ──────────────────────────────────────────────────────── */
.trust-section { padding: 40px 0; background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 600px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-card {
  padding: 20px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
}
.trust-icon { font-size: 28px; margin-bottom: 8px; }
.trust-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trust-card p  { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ─── Sections ───────────────────────────────────────────────────── */
.section { padding: 48px 0; }
@media (max-width: 768px) { .section { padding: 32px 0; } }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 800; }
.section-sub   { font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 480px) { .section-title { font-size: 19px; } }

/* ─── Products Grid ──────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
@media (max-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 360px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ─── Product Card ───────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
  border-color: rgba(255,106,0,.25);
}
/* invisible full-card link layer */
.product-card-link {
  position: absolute; inset: 0; z-index: 0;
}
.product-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}
.product-card-sold-out {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .05em;
  backdrop-filter: blur(2px);
}
.product-card-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px;
  z-index: 1;
}
.product-card-badge--deal { background: var(--orange); color: #fff; }
.product-card-body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.product-card-store {
  display: flex; align-items: center; gap: 4px;
}
.product-card-store-name {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px; position: relative; z-index: 1;
  transition: color .15s;
}
.product-card-store-name:hover { color: var(--orange); }
.product-card-verified {
  width: 13px; height: 13px; flex-shrink: 0;
}
.product-card-title {
  font-size: 14px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--black);
  margin: 0; flex: 1;
}
.product-card-title a {
  color: inherit; text-decoration: none; position: relative; z-index: 1;
  transition: color .15s;
}
.product-card-title a:hover { color: var(--orange); }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 2px;
}
.product-card-price {
  font-size: 17px; font-weight: 800; color: var(--orange);
  letter-spacing: -.01em;
}
.product-card-price-orig {
  font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 4px;
}
.product-card-stock {
  font-size: 11px; font-weight: 600; color: var(--success);
  background: var(--success-bg); padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.product-card-stock--low { color: var(--error); background: var(--error-bg); }

/* Legacy aliases so old code still works */
.product-image { aspect-ratio: 4/3; overflow: hidden; background: var(--bg); position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--border); }
.merchant-name { font-size: 12px; color: var(--muted); }
.verified-badge { color: var(--orange); display: flex; align-items: center; }
.official-badge { background: var(--orange); color: var(--white); font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.product-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 16px; font-weight: 700; color: var(--orange); }
.product-stock { font-size: 12px; color: var(--muted); }
.sold-out-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 14px; }

/* Deal card */
.deal-badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.deal-timer { position: absolute; bottom: 8px; right: 8px; font-size: 11px; background: rgba(0,0,0,.7); color: var(--white); padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.price-group .price-promo, .product-price-group .price-promo { font-size: 16px; font-weight: 700; color: var(--orange); }
.price-group .price-original, .product-price-group .price-original { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }

/* ─── Categories ─────────────────────────────────────────────────── */
.categories-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (max-width: 360px) { .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; background: var(--bg); border: 1.5px solid transparent;
  border-radius: var(--radius-lg); text-align: center; transition: .2s;
}
.category-card:hover, .category-card:active { border-color: var(--orange); background: var(--orange-light); }
.category-name { font-size: 12px; font-weight: 600; line-height: 1.3; }
.category-count { font-size: 11px; color: var(--muted); }

/* ─── Vendors ────────────────────────────────────────────────────── */
.vendors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .vendors-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.vendor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: .2s;
}
.vendor-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.vendor-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--orange); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 18px;
}
.vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vendor-info { flex: 1; min-width: 0; }
.vendor-name-row { display: flex; align-items: center; gap: 4px; }
.vendor-name { font-weight: 700; font-size: 14px; }
.vendor-username { font-size: 12px; color: var(--muted); display: block; }
.vendor-sales { font-size: 12px; color: var(--orange); font-weight: 600; display: block; }

/* ─── Merchant CTA ───────────────────────────────────────────────── */
.merchant-cta-section { background: var(--black); color: var(--white); padding: 56px 0; }
@media (max-width: 768px) { .merchant-cta-section { padding: 40px 0; } }
.merchant-cta-inner { max-width: 560px; }
.merchant-cta-inner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 10px; }
.merchant-cta-inner p  { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.merchant-cta-benefits { margin-bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.merchant-cta-benefits li { font-size: 14px; color: rgba(255,255,255,.8); }

/* ─── Final CTA ──────────────────────────────────────────────────── */
.final-cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white); padding: 56px 0; text-align: center;
}
.final-cta-section h2  { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.final-cta-section p   { font-size: 16px; opacity: .85; margin-bottom: 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--black); color: rgba(255,255,255,.7); padding: 48px 0 28px; margin-bottom: 0; }
@media (max-width: 768px) { .footer { padding: 32px 0 20px; margin-bottom: 64px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; margin-bottom: 16px; }
.footer-trust { display: flex; flex-direction: column; gap: 6px; }
.trust-badge { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: 13px; text-align: center; }

/* ─── Auth Pages ─────────────────────────────────────────────────── */
.auth-page { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 440px; padding: 16px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px 32px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.auth-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub   { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-form  { margin-bottom: 20px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--orange); font-weight: 500; }

/* ─── Dashboard ──────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 32px 0; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 16px;
}
.stat-card-icon { width: 48px; height: 48px; background: var(--orange-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0; }
.stat-card-val { font-size: 28px; font-weight: 800; }
.stat-card-label { font-size: 13px; color: var(--muted); }

/* ─── Tables ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 14px; background: var(--bg); font-weight: 600; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ─── Status Badges ──────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.status--active, .status--completed, .status--approved { background: #F0FDF4; color: var(--success); }
.status--pending  { background: #FFFBEB; color: var(--warning); }
.status--failed, .status--rejected, .status--suspended, .status--banned { background: var(--error-bg); color: var(--error); }
.status--cancelled { background: var(--bg); color: var(--muted); }

/* ─── Chat Widget ────────────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 88px; right: 20px; z-index: 900; }
@media (min-width: 769px) { .chat-widget { bottom: 24px; } }
.chat-widget-btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange);
  color: var(--white); border: none; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform .2s;
}
.chat-widget-btn:hover { transform: scale(1.05); }
.chat-widget-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--error); color: var(--white); font-size: 11px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.chat-widget-panel {
  position: absolute; bottom: 68px; right: 0;
  width: 300px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-widget-header {
  padding: 14px 16px; background: var(--black); color: var(--white);
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.chat-widget-close { background: none; border: none; color: var(--white); font-size: 20px; }
.chat-widget-body { padding: 16px; }
.chat-widget-open-full { width: 100%; margin-top: 8px; }

/* ─── Notifications Panel ────────────────────────────────────────── */
.notif-panel {
  position: fixed; top: 88px; right: 20px;
  width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 900; max-height: 480px; overflow-y: auto;
}
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.notif-mark-all { font-size: 12px; color: var(--orange); background: none; border: none; cursor: pointer; }
.notif-item { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; margin-top: 6px; }
.notif-content strong { font-size: 13px; display: block; margin-bottom: 2px; }
.notif-content p    { font-size: 13px; color: var(--muted); }
.notif-content time { font-size: 11px; color: var(--muted); }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ─── Admin Layout ───────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--black);
  color: var(--white); padding: 24px 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-logo { padding: 0 20px 24px; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13.5px; color: rgba(255,255,255,.6); transition: .15s; border-left: 3px solid transparent; text-decoration: none; }
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-nav-item.active { color: var(--orange); background: rgba(255,106,0,.1); border-left-color: var(--orange); }
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; transition: opacity .15s; }
.admin-nav-item:hover .nav-icon, .admin-nav-item.active .nav-icon { opacity: 1; }
.admin-nav-section { padding: 12px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); font-weight: 600; }
.admin-content { flex: 1; min-width: 0; background: var(--bg); }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 20px; font-weight: 700; }
.admin-main { padding: 32px; }

/* ─── Wallet ─────────────────────────────────────────────────────── */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  color: var(--white); border-radius: var(--radius-xl); padding: 32px;
  margin-bottom: 24px;
}
.wallet-balance-label { font-size: 14px; opacity: .7; margin-bottom: 8px; }
.wallet-balance-amount { font-size: 48px; font-weight: 900; color: var(--orange); }

/* ─── Product Detail ─────────────────────────────────────────────── */
.product-detail { padding: 40px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-main-image { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-purchase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.product-purchase-price { font-size: 36px; font-weight: 900; color: var(--orange); margin-bottom: 16px; }

/* ─── P2P ────────────────────────────────────────────────────────── */
.trade-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}

/* ─── Chat ───────────────────────────────────────────────────────── */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - var(--nav-height) - 48px); }
@media (max-width: 768px) { .chat-layout { grid-template-columns: 1fr; height: auto; } }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .15s; }
.chat-list-item:hover, .chat-list-item.active { background: var(--orange-light); }
.chat-messages { display: flex; flex-direction: column; }
.chat-messages-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: 14px; }
.chat-bubble--sent { background: var(--orange); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble--recv { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input-bar { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; resize: none; outline: none; }
.chat-input:focus { border-color: var(--orange); }

/* ─── Error Pages ────────────────────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.error-container { text-align: center; padding: 40px 20px; }
.error-code { font-size: 96px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 16px; }
.error-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.error-container p  { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

/* ─── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 32px 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.pagination a { border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); color: var(--white); }

/* ─── Merchant Dashboard ─────────────────────────────────────────── */
.merchant-page { padding: 32px 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 24px; font-weight: 800; }

/* ─── Inventory ──────────────────────────────────────────────────── */
.inventory-textarea {
  width: 100%; min-height: 200px; padding: 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: monospace; font-size: 13px;
  resize: vertical; outline: none;
}
.inventory-textarea:focus { border-color: var(--orange); }

/* ─── Verification Badge ─────────────────────────────────────────── */
.badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--orange); color: var(--white);
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge-official {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--black); color: var(--white);
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* ─── Utility ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-orange { color: var(--orange); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ─── Online Status ──────────────────────────────────────────────── */
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

/* ─── Loading Spinner ────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--orange); border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Marketplace layout ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .marketplace-layout { grid-template-columns: 1fr !important; }
  .marketplace-sidebar { display: none !important; }
  .mobile-filter-bar { display: block !important; }
  .marketplace-main { grid-column: 1 / -1; }
}
/* Hide scrollbar on mobile filter bar */
.mobile-filter-bar div::-webkit-scrollbar { display: none; }
/* filter link */
.filter-link { display: block; padding: 7px 10px; font-size: 13px; color: var(--muted); border-radius: var(--radius-sm); transition: .15s; }
.filter-link:hover, .filter-link.active { color: var(--orange); background: var(--orange-light); }

/* ─── Product card mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .product-card-body { padding: 10px; }
  .product-title { font-size: 13px; margin-bottom: 7px; -webkit-line-clamp: 2; }
  .product-price { font-size: 14px; }
  .product-stock { font-size: 11px; }
}

/* ─── Responsive overrides ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 20px; }
}
@media (max-width: 768px) {
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; overflow: visible; display: none; }
  .admin-sidebar.open { display: block; }
  .admin-topbar { padding: 12px 16px; }
  .admin-main { padding: 16px; }
  /* marketplace sidebar on mobile */
  .marketplace-sidebar { display: none; }
  .marketplace-main { grid-column: 1 / -1; }
  /* wallet card */
  .wallet-balance-amount { font-size: 36px; }
  .wallet-balance-card { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   Scroll-triggered animations  (IntersectionObserver in main.js)
   ═══════════════════════════════════════════════════════════════ */

/* Initial hidden state — applied via JS after DOMContentLoaded */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.22,.68,0,1.2), transform .55s cubic-bezier(.22,.68,0,1.2);
}
[data-animate="fade-up"]    { transform: translateY(24px); }
[data-animate="fade-down"]  { transform: translateY(-24px); }
[data-animate="fade-left"]  { transform: translateX(24px); }
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="zoom"]       { transform: scale(.92); }
[data-animate="flip"]       { transform: perspective(600px) rotateX(18deg); }

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers */
[data-delay="1"]  { transition-delay: .08s; }
[data-delay="2"]  { transition-delay: .16s; }
[data-delay="3"]  { transition-delay: .24s; }
[data-delay="4"]  { transition-delay: .32s; }
[data-delay="5"]  { transition-delay: .40s; }
[data-delay="6"]  { transition-delay: .48s; }

/* animate-in alias — backwards compat with older views */
.animate-in {
  animation: fadeSlideUp .5s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate], .animate-in { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─── Glassmorphism card ────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* ─── Section headings ──────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

/* ─── Hover lift — add to any card ─────────────────────────────── */
.hover-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ─── Gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--orange), #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Shimmer skeleton loader ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Number counter bounce ─────────────────────────────────────── */
.stat-num {
  display: inline-block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.stat-num.pop { transform: scale(1.15); }

/* ─── Hero orb background ───────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}

/* ─── Pulse ring (for online indicators) ───────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.online-pulse { animation: pulse-ring 2.2s ease-in-out infinite; }

/* ─── Send button spin ──────────────────────────────────────────── */
.btn-sending { animation: spin .5s linear infinite; }

/* ─── Page-load fade ────────────────────────────────────────────── */
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFade .25s ease; }

/* ─── Category card hover ───────────────────────────────────────── */
.category-card {
  transition: transform .2s ease, box-shadow .2s ease, background .15s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,106,0,.15);
  background: var(--orange-light);
}

/* ─── Product card ──────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.product-card-img {
  aspect-ratio: 16/9;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 14px; }
.product-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 17px; font-weight: 800; color: var(--orange); }
.product-stock { font-size: 12px; color: var(--success); }
.product-stock.low { color: var(--error); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 360px) { .products-grid { grid-template-columns: 1fr; } }

/* ─── Form grid responsive ──────────────────────────────────────── */
@media (max-width: 520px) {
  .form-grid-2 { grid-template-columns: 1fr !important; }
}

/* ─── Trust items ───────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Vendor card ───────────────────────────────────────────────── */
.vendor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}
.vendor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ─── Hot deal card ─────────────────────────────────────────────── */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

/* ─── Stats counter section ─────────────────────────────────────── */
.stats-section {
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ─── Mobile section padding ────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .section { padding: 28px 0; }
  .stat-card-val { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   Inner-page universal padding (bottom clearance for mobile nav)
   ════════════════════════════════════════════════════════════════ */
.page-wrap {
  padding-top: calc(var(--nav-height) + 28px);
  padding-bottom: 60px;
  min-height: 100svh;
}
@media (max-width: 768px) {
  .page-wrap {
    padding-top: calc(var(--nav-height-mobile) + 14px);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* ─── Inner page back-link ──────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  margin-bottom: 14px; transition: color .15s;
}
.back-link:hover { color: var(--orange); }

/* ─── Page header — title + action button row ───────────────────── */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 14px; flex-wrap: wrap;
}
.page-title { font-size: clamp(20px, 4vw, 28px); font-weight: 900; letter-spacing: -.02em; }
.page-sub   { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* ─── Dashboard stat cards modernized ──────────────────────────── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 48px; height: 48px; background: var(--orange-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0;
}
.stat-card-val   { font-size: clamp(22px,4vw,28px); font-weight: 800; line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ─── Quick action grid ─────────────────────────────────────────── */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
@media (max-width: 480px) {
  .quick-actions .btn { flex: 1 1 calc(50% - 5px); justify-content: center; }
}

/* ─── Card with header pattern ──────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card-header h2 { font-size: 17px; font-weight: 700; }
.card-body { padding: 20px; }

/* ─── Empty state ───────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state-icon {
  width: 64px; height: 64px; background: var(--orange-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ─── Wallet balance card modernized ────────────────────────────── */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--black) 0%, #1e1e1e 60%, #0a0a0a 100%);
  color: var(--white); border-radius: var(--radius-xl); padding: 32px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.wallet-balance-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--orange); filter: blur(90px); opacity: .15;
  pointer-events: none;
}
.wallet-balance-label  { font-size: 13px; opacity: .6; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.wallet-balance-amount { font-size: clamp(36px,8vw,54px); font-weight: 900; color: var(--orange); position: relative; }
@media (max-width: 480px) {
  .wallet-balance-card { padding: 22px 18px; }
}

/* ─── Auth card modernized ──────────────────────────────────────── */
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 32px; box-shadow: var(--shadow-md);
  animation: fadeSlideUp .45s cubic-bezier(.22,.68,0,1.2) both;
}
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }
.auth-container { width: 100%; max-width: 440px; padding: 16px; }

/* ─── Table responsive upgrade ──────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (max-width: 640px) {
  th, td { white-space: nowrap; }
  table  { font-size: 13px; }
  th     { font-size: 11px; padding: 10px 12px; }
  td     { padding: 12px; }
}

/* ─── Merchant stat card ────────────────────────────────────────── */
.stat-value { font-size: clamp(22px,4vw,30px); font-weight: 800; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ─── Mobile admin sidebar toggle ──────────────────────────────── */
.admin-mobile-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--black); color: var(--white);
  font-size: 14px; font-weight: 600; border: none; width: 100%; cursor: pointer;
}
@media (max-width: 768px) { .admin-mobile-toggle { display: flex; } }

/* ─── Merchant apply page ───────────────────────────────────────── */
.apply-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px; max-width: 600px; margin: 0 auto;
}
@media (max-width: 480px) { .apply-card { padding: 24px 18px; } }

/* ─── Number verification & boosting ───────────────────────────── */
@media (max-width: 520px) {
  .boost-plans { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 380px) {
  .boost-plans { grid-template-columns: 1fr !important; }
}

/* ─── Chat layout mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: calc(100svh - var(--nav-height) - 80px); }
  .chat-list   { max-height: 280px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-messages { min-height: 360px; }
}

/* ─── Chat widget mobile bottom clearance ───────────────────────── */
@media (max-width: 768px) {
  .chat-widget { bottom: calc(72px + env(safe-area-inset-bottom)); right: 12px; }
}

/* ─── Fix container on very small screens ───────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .btn-lg    { padding: 12px 18px; font-size: 14px; }
}

/* ─── Sticky inner-page header on scroll ───────────────────────── */
.sticky-inner-header {
  position: sticky; top: calc(var(--nav-height) + 8px); z-index: 50;
  background: var(--bg); padding: 8px 0; margin-bottom: 4px;
}

/* ─── Notification dot pulse ────────────────────────────────────── */
@keyframes orangePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,106,0,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(255,106,0,0); }
}
.badge-pulse { animation: orangePulse 2s ease-in-out infinite; }

/* ─── Section divider ───────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ─── Image placeholder (product / avatar) ─────────────────────── */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--border); width: 100%; height: 100%;
}

/* ─── Mobile-only show/hide ─────────────────────────────────────── */
.show-mobile { display: none; }
@media (max-width: 768px) { .show-mobile { display: block; } .hide-mobile { display: none !important; } }

/* ─── App-shell page entry transition ──────────────────────────── */
.page-enter {
  animation: pageIn .28s cubic-bezier(.22,.68,0,1.1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Button upgrades: orange gradient + tap ripple ─────────────── */
.btn-primary {
  background: linear-gradient(135deg, #FF6A00 0%, #e05a00 100%);
  box-shadow: 0 4px 14px rgba(255,106,0,.35);
  position: relative; overflow: hidden;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff7a1a 0%, #cc5000 100%);
  box-shadow: 0 6px 20px rgba(255,106,0,.5);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.97); box-shadow: none; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(255,255,255,.14) 0%,transparent 60%);
  pointer-events: none;
}

/* ─── Ripple on .btn ─────────────────────────────────────────────── */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.28); transform: scale(0);
  animation: rippleAnim .5s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ─── App-style floating action button ──────────────────────────── */
.fab {
  position: fixed; bottom: calc(80px + env(safe-area-inset-bottom) + 12px); right: 18px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(255,106,0,.45); z-index: 800;
  transition: transform .2s, box-shadow .2s;
}
.fab:hover  { transform: scale(1.08); box-shadow: 0 8px 28px rgba(255,106,0,.55); }
.fab:active { transform: scale(.94); }
@media (min-width: 769px) { .fab { bottom: 24px; } }

/* ─── Skeleton shimmer (loading placeholders) ───────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── Status pill badges ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.pill-green  { background: var(--success-bg); color: var(--success); }
.pill-red    { background: var(--error-bg);   color: var(--error); }
.pill-orange { background: var(--orange-light); color: var(--orange); }
.pill-muted  { background: var(--bg); color: var(--muted); }

/* ─── Swipe scroll rows ──────────────────────────────────────────── */
.scroll-row {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }

/* ─── Glassmorphism surface ──────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glass {
    background: rgba(26,26,26,.7);
    border-color: rgba(255,255,255,.08);
  }
}
:root[data-theme="dark"] .glass {
  background: rgba(26,26,26,.7);
  border-color: rgba(255,255,255,.08);
}

/* ─── Admin: Mobile sidebar toggle ──────────────────────────────── */
.admin-mobile-header {
  display: none; background: var(--black); color: var(--white);
  padding: 14px 20px; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50;
}
.admin-hamburger {
  background: none; border: none; color: var(--white);
  font-size: 22px; line-height: 1; padding: 4px; flex-shrink: 0;
}
.admin-sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,.5); font-size: 18px; margin-left: auto; }
@media (max-width: 768px) {
  .admin-mobile-header { display: flex; }
  .admin-sidebar { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 200; overflow-y: auto; }
  .admin-sidebar.open { display: block; }
  .admin-sidebar-close { display: block; }
  .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
  .admin-overlay.open { display: block; }
}

/* ─── Admin: status extras ───────────────────────────────────────── */
.status--new, .status--draft { background: #EFF6FF; color: #2563EB; }
.status--under_review { background: #FFFBEB; color: var(--warning); }
.status--resolved, .status--verified { background: #F0FDF4; color: var(--success); }
.status--dismissed, .status--archived, .status--paused { background: var(--bg); color: var(--muted); }
.status--escalated, .status--disputed { background: #FFF7ED; color: #EA580C; }
.status--processing, .status--in_progress { background: #EFF6FF; color: #2563EB; }
.status--official { background: var(--black); color: var(--white); }

/* ─── Admin: health check badges ────────────────────────────────── */
.health-ok          { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }
.health-warning     { background: #FFFBEB; color: var(--warning); border: 1px solid #FDE68A; }
.health-error       { background: var(--error-bg); color: var(--error); border: 1px solid #FECACA; }
.health-unconfigured { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.health-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  margin-bottom: 8px;
}
.health-status { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ─── Admin: action buttons in tables ───────────────────────────── */
.btn-action { padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-action-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-action-primary:hover { background: var(--orange-dark); }
.btn-action-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.btn-action-success:hover { background: var(--success); color: var(--white); }
.btn-action-danger  { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.btn-action-danger:hover  { background: var(--error); color: var(--white); }
.btn-action-muted   { background: var(--bg); color: var(--muted); border-color: var(--border); }
.btn-action-muted:hover   { background: var(--border); }

/* ─── Admin: star rating ─────────────────────────────────────────── */
.star-rating { color: var(--warning); font-size: 14px; letter-spacing: 1px; }

/* ─── Admin: filter bar ──────────────────────────────────────────── */
.admin-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.admin-filter-bar form { display: contents; }

/* ─── Admin: summary stats row ───────────────────────────────────── */
.admin-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-stat-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.admin-stat-mini .val { font-size: 22px; font-weight: 800; display: block; }
.admin-stat-mini .lbl { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN — FULL MOBILE RESPONSIVENESS OVERHAUL
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Table: always scrollable, never overflow ───────────────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 540px; }

/* ─── Admin topbar: wrap on mobile ──────────────────────────────── */
.admin-topbar { flex-wrap: wrap; gap: 10px; min-height: 60px; }
.admin-topbar h1 { font-size: clamp(16px, 3vw, 20px); }

/* ─── Admin main padding scaling ────────────────────────────────── */
@media (max-width: 480px) {
  .admin-main { padding: 12px; }
  .admin-topbar { padding: 10px 12px; }
}

/* ─── Dashboard stat grid: 2 columns on mobile ───────────────────── */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
@media (max-width: 600px) {
  .admin-dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-card { padding: 14px !important; }
  .stat-card-val { font-size: 18px !important; }
  .stat-card-icon { width: 36px !important; height: 36px !important; font-size: 16px !important; }
}

/* ─── Two-column grids in views → stack on mobile ────────────────── */
@media (max-width: 768px) {
  /* detail page 2-col layouts */
  div[style*="grid-template-columns:1fr 320px"],
  div[style*="grid-template-columns:1fr 300px"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 320px"],
  div[style*="grid-template-columns: 1fr 300px"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* override inline grid on chat-detail sidebar */
  .admin-detail-grid { grid-template-columns: 1fr !important; }
}

/* ─── Admin topbar action buttons: full-width on xs ─────────────── */
@media (max-width: 480px) {
  .admin-topbar > div:last-child { width: 100%; }
  .admin-topbar > div:last-child .btn,
  .admin-topbar > .btn { width: 100%; justify-content: center; }
}

/* ─── Card panels overflow on small screens ──────────────────────── */
@media (max-width: 640px) {
  .health-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-row { grid-template-columns: 1fr !important; }
  .admin-filter-bar { flex-direction: column; align-items: stretch; }
  .admin-filter-bar .btn,
  .admin-filter-bar select,
  .admin-filter-bar input { width: 100% !important; }
}

/* ─── Pagination: center on mobile ──────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; }
.pagination a { padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; color: var(--black); }
.pagination a:hover { background: var(--orange); color: var(--white); }
.pagination .current { font-size: 13px; color: var(--muted); padding: 0 6px; }

/* ─── Admin sidebar scrollable & compact on tablet ───────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .admin-sidebar { width: 210px; padding: 16px 0; }
  .admin-nav-item { padding: 9px 16px; font-size: 13px; }
  .admin-nav-section { padding: 10px 16px 4px; font-size: 10px; }
  .admin-main { padding: 20px; }
}

/* ─── Admin: user contact pill buttons ──────────────────────────── */
.admin-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius); font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; transition: .15s;
}
.admin-contact-btn-chat { background: var(--orange); color: var(--white); }
.admin-contact-btn-chat:hover { background: var(--orange-dark); }
.admin-contact-btn-call { background: #16A34A; color: var(--white); }
.admin-contact-btn-call:hover { background: #15803D; }

/* ─── Support chat banner for users ─────────────────────────────── */
.support-chat-fab {
  position: fixed; bottom: 84px; right: 20px; z-index: 90;
  background: var(--orange); color: var(--white);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(255,106,0,.35);
  cursor: pointer; border: none; transition: .2s;
}
.support-chat-fab:hover { transform: scale(1.08); }

/* ─── Product page responsive layout ─────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.product-sidebar {
  position: sticky;
  top: 88px;
}
@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    position: static;
    order: -1;
  }
}

/* ─── Page loader (top progress bar) ─────────────────────────────── */
#page-loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--orange), #ff9d4d);
  transform-origin: left;
  animation: loader-grow .6s ease forwards;
  pointer-events: none;
}
@keyframes loader-grow {
  from { transform: scaleX(0); opacity: 1; }
  to   { transform: scaleX(0.8); opacity: 1; }
}
#page-loader.done {
  animation: loader-done .3s ease forwards;
}
@keyframes loader-done {
  from { transform: scaleX(0.8); opacity: 1; }
  to   { transform: scaleX(1); opacity: 0; }
}
