/* CSS Variables & Global Settings */
:root {
  --bg-dark: #0b0d14;
  --bg-card: #151822;
  --bg-card-hover: #1c202d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #25D366;
  --primary-hover: #1ebe59;
  --premium: #8b5cf6;
  --premium-hover: #7c3aed;
  --border-color: #2d3149;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Utilities */
.text-gradient {
  background: linear-gradient(135deg, #25D366, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #0b0d14;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn-premium {
  background-color: var(--premium);
  color: #ffffff;
}

.btn-premium:hover {
  background-color: var(--premium-hover);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, rgba(11, 13, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #0d1017;
  border-top: 1px solid var(--border-color);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 24px;
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: flex-end;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.05) 0%, var(--bg-card) 100%);
  transform: translateY(-20px);
}

.pricing-card.premium {
  border-color: var(--premium);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #0b0d14;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.pricing-header h3 {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.step-number {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #0b0d14;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: #0d1017;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Enhanced Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

.footer-links-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .hero-buttons { flex-direction: column; }
  .pricing-card.popular { transform: translateY(0); }
  .nav-links a:not(.btn) { display: none; }
  .footer-content { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .feature-card, .pricing-card { padding: 24px 20px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-card { padding: 24px 20px; }
  
  /* Navbar adjustments for small screens */
  .nav-links { gap: 8px; }
  .logo { font-size: 18px; gap: 6px; }
  .logo-icon { font-size: 22px; }
  .navbar .btn { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
  .nav-links { gap: 6px; }
}

/* Active Free Bots Section */
.online-bots {
  padding: 100px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  scroll-margin-top: 120px; /* Memberikan offset jarak atas agar judul berada di tengah/bawah navbar */
}

.bots-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 5px 30px;
  margin-top: 30px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 211, 102, 0.3) transparent;
}

/* Custom scrollbar for Chrome/Safari/Edge */
.bots-grid::-webkit-scrollbar {
  height: 6px;
}

.bots-grid::-webkit-scrollbar-track {
  background: transparent;
}

.bots-grid::-webkit-scrollbar-thumb {
  background-color: rgba(37, 211, 102, 0.3);
  border-radius: 10px;
}

.bots-grid::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

.bot-card {
  flex: 0 0 260px; /* Fixed width for horizontal scrolling cards */
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.05) 0%, rgba(11, 13, 20, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bot-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 12px 30px rgba(11, 13, 20, 0.5);
}

.bot-card:hover::before {
  opacity: 1;
}

.bot-status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(37, 211, 102, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.bot-avatar {
  font-size: 48px;
  margin: 10px auto 16px;
  width: 72px;
  height: 72px;
  line-height: 72px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-number {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-copy {
  border: 1px solid rgba(37, 211, 102, 0.4);
  background: transparent;
  color: var(--primary);
  width: 100%;
}

.btn-copy:hover {
  background: var(--primary);
  color: #0b0d14;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-copy.copied {
  background: #0f172a;
  color: #25D366;
  border-color: #25D366;
}

/* Modal Overlay & Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh; /* Prevents overflow on mobile viewports */
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.warning-icon {
  font-size: 26px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.disclaimer-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.disclaimer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
}

.item-emoji {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.disclaimer-item strong {
  color: var(--text-main);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-footer .btn {
  width: 100%;
}

.modal-footer .btn:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Responsive adjustments for modal on mobile */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    border-radius: 20px;
  }
  .modal-header h3 {
    font-size: 16px;
  }
  .disclaimer-item {
    font-size: 12px;
  }
}

/* Disclaimer Box at the bottom of Bot List */
.bots-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  max-width: 600px;
  margin: 40px auto 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bots-disclaimer-box h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

