:root {
  /* Color Palette (Clean White + Green Theme) */
  --bg-main: #F6F8FF;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;

  /* Accents */
  --accent-light: #EEF2FF;
  --accent-hover: #E0E7FF;

  /* CTA */
  --cta-primary: #2d7a5e;
  --cta-hover:   #225e48;
  --cta-light:   rgba(45, 122, 94, 0.10);

  /* Gradient */
  --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #F0F9FF 100%);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 12px 28px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(52,83,72,0.18), 0 8px 16px rgba(52,83,72,0.10);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.06);

  /* Radii */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.75rem;
  --radius-full: 9999px;

  /* iOS Spring Timing */
  --transition-fast:    150ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-normal:  380ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-bounce:  540ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-dismiss: 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Reserve space for mobile bottom nav */
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

a    { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; border: none; cursor: pointer; background: none; -webkit-tap-highlight-color: transparent; }
img  { max-width: 100%; display: block; }

/* ================================
   UTILITIES
================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1    { flex: 1; }

.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }

.grid       { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:col-span-2 { grid-column: span 2/span 2; } .md\:flex-row { flex-direction: row; } .md\:text-right { text-align: right; } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg\:col-span-3 { grid-column: span 3/span 3; } }

.text-center   { text-align: center; }
.font-bold     { font-weight: 700; } .font-semibold { font-weight: 600; } .font-medium { font-weight: 500; }
.text-xs  { font-size: 0.75rem;  line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg  { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem;  } .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--cta-primary); }
.bg-card   { background-color: var(--bg-card); }
.bg-accent { background-color: var(--accent-light); }
.bg-main   { background-color: var(--bg-main); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-t-lg { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.shadow-sm { box-shadow: var(--shadow-sm); } .shadow-md { box-shadow: var(--shadow-md); } .shadow-lg { box-shadow: var(--shadow-lg); }
.border   { border: 1px solid rgba(15,23,42,0.07); }
.border-t { border-top: 1px solid rgba(15,23,42,0.07); }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-16 { margin-top: 4rem; } .mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-16 { margin-bottom: 4rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.w-full { width: 100%; }
.absolute { position: absolute; } .relative { position: relative; } .fixed { position: fixed; }
.top-4  { top: 1rem; } .right-4 { right: 1rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.hidden  { display: none !important; }
.cursor-pointer { cursor: pointer; }

/* ================================
   ANIMATIONS
================================ */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-anim { animation: cardEnter 420ms cubic-bezier(0.32, 0.72, 0, 1) both; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tab-enter-right { animation: slideInRight 320ms cubic-bezier(0.32, 0.72, 0, 1) both; }
.tab-enter-left  { animation: slideInLeft 320ms cubic-bezier(0.32, 0.72, 0, 1) both; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================================
   HOVER / PRESS EFFECTS
================================ */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  will-change: transform;
}
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hover-lift-text { transition: color var(--transition-fast); }
.hover-lift-text:hover { color: var(--text-main); }
.hover\:text-main:hover { color: var(--text-main); }

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.95); transition: transform 80ms ease; }

.btn-primary {
  background: rgba(45, 122, 94, 0.18);
  color: #1a5240;
  border: 1px solid rgba(45, 122, 94, 0.35);
  box-shadow: 0 2px 12px rgba(45,122,94,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  font-weight: 700;
}
.btn-primary:hover {
  background: rgba(45, 122, 94, 0.28);
  border-color: rgba(45, 122, 94, 0.55);
  box-shadow: 0 6px 20px rgba(45,122,94,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-outline {
  border: 1.5px solid rgba(15,23,42,0.13);
  background-color: transparent;
  color: var(--text-muted);
}
.btn-outline:hover { background-color: var(--accent-light); border-color: var(--cta-primary); color: var(--cta-primary); }

/* ================================
   GLASS NAV
================================ */
.glass {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(52,83,72,0.10);
}

/* ================================
   NAVBAR (Desktop)
================================ */
.navbar { position: sticky; top: 0; z-index: 50; }
.navbar-content { height: 64px; }
.logo {
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #2d5244, #5aab8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cta-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--cta-primary); }
.icon-btn {
  color: var(--text-muted);
  padding: 7px;
  border-radius: var(--radius-md);
  display: inline-flex;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.icon-btn:hover  { color: var(--cta-primary); background: var(--accent-light); }
.icon-btn:active { transform: scale(0.88); transition: transform 80ms ease; }

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
  .mobile-menu   { display: block !important; }
}
.mobile-menu { display: none; }

/* ================================
   BOTTOM NAV (Mobile)
================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border-top: 1px solid rgba(52,83,72,0.10);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(52,83,72,0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-nav.nav-hidden {
  transform: translateY(100%);
}
@media (max-width: 768px) { .bottom-nav { display: flex; } }

.bottom-nav-items {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition-fast), background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.bottom-nav-item svg { transition: transform var(--transition-bounce); }
.bottom-nav-item:active { background: var(--accent-light); }
.bottom-nav-item:active svg { transform: scale(0.85); }
.bottom-nav-item.active { color: var(--cta-primary); }
.bottom-nav-item.active svg { transform: scale(1.1); }
/* WA button — always green accent */
.bottom-nav-item.wa-btn { color: #16a34a; }
.bottom-nav-item.wa-btn:active { background: #f0fdf4; }

/* ================================
   SEARCH OVERLAY (full screen, keyboard-safe)
================================ */
.search-sheet {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  animation: overlayIn var(--transition-normal) both;
}
.search-sheet.dismissing { animation: overlayOut var(--transition-dismiss) both !important; }
.search-sheet-top {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(15,23,42,0.07);
  background: var(--bg-card);
  flex-shrink: 0;
  padding-top: max(1rem, env(safe-area-inset-top));
}
.search-sheet-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem 2rem;
  background: var(--bg-main);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.search-result-item:active { background: var(--accent-light); transform: scale(0.98); }
.search-result-thumb {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
@keyframes sheetSlideUp   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* ================================
   HERO
================================ */
.hero-banner {
  background: var(--gradient-hero);
  border: 1px solid rgba(79,70,229,0.08);
}
@media (max-width: 768px) {
  .hero-banner { min-height: 200px !important; border-radius: var(--radius-xl) !important; }
  .hero-content { padding: 1.5rem !important; max-width: 65% !important; }
  .hero-content h1 { font-size: 1.4rem !important; }
  .hero-content p  { font-size: 0.82rem !important; display: none; }
  .hero-cta-group .btn { padding: 0.55rem 1rem !important; font-size: 0.8rem !important; }
}

/* ================================
   MAIN TAB BAR (Akun / Joki switcher)
================================ */
.main-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.06);
  gap: 4px;
}
.main-tab-btn {
  flex: 1;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.main-tab-btn:active { transform: scale(0.95); }
.main-tab-btn.active {
  background: rgba(45, 122, 94, 0.15);
  color: #1a5240;
  border: 1px solid rgba(45, 122, 94, 0.30);
  box-shadow: 0 2px 12px rgba(45,122,94,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* ================================
   GAME CHIPS (scrollable mobile)
================================ */
.game-chips-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.game-chips-wrapper::-webkit-scrollbar { display: none; }
.game-chips { display: flex; gap: 8px; width: max-content; }
@media (min-width: 640px) { .game-chips { width: auto; flex-wrap: wrap; } }

.chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  border: 1.5px solid rgba(15,23,42,0.12);
  color: var(--text-muted);
  background: var(--bg-card);
  white-space: nowrap;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chip:active { transform: scale(0.93); }
.chip.active {
  background: rgba(45, 122, 94, 0.15);
  color: #1a5240;
  border-color: rgba(45, 122, 94, 0.35);
  box-shadow: 0 2px 10px rgba(45,122,94,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* ================================
   PRODUCT CARDS — Account
================================ */
.product-card {
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 36px rgba(52,83,72,0.14), 0 4px 10px rgba(52,83,72,0.08);
  border-color: rgba(52,83,72,0.14);
}
.product-card:active { transform: scale(0.96) !important; transition: transform 90ms ease !important; }

.product-img-container { position: relative; height: 150px; background: var(--accent-light); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.product-card:hover .product-img { transform: scale(1.07); }

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(30,61,48,0.72);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
}

/* ================================
   JOKI CARDS — Text-only premium
================================ */
.joki-card {
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
/* Mobile: horizontal layout for joki card */
@media (max-width: 639px) {
  .joki-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
  }
  .joki-card-body { flex: 1; }
  .joki-card .joki-footer { border-top: none; margin-top: 0; padding-top: 0; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
.joki-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3d6b5a, #5aab8a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  border-radius: 3px 3px 0 0;
}
.joki-card:hover::before { transform: scaleX(1); }
.joki-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 36px rgba(52,83,72,0.14), 0 4px 10px rgba(52,83,72,0.08); border-color: rgba(52,83,72,0.15); }
.joki-card:active { transform: scale(0.96) !important; transition: transform 90ms ease !important; }

.joki-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
  transition: background var(--transition-fast);
}
.joki-card:hover .joki-icon { background: var(--accent-hover); }
@media (max-width: 639px) { .joki-icon { margin-bottom: 0; } }

.joki-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 0.85rem;
  border-top: 1px solid rgba(15,23,42,0.06);
}

/* ================================
   TEXT CLAMP
================================ */
.title-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc-clamp  { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ================================
   SIDEBAR FILTER (desktop only)
================================ */
.filter-sidebar { position: sticky; top: 80px; }
.filter-sidebar input[type=range]    { accent-color: var(--cta-primary); }
.filter-sidebar input[type=checkbox] { accent-color: var(--cta-primary); width: 16px; height: 16px; }

/* ================================
   MODAL — iOS Spring
================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  z-index: 120;
  display: flex;
  align-items: center; justify-content: center;
  animation: overlayIn var(--transition-normal) both;
}
.modal-overlay.dismissing { animation: overlayOut var(--transition-dismiss) both !important; }

.modal-content {
  max-width: 520px; width: 92%;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  position: relative;
  box-shadow: 0 32px 64px rgba(15,23,42,0.2), 0 0 0 1px rgba(255,255,255,0.08);
  animation: modalPopIn var(--transition-bounce) both;
}
@media (max-width: 480px) { .modal-content { width: 96%; padding: 1.5rem; border-radius: var(--radius-xl); } }
.modal-overlay.dismissing .modal-content { animation: modalPopOut var(--transition-dismiss) both !important; }

.coming-soon-icon {
  background: var(--accent-light);
  padding: 1.5rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: inline-flex;
}

@keyframes overlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalPopIn {
  from { transform: scale(0.86) translateY(28px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}
@keyframes modalPopOut {
  from { transform: scale(1) translateY(0);        opacity: 1; }
  to   { transform: scale(0.90) translateY(20px);  opacity: 0; }
}

/* ================================
   EMPTY STATES
================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(79,70,229,0.2);
}
.empty-state svg { margin: 0 auto 1rem; opacity: 0.35; }

/* ================================
   CUSTOM SCROLLBAR
================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.14); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.25); }

/* ================================
   UTILITIES
================================ */
.hidden { display: none !important; }

/* ================================
   ADMIN PAGES — reusable inside admin/*
================================ */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--bg-card); border-right: 1px solid rgba(15,23,42,0.06); padding: 1.5rem 1rem; }
.sidebar .logo { margin-bottom: 2rem; padding-left: 0.5rem; }
.sidebar-link { display: block; padding: 0.7rem 1rem; color: var(--text-muted); border-radius: var(--radius-md); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.25rem; transition: all var(--transition-fast); }
.sidebar-link:hover, .sidebar-link.active { background: var(--accent-light); color: var(--cta-primary); }
.sidebar-link:active { transform: scale(0.97); }
.admin-main { flex: 1; padding: 2rem; background: var(--bg-main); overflow-y: auto; }

/* ================================
   CAROUSEL (Product Cards & Modal)
================================ */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: rgba(255,255,255,0.9);
  width: 12px;
  border-radius: 99px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(15,23,42,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* ================================
   PAYMENT ACCORDION & BADGES
================================ */
.payment-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.55rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.payment-card:hover {
  border-color: var(--cta-primary);
  background: var(--accent-light);
}
.payment-card:active {
  transform: scale(0.98);
}
.payment-card.active {
  border-color: var(--cta-primary);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}
.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.chevron-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}
.payment-card.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--cta-primary);
}

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

.payment-card.active .payment-body {
  animation: swipeDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}
.payment-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bca-badge     { background: #0066AE; color: #FFFFFF; }
.mandiri-badge { background: #003366; color: #F2A900; }
.seabank-badge { background: #FF5722; color: #FFFFFF; }
.ewallet-badge { background: #00A5CF; color: #FFFFFF; }
.dana-badge    { background: #118EEA; color: #FFFFFF; }
.qris-badge    { background: #EE2E24; color: #FFFFFF; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(15,23,42,0.15);
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-copy:hover {
  background: var(--cta-primary);
  color: #ffffff;
  border-color: var(--cta-primary);
}

.payment-logo-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ================================
   ENTRANCE ANIMATIONS (FADE IN UP)
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ================================
   CONTINUOUS ANIMATIONS (SHINY/FLOAT)
================================ */
.shimmer-card {
    position: relative;
    overflow: hidden;
    animation: float-card 4s ease-in-out infinite;
}

.shimmer-card::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shimmer 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes shimmer {
    0% { left: -150%; }
    25% { left: 150%; }
    100% { left: 150%; }
}

@keyframes float-card {
    0% { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    50% { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
    100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
}

.pulse-icon {
    display: inline-block;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8)); }
}

/* ================================
   UNIVERSAL BUTTON CLICK FEEL
================================ */
.btn:active, 
.login-method-btn:active, 
#btnAddJoki:active, 
.icon-btn:active, 
.chip:active, 
.main-tab-btn:active,
.quantity-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

/* ================================
   LOGO ANIMATIONS
================================ */
.logo-pulse {
    animation: logo-glow 3s ease-in-out infinite;
    transform-origin: center;
}
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(79, 70, 229, 0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.8)); transform: scale(1.04); }
}

.logo-text-shine {
    background: linear-gradient(90deg, #4F46E5 0%, #818CF8 25%, #4F46E5 50%, #818CF8 75%, #4F46E5 100%);
    background-size: 200% auto;
    animation: shine-text 5s linear infinite;
}
@keyframes shine-text {
    to { background-position: 200% center; }
}

.hover-lift-logo {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift-logo:hover {
    transform: scale(1.02) translateY(-1px);
}
.hover-lift-logo:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}
