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

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --secondary: #00CEC9;
  --dark: #2D3436;
  --light: #F8F9FA;
  --gray: #636E72;
  --danger: #E74C3C;
  --success: #00B894;
  --warning: #FDCB6E;
  --bg: #0A0A1A;
  --card-bg: #14142B;
  --border: #2D2D52;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Navigation */
nav {
  background: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.nav-links a:hover { color: #fff; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover { border-color: var(--primary); }

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; text-align: center; display: block; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; background: var(--border); color: #fff; border: none; cursor: pointer; }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); color: var(--dark); }

/* Hero */
.hero {
  padding: 100px 0;
  background: radial-gradient(ellipse at top left, rgba(108, 92, 231, 0.15), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(0, 206, 201, 0.1), transparent 50%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content { flex: 1; }

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; }

.hero-image { flex: 1; display: flex; justify-content: center; }

.phone-mockup {
  width: 320px;
  height: 620px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 30px;
  padding: 15px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-screen {
  height: 100%;
  background: var(--bg);
  border-radius: 20px;
  padding: 15px;
  display: flex;
  align-items: flex-end;
}

.chat-bubble.bot {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  border: 1px solid var(--border);
}

.menu-card .menu-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; display: block; }

.menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-btn {
  background: var(--border);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--card-bg);
}

.features h2, .how-it-works h2, .pricing-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.features h2 span, .how-it-works h2 span, .pricing-section h2 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle { text-align: center; color: var(--gray); margin-bottom: 50px; font-size: 18px; }

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

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

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.15);
}

.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* How it Works */
.how-it-works { padding: 80px 0; }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex: 1;
  min-width: 200px;
  transition: all 0.3s;
}

.step:hover { border-color: var(--primary); }

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 14px; }

.step-arrow { font-size: 32px; color: var(--primary); font-weight: 700; }

/* Pricing */
.pricing-section { padding: 80px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.product-banner { width: 100%; border-radius: 12px; margin-bottom: 16px; height: 120px; object-fit: cover; }
.pricing-card h3 { font-size: 24px; margin-bottom: 12px; }
.product-desc { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.price { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.duration { color: var(--gray); margin-bottom: 24px; }

/* Forms */
.form-section { padding: 80px 0; min-height: 60vh; }
.form-container { max-width: 500px; margin: 0 auto; }
.form-container h2 { text-align: center; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea { resize: vertical; min-height: 100px; }

.form-footer { text-align: center; margin-top: 20px; color: var(--gray); }
.form-footer a { color: var(--primary); text-decoration: none; }

.alert {
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-error { background: rgba(231, 76, 60, 0.15); color: var(--danger); border: 1px solid rgba(231, 76, 60, 0.3); }

/* Payment */
.payment-container { text-align: center; }
.qris-display { margin: 30px 0; }
.qris-image { max-width: 300px; border-radius: 16px; border: 2px solid var(--border); }
.qris-hint { color: var(--gray); font-size: 14px; margin-top: 12px; }
.payment-actions { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }

/* Checkout */
.process-options { display: flex; flex-direction: column; gap: 12px; }
.radio-card {
  display: flex; align-items: center;
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card input { width: auto; margin-right: 12px; }
.radio-card strong { display: block; font-size: 15px; }
.radio-card small { color: var(--gray); font-size: 13px; }

/* Dashboard Layout */
.dashboard-layout, .admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 240px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.sidebar-item:hover, .sidebar-item.active {
  color: #fff;
  background: rgba(108, 92, 231, 0.1);
  border-right: 3px solid var(--primary);
}

.dashboard-content {
  flex: 1;
  padding: 30px;
  max-width: 800px;
}

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

.instance-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.instance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.instance-header h3 { font-size: 18px; }

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-running { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.status-bad-session { background: rgba(253, 203, 110, 0.15); color: var(--warning); }
.status-expired { background: rgba(231, 76, 60, 0.15); color: var(--danger); }
.status-stopped { background: rgba(99, 110, 114, 0.15); color: var(--gray); }

.instance-details { margin-bottom: 12px; }
.instance-details p { color: var(--gray); font-size: 14px; margin-bottom: 4px; }
.instance-details i { width: 20px; }

.instance-actions { display: flex; gap: 8px; margin-top: 12px; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.feature-row label { flex: 1; font-weight: 500; }

.level-select { width: auto; padding: 8px 12px; font-size: 13px; }

/* Toggle Switch */
.switch { position: relative; width: 48px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  transition: 0.3s;
  border-radius: 26px;
}
.slider:before {
  content: "";
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* Form Card */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.form-card .form-group:last-child { margin-bottom: 0; }

/* Admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stat-card h3 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-card p { color: var(--gray); font-size: 14px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th { background: rgba(108, 92, 231, 0.1); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }

.suggestion-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.suggestion-actions { margin-top: 12px; display: flex; gap: 8px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; }

/* Footer */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

/* Product List */
.product-list { margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content h1 { font-size: 36px; }
  .hero-actions { justify-content: center; }
  .phone-mockup { width: 260px; height: 500px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .sidebar { width: 60px; }
  .sidebar-item span { display: none; }
  .dashboard-content { padding: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
