:root {
  --bg: #0b1120;
  --bg-grad: radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 45%), radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.12), transparent 45%);
  --surface: #111827;
  --surface-2: #1a2334;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(16, 185, 129, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --accent-2: #06b6d4;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-grad: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 45%), radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.10), transparent 45%);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(16, 185, 129, 0.55);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #059669;
  --accent-2: #0891b2;
  --accent-glow: rgba(5, 150, 105, 0.18);
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-grad);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#app-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.net-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.net-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.net-shell.centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.net-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.net-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.net-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 5px; flex-shrink: 0;
}
.net-logo img { width: 100%; height: 100%; object-fit: contain; }
.net-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-sub { font-size: 0.78rem; color: var(--text-muted); }

.net-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.net-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent); font-size: 0.72rem; font-weight: 700;
}
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ctrl-btn {
  height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-main);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }

.net-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .net-grid { grid-template-columns: 1fr; }
}

.net-col { display: flex; flex-direction: column; gap: 18px; }
.net-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Hero Slider */
.net-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.net-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.net-slide.active { opacity: 1; }
.net-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.net-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(11,17,32,0.12) 0%, rgba(11,17,32,0.85) 100%);
}
.net-slide-overlay {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.net-slide-cap { font-size: 0.85rem; font-weight: 700; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.net-dots { display: flex; gap: 6px; flex-shrink: 0; }
.net-dot-btn {
  width: 18px; height: 5px; border-radius: 9999px; border: none;
  background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s;
}
.net-dot-btn.active { width: 30px; background: var(--accent); }

/* Feature Strip */
.net-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .net-strip { grid-template-columns: 1fr; } }
.strip-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.strip-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(16, 185, 129, 0.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.strip-val { font-size: 0.84rem; font-weight: 700; }
.strip-lbl { font-size: 0.72rem; color: var(--text-muted); }

/* Tabs */
.net-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px; border-radius: 14px; margin-bottom: 16px;
}
.net-tab-btn {
  border: none; background: transparent; color: var(--text-muted);
  padding: 9px 8px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s ease;
}
.net-tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Forms */
.net-field { margin-bottom: 14px; }
.net-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.net-input-wrap { position: relative; display: flex; align-items: center; }
.net-input-icon { position: absolute; left: 14px; color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.net-input, .net-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 12px;
  padding: 11px 14px 11px 40px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.net-textarea { padding: 11px 14px; resize: vertical; min-height: 70px; }
.net-input:focus, .net-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.net-eye-btn {
  position: absolute; right: 10px;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 6px; font-size: 0.9rem;
}

.btn-net-primary {
  width: 100%; border: none; border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn-net-primary:hover { transform: translateY(-1px); opacity: 0.96; }

.btn-net-outline {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 11px 16px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-net-outline:hover { background: rgba(16, 185, 129, 0.16); }

.btn-net-danger {
  width: 100%; border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 12px;
  padding: 12px 16px; background: rgba(239, 68, 68, 0.12);
  color: #f87171; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.net-error {
  display: flex; align-items: center; gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 12px; border-radius: 12px;
  font-size: 0.84rem; margin-bottom: 14px;
}
[data-theme="light"] .net-error { color: #b91c1c; }

.net-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.72rem; font-weight: 700;
  margin: 14px 0;
}
.net-divider::before, .net-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.net-scanner {
  text-align: center; padding: 18px;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  border-radius: 14px; margin-bottom: 14px;
}
.net-viewfinder {
  width: 110px; height: 110px; margin: 0 auto 10px;
  border: 2px solid var(--accent); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.net-laser {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: scanline 2s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { top: 12%; } 50% { top: 88%; } }

.net-meta-box {
  margin-top: 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
}
.net-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 0.8rem; color: var(--text-muted);
}
.net-meta-row + .net-meta-row { border-top: 1px solid var(--border); }
.net-meta-row strong { color: var(--text-main); font-family: ui-monospace, monospace; }

/* Packages & Home Fiber Cards */
.pkg-grid { display: grid; gap: 10px; }
.pkg-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; transition: all 0.2s ease;
}
.pkg-card:hover, .pkg-card.selected {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
}
.pkg-badge {
  display: inline-block; font-size: 0.66rem; font-weight: 800;
  padding: 2px 8px; border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16); color: var(--accent);
  margin-bottom: 4px;
}
.pkg-price { font-size: 1rem; font-weight: 800; color: var(--accent); white-space: nowrap; }

.promo-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(6,182,212,0.12));
  border: 1px solid var(--border-strong);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 14px;
}

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .form-2col { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; background: var(--surface-2); }
.faq-btn {
  width: 100%; background: none; border: none; color: var(--text-main);
  padding: 12px 14px; text-align: left; font-size: 0.84rem; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
}
.faq-ans { display: none; padding: 0 14px 12px; font-size: 0.8rem; color: var(--text-muted); }
.faq-item.open .faq-ans { display: block; }

.net-footer { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 24px; }

.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: #25d366; color: #ffffff; font-size: 1.55rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-net {
  width: 100%; max-width: 390px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.qris-white { background: #ffffff; padding: 12px; border-radius: 14px; display: inline-block; margin: 14px 0; }
.qris-white img { width: 190px; height: 190px; object-fit: contain; display: block; }
