:root {
  /* --- LIGHT MODE TWEAKS (Lebih berkarakter & ala game retro-modern) --- */
  --bg-main: #f0f3f8; 
  --bg-card: #ffffff;
  --text-dark: #1e272e; 
  
  --border-color: #2f3640; 
  --shadow-color: #b2bec3; 
  
  --hero-bg: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
  --hero-text: #ffffff;
  --tab-inactive: #ffffff;
  --bottom-bar: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  
  /* Warna Aksen */
  --primary: #ff5fa2;
  --secondary: #5edfff;
  --accent: #ffd84d;
  --btn-plus: #00b894;
  --btn-minus: #ff7675;
}

body.dark-mode {
  /* --- DARK MODE TWEAKS (Tetap dipertahankan yang keren) --- */
  --bg-main: #0f0c20;
  --bg-card: #1e1936;
  --text-dark: #f1f2f6;
  --border-color: #9c88ff;
  --shadow-color: #000000;
  --hero-bg: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --hero-text: #ffffff;
  --tab-inactive: #2d244c;
  --bottom-bar: rgba(30, 25, 54, 0.85);
  --input-bg: #2d244c;
  --primary: #ff79c6;
  --secondary: #70d6ff;
  --accent: #feca57;

  /* PATTERN KHUSUS DARK MODE */
  background-color: var(--bg-main) !important;
  background-image: 
    linear-gradient(30deg, rgba(156, 136, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(156, 136, 255, 0.04) 87.5%, rgba(156, 136, 255, 0.04)),
    linear-gradient(150deg, rgba(156, 136, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(156, 136, 255, 0.04) 87.5%, rgba(156, 136, 255, 0.04)),
    linear-gradient(30deg, rgba(156, 136, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(156, 136, 255, 0.04) 87.5%, rgba(156, 136, 255, 0.04)),
    linear-gradient(150deg, rgba(156, 136, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(156, 136, 255, 0.04) 87.5%, rgba(156, 136, 255, 0.04)) !important;
  background-size: 40px 70px !important;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px !important;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: "Outfit", sans-serif;
  padding-bottom: 120px;
  transition: background-color 0.4s ease, color 0.4s ease;
  
  background-image: 
    linear-gradient(to right, rgba(47, 54, 64, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 54, 64, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  background-attachment: fixed;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader img {
  width: 120px;
  border-radius: 25px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: pulseLogo 1.5s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pulseLogo {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0); }
}

/* Fake Alert Toast */
#fake-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-150px);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-width: 300px;
  justify-content: center;
}
#fake-alert.show {
  transform: translateX(-50%) translateY(0);
}
#alert-content { font-size: 0.9em; }

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 50px 20px 40px;
  background: var(--hero-bg);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}
.store-logo {
  max-width: 160px;
  width: 100%;
  margin: 0 auto 15px;
  display: block;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.store-logo:hover { transform: scale(1.05) rotate(-3deg); }
.hero p {
  color: var(--hero-text);
  font-family: "Russo One", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 8px 25px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Theme Toggle */
.theme-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(15deg); }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Testimonials */
.testi-container { margin: 10px 0 30px; }
.testi-title { font-family: "Russo One", sans-serif; font-size: 1.2em; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.testi-wrapper {
  display: flex; gap: 15px; overflow-x: auto; padding: 5px 5px 15px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.testi-wrapper::-webkit-scrollbar { display: none; }
.testi-card {
  min-width: 130px; height: 180px; background: var(--bg-card); border-radius: 16px;
  border: 2px solid var(--border-color); overflow: hidden; flex-shrink: 0;
  box-shadow: 4px 4px 0px var(--shadow-color); position: relative; transition: transform 0.2s ease;
}
.testi-card:hover { transform: translateY(-5px); }
.testi-card img { width: 100%; height: 100%; object-fit: cover; }
.testi-caption {
  position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #fff; font-size: 0.85em; padding: 15px 10px 8px; text-align: center; font-family: "Russo One", sans-serif; font-weight: 500;
}

/* Custom Image Classes */
.robux-img { width: 50px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)); }
.pay-img { height: 24px; vertical-align: middle; object-fit: contain; }

/* =========================================
   BAGIAN NAVIGATION TABS (TOMBOL CHUBBY 3D)
   ========================================= */
.tabs {
  position: relative; /* KUNCI UTAMA: BIAR GAK MELAYANG NGIKUTIN SCROLL */
  z-index: 10;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap; /* KUNCI KEDUA: BIAR TOMBOLNYA NYUSUN RAPI 2 BARIS KAYAK DI GAMBAR */
  justify-content: center;
  gap: 15px; 
  padding: 20px 20px; 
  border-radius: 20px; 
  border: 2px solid var(--border-color); 
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; 
  padding: 12px 24px; 
  font-size: 1.05em; 
  font-family: 'Russo One', sans-serif;
  font-weight: 600; 
  color: var(--text-dark);
  background: var(--tab-inactive);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out; 
  box-shadow: 4px 4px 0px var(--shadow-color); 
}
.tab-btn:hover { background: var(--bg-main); transform: translateY(-2px); box-shadow: 4px 6px 0px var(--shadow-color); }
.tab-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0px var(--shadow-color); }
.tab-btn.active { background: var(--accent); color: #000; border-color: #000; transform: translate(3px, 3px); box-shadow: 0px 0px 0px var(--shadow-color); }
.tab-icon, .tab-btn img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }

/* =========================================
   STYLE BANNER
   ========================================= */
.banner-img {
  width: 100%;
  max-width: 600px; 
  border-radius: 18px; 
  box-shadow: 4px 4px 0px var(--shadow-color); 
  border: 2px solid var(--border-color); 
  object-fit: cover;
  display: inline-block;
  animation: fadeScale 0.4s ease; 
}

/* Products */
.category-section { display: none; animation: fadeScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.category-section.active { display: block; }
@keyframes fadeScale { 0% { opacity: 0; transform: scale(0.95) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 18px; padding: 15px;
  text-align: center; box-shadow: 4px 4px 0px var(--shadow-color); display: flex; flex-direction: column;
  justify-content: space-between; transition: all 0.2s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 6px 8px 0px var(--shadow-color); }
.card-icon { font-size: 2.5em; margin-bottom: 10px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); display: flex; justify-content: center; align-items: center; height: 50px; }
.card-title { font-family: "Russo One", sans-serif; font-size: 1.1em; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.card-price { font-size: 0.95em; color: #000; font-weight: 800; background: var(--accent); display: inline-block; padding: 6px 12px; border-radius: 20px; border: 2px solid #000; margin-bottom: 15px; box-shadow: 2px 2px 0px #000; }

/* Quantity Controls */
.controls { display: flex; justify-content: space-between; align-items: center; background: var(--input-bg); border-radius: 12px; padding: 6px; border: 2px solid var(--border-color); }
.controls button { color: white; border: 2px solid rgba(0, 0, 0, 0.2); width: 36px; height: 36px; border-radius: 10px; font-size: 1.2em; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: transform 0.1s, filter 0.2s; }
.controls button:active { transform: scale(0.9); }
.controls button:hover { filter: brightness(1.1); }
.btn-min { background: var(--btn-minus); }
.btn-plus { background: var(--btn-plus); }
.qty-display { font-family: "Russo One", sans-serif; font-size: 1.2em; font-weight: 600; width: 30px; }

/* Forms */
.account-form { display: none; background: var(--bg-card); padding: 30px 25px; border-radius: 25px; border: 2px solid var(--border-color); margin-top: 40px; box-shadow: 6px 6px 0px var(--shadow-color); animation: fadeScale 0.4s ease; }
.account-form input { width: 100%; background: var(--input-bg); border: 2px solid var(--border-color); color: var(--text-dark); padding: 15px; margin-bottom: 15px; border-radius: 12px; outline: none; font-family: "Outfit", sans-serif; font-size: 1em; transition: all 0.3s ease; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); }
.account-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 95, 162, 0.2); }

/* Radio Button Box */
.radio-selection-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; margin-top: 10px; }
.radio-btn-custom { cursor: pointer; display: block; }
.radio-btn-custom input { display: none; }
.radio-box { background: var(--input-bg); border: 2px solid var(--border-color); border-radius: 12px; padding: 15px 10px; text-align: center; font-family: "Russo One", sans-serif; font-size: 1em; font-weight: 600; color: var(--text-dark); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 3px 3px 0px var(--shadow-color); display: flex; justify-content: center; align-items: center; gap: 5px; }
.radio-btn-custom input:checked + .radio-box { background: var(--accent); color: #000; transform: translate(3px, 3px); box-shadow: 0px 0px 0px var(--shadow-color); border-color: #000; }

/* Bottom Bar */
.bottom-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 860px; background: var(--bottom-bar); backdrop-filter: blur(15px); border: 2px solid var(--border-color); padding: 15px 25px; border-radius: 25px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.bottom-price { color: var(--primary); font-family: "Russo One", sans-serif; font-size: 1.6em; font-weight: 700; line-height: 1.1; }
.btn-order { background: var(--primary); color: #fff; border: none; padding: 15px 35px; border-radius: 15px; font-family: "Russo One", sans-serif; font-size: 1.1em; font-weight: 600; cursor: pointer; box-shadow: 0 6px 15px rgba(255, 95, 162, 0.4); transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 95, 162, 0.5); }
.btn-order:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(255, 95, 162, 0.4); }

/* SweetAlert Overrides */
.swal2-popup { font-family: "Outfit", sans-serif !important; border-radius: 25px !important; border: 2px solid var(--border-color) !important; background: var(--bg-card) !important; color: var(--text-dark) !important; }
.swal2-title { font-family: "Russo One", sans-serif !important; }
.swal2-confirm { font-family: "Russo One", sans-serif !important; border-radius: 12px !important; padding: 12px 30px !important; font-weight: 600 !important; }

/* --- TAMBAHAN STYLE FONT GAMING --- */
.tab-btn {
  font-weight: 400;
  letter-spacing: 0.5px;
}
.card-title {
  font-family: "Outfit", sans-serif; 
  font-weight: 800;
}
.card-price {
  font-family: "Russo One", sans-serif;
  letter-spacing: 1px;
  font-size: 1.1em;
}
.btn-order {
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.bottom-price {
  letter-spacing: 1px;
}
.account-form input {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
}

/* --- KHUSUS PENGATURAN HP BIAR BOTTOM BAR GAK NABRAK PRODUK --- */
@media screen and (max-width: 768px) {
  .container {
    padding-bottom: 160px !important; 
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important;
  }
}