﻿/* ========================================================
   SHOP.MEGAPRIMA99.COM — DARK THEME E-COMMERCE STYLESHEET
   Matches exact mobile visual design & screen layouts
   ======================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-dark: #070c14;
  --bg-darker: #04080e;
  --card-dark: #0e1626;
  --card-dark-hover: #142036;
  --white-card: #ffffff;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  
  --primary-orange: #ff6b00;
  --primary-orange-hover: #e05d00;
  --primary-orange-light: rgba(255, 107, 0, 0.15);
  
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #03060a;
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.mobile-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-dark);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.mobile-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 70px;
}

/* TOP STATUS BAR */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  width: 16px;
  height: 16px;
}

.battery-icon {
  background-color: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
}

/* APP HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  padding: 8px 14px 10px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hamburger-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
}

.logo-shopping-bag {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b00, #ff8c00);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.logo-titles {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.1;
}

.orange-text { color: var(--primary-orange); }

.logo-sub {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.2px;
}

.header-actions { display: flex; align-items: center; }
.actions-group { display: flex; align-items: center; gap: 8px; }

.badge-btn { position: relative; }

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 9px;
  font-weight: 900;
  color: white;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-dark);
}

.red-badge { background-color: var(--accent-red); }
.orange-badge { background-color: var(--primary-orange); }

/* SEARCH BAR IN HEADER */
.search-container { margin-top: 8px; }

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #0d1627;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 6px 12px;
  gap: 8px;
}

.search-icon { color: #64748b; flex-shrink: 0; }

.search-input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-family: inherit;
  color: #ffffff;
  flex: 1;
}

.search-input-wrapper input::placeholder { color: #64748b; }

.qr-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* APP VIEWS */
.app-views { flex: 1; }

.tab-view { display: none; padding: 10px 14px; }
.tab-view.active { display: block; }

/* HERO CAROUSEL AUTO-SLIDER */
.hero-carousel {
  position: relative;
  background: #070c14;
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.hero-slides-wrapper {
  display: flex;
  width: 500%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  position: relative;
  background: linear-gradient(135deg, #0a192f 0%, #0d274c 50%, #061226 100%);
}

.official-banner-slide {
  padding: 0;
  background: none;
  height: 180px;
}

.official-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content { flex: 1; z-index: 2; }
.hero-tagline { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: rgba(255, 255, 255, 0.8); display: block; }
.hero-title { font-size: 14px; font-weight: 900; line-height: 1.25; color: #ffffff; margin: 4px 0 10px; }
.yellow-text { color: #f59e0b; }

.hero-features-list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.feat-pill { font-size: 8px; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.15); }

.btn-hero-cta {
  background: linear-gradient(90deg, #ff6b00, #ff8c00);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.hero-graphic { width: 120px; height: 100px; display: flex; align-items: center; justify-content: center; }
.hero-img-overlay { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)); }

.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0 10px; background: #070c14; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--primary-orange); width: 18px; border-radius: 10px; }

/* TOP 4 BENEFITS ROW (MATCHING SCREENSHOT) */
.top-benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.b-item {
  background: #0b1526;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.b-icon { font-size: 18px; }
.b-item strong { display: block; font-size: 9px; font-weight: 800; color: #fff; line-height: 1.1; }
.b-item small { font-size: 7px; color: var(--text-muted); }

/* 4x3 CATEGORY CARDS GRID (EXACT SCREENSHOT MATCH) */
.category-cards-4x3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.cat-box-card {
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.cat-box-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

.c-box-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #04080e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}

.cat-box-card:hover .c-box-img {
  border-color: var(--primary-orange);
}

.c-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

.dots-icon-box {
  color: var(--text-muted);
  font-weight: 900;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.cat-box-card span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

/* SECTION CONTAINER & HEADERS */
.section-container { margin-bottom: 20px; }
.section-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.flash-sale-header, .terlaris-header { display: flex; align-items: center; gap: 6px; }
.flash-icon { font-size: 16px; color: var(--primary-orange); }
.crown-icon { font-size: 16px; color: var(--accent-yellow); }
.sec-title { font-size: 15px; font-weight: 800; color: var(--text-primary); }

.countdown-timer { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--text-primary); margin-left: 4px; }
.timer-box { background-color: var(--accent-red); color: white; padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.see-all-link { font-size: 11px; font-weight: 700; color: var(--primary-orange); text-decoration: none; }

/* PRODUCT SCROLL ROW & GRID */
.products-scroll-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.products-scroll-row::-webkit-scrollbar { display: none; }

.products-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* PRODUCT CARDS */
.product-card-dark {
  min-width: 145px;
  max-width: 150px;
  background-color: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.products-grid-2col .product-card-dark {
  min-width: unset;
  max-width: unset;
  width: 100%;
}

.discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--accent-red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.terlaris-rank-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #f59e0b;
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.purple-badge {
  background-color: #8b5cf6 !important;
  color: #fff !important;
}

.wishlist-card-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  z-index: 2;
  cursor: pointer;
}

.p-img-box {
  width: 100%;
  height: 120px;
  background-color: #050b14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.p-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.p-info-box { padding: 10px 8px; display: flex; flex-direction: column; flex: 1; }
.p-title { font-size: 11px; font-weight: 700; color: var(--text-primary); line-height: 1.3; margin-bottom: 2px; }
.p-specs-line { font-size: 9px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.p-price-main { font-size: 13px; font-weight: 800; color: var(--primary-orange); }
.p-price-old { font-size: 10px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 4px; }
.p-rating-row { font-size: 9px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.star-yellow { color: var(--accent-yellow); }

.p-cart-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background-color: #ff6b00;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4);
}

/* ================= CATEGORY DETAIL VIEW SCREEN ================= */
.cat-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
}

.back-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.cat-detail-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.cat-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 8px 0;
  margin-bottom: 14px;
}

.filter-item-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.fl-icon { font-size: 12px; }

.cat-hero-banner {
  background: linear-gradient(135deg, #09172a 0%, #0d284f 100%);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.ch-tag {
  font-size: 9px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.ch-title {
  font-size: 13px;
  font-weight: 900;
  color: white;
  margin: 2px 0 4px;
}

.ch-price {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.btn-ch-cta {
  background: var(--primary-orange);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.ch-img img {
  width: 90px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.subcat-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.subcat-pills-row::-webkit-scrollbar { display: none; }

.pill-btn {
  background: #0d1729;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pill-btn.active {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

/* ================= VIEW 2: SEMUA KATEGORI GRID ================= */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.cat-card {
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.cat-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

.cat-img-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #04080e;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  overflow: hidden;
}

.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cat-name {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
  line-height: 1.2;
}

.cat-count {
  font-size: 8px;
  font-weight: 700;
}

.orange-count { color: var(--primary-orange); }
.gray-count { color: var(--text-muted); }

/* =================== PROMO PAGE =================== */
.promo-page-header { padding: 10px 0 8px; }
.promo-page-title { font-size: 18px; font-weight: 900; color: var(--text-primary); margin: 0; }

/* HERO BANNER */
.promo-hero-card {
  background: linear-gradient(150deg, #020d1e 0%, #0a1f45 55%, #061730 100%);
  border-radius: 14px;
  padding: 14px 12px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  border: 1px solid rgba(56,189,248,0.15);
  overflow: hidden;
  position: relative;
  min-height: 160px;
}

.promo-ongkir-badge {
  position: absolute;
  top: 10px;
  right: 8px;
  background: #1565c0;
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  z-index: 2;
  min-width: 60px;
}
.promo-ongkir-badge span:first-child { font-size: 7px; font-weight: 900; color: #fff; line-height: 1.1; }
.ongkir-sub { font-size: 6px; color: rgba(255,255,255,0.85); line-height: 1.1; }
.promo-ongkir-badge span:last-child { font-size: 14px; }

.promo-hero-text { flex: 1; max-width: 55%; z-index: 1; }
.promo-hari-ini-badge {
  background: #38bdf8; color: #000;
  font-size: 8px; font-weight: 900;
  padding: 2px 8px; border-radius: 20px;
  display: inline-block; margin-bottom: 5px;
}
.promo-hero-h { font-size: 14px; font-weight: 900; color: #fff; margin: 0 0 2px; line-height: 1.25; }
.promo-hero-sub { font-size: 9px; color: #fbbf24; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; }

.promo-70-wrap { display: flex; align-items: flex-end; gap: 3px; margin-bottom: 10px; }
.promo-hingga { font-size: 9px; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 4px; }
.promo-big-pct { font-size: 38px; font-weight: 900; color: #ff6b00; line-height: 1; }
.promo-big-pct sup { font-size: 18px; vertical-align: super; }
.promo-off-text { font-size: 16px; font-weight: 900; color: #ff6b00; margin-bottom: 4px; }

.btn-belanja-sekarang {
  background: #ff6b00; color: #fff; border: none;
  padding: 7px 14px; border-radius: 20px;
  font-size: 10px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 12px rgba(255,107,0,0.4);
  display: inline-block;
}

.promo-hero-img-collage {
  position: absolute;
  right: 4px; top: 10px;
  width: 42%; height: 145px;
}
.collage-img { position: absolute; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)); }
.collage-top      { width: 85px; top: 0;   right: 10px; z-index: 4; }
.collage-mid-left  { width: 58px; top: 55px; right: 60px; z-index: 3; }
.collage-mid-right { width: 52px; top: 50px; right: 5px; z-index: 3; }
.collage-bot      { width: 65px; top: 95px; right: 15px; z-index: 2; }

.promo-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.pdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background 0.2s; }
.pdot.active { background: #ff6b00; width: 18px; border-radius: 4px; }

.berakhir-text { font-size: 9px; color: var(--text-muted); margin-left: 4px; }
.timer-sep { font-size: 11px; font-weight: 900; color: #e53e3e; margin: 0 1px; }

/* VOUCHER - horizontal scroll 3 cards */
.voucher-scroll-row {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.voucher-scroll-row::-webkit-scrollbar { display: none; }

.voucher-card { border-radius: 12px; display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; width: 170px; }
.orange-voucher { background: linear-gradient(135deg, #ff6b00, #ff8c00); }
.blue-voucher   { background: linear-gradient(135deg, #1e40af, #2563eb); }
.purple-voucher { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.voucher-side-label {
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  background: rgba(0,0,0,0.2); color: #fff; font-size: 7px; font-weight: 900;
  padding: 6px 4px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voucher-body { padding: 8px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.voucher-amount { font-size: 11px; font-weight: 900; color: #fff; }
.voucher-min { font-size: 7.5px; color: rgba(255,255,255,0.85); }
.voucher-code-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.voucher-code { font-size: 7.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,0.2); padding: 2px 5px; border-radius: 4px; }
.btn-klaim-orange, .btn-klaim-blue, .btn-klaim-purple { background: #fff; border: none; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.btn-klaim-orange { color: #ff6b00; }
.btn-klaim-blue   { color: #2563eb; }
.btn-klaim-purple { color: #7c3aed; }
.voucher-exp { font-size: 7px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* Promo Kategori Grid */
/* Promo Kategori Grid */
.promo-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-cat-card {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  min-height: 80px;
}
.dark-blue-card   { background: linear-gradient(135deg, #1e3a5f, #0d2a52); }
.dark-green-card  { background: linear-gradient(135deg, #14532d, #166534); }
.dark-purple-card { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.dark-orange-card { background: linear-gradient(135deg, #7c2d12, #c2410c); }

.promo-cat-text { display: flex; flex-direction: column; }
.promo-cat-label { font-size: 9px; font-weight: 900; color: rgba(255,255,255,0.9); letter-spacing: 0.3px; }
.promo-cat-sub { font-size: 8px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.promo-cat-pct { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.promo-cat-cta { font-size: 8px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.promo-cat-img { width: 55px; height: 55px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }

/* =================== PESANAN PAGE =================== */
.pesanan-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
}
.pesanan-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin: 0; }

/* =================== AKUN PAGE =================== */
.profile-poin-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.poin-label { font-size: 9px; color: var(--text-muted); }
.poin-value { font-size: 18px; font-weight: 900; color: var(--primary-orange); }
.poin-link { font-size: 9px; color: var(--primary-orange); text-decoration: none; }
.member-badge { font-size: 10px; color: var(--accent-yellow); font-weight: 700; margin-top: 2px; }

.akun-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.akun-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  cursor: pointer;
  gap: 3px;
  border-right: 1px solid var(--border-dark);
}
.akun-stat-item:last-child { border-right: none; }
.akun-stat-item svg { color: var(--primary-orange); }
.akun-stat-item strong { font-size: 9px; font-weight: 800; color: var(--primary-orange); }
.akun-stat-item span { font-size: 8px; color: var(--text-muted); }

.akun-card-section {
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.akun-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-dark);
}
.akun-section-header strong { font-size: 13px; font-weight: 800; color: var(--text-primary); }

.akun-order-icons-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 4px;
}
.akun-order-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.akun-o-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.akun-order-icon-item span { font-size: 8px; color: var(--text-muted); text-align: center; max-width: 50px; }

.akun-menu-list { padding: 0 4px; }
.akun-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  color: var(--text-primary);
}
.akun-menu-item:last-child { border-bottom: none; }
.akun-menu-item span { flex: 1; font-size: 12px; font-weight: 600; }
.akun-menu-item:hover { background: rgba(255,107,0,0.06); }
.akun-menu-item svg { color: var(--text-muted); }
.akun-menu-item svg:last-child { color: var(--text-muted); }

.upgrade-member-banner {
  background: linear-gradient(135deg, #92400e, #d97706);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
}
.upgrade-text { display: flex; align-items: center; gap: 8px; color: #fff; }
.upgrade-text div { display: flex; flex-direction: column; }
.upgrade-text strong { font-size: 12px; font-weight: 800; }
.upgrade-text span { font-size: 9px; opacity: 0.85; }
.btn-upgrade-now { background: #fff; color: #d97706; border: none; padding: 6px 12px; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* Kategori page header */
.cat-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
}

.cat-page-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-arrow-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.cat-page-h {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.lihat-semua-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
}

/* Kategori card style - matches reference screenshot */
.cat-card {
  background: #0f1e35;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.cat-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* Kategori category image box */
.cat-img-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
}

.cat-img-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.dots-cat-box {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.dots-cat {
  font-size: 16px;
  opacity: 0.7;
}

.dots-cat-more {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.cat-name {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
  line-height: 1.2;
}

.cat-count {
  font-size: 8px;
  font-weight: 700;
}

.orange-count { color: var(--primary-orange); }
.gray-count { color: var(--text-muted); }

/* Service Highlights Card */
.service-highlights-card {
  background: #0d1729;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.blue-svc {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.svc-text {
  display: flex;
  flex-direction: column;
}

.svc-text strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.svc-text span {
  font-size: 10px;
  color: var(--primary-orange);
  font-weight: 600;
}

/* ================= BOTTOM NAVIGATION BAR ================= */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background-color: #070c14;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1000;
}

.nav-tab {
  background: none;
  border: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.nav-tab span { font-size: 9px; font-weight: 700; }
.nav-tab.active { color: var(--primary-orange); }

/* CART & SIDEBAR OVERLAYS */
.cart-overlay, .drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open, .drawer-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background-color: var(--bg-dark);
  border-left: 1px solid var(--border-dark);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
.cart-sidebar.open { right: 0; }

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-dark);
  border-right: 1px solid var(--border-dark);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}
.sidebar-drawer.open { left: 0; }

.drawer-header { padding: 16px; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 10px; }
.drawer-body { padding: 16px; flex: 1; overflow-y: auto; }
.drawer-section-label { font-size: 10px; font-weight: 800; color: var(--primary-orange); text-transform: uppercase; display: block; margin-bottom: 10px; }
.d-menu-item { font-size: 13px; font-weight: 700; color: var(--text-primary); padding: 10px; border-radius: 8px; cursor: pointer; margin-bottom: 4px; }
.d-menu-item:hover { background: rgba(255, 107, 0, 0.15); color: var(--primary-orange); }

.cart-header { padding: 14px; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: space-between; }
.cart-header-title { display: flex; align-items: center; gap: 8px; color: var(--text-primary); }
.cart-header-title h3 { font-size: 14px; font-weight: 800; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-item-row { display: flex; gap: 10px; background-color: var(--card-dark); padding: 8px; border-radius: 8px; margin-bottom: 8px; align-items: center; }
.ci-thumb { width: 44px; height: 44px; background-color: #070f1b; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ci-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ci-details { flex: 1; }
.ci-title { font-size: 10px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.ci-price { font-size: 11px; font-weight: 800; color: var(--primary-orange); }
.ci-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { background: #1e293b; border: none; color: white; width: 20px; height: 20px; border-radius: 4px; font-weight: 800; cursor: pointer; }
.qty-num { font-size: 11px; font-weight: 800; }

.cart-footer { padding: 14px; border-top: 1px solid var(--border-dark); background-color: var(--card-dark); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.cart-subtotal-row strong { font-size: 14px; color: var(--primary-orange); }
.btn-checkout-wa { width: 100%; background: #25d366; color: white; border: none; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; }

/* MODAL OVERLAY & CONTENT */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-content { background-color: var(--card-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); max-width: 400px; width: 100%; padding: 20px; position: relative; max-height: 85vh; overflow-y: auto; }

/* TOAST POPUP */
.toast-popup { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(50px); background-color: #0f172a; border: 1px solid var(--primary-orange); color: white; padding: 8px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; z-index: 9999; opacity: 0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 8px 20px rgba(0,0,0,0.6); pointer-events: none; white-space: nowrap; }
.toast-popup.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 480px) {
  body { background-color: var(--bg-dark); }
  .mobile-wrapper { box-shadow: none; }
  .category-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cat-card { padding: 6px 2px; }
  .cat-img-box { width: 36px; height: 36px; }
  .cat-img-box img { width: 28px; height: 28px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .category-cards-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

@media (min-width: 769px) {
  .category-cards-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
}

/* =================== PROMO SUB TABS TRANSPARENT =================== */
.promo-sub-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  background: transparent !important;
  scrollbar-width: none;
}
.promo-sub-tabs::-webkit-scrollbar { display: none; }

.promo-tab-btn {
  background: transparent !important;
  color: var(--text-muted);
  border: none;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.promo-tab-btn.active {
  color: var(--primary-orange);
  font-weight: 800;
}
.promo-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
}

/* =================== PESANAN SAYA PAGE (REF MATCH) =================== */
.order-status-tabs-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 8px 4px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.order-status-tabs-row::-webkit-scrollbar { display: none; }

.o-tab-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  color: var(--text-muted);
  transition: all 0.2s;
  min-width: 58px;
}
.o-tab-btn.active {
  color: var(--primary-orange);
  font-weight: 800;
}
.o-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--primary-orange);
  border-radius: 2px;
}

.o-icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.o-icon-emoji { font-size: 20px; }
.o-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.1;
  min-width: 14px;
  text-align: center;
}
.orange-badge { background: var(--primary-orange); }
.red-badge { background: #ef4444; }

.o-tab-btn span:last-child {
  font-size: 8.5px;
  text-align: center;
  line-height: 1.2;
}

/* ORDER CARDS */
.orders-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-box {
  background: #0d1729;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 10.5px;
  color: var(--text-muted);
}
.oc-no-wrap { display: flex; align-items: center; gap: 4px; }
.oc-no-wrap strong { color: var(--text-primary); font-weight: 700; }
.btn-copy-no { background: none; border: none; cursor: pointer; font-size: 11px; padding: 0 2px; }
.oc-date-text { font-size: 9.5px; color: var(--text-muted); }

.oc-item-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.oc-img-thumb {
  width: 68px;
  height: 68px;
  background: #04080e;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.oc-img-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.oc-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.oc-status-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}
.badge-dikirim { background: #581c87; color: #e9d5ff; }
.badge-dikemas { background: #78350f; color: #fef08a; }
.badge-selesai { background: #064e3b; color: #a7f3d0; }
.badge-dibatalkan { background: #7f1d1d; color: #fecaca; }

.oc-product-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 2px 0 0;
}

.oc-qty-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.oc-total-highlight {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-orange);
}

.oc-shipping-info, .oc-cancel-info {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed rgba(255,255,255,0.08);
}
.oc-ship-text { display: flex; gap: 6px; color: var(--text-muted); }
.oc-ship-text strong { color: var(--text-primary); }
.oc-ship-resi { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 9.5px; }
.btn-lacak-ship {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.oc-cancel-info { color: #f87171; }
.oc-cancel-info strong { color: #fff; }

.oc-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-dark);
  gap: 8px;
}
.oc-total-pay { display: flex; flex-direction: column; }
.tot-lbl { font-size: 9px; color: var(--text-muted); }
.tot-val { font-size: 13px; font-weight: 900; color: var(--primary-orange); }

.oc-btns-group { display: flex; gap: 8px; align-items: center; }
.oc-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.dark-btn {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.orange-btn {
  background: var(--primary-orange);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}
.outline-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}
