:root {
  /* 🎨 Cream Theme — Preserved Structure */
  --primary: #2E5E4E;         /* Forest Green — aksen utama */
  --secondary: #3A6B5F;       /* Slightly lighter green */
  --accent: #C5A467;          /* Warm Gold — untuk highlight & badge */
  
  --text-main: #3E3A33;       /* Charcoal Brown — teks utama (bukan putih/hitam) */
  --text-muted: #6B675E;      /* Warm Grey — subtitle, specs */
  
  --dark: #F8F4ED;            /* Soft Cream — background utama */
  --darker: #F1EEE9;          /* Slightly darker cream — untuk depth */
  
  /* Glassmorphism tetap ada, tapi hangat & transparan */
  --card-bg: rgba(255, 255, 255, 0.85); /* putih transparan + krem */
  --card-border: rgba(139, 122, 102, 0.2); /* warm beige border */

  --success: #3A7D44;         /* Deep green (online) */
  --danger: #C24A4A;          /* Soft terracotta red (offline) */
  
  --shadow: 0 8px 32px rgba(62, 58, 51, 0.08);
  --transition: all 0.3s ease;
}

/* LIGHT MODE — opsional, tapi konsisten */
body.light-mode {
  --primary: #2E5E4E;
  --secondary: #3A6B5F;
  --dark: #F8F4ED;
  --darker: #F1EEE9;
  --text-main: #3E3A33;
  --text-muted: #6B675E;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(139, 122, 102, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- BACKGROUND OVERLAY (warm subtle glow) --- */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(46, 94, 78, 0.05), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(197, 164, 103, 0.07), transparent 30%);
  z-index: -1;
  pointer-events: none;
}

/* --- NAVBAR (glass + warm border) --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(62, 58, 51, 0.06);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(62, 58, 51, 0.1);
}

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

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  opacity: 0.9;
}
.nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 120px 0 40px;
}

.header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 30px rgba(46, 94, 78, 0.2);
  margin-bottom: 20px;
  transition: var(--transition);
}
.header img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin: 60px 0 30px;
  font-size: 2.2rem;
  color: var(--text-main);
  position: relative;
  font-weight: 700;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* --- TABS --- */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(241, 238, 233, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.tab-btn:hover {
  background: rgba(46, 94, 78, 0.1);
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(46, 94, 78, 0.25);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* --- PLANS GRID --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.plan-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(62, 58, 51, 0.12);
}

/* --- PLAN HEADERS (Gradient tetap, tapi warna earthy) --- */
.plan-header {
  padding: 20px;
  text-align: center;
  color: white;
}
.plan-header h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}
.plan-header p, .android-badge {
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 300;
}

/* Gradient yang sudah disesuaikan (tidak ada biru/cyan) */
.color-1 { background: linear-gradient(135deg, #5D4037, #8D6E63); } /* Brown */
.color-2 { background: linear-gradient(135deg, #388E3C, #66BB6A); } /* Green */
.color-3 { background: linear-gradient(135deg, #E65100, #FFA726); } /* Amber */
.color-4 { background: linear-gradient(135deg, #5D4037, #D7CCC8); } /* Taupe */
.color-mvip { background: linear-gradient(135deg, #3E2723, #5D4037); border-bottom: 1px solid rgba(200,180,150,0.3); }
/* --- Redfinger Plans — Elegant Green-Gold Theme --- */
.color-red {
  background: linear-gradient(135deg, #2E5E4E, #3A6B5F); /* Forest → Sage */
  color: white;
}
.color-gold {
  background: linear-gradient(135deg, #3A6B5F, #C5A467); /* Sage → Warm Gold */
  color: white;
}
.color-purple { background: linear-gradient(135deg, #512DA8, #7E57C2); }
.color-blue { background: linear-gradient(135deg, #0277BD, #29B6F6); }

/* Card Body */
.plan-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.specs-box {
  background: rgba(241, 238, 233, 0.6);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--card-border);
}
.spec-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-item i {
  color: var(--accent);
  width: 15px;
  text-align: center;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
.price-row:last-of-type {
  border-bottom: none;
  margin-bottom: 15px;
}
.duration { color: var(--text-muted); font-size: 0.95rem; }
.price {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Buy Button */
.btn-buy, .btn-click {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}
.btn-buy:hover, .btn-click:hover {
  background: var(--primary);
  color: white;
}
.btn-click {
  background: var(--primary);
  color: white;
  width: auto;
  display: inline-block;
  border: none;
}

/* --- BANNERS --- */
.info-banner {
  background: rgba(46, 94, 78, 0.08);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.banner-sultan {
  background: linear-gradient(to right, #D4AF37, #F9A825);
  color: #2E2E2E;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.android-badge {
  background: rgba(62, 58, 51, 0.08);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  display: inline-block;
  border: 1px solid var(--card-border);
}

/* --- STATS --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}
.stat-label {
  margin-top: 10px;
  font-weight: 500;
}

/* --- PROMO COUNTDOWN --- */
.promo-section {
  text-align: center;
  margin-top: 30px;
  border: 1px solid var(--primary);
  background: rgba(46, 94, 78, 0.05);
  padding: 20px;
  border-radius: 15px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
.countdown-item { text-align: center; }
.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FAQ & CONTACT --- */
.faq-section, .contact, .connection-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.faq-item {
  background: rgba(241, 238, 233, 0.6);
  border: 1px solid var(--card-border);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  transition: 0.3s;
}
.faq-question:hover {
  background: rgba(241, 238, 233, 0.9);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
  padding-top: 10px;
  max-height: 200px;
}

/* --- WIDGETS --- */
.theme-toggle, .chat-toggle, .whatsapp-float, .back-to-top {
  position: fixed;
  z-index: 1000;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(62, 58, 51, 0.2);
  transition: var(--transition);
}
.theme-toggle {
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}
.whatsapp-float {
  bottom: 30px;
  right: 100px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  font-size: 30px;
}
.chat-toggle {
  bottom: 30px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 24px;
}
.back-to-top {
  bottom: 100px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--darker);
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- LIVE CHAT --- */
.live-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 300px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  backdrop-filter: blur(15px);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}
.live-chat-widget.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.chat-header {
  background: var(--primary);
  padding: 15px;
  border-radius: 14px 14px 0 0;
  display: flex;
  justify-content: space-between;
  color: white;
}
.chat-body {
  height: 250px;
  overflow-y: auto;
  padding: 15px;
}
.chat-message {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.9rem;
  gap: 8px;
}
.chat-message.user {
  flex-direction: row-reverse;
}
.chat-text {
  background: rgba(241, 238, 233, 0.8);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-main);
}
.chat-message.user .chat-text {
  background: var(--primary);
  color: white;
}
.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--card-border);
}
.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 5px;
}
.chat-input input:focus {
  outline: none;
}
.chat-close, .chat-input button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}
.chat-input button {
  color: var(--primary);
}

/* --- CONNECTION CHECKER --- */
.connection-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.connection-card {
  background: rgba(241, 238, 233, 0.6);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.connection-icon i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.check-connection-btn {
  width: 100%;
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
}
.check-connection-btn:hover {
  background: var(--primary);
  color: white;
}
.ping-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: #ccc;
}
.ping-excellent {
  background: var(--success);
  box-shadow: 0 0 10px rgba(58, 125, 68, 0.5);
}

/* --- LOADING & ANIMATIONS --- */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}
.loading.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(62, 58, 51, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
.notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  z-index: 900;
  opacity: 0;
  transition: var(--transition);
  font-size: 0.9rem;
}
.notification.show {
  opacity: 1;
  top: 100px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--dark);
    flex-direction: column;
    padding-top: 40px;
    align-items: center;
    gap: 20px;
    transition: 0.4s ease;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  h1 {
    font-size: 2.2rem;
  }
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .chat-toggle {
    right: 20px;
    bottom: 85px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .back-to-top {
    bottom: 150px;
    right: 20px;
  }
  .live-chat-widget {
    width: 90%;
    right: 5%;
    bottom: 100px;
  }
  }
