:root {
  /* Ocean Vibes Japan & Watercolor Anime Palette */
  --ocean-deep: #0ea5e9;
  --ocean-light: #38bdf8;
  --water-foam: #e0f2fe;
  --sakura-accent: #fbcfe8;
  --torii-red: #fb7185;

  --bg-color: #f0f9ff;
  --card-bg: rgba(255, 255, 255, 0.75);
  --text-main: #0c4a6e;
  --text-muted: #475569;
  --border-color: rgba(56, 189, 248, 0.4);

  --shadow-sm: 0 4px 12px rgba(14, 165, 233, 0.08);
  --shadow-md: 0 12px 30px rgba(14, 165, 233, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

/* ===== DARK MODE VARIABLES ===== */
body.dark-theme {
  --bg-color: #0f172a; /* Warna biru dongker sangat gelap */
  --card-bg: rgba(30, 41, 59, 0.85);
  --text-main: #f8fafc; /* Putih terang */
  --text-muted: #94a3b8;
  --border-color: rgba(56, 189, 248, 0.15);
  --water-foam: #1e293b; /* Warna latar elemen redup */
  --ocean-deep: #38bdf8; /* Dibalik agar lebih terang di dark mode */
  --ocean-light: #0ea5e9;
}

/* Penyesuaian agar header dan modal tetap elegan di Dark Mode */
body.dark-theme .site-header {
  background: rgba(15, 23, 42, 0.85);
}
body.dark-theme .order-modal-card {
  background: rgba(30, 41, 59, 0.95);
}
body.dark-theme .main-nav {
  background: rgba(15, 23, 42, 0.95) !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Watercolor Blobs Effects */
.watercolor-blob {
  position: fixed;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--water-foam), var(--ocean-light));
}

.blob-2 {
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sakura-accent), #bae6fd);
}

/* ===== HEADER ===== */
/* ===== NAVBAR UPGRADE ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--ocean-deep);
}

/* Garis bawah animasi saat dihover */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--ocean-deep);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Responsif: Sembunyikan menu teks di HP agar tidak menumpuk */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-top: 10px;
  }

  .nav-link {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.75);
    color: #0284c7;
    white-space: nowrap;
  }

  .nav-link::after {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--torii-red), #f43f5e);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(251, 113, 133, 0.3);
}

.brand-copy strong {
  display: block;
  font-size: 18px;
  color: var(--text-main);
  font-weight: 800;
}

.brand-copy span {
  font-size: 13px;
  color: var(--ocean-deep);
  font-weight: 600;
}

.header-note {
  font-size: 12px;
  color: var(--ocean-deep);
  background: var(--water-foam);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--torii-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(251, 113, 133, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
  }
}

/* ===== MAIN CONTAINER ===== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  flex: 1;
  width: 100%;
  animation: fadeUp 0.6s ease-out;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ocean-deep);
  background: var(--water-foam);
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
  border: 1px solid var(--ocean-light);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #082f49;
}

.hero p {
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== STORE LAYOUT ===== */
.store-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.shop-card,
.summary-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

/* ===== FORM ELEMENTS ===== */
.section-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.5);
}

.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0c4a6e;
}

.section-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.block {
  margin-bottom: 24px;
}

/* SEARCH BAR */
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-label,
.field label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 10px;
}

.search-header .section-label {
  margin-bottom: 0;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 99px;
  border: 1px solid var(--ocean-light);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  transition: all 0.2s;
}

.search-box input:focus {
  background: white;
  box-shadow: 0 0 0 3px var(--water-foam);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

/* GAME GRID */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.game-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ocean-light);
}

.game-card.active {
  border: 2px solid var(--ocean-deep);
  background: var(--water-foam);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.game-card img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-bottom: 1px solid #bae6fd;
}

.game-card span {
  display: block;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* FORM FIELDS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
}

input[type="text"]:not(#gameSearch),
select {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #bae6fd;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
  appearance: auto;
}

input[type="text"]:not(#gameSearch):focus,
select:focus {
  border-color: var(--ocean-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--water-foam);
}

button#buyBtn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

/* Efek Ombak (Wave) saat hover di tombol */
button#buyBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40%;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 0.8s ease;
  opacity: 0;
}

button#buyBtn:hover::after {
  transform: translate(-50%, -50%) rotate(180deg);
  opacity: 1;
}

button#buyBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.4);
}

button#buyBtn:active {
  transform: translateY(0);
}

#loading {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ocean-deep);
  font-weight: 700;
}

.trust-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.6;
}

/* ===== SUMMARY CARD ===== */
.summary-card {
  position: sticky;
  top: 100px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(224, 242, 254, 0.6)
  );
}

.summary-head {
  margin-bottom: 24px;
}

.summary-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: var(--torii-red);
  padding: 6px 12px;
  border-radius: 6px;
}

#previewGame {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0c4a6e;
}

#previewProduct {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #bae6fd;
}

.price-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ocean-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Ornamen Gelombang kecil di Price Box */
.price-box::before {
  content: "🌊";
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 60px;
  opacity: 0.1;
}

.price-box span {
  font-size: 14px;
  color: var(--ocean-deep);
  font-weight: 700;
}

.price-box strong {
  font-size: 34px;
  font-weight: 800;
  color: #0284c7;
  line-height: 1;
}

.summary-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--ocean-light);
}

.summary-point strong {
  font-size: 14px;
  color: #0284c7;
  font-weight: 700;
}

.summary-point span {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
  }

  .search-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }
}

/* ===== PRELOADER (LOADING SCREEN) ===== */
#preloader {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: var(--bg-color) !important;
  z-index: 999999 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

/* Hilangkan saat halaman selesai dimuat */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  width: min(260px, 90vw) !important;
  text-align: center !important;
  margin: 0 auto !important;
  transform: none !important;
  animation: floatLoader 2s ease-in-out infinite;
}

.loader-logo {
  font-size: 60px;
  margin-bottom: 16px;
  text-shadow: 0 10px 20px rgba(251, 113, 133, 0.4);
}

.loader-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--ocean-deep);
  letter-spacing: 3px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Bar Progres seperti air mengalir */
.loader-bar {
  width: 180px;
  height: 6px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--ocean-deep), var(--ocean-light));
  border-radius: 10px;
  animation: waveLoad 1.5s infinite ease-in-out;
}

/* Animasi Melayang dan Mengalir */
@keyframes floatLoader {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -15px;
  }
}

@keyframes waveLoad {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

/* ===== LANGUAGE SWITCH (OCEAN + GLASS STYLE) ===== */
.lang-switch {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.15);
}

.lang-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  color: #0284c7;
  transition: all 0.25s ease;
  position: relative;
}

/* Hover halus kayak air */
.lang-btn:hover {
  background: rgba(224, 242, 254, 0.7);
}

/* ACTIVE (yang dipilih) */
.lang-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: white;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.4);
}

/* Glow halus */
.lang-btn.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.lang-btn.active:hover::after {
  opacity: 1;
}

/* ===== TOMBOL LOGIN / REGISTER ===== */
/* ===== TOMBOL LOGIN / REGISTER ===== */
.auth-btn {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: white;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
  color: white;
}

/* ===== 1. BANNER PROMO STYLES ===== */
.promo-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  position: relative;
}

.promo-slider {
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden; /* Tambahkan baris ini */
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease; /* Ubah transisi jadi lebih cepat dan tambahkan visibility */
  display: flex;
  align-items: center;
  padding: 0 40px;
  color: white;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible; /* Tambahkan baris ini */
  z-index: 2; /* Naikkan z-index */
}

.promo-content span {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.promo-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0;
}

/* ===== 2. FILTER PILLS STYLES ===== */
.filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pill {
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pill.active {
  background: var(--ocean-deep);
  color: white;
  border-color: var(--ocean-deep);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ===== 3. SOCIAL PROOF STYLES ===== */
.social-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--ocean-deep);
}

.social-proof.show {
  transform: translateY(0);
}

.site-footer {
  background: white;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 42px 24px 18px;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand strong {
  font-size: 20px;
  display: block;
  margin: 10px 0;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
}

.payment-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.payment-icons span {
  background: var(--bg-color);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ocean-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-icons iconify-icon {
  font-size: 17px;
  color: var(--ocean-deep);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 34px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 18px 46px !important;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-brand .brand-logo {
    width: 48px !important;
    height: 48px !important;
    font-size: 22px !important;
    margin: 0 auto 10px;
  }

  .footer-brand strong {
    font-size: 22px;
    margin: 8px 0;
  }

  .footer-brand p {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.45;
    max-width: 320px;
  }

  .footer-payments p {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
  }

  .payment-icons {
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .payment-icons span {
    padding: 7px 12px;
    font-size: 11px;
  }

  .footer-links {
    justify-content: center;
    margin-top: 18px;
    gap: 8px;
  }

  .footer-links button {
    padding: 9px 13px;
    font-size: 12px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    font-size: 12px;
    line-height: 1.5;
  }
}
.game-only-layout {
  grid-template-columns: 1fr;
}

.compact-game-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.compact-game-grid .game-card {
  border-radius: 20px;
}

.compact-game-grid .game-card img {
  height: 78px;
}

.compact-game-grid .game-card span {
  font-size: 12px;
  padding: 9px;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-modal.show {
  display: flex;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 74, 110, 0.45);
  backdrop-filter: blur(8px);
}

.order-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 30px 70px rgba(14, 165, 233, 0.28);
  animation: modalPop 0.25s ease;
}

.modal-close-btn {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  border: none !important;
  border-radius: 14px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-head {
  margin-bottom: 22px;
  padding-right: 44px;
}

.modal-head h2 {
  margin-top: 10px;
  font-size: 26px;
  color: var(--text-main);
}

.modal-head p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.modal-summary {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 20px;
  background: #f0f9ff;
  border: 1px dashed #bae6fd;
}

.modal-summary small {
  display: block;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-summary strong {
  display: block;
  color: #0c4a6e;
  font-size: 15px;
  word-break: break-word;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .compact-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .order-modal-card {
    padding: 24px;
    border-radius: 24px;
  }

  .modal-head h2 {
    font-size: 22px;
  }
}
.modal-close-btn {
  z-index: 99999 !important;
}

.order-modal-card {
  z-index: 2;
}

.order-modal-backdrop {
  z-index: 1;
}
@media (max-width: 768px) {
  .order-modal {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .order-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: rgba(12, 74, 110, 0.42) !important;
    backdrop-filter: none !important;
  }

  .order-modal-card {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 22px !important;
    border-radius: 24px 24px 0 0 !important;
    background: #ffffff !important;
    opacity: 1 !important;
    transform: none;
    animation: mobileModalUp 0.22s ease;
  }

  body.dark-theme .order-modal-card {
    background: #1e293b !important;
  }

  .modal-head,
  .form-grid,
  .form-group,
  .price-breakdown,
  .modal-summary,
  .trust-text,
  #buyBtn,
  #loading {
    position: relative !important;
    z-index: 3 !important;
    opacity: 1 !important;
  }

  .modal-head h2 {
    font-size: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .modal-summary {
    margin: 14px 0;
    padding: 14px;
  }

  button#buyBtn {
    padding: 15px;
  }
}

@keyframes mobileModalUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy span {
    font-size: 11px;
  }

  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .auth-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .lang-switch {
    padding: 4px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .page {
    padding: 28px 14px 70px;
  }

  .shop-card {
    padding: 22px;
    border-radius: 22px;
  }

  .compact-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .compact-game-grid .game-card img {
    height: 72px;
  }

  .filter-pills {
    gap: 8px;
  }

  .pill {
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .promo-slider {
    height: 150px;
  }

  .promo-slide {
    padding: 0 22px;
  }

  .promo-content h3 {
    font-size: 22px;
  }
}
.voucher-row {
  display: flex;
  gap: 10px;
}

.voucher-row input {
  flex: 1;
}

.voucher-check-btn {
  flex: 0 0 86px;
  min-height: 58px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.voucher-check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.35);
}

.voucher-check-btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

.voucher-check-btn span {
  font-size: 16px;
}

.voucher-check-btn b {
  font: inherit;
}

.voucher-message {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.voucher-message.success {
  color: #059669;
}

.voucher-message.error {
  color: #e11d48;
}

.price-breakdown {
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(240, 249, 255, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.price-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.price-breakdown .price-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(14, 165, 233, 0.35);
  font-size: 16px;
}
@media (max-width: 480px) {
  .voucher-row {
    flex-direction: column;
  }

  .voucher-check-btn {
    width: 100%;
    flex: none;
    min-height: 50px;
  }
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    padding: 8px 12px 9px;
    gap: 8px;
  }

  .brand {
    grid-area: brand;
    width: auto;
    justify-content: flex-start;
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 13px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .brand-copy span {
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .header-actions {
    grid-area: actions;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .lang-switch {
    padding: 3px;
    gap: 3px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  #userMenu > div {
    justify-content: flex-end;
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  #userMenu .auth-btn {
    min-height: 34px;
    padding: 6px 9px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    white-space: nowrap;
  }

  #userMenu .auth-btn:first-child {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    grid-area: nav;
    order: initial;
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    padding-top: 2px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 7px 11px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .page {
    padding-top: 18px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 7px 13px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-cta {
    margin-top: 18px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .promo-container {
    margin-bottom: 28px;
    padding: 0 18px;
  }

  .promo-slider {
    height: 132px;
    border-radius: 22px;
  }

  .promo-slide {
    padding: 0 22px;
  }

  .promo-content span {
    font-size: 10px;
  }

  .promo-content h3 {
    font-size: 23px;
    line-height: 1.15;
  }

  .promo-content p {
    font-size: 13px;
    line-height: 1.4;
  }

  .floating-admin-btn {
    width: 58px;
    height: 58px;
    min-width: 58px;
    right: 16px;
    bottom: 18px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .floating-admin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .floating-admin-content,
  .floating-admin-badge {
    display: none;
  }

  .shop-card {
    padding-top: 26px;
  }

  .section-head h2 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  .floating-admin-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    right: 16px !important;
    bottom: 18px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .floating-admin-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    margin: 0 !important;
  }

  .floating-admin-content,
  .floating-admin-badge {
    display: none !important;
  }

  .site-footer {
    padding-bottom: 86px !important;
  }

  .footer-bottom {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 640px) {
  .social-proof {
    display: none !important;
  }
}
.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-links button {
  border: none;
  background: rgba(224, 242, 254, 0.9);
  color: #0284c7;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.footer-links button:hover {
  background: #bae6fd;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-links {
    justify-content: center;
  }
}
.empty-category-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 22px;
  border-radius: 24px;
  background: rgba(240, 249, 255, 0.9);
  border: 1px dashed rgba(14, 165, 233, 0.45);
  color: #0c4a6e;
}

.empty-category-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.empty-category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #0c4a6e;
}

.empty-category-card p {
  max-width: 420px;
  margin: 0 auto 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.empty-category-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
}

.game-skeleton {
  min-height: 128px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    rgba(224, 242, 254, 0.65),
    rgba(255, 255, 255, 0.95),
    rgba(224, 242, 254, 0.65)
  );
  background-size: 220% 100%;
  animation: skeletonWave 1.25s ease-in-out infinite;
  border: 1px solid rgba(186, 230, 253, 0.9);
}

@keyframes skeletonWave {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}
@media (max-width: 420px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
  }

  .brand {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  #userMenu .auth-btn:first-child {
    max-width: 105px;
  }
}
/* ========================================= */
/* ===== MOBILE HEADER SIMPLE FIX - NO DRAWER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 18px;
}

.brand {
  grid-area: brand;
}

.main-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.header-actions {
  grid-area: actions;
  justify-content: flex-end;
}

.nav-link[href="#"] {
  cursor: pointer;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0 !important;
  }

  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
    align-items: center !important;
    padding: 8px 12px 10px !important;
    gap: 8px !important;
  }

  .brand {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }

  .brand-copy {
    display: none !important;
  }

  .brand-logo {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    border-radius: 14px !important;
  }

  .header-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  .lang-switch {
    flex: 0 0 auto !important;
    padding: 3px !important;
    gap: 3px !important;
  }

  .lang-btn,
  #theme-toggle {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
  }

  #userMenu {
    flex: 0 0 auto !important;
  }

  #userMenu > div {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  #userMenu > div > div:first-child {
    display: none !important;
  }

  #userMenu .auth-btn {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    padding: 7px 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  #userMenu a.auth-btn[href="/auth"] span {
    display: none !important;
  }

  #userMenu a.auth-btn[href="/auth"]::before {
    content: "Masuk";
  }

  .main-nav {
    grid-area: nav !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 4px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .nav-link {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 13px !important;
    border-radius: 999px !important;

    background: rgba(224, 242, 254, 0.85) !important;
    color: #0284c7 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .nav-link::after {
    display: none !important;
  }

  .page {
    padding-top: 22px !important;
  }

  .floating-admin-btn {
    bottom: 18px !important;
  }

  .site-footer {
    padding-bottom: 36px !important;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .header-actions {
    gap: 5px !important;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
  }

  .nav-link {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}
/* ===== ORDER MODAL LAYER FIX ===== */

.order-modal {
  z-index: 9000 !important;
}

.order-modal-backdrop {
  z-index: 1 !important;
}

.order-modal-card {
  z-index: 2 !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

body.dark-theme .order-modal-card {
  background: #1e293b !important;
}
/* ===== SOCIAL PROOF MOBILE POSITION ===== */

@media (max-width: 768px) {
  .social-proof {
    left: 14px !important;
    right: 84px !important;
    bottom: 22px !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    border-radius: 16px !important;
    z-index: 1200 !important;
  }
}

@media (max-width: 640px) {
  .social-proof {
    display: flex !important;
  }
}

@media (max-width: 420px) {
  .social-proof {
    left: 12px !important;
    right: 78px !important;
    bottom: 18px !important;
  }
}
/* ===== SWEETALERT ABOVE MOBILE DRAWER FIX ===== */
.swal2-container {
  z-index: 20000 !important;
}

.swal2-popup {
  z-index: 20001 !important;
}
/* ===== MODAL CLOSE BUTTON CLICK FIX ===== */

.order-modal-card {
  pointer-events: auto !important;
}

.order-modal-backdrop {
  pointer-events: auto !important;
}

.modal-close-btn {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
/* ===== STRONG MODAL CLOSE FIX ===== */

.order-modal.show {
  display: flex !important;
}

.order-modal-card {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}

.order-modal-backdrop {
  z-index: 1 !important;
}

.modal-close-btn {
  position: absolute !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
/* ===== SMOOTH SCROLL ===== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* ===== GAME CARD PRICE + STOCK INFO ===== */

.game-card-meta {
  display: grid;
  gap: 6px;
  padding: 0 10px 11px;
}

.game-card-meta small {
  color: var(--ocean-deep);
  font-size: 11px;
  font-weight: 800;
}

.game-card-meta b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.game-card-meta b.ready {
  background: #dcfce7;
  color: #16a34a;
}

.game-card-meta b.empty {
  background: #ffe4e6;
  color: #e11d48;
}

body.dark-theme .game-card-meta b.ready {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

body.dark-theme .game-card-meta b.empty {
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
}

@media (max-width: 480px) {
  .game-card-meta {
    padding: 0 8px 9px;
  }

  .game-card-meta small {
    font-size: 10px;
  }

  .game-card-meta b {
    font-size: 9px;
    padding: 5px 7px;
  }
}
/* ===== TESTIMONIALS UPGRADE ===== */
.testimonial-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.testi-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 24px;
  /* Scroll Snapping agar mulus berhenti di setiap kartu */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Menyembunyikan scrollbar di semua browser */
  -ms-overflow-style: none; /* IE dan Edge */
  scrollbar-width: none; /* Firefox */
}

/* Menyembunyikan scrollbar di Chrome, Safari, dan Opera */
.testi-scroll-container::-webkit-scrollbar {
  display: none;
}

.testi-track {
  display: inline-flex;
  gap: 20px;
  padding: 10px 4px; /* Memberi ruang untuk efek shadow saat di-hover */
}

.testi-card {
  width: 320px;
  min-width: 320px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: normal;
  /* Snap ke tengah layar HP */
  scroll-snap-align: center;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.testi-header strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.2;
}

.testi-game {
  font-size: 11px;
  color: var(--ocean-deep);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.testi-rating {
  margin-left: auto;
  font-size: 13px;
  filter: drop-shadow(
    0 2px 4px rgba(251, 191, 36, 0.3)
  ); /* Sedikit efek menyala di bintang */
}

.testi-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  position: relative;
  padding-left: 14px;
}

/* Ornamen kutipan " */
.testi-card p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 32px;
  color: var(--ocean-light);
  opacity: 0.3;
  font-family: serif;
}

/* Dark Mode Fix untuk Testimoni */
body.dark-theme .testi-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.1);
}

@media (max-width: 640px) {
  .testi-card {
    width: 280px;
    min-width: 280px;
    padding: 20px;
  }
}
/* ===== SERVER REVIEWS / RATING ===== */

.review-summary {
  width: min(520px, 100%);
  margin: -12px auto 22px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.review-summary strong {
  font-size: 20px;
  color: #f59e0b;
}

.review-summary span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 640px) {
  .review-form-card {
    padding: 16px;
  }

  .rating-picker button {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
/* ===== REVIEW POPUP TRIGGER ===== */

.review-action-card {
  width: min(520px, 100%);
  margin: 0 auto 26px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.open-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 180px;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(251, 113, 133, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.open-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(251, 113, 133, 0.34);
}

.open-review-btn span {
  font-size: 18px;
}

.open-review-btn b {
  font: inherit;
}

.review-action-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-popup-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 14px;
}

.review-popup-stars button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: #e0f2fe;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.review-popup-stars button.active {
  background: #fef3c7;
  color: #f59e0b;
}

.review-popup-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #bae6fd;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.review-popup-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

body.dark-theme .review-action-card {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(56, 189, 248, 0.2);
}
