/* --- TEMA VARIABLES --- */
:root {
  --bg-color: #000000;
  --card-bg: rgba(24, 24, 27, 0.75);
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(18, 18, 18, 0.88);
  
  --pill-bg: rgba(99, 102, 241, 0.2);
  --pill-border: rgba(99, 102, 241, 0.4);
  --accent-color: #818cf8;
  --theme-primary: #6366f1;
  --wa-green: #25d366;
  --danger-red: #ef4444;
}

/* TEMA TERANG (LIGHT MODE) */
body.light-mode {
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text-main: #0f172a;
  --text-sub: #475569;
  --border-color: rgba(203, 213, 225, 0.8);
  --nav-bg: rgba(248, 250, 252, 0.92);
  
  --pill-bg: rgba(99, 102, 241, 0.12);
  --pill-border: rgba(99, 102, 241, 0.3);
  --accent-color: #4f46e5;
  --theme-primary: #4338ca;
  --wa-green: #128c7e;
  --danger-red: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ANIMASI SHIMMER PLACEHOLDER */
@keyframes shimmerPulse {
  0% { background-color: rgba(255, 255, 255, 0.05); }
  50% { background-color: rgba(255, 255, 255, 0.15); }
  100% { background-color: rgba(255, 255, 255, 0.05); }
}

@keyframes shimmerPulseLight {
  0% { background-color: rgba(0, 0, 0, 0.06); }
  50% { background-color: rgba(0, 0, 0, 0.15); }
  100% { background-color: rgba(0, 0, 0, 0.06); }
}

/* WADAH FOTO */
.profile-avatar,
.seller-avatar-wrapper,
.banner-container,
.account-media,
.zoom-image-wrapper {
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  animation: shimmerPulse 1.6s infinite ease-in-out;
  overflow: hidden;
}

body.light-mode .profile-avatar,
body.light-mode .seller-avatar-wrapper,
body.light-mode .banner-container,
body.light-mode .account-media,
body.light-mode .zoom-image-wrapper {
  background-color: rgba(0, 0, 0, 0.08);
  animation: shimmerPulseLight 1.6s infinite ease-in-out;
}

.profile-avatar.loaded,
.seller-avatar-wrapper.loaded,
.banner-container.loaded,
.account-media.loaded,
.zoom-image-wrapper.loaded {
  animation: none !important;
  background-color: transparent !important;
}

.account-img, 
.detail-img-full, 
.profile-img, 
.banner-img, 
.seller-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TOP BAR FIXED */
.top-bar-wrapper {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 100;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 8px 16px;
  width: 100%;
  max-width: 410px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  min-width: 0;
}

.typing-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--accent-color);
  width: 0;
  animation: typeLoop 4s steps(11, end) infinite, caretBlink 0.75s infinite;
}

@keyframes typeLoop {
  0% { width: 0; opacity: 0.3; }
  15% { opacity: 1; }
  50% { width: 100%; }
  80% { width: 100%; opacity: 1; }
  95%, 100% { width: 0; opacity: 0.3; }
}

@keyframes caretBlink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent-color); }
}

/* TOGGLE TEMA */
.theme-toggle-btn {
  position: relative;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.theme-toggle-btn svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

/* MODE TERANG: MATAHARI */
body.light-mode .sun-icon {
  transform: translateY(0);
  opacity: 1;
  stroke: #4f46e5;
}

body.light-mode .moon-icon {
  transform: translateY(-160%);
  opacity: 0;
}

/* MODE GELAP: BULAN */
body.dark-mode .sun-icon {
  transform: translateY(160%);
  opacity: 0;
}

body.dark-mode .moon-icon {
  transform: translateY(0);
  opacity: 1;
  stroke: #ffffff;
}

/* MAIN CONTENT CONTAINER */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 85px 12px 95px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* HOME BANNER */
.banner-container {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
}

.banner-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.action-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.action-row .btn-action { flex: 1; }
.btn-action svg { width: 18px; height: 18px; flex-shrink: 0; display: block; overflow: visible; }
.btn-action:active { transform: scale(0.97); }

.btn-wa {
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
}
.btn-wa svg { fill: #25d366; }

.btn-verify {
  border-color: var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
}
.btn-verify svg { stroke: var(--text-main); }

.btn-group {
  width: 100%;
  border-color: var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
}
.btn-group svg { stroke: var(--text-main); }

/* REKOMENDASI HOME */
.home-recommendations-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.section-title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* KATALOG PRODUK & SUB TABS */
#product-catalog-view {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sub-tab-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.sub-tab-item {
  flex: 1;
  padding: 10px 8px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(12px);
}

.sub-tab-item.active {
  background: var(--pill-bg);
  border-color: var(--pill-border);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* KATALOG PRODUK GRID */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.account-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

/* UKURAN FOTO KARTU TERKUNCI KE RASIO 4:5 */
.account-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden;
}

.account-badge-group {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: row; /* Dibuat sejajar ke samping */
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.badge-code {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

/* BADGE DISKON MERAH */
.badge-diskon {
  background: var(--danger-red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* KONTEN KARTU STOK DENGAN TEKS KATEGORI, JUDUL, SELLER, HARGA */
.account-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 1. BADGE KATEGORI GAME (FREE FIRE / MOBILE LEGENDS) */
.badge-cat-inline {
  display: inline-block !important;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-main) !important;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

/* 2. TEKS STOCK PRIBADI FENDI STORE */
.card-stock-label {
  display: block !important;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-main) !important;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

/* 3. TEKS Fendi Store */
.card-seller-name {
  display: block !important;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-sub) !important;
  margin-bottom: 3px;
}

/* 4. TEKS HARGA AKUN & NOMINAL RP */
.account-price-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
}

.price-label {
  font-size: 9px;
  color: var(--text-sub);
  font-weight: 600;
}

/* HARGA CORET */
.harga-coret {
  font-size: 9px;
  color: var(--text-sub);
  text-decoration: line-through;
  font-weight: 500;
}

.account-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.account-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin-top: 4px;
}

.spec-item {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.light-mode .spec-item { background: #e2e8f0; }

.btn-see-now {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  margin-top: 6px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* SKELETON PLACEHOLDER */
.skeleton-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 5 !important;
  animation: shimmerPulse 1.6s infinite ease-in-out;
}

.skeleton-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  animation: shimmerPulse 1.6s infinite ease-in-out;
}

body.light-mode .skeleton-media,
body.light-mode .skeleton-line {
  animation: shimmerPulseLight 1.6s infinite ease-in-out;
}

/* DETAIL PRODUK */
.detail-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.btn-back-nav {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  padding: 2px 0;
}

.zoom-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.zoom-tag {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 2;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
}

.badge-row { display: flex; gap: 6px; }

.badge-theme {
  background: var(--pill-bg);
  color: var(--text-main);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--pill-border);
}

.badge-theme-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.detail-product-title { font-size: 15px; font-weight: 800; line-height: 1.3; }

.price-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 4px;
}

body.light-mode .price-box { background: #e2e8f0; }

.price-label-sm { font-size: 9px; color: var(--text-sub); font-weight: 700; }
.detail-price-text { font-size: 19px; font-weight: 900; color: var(--text-main); margin-top: 2px; }

.section-title { font-size: 13px; font-weight: 700; }
.detail-specs-text { font-size: 12px; color: var(--text-sub); line-height: 1.5; white-space: pre-line; }

/* SELLER CARD */
.seller-card { position: relative; overflow: visible; }

.seller-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.seller-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.seller-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seller-avatar-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.seller-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background-color: #25d366;
  border: 2px solid var(--card-bg);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
}

.seller-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.seller-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-status-text { font-size: 10px; color: #25d366; font-weight: 700; }

.btn-buy-now {
  padding: 9px 16px;
  background: #25d366;
  color: #000000;
  font-weight: 800;
  font-size: 11px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-buy-now:active { transform: scale(0.96); }

.seller-region-badge {
  margin-top: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
}

body.light-mode .seller-region-badge { background: #e2e8f0; }

/* FOOTER */
.home-footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
}

.footer-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  width: 100%;
  margin-bottom: 6px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-link-list,
.footer-trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-item:hover,
.footer-link-item:active { color: var(--text-main); }

.footer-link-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-sub);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-color);
  flex-shrink: 0;
  display: block;
}

.footer-bottom-credits {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 10px;
  color: var(--text-sub);
}

.credit-sub {
  font-size: 9px;
  margin-top: 2px;
  opacity: 0.7;
}

/* MODAL FULL ZOOM FOTO */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 92%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

/* AUTH & ADMIN PANEL */
.auth-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.auth-toggle-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

body.light-mode .auth-toggle-bar { background: #e2e8f0; }

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

.form-header h3 { font-size: 15px; font-weight: 700; }
.form-header p { font-size: 11px; color: var(--text-sub); margin-top: 2px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--text-sub); }

.auto-code-badge {
  font-size: 11px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  color: var(--text-sub);
  font-weight: 600;
}

body.light-mode .auto-code-badge { background: #e2e8f0; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea { background: #ffffff; }

.btn-auth-submit {
  padding: 11px;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 2px;
}

.user-profile-box { display: flex; flex-direction: column; gap: 10px; }
.user-info-row { display: flex; justify-content: space-between; align-items: center; }

.badge-role {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-main);
  text-transform: uppercase;
}

.btn-logout {
  padding: 9px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.divider { border: 0; height: 1px; background: var(--border-color); margin: 8px 0; }
.admin-header h3 { font-size: 14px; font-weight: 700; }
.admin-manage-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

body.light-mode .manage-item { background: #e2e8f0; }

.btn-delete-prod {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* DATAME CONTACT CARDS & ICON TIKTOK */
.datame-header { text-align: center; margin-bottom: 2px; }
.datame-header h2 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.datame-header p { font-size: 11px; color: var(--text-sub); }

/* UBAH JADI 2 KOLOM (GRID) */
.contact-list { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); /* Membagi 2 kolom sama besar */
  gap: 12px; 
  width: 100%; 
}

/* KARTU DIBUAT VERTIKAL & LEBIH BESAR */
.contact-card {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px 12px; /* Padding diperbesar biar gede */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 50px; /* Ikon diperbesar */
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 4px;
}

body.light-mode .card-icon { background: #e2e8f0; }

.card-icon svg { 
  width: 26px; /* SVG diperbesar */
  height: 26px; 
  display: block; 
}

.wa-icon { background: rgba(37, 211, 102, 0.12); color: #25d366; }
.wa-icon svg { fill: #25d366; }

.tiktok-icon { 
  background: #000000; 
  color: #ffffff; 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}
.tiktok-icon svg { fill: #ffffff; }

/* MEMATIKAN SHADOW TIKTOK SAAT MODE TERANG */
body.light-mode .tiktok-icon {
  box-shadow: none;
}

.ig-icon { background: rgba(225, 48, 108, 0.12); color: #e1306c; }
.ig-icon svg { stroke: #e1306c; }

.tele-icon { background: rgba(0, 136, 204, 0.12); color: #0088cc; }
.tele-icon svg { fill: #0088cc; }

.group-icon { background: rgba(37, 211, 102, 0.12); color: #25d366; }
.group-icon svg { stroke: #25d366; }

.card-info { 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
  min-width: 0; 
  align-items: center;
}

.card-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.card-detail { font-size: 10px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* Panah dihilangkan karena sudah bentuk kotak/table */
.card-arrow { display: none; }

/* BOTTOM NAV BAR */
.bottom-nav-wrapper {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 999;
}

.bottom-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 380px;
  height: 60px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-sub);
  width: 25%;
  height: 100%;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
}

.icon-box {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box svg { width: 100%; height: 100%; stroke: var(--text-sub); display: block; }

.nav-item.active { color: var(--text-main); }
.nav-item.active .icon-box svg { stroke: var(--text-main); }

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  height: calc(100% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.nav-indicator::after {
  content: '';
  width: 92%;
  height: 100%;
  border-radius: 24px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.82); }
  60% { transform: scale(1.22); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.icon-box.bounce { animation: iconBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* PWA INSTALL BANNER */
.pwa-banner-modal {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 410px;
  z-index: 10000;
  animation: slideUpPwa 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUpPwa {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.pwa-banner-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.pwa-banner-text h3 {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.pwa-banner-text p {
  font-size: 10px;
  color: var(--text-sub);
  line-height: 1.4;
}

.pwa-banner-actions {
  display: flex;
  gap: 10px;
}

.btn-pwa-later {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-pwa-install {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  background: #25d366;
  border: none;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.btn-pwa-later:active, 
.btn-pwa-install:active { transform: scale(0.96); }

/* RESPONSIVE DESIGN (TABLET & PC / DESKTOP) */
@media (min-width: 768px) {
  .top-bar { max-width: 720px; padding: 10px 20px; }
  .main-content { max-width: 720px; padding-top: 95px; }
  .bottom-nav { max-width: 480px; }
  .banner-container { aspect-ratio: 16 / 7; }
  .product-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .skeleton-card { border-radius: 18px; }
  .pwa-banner-modal { max-width: 480px; bottom: 90px; }
}

@media (min-width: 1024px) {
  .top-bar { max-width: 1080px; padding: 12px 24px; }
  .main-content { max-width: 1080px; padding-top: 105px; padding-bottom: 110px; }
  .bottom-nav { max-width: 520px; height: 64px; }
  .nav-item { font-size: 11px; }
  .banner-container { aspect-ratio: 21 / 7; }
  .home-actions { flex-direction: row; gap: 12px; }
  .action-row { flex: 2; }
  .btn-group { flex: 1; }
  .product-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  #product-detail-view.detail-container { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
  .btn-back-nav { grid-column: span 2; }
  .zoom-image-wrapper { grid-row: span 3; }
  .seller-card { grid-column: span 2; }
  #product-detail-view .detail-card:last-child { grid-column: span 2; }
  .pwa-banner-modal { max-width: 500px; bottom: 95px; }
}