/* ============================================
   ROOT VARIABLES - GAYA DIGITAL STORE
============================================ */
:root {
  --bg-body: #0b0f1c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-glow: rgba(0, 255, 255, 0.15);
  --text-main: #f0f6fc;
  --text-sub: #8899bb;
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
  --shadow-glow: 0 8px 32px rgba(0, 212, 255, 0.15);
  --accent-blue-light: #60a5fa;
  --accent-cyan: #22d3ee;
  --accent-indigo: #818cf8;
}

/* ============================================
   RESET & BASE
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
}

/* ============================================
   BACKGROUND VIDEO
============================================ */
#bg-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#bg-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 28, 0.85);
  backdrop-filter: blur(2px);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3)); }
  50% { transform: translateY(-5px); filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.5)); }
}

/* ============================================
   HEADER
============================================ */
header {
  background: rgba(11, 15, 28, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  position: sticky;
  top: 0;
  z-index: 90;
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.brand span {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
}

/* ============================================
   MAIN WRAPPER
============================================ */
.main-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ============================================
   HERO SECTION & COMPACT BUTTONS
============================================ */
.hero-section {
  text-align: center;
  margin-bottom: 35px;
}

.hero-avatar {
  width: 85px;
  height: 85px;
  margin: 0 auto 14px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
}

.hero-text-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;
}

.hero-welcome {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.hero-greeting {
  font-size: 2.1rem;
  font-weight: 800;
  color: #22d3ee;
  margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.hero-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* --- BUTTONS STACKED & COMPACT --- */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.h-btn {
  width: 100%;
  max-width: 220px; /* Lebar tombol ramping di tengah */
  padding: 10px 16px; /* Tinggi tombol hemat tempat */
  border-radius: 14px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.h-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Tombol Utama (Lihat Produk) Gradient Ungu */
.h-btn.primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

.h-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.6);
}

/* ============================================
   SECTION
============================================ */
.section-box {
  margin-bottom: 44px;
}

.section-header-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================
   CATEGORY CARDS
============================================ */
.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  cursor: default;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.cat-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.cat-icon-title i {
  font-size: 1.3rem;
  color: var(--accent-primary);
  width: 28px;
  text-align: center;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  padding-left: 42px;
  line-height: 1.5;
}

/* ============================================
   ABOUT BOX
============================================ */
.about-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 28px 24px;
  margin-bottom: 44px;
}

.about-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-box p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 14px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.role-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================
   STATS BOX
============================================ */
.stats-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 44px;
}

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stats-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.feature-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 16px 18px;
  border-radius: 16px;
  transition: 0.3s;
}

.feature-mini:hover {
  border-color: var(--accent-primary);
}

.feature-mini h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-mini p {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin: 0;
}

.order-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 24px 20px;
}

.order-cta-box p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
============================================ */
footer {
  border-top: 1px solid var(--border-glow);
  background: rgba(11, 15, 28, 0.9);
  backdrop-filter: blur(12px);
  padding: 40px 20px 30px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-socials {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.footer-socials a:hover {
  color: var(--accent-primary);
}

.footer-section-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact-list {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.footer-menu-list a {
  color: var(--text-sub);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
}

.footer-menu-list a:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

.copyright {
  border-top: 1px solid var(--border-glow);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-sub);
  opacity: 0.7;
}

/* ============================================
   MODAL OVERLAY
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 28, 0.9);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   PAYMENT MODAL
============================================ */
.payment-modal-card {
  background: var(--bg-body);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.popup-close-circle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-sub);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.popup-close-circle:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.pay-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qris-box {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.wallet-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-info h5 {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.wallet-info p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.copy-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.3s;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.pay-confirm-btn {
  display: block;
  width: 100%;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  margin-top: 16px;
  transition: 0.3s;
}

.pay-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   WA POPUP MODAL
============================================ */
.popup-wa-card {
  background: var(--bg-body);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  width: 100%;
  max-width: 380px;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.popup-avatar-box {
  width: 80px;
  height: 80px;
  margin: 10px auto 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.popup-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}

.popup-btn-join {
  display: block;
  width: 100%;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: 0.3s;
}

.popup-btn-join:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.popup-btn-later {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-sub);
  padding: 13px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.popup-btn-later:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

/* ============================================
   SPLASH SCREEN & ANIMASI SLIDE IN
============================================ */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-body);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  animation: progressAnimation 1.5s ease-in-out forwards;
}

@keyframes progressAnimation {
  0% { width: 0%; }
  50% { width: 75%; }
  100% { width: 100%; }
}

.animate-slide-up {
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
