/* ============================================
   YurStore - Game Top-Up Website
   Main Stylesheet
   Framework: Bootstrap 5 + Custom CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --primary-glow: rgba(192, 57, 43, 0.25);
  --accent: #ff6b35;
  --accent2: #f39c12;
  --bg-dark: #0d0d0d;
  --bg-card: #181818;
  --bg-card2: #1e1e1e;
  --bg-sidebar: #141414;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(192,57,43,0.5);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(192,57,43,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 16px;
  --sidebar-width: 0px;
  --navbar-height: 56px;
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove ALL tap highlights, long-press selection on mobile */
*, *:focus, *:active, *:focus-visible, a:focus, a:active {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  outline: none !important;
}
a, button, [tabindex], .mobile-nav-item, .cat-tab, .product-card, .flash-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
  background-color: var(--bg-dark); 
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* Navbar 3-column layout: Logo | Search | Actions */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 180px;    /* fixed left column */
  text-decoration: none;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 180px;    /* mirror left column */
  justify-content: flex-end;
}

.navbar.scrolled {
  background: rgba(8,8,8,1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-glow);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.navbar-logo .logo-text {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(90deg, #fff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-search {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0 40px 0 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.navbar-search input::placeholder { color: var(--text-muted); font-size: 13px; }
.navbar-search input:focus {
  border-color: var(--primary);
  background: rgba(192,57,43,0.07);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.navbar-search .search-icon {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-glow);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 3px 12px var(--primary-glow);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(192,57,43,0.45);
}

/* Mobile search button — icon only, no background on desktop */
.btn-mobile-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  padding: 0;
}

.btn-mobile-search:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ============================================
   SIDEBAR — Hidden on Desktop (not needed)
   ============================================ */
.sidebar {
  display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  width: 100%;
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

/* Central content wrapper — prevents right-side gap */
.page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}


/* ============================================
   BANNER HERO — 2-column layout
   ============================================ */
.banner-hero-section {
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: stretch;
}

/* Left: slider column */
.banner-hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.banner-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
}

.banner-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 6;
}

.banner-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-lg);
  display: block;
}

/* Right: Trending Panel */
.banner-hero-right {
  display: flex;
  flex-direction: column;
}

.trending-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  background: rgba(255,255,255,0.02);
}

.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.trending-item:last-child { border-bottom: none; }

.trending-item:hover {
  background: rgba(255,255,255,0.04);
}

.trending-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-dev {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.trending-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.trending-rank {
  display: none; /* rank shown via badge */
}


/* Blur sides effect */
.banner-blur-left,
.banner-blur-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.banner-blur-left {
  left: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.9), transparent);
}

.banner-blur-right {
  right: 0;
  background: linear-gradient(to left, rgba(13,13,13,0.9), transparent);
}

.banner-prev, .banner-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(30,30,30,0.85);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.banner-prev { left: 14px; }
.banner-next { right: 14px; }

.banner-prev:hover, .banner-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.banner-dot {
  width: 24px; height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--primary);
  width: 36px;
}

/* ============================================
   STATS BAR — Compact single row
   ============================================ */
.stats-section {
  padding: 14px 0;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-bar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 4px;
}

.stat-chip-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.stat-chip-icon.members {
  background: linear-gradient(135deg, #6c47ff, #4a2cc7);
  color: #fff;
}

.stat-chip-icon.transactions {
  background: linear-gradient(135deg, var(--primary), #8b1a10);
  color: #fff;
}

.stat-chip-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.stat-chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-chip-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.stats-separator {
  width: 1px;
  height: 30px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.stats-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Quick Action Buttons */
.quick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid;
  white-space: nowrap;
}

.quick-btn.leaderboard {
  background: transparent;
  border-color: rgba(108,71,255,0.4);
  color: #a78bfa;
}

.quick-btn.leaderboard:hover {
  background: rgba(108,71,255,0.15);
  box-shadow: 0 0 12px rgba(108,71,255,0.2);
}

.quick-btn.check-order {
  background: transparent;
  border-color: rgba(192,57,43,0.4);
  color: var(--primary-light);
}

.quick-btn.check-order:hover {
  background: rgba(192,57,43,0.1);
  box-shadow: 0 0 12px var(--primary-glow);
}


/* ============================================
   FLASH SALE
   ============================================ */
.flash-sale-section {
  padding: 0 0 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.flash-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), #8b1a10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(192,57,43,0.4); }
  50% { box-shadow: 0 0 25px rgba(192,57,43,0.7); }
}

.section-title-text h2 {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.section-title-text h2 span { color: var(--primary-light); }

.section-title-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--primary);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.btn-see-all:hover {
  background: var(--primary-glow);
  box-shadow: var(--shadow-glow);
}

/* Flash Sale Cards */
.flash-sale-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.flash-sale-grid::-webkit-scrollbar { height: 3px; }
.flash-sale-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

.flash-card {
  min-width: 140px;
  max-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.flash-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.25);
}

.flash-card-img {
  position: relative;
  height: 88px;
  overflow: hidden;
}

.flash-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.flash-card:hover .flash-card-img img { transform: scale(1.05); }

.discount-badge {
  position: absolute;
  top: 8px; right: 8px; left: auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.flash-card-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flash-card-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.flash-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-card-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.flash-card-price .price-now {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-light);
  font-family: 'Poppins', sans-serif;
}

.flash-card-price .price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.flash-stock {
  margin-top: auto;
  padding-top: 6px;
}

.flash-stock-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.flash-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 99px;
  transition: width 1s ease;
}

.flash-stock span {
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-section {
  padding: 0 0 20px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 24px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-tab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--primary-glow);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
  padding: 0 0 30px;
}

/* ── Category Section Separator ───────────── */
.cat-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent 100%);
  margin: 24px 0 0;
}

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  gap: 12px;
}

.cat-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cat-section-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

.cat-section-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.cat-section-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* When a specific category is selected (not 'all'),
   hide the cat-section-header and cat-section-divider */
.products-section.filtered .cat-section-header,
.products-section.filtered .cat-section-divider {
  display: none;
}



.products-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.products-header h2 {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.products-header .count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 10px 35px rgba(192,57,43,0.2);
}

.product-card-img {
  position: relative;
  padding-top: 85%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
}

.product-watermark {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: 24px !important;
  z-index: 2 !important;
  opacity: 0.9 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important;
  pointer-events: none !important;
  object-fit: contain !important;
  transform: none !important;
}

.product-logo {
  position: absolute;
  bottom: 8px; left: 8px;
  max-width: 80px;
  max-height: 28px;
  object-fit: contain;
}

.product-card-info {
  padding: 6px 8px 8px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--bg-card);
}

.product-cat {
  font-size: 8px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-name {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-price strong {
  color: var(--primary-light);
  font-size: 11px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #111;
  border-top: 1px solid var(--border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(90deg, #fff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-contact-item i { color: var(--primary-light); font-size: 15px; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 99px;
  margin-top: 6px;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.payment-badge {
  padding: 5px 12px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.payment-badge i { font-size: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom span { color: var(--primary-light); }

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* ============================================
   MODAL - CEK PESANAN & LEADERBOARD
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
}

.modal-body { padding: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select {
  width: 100%;
  height: 44px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder { color: var(--text-muted); }

.modal-submit {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Leaderboard Modal */
.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.lb-table tr:hover { background: rgba(255,255,255,0.03); }

.lb-table td {
  padding: 12px 8px;
  font-size: 13px;
}

.lb-rank {
  width: 36px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
}

.lb-rank.gold { color: #f39c12; }
.lb-rank.silver { color: #a0a0a0; }
.lb-rank.bronze { color: #cd7f32; }

.lb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.lb-user { font-weight: 600; }
.lb-amount {
  text-align: right;
  font-weight: 700;
  color: var(--primary-light);
  font-family: 'Poppins', sans-serif;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  width: 100%;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-nav-item i {
  font-size: 20px;
  display: block;
  line-height: 1;
}

.mobile-nav-item span {
  display: block;
  font-size: 10px;
  line-height: 1;
}

.mobile-nav-item.active {
  color: #e74c3c;
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #e74c3c;
  border-radius: 0 0 2px 2px;
}

.mobile-nav-item:active {
  opacity: 0.7;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 10px 20px 20px;
}

/* ============================================
   MOBILE SEARCH BAR (slide-down)
   ============================================ */
.mobile-search-bar {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: rgba(12,12,12,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  padding: 10px 14px;
  animation: slideDown 0.2s ease;
}

.mobile-search-bar.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-search-input-wrap {
  flex: 1;
  position: relative;
}

.mobile-search-icon-left {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.mobile-search-input-wrap input {
  width: 100%;
  height: 40px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0 16px 0 40px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}

.mobile-search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.mobile-search-input-wrap input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.mobile-search-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.mobile-search-close:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ============================================
   MOBILE TRENDING MARQUEE
   ============================================ */
.trending-marquee-section {
  display: none;
}

@media (max-width: 768px) {
  .trending-marquee-section {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 8px 0 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 40px;
  }

  .trending-marquee-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    border-right: 1px solid var(--border);
    height: 100%;
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
  }

  .trending-marquee-label span { font-family: 'Poppins', sans-serif; }

  .trending-marquee-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
  }

  /* fade edges */
  .trending-marquee-track-wrap::before,
  .trending-marquee-track-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 24px;
    z-index: 2;
    pointer-events: none;
  }
  .trending-marquee-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card), transparent);
  }
  .trending-marquee-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card), transparent);
  }

  .trending-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
    height: 100%;
  }



  .tmarq-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-right: 1px solid var(--border);
    height: 100%;
    cursor: pointer;
    transition: background 0.2s;
  }

  .tmarq-item:hover { background: rgba(255,255,255,0.04); }

  .tmarq-item img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .tmarq-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
  }

  .tmarq-item em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-light);
    background: var(--primary-glow);
    padding: 1px 5px;
    border-radius: 99px;
    white-space: nowrap;
  }

  @keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
  .products-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1100px) {
  .banner-hero-section { grid-template-columns: 1fr 220px; }
  .products-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .page-wrapper { padding: 0 18px; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 52px; }

  /* ── Layout ────────────────────── */
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .main-content { margin-left: 0; padding-bottom: 72px; width: 100%; }

  /* ── Navbar ────────────────────── */
  .navbar {
    padding: 0 14px;
    gap: 0;
  }
  .navbar-logo {
    width: auto;
    gap: 8px;
    flex-shrink: 0;
  }
  .navbar-logo .logo-icon {
    width: 30px; height: 30px;
    font-size: 13px;
    border-radius: 7px;
  }
  .navbar-logo .logo-text { font-size: 15px; }
  .navbar-center { display: none; }
  .navbar-actions {
    width: auto;
    gap: 8px;
    margin-left: auto;
  }
  /* Mobile search icon — clean circle button */
  .btn-mobile-search {
    display: flex !important;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  /* Keep login button clean on mobile */
  .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
    gap: 5px;
  }
  .btn-primary i { font-size: 12px; }

  /* ── Page wrapper ───────────────── */
  .page-wrapper { padding: 0 14px; }
  .section-divider { margin: 6px 0 12px; }

  /* ── Banner ─────────────────────── */
  .banner-hero-section {
    grid-template-columns: 1fr;
    padding: 10px 0 0;
    gap: 0;
  }
  .banner-hero-right { display: none; }
  .banner-hero-left { gap: 8px; }
  .banner-slide {
    aspect-ratio: 16 / 8;
    border-radius: 12px;
  }
  .banner-slider-wrapper { border-radius: 12px; }
  .banner-blur-left, .banner-blur-right { display: none; }
  .banner-dots { margin-top: 6px; }
  .banner-dot { width: 18px; height: 4px; }
  .banner-dot.active { width: 28px; }
  .banner-prev, .banner-next {
    width: 26px; height: 26px;
    font-size: 12px;
  }

  /* ── Stats bar ──────────────────── */
  /* Desktop: 1 row. Mobile: 2 rows — counts top, buttons bottom */
  .stats-section { padding: 10px 0; }
  .stats-bar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .stats-bar-left {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .stat-chip {
    flex: 1;
    justify-content: flex-start;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .stats-separator { display: none; }
  .stat-chip-value { font-size: 14px; }
  .stat-chip-label { font-size: 9px; }
  .stats-bar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quick-btn {
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    width: 100%;
  }

  /* ── Flash Sale ──────────────────── */
  .flash-sale-section { padding-bottom: 14px; }
  .section-header {
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .section-title-text h2 { font-size: 15px; }
  .section-title-text p {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .flash-icon { width: 32px; height: 32px; font-size: 15px; }
  .btn-see-all {
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .flash-cards-wrapper { gap: 8px; }
  .flash-card { min-width: 120px; max-width: 140px; border-radius: 10px; }
  .flash-card-img { height: 80px; }

  /* ── Category Tabs ──────────────── */
  .category-section { padding-bottom: 10px; }
  .cat-tabs-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }
  .cat-tabs-wrapper::-webkit-scrollbar { display: none; }
  .cat-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 99px;
  }

  /* ── Products ────────────────────── */
  .products-section { padding-bottom: 14px; }
  .products-header { margin-bottom: 10px; }
  .products-header h2 { font-size: 15px; }
  .products-header .count { font-size: 11px; }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .product-card { border-radius: 10px; }
  .product-watermark { height: 20px !important; top: 8px !important; right: 8px !important; width: auto !important; }
  .product-card-img { padding-top: 100%; }
  .product-card-info { padding: 7px 8px 8px; }
  .product-cat { font-size: 8px; }
  .product-name { font-size: 11px; }
  .product-price strong { font-size: 11px; }

  /* ── Footer ──────────────────────── */
  .footer { padding: 24px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 15px; }
  
  /* Sederhanakan footer di mobile: Sembunyikan teks panjang dan list menu */
  .footer-desc, 
  .footer-contact-item, 
  .footer-col { 
      display: none; 
  }
  
  .footer-brand { text-align: center; margin-bottom: -15px; }
  .footer-brand .logo-wrapper { justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px 12px;
    border-top: none;
  }
  .footer-socials { justify-content: center; }
}

/* ── 480px: Small phones ─────────── */
@media (max-width: 480px) {
  .page-wrapper { padding: 0 12px; }

  /* 3-column products on small phones */
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  /* Taller banner */
  .banner-slide { aspect-ratio: 16 / 9; }

  /* Smaller flash cards */
  .flash-card { min-width: 110px; max-width: 130px; }
  .flash-card-img { height: 72px; }

  /* Stats tighter */
  .stat-chip { padding: 5px 8px; }
  .stat-chip-value { font-size: 13px; }
}

/* ── 380px: Very small phones ───── */
@media (max-width: 380px) {
  .page-wrapper { padding: 0 10px; }
  .navbar-logo .logo-text { display: none; }
  .navbar-logo .logo-icon { width: 28px; height: 28px; }
  .btn-primary span { display: none; }
  .btn-primary { padding: 7px 10px; border-radius: 50%; }
  .btn-primary i { display: flex !important; font-size: 14px; }
  .products-grid { gap: 6px; }
  .mobile-nav-item { padding: 5px 8px; font-size: 9px; }
  .mobile-nav-item i { font-size: 17px; }
  .flash-card { min-width: 100px; max-width: 120px; }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.badge-new {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.badge-hot {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

.search-dropdown.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-dropdown-item:hover { background: rgba(255,255,255,0.05); }

.search-dropdown-item img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.search-dropdown-item .name { font-size: 13px; font-weight: 600; }
.search-dropdown-item .cat { font-size: 11px; color: var(--text-muted); }

/* User Dropdown */
.user-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  color: var(--text-primary);
}
.user-saldo {
  font-size: 12px;
  font-weight: 700;
  color: var(--warning);
  border-right: 1px solid var(--border);
  padding-right: 10px;
}
.user-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 200;
}
.user-dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.user-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Sembunyikan panah atas-bawah (spinner) pada input type="number" secara global */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}
