/* ============================================================
   GMVPN — design tokens
   Palette: near-black base, cyan "connected" accent, emerald
   "free/active" accent, amber for trending, violet for media.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   Signature: signal-bar meter + terminal/config-file motif
   ============================================================ */

:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-elev-2: #f3f4f6;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --text: #1f2937;
  --text-dim: #4b5563;
  --text-faint: #9ca3af;

  --accent: #2563eb;
  --accent-dim: #2563eb1a;
  --accent-2: #10b981;
  --accent-2-dim: #10b9811a;
  --warn: #d97706;
  --violet: #7c3aed;
  --danger: #ef4444;
  --danger-dim: #ef44441a;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 10px 20px -10px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* subtle grain/noise overlay for texture */
.noise-overlay {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary {
  background: var(--bg-elev-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.logo-mark .bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.logo-mark .b1 { height: 6px; }
.logo-mark .b2 { height: 11px; background: var(--accent-2); }
.logo-mark .b3 { height: 16px; }
.logo-mark .b4 { height: 20px; background: var(--accent-2); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-text.small { font-size: 18px; }

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-faint);
  transition: border-color 0.15s ease;
}
.header-search:focus-within { border-color: var(--accent); color: var(--accent); }
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--text-faint); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a { color: var(--text-dim); transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { color: var(--accent); }
.nav-upload { padding: 9px 18px !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
}
.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}
.mobile-menu { display: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-text, .hero-visual {
  min-width: 0;
  width: 100%;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-2);
  background: var(--accent-2-dim);
  border: 1px solid #34d39955;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 1.8s infinite;
}
.eyebrow.static .dot { display: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--font-display); font-size: 22px; }
.hero-stats span { font-size: 12.5px; color: var(--text-faint); }

/* terminal card signature element */
.terminal-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #0f172a;
}
.tdot { width: 9px; height: 9px; border-radius: 50%; }
.tdot.r { background: #fb7185; }
.tdot.y { background: #ffb454; }
.tdot.g { background: #34d399; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}
.terminal-body {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
  color: #cbd5e1;
}
.tl-comment { color: #64748b; }
.tl-key { color: #a78bfa; }
.tl-val { color: #e2e8f0; }
.tl-ok { color: #34d399; font-weight: 600; }

.signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #0f172a;
  background: #1e293b;
}
.signal-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.signal-bars i { width: 4px; background: #34d399; border-radius: 1px; display: block; }
.signal-bars i:nth-child(1) { height: 30%; }
.signal-bars i:nth-child(2) { height: 50%; }
.signal-bars i:nth-child(3) { height: 70%; }
.signal-bars i:nth-child(4) { height: 85%; }
.signal-bars i:nth-child(5) { height: 100%; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.signal-label { font-size: 12.5px; color: #64748b; font-family: var(--font-mono); }

/* ---------------- Upload section ---------------- */
.upload-section { padding: 20px 0 70px; }
.upload-section .wrap {
  display: flex;
  justify-content: center;
}
.upload-card, .quick-search-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.upload-card {
  max-width: 560px;
  width: 100%;
}
.upload-card-head h2, .quick-search-card h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 22px; }
.upload-card-head p, .quick-search-card > p { color: var(--text-faint); font-size: 14px; margin: 0 0 20px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--danger-dim); border: 1px solid #fb718555; color: #ffb4bd; }.dropzone {
  display: block;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 18px;
  color: var(--text-dim);
  background: #f8fafc;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background-color: rgba(37, 99, 235, 0.03);
  color: var(--accent);
  transform: translateY(-1px);
}
.dz-idle svg {
  margin-bottom: 12px;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}
.dropzone:hover .dz-idle svg, .dropzone.dragover .dz-idle svg {
  color: var(--accent);
  transform: translateY(-2px);
}
.dz-idle p {
  margin: 0 0 6px;
  font-size: 14.5px;
}
.dz-idle strong {
  color: #1f2937;
}
.dropzone:hover .dz-idle strong, .dropzone.dragover .dz-idle strong {
  color: var(--accent);
}
.dz-hint {
  font-size: 12px;
  color: #94a3b8;
}

/* File selected state */
.dz-file {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.dz-file-icon {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.dz-file-name {
  font-weight: 600;
  font-size: 13.5px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
}
.dz-file-size {
  font-size: 12px;
  color: #64748b;
  font-family: var(--font-mono);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}
.dz-remove {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dz-remove:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1f2937;
}

/* Extension Badge Color Coding */
.ext-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 38px;
  text-align: center;
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}
/* VPN configs (Blue) */
.ext-hc, .ext-npv4, .ext-ehi, .ext-ovpn, .ext-conf, .ext-config {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}
/* APK files (Green) */
.ext-apk {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}
/* Document files (Orange) */
.ext-pdf, .ext-doc, .ext-docx, .ext-txt {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
}
}

.field-row { display: flex; gap: 14px; margin-bottom: 14px; }
.field { flex: 1; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field .optional { color: var(--text-faint); font-weight: 400; }
.field select, .field textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.progress-bar { flex: 1; height: 6px; background: var(--bg-elev-2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.15s ease; }
.progress-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); width: 38px; text-align: right; }

.tos-note { font-size: 12.5px; color: var(--text-faint); text-align: center; margin: 12px 0 0; }
.tos-note a { color: var(--accent); }

.quick-search-form { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-search-form input {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
}
.quick-search-form input:focus { outline: none; border-color: var(--accent); }
.quick-tip { font-size: 12.5px; color: var(--text-faint); margin: 0 0 20px; }

.cat-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.cat-pill:hover {
  transform: translateY(-1px);
}
.cat-config { color: #2563eb; border-color: #2563eb30; background: #2563eb10; }
.cat-apk { color: #10b981; border-color: #10b98130; background: #10b98110; }
.cat-panduan { color: #d97706; border-color: #d9770630; background: #d9770610; }
.cat-gambar { color: #7c3aed; border-color: #7c3aed30; background: #7c3aed10; }
.cat-lainnya { color: #4b5563; border-color: var(--border); background: var(--bg-elev-2); }

.see-trending { font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-block; margin-top: 4px; }

/* ---------------- Files sections ---------------- */
.files-section { padding: 50px 0; }
.files-section.alt { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.section-head p { color: var(--text-faint); font-size: 14px; margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.link-more { font-size: 13.5px; font-weight: 600; color: var(--accent); flex-shrink: 0; }

.file-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.file-list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.file-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.file-row-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}
.file-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.file-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}
.file-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.file-card-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  letter-spacing: 0.02em;
}
.file-card-downloads {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.file-name { font-size: 14.5px; font-weight: 600; color: #111827; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot-sep { opacity: 0.5; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-faint); }
.empty-state .btn { margin-top: 16px; }

/* ---------------- Why section ---------------- */
.why-section { padding: 70px 0 90px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; font-family: var(--font-display); }
.feature-card p { font-size: 13.5px; color: var(--text-faint); margin: 0; }

/* ---------------- Page header (browse/search) ---------------- */
.page-header { padding: 48px 0 10px; }
.page-header h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; }
.page-header p { color: var(--text-faint); margin: 0; }

/* ---------------- File detail ---------------- */
.file-detail-section { padding: 50px 0 90px; }
.file-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.file-detail-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.file-detail-name { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; word-break: break-word; }
.file-detail-meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); display: flex; gap: 8px; margin-bottom: 26px; }
.file-detail-desc { margin-bottom: 26px; }
.file-detail-desc h3 { font-size: 14px; color: var(--text-dim); margin: 0 0 8px; }
.file-detail-desc p { font-size: 15px; color: var(--text); line-height: 1.6; }
.file-detail-safety {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-faint);
}
.file-detail-side h4 { font-size: 13px; color: var(--text-dim); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.file-detail-side { display: flex; flex-direction: column; gap: 6px; }
.file-detail-side .cat-pill { align-self: flex-start; margin-bottom: 20px; }
.share-box { display: flex; gap: 8px; }
.share-box input {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* ---------------- 404 ---------------- */
.notfound-section { padding: 110px 0; text-align: center; }
.signal-bars.big { justify-content: center; height: 40px; margin: 0 auto 24px; }
.signal-bars.big i { width: 8px; }
.notfound-section h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 10px; }
.notfound-section p { color: var(--text-faint); margin: 0 0 26px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-faint); font-size: 13.5px; max-width: 320px; margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-col h4 { font-size: 13px; color: var(--text-dim); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-faint); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 8px;
}

.file-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
  margin-bottom: 30px;
}
.page-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .terminal-card { transform: none; max-width: 460px; margin: 0 auto; }
  .upload-section .wrap { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .file-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.2; margin-bottom: 12px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; line-height: 1.5; }
  .upload-card, .quick-search-card { padding: 20px 16px; }
  .file-detail-card { padding: 24px 16px; }
  .page-header {
    padding: 24px 0 20px;
    margin-bottom: 16px;
  }
  .page-header .wrap {
    gap: 16px;
  }
  .files-section {
    padding: 16px 0 40px;
  }
  
  .header-search { display: none; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; margin-left: auto; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 12px 16px;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mobile-menu a:hover, .mobile-menu a.active {
    background: var(--bg-elev-2);
    color: var(--accent);
  }
  .mobile-menu.open ~ .mobile-toggle,
  .mobile-search { display: block; }
  .header-search.mobile {
    display: flex;
    margin-bottom: 14px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
  }
  .header-search.mobile input { color: var(--text); }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .field-row { flex-direction: column; }
}

@media (max-width: 460px) {
  .file-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .upload-card, .quick-search-card { padding: 16px 12px; }
}

/* ---------------- Header Logo Image ---------------- */
.logo-img {
  height: 28px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ---------------- Halaman Tunggu Download ---------------- */
.waiting-section {
  padding: 60px 0 80px;
}
.waiting-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.waiting-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-glow);
  text-align: center;
}
.waiting-file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: left;
}
.waiting-file-icon {
  font-size: 32px;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.waiting-file-details {
  flex: 1;
  min-width: 0;
}
.waiting-file-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.waiting-file-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.countdown-container {
  margin: 32px auto;
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-dim);
}
.countdown-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.countdown-ring-circle {
  stroke: var(--accent);
  stroke-dasharray: 377; /* 2 * PI * r (r=60) => 376.99 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.countdown-ring-bg {
  stroke: var(--border);
}

.waiting-status {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.ad-card-waiting {
  background: var(--bg-elev-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  text-align: left;
}
.ad-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.ad-google-display {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ---------------- Halaman Iklan Sponsor ---------------- */
.sponsor-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.sponsor-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, rgba(52, 211, 153, 0.04) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.sponsor-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.sponsor-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.sponsor-hero p {
  font-size: 18px;
  color: var(--text-dim);
}
.sponsor-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.sponsor-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sponsor-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sponsor-feature-icon {
  font-size: 24px;
  color: var(--accent-2);
  background: var(--accent-2-dim);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.sponsor-feature-text h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
}
.sponsor-feature-text p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.sponsor-pricing-card {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-glow);
  text-align: center;
  overflow: hidden;
}
.sponsor-pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pricing-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pricing-price {
  margin: 16px 0;
}
.pricing-price .currency {
  font-size: 24px;
  font-weight: 500;
  vertical-align: super;
  color: var(--text-dim);
}
.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.pricing-price .period {
  font-size: 14px;
  color: var(--text-faint);
}
.pricing-features {
  margin: 28px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
}
.sponsor-back-btn {
  margin-top: 24px;
  display: inline-block;
  font-size: 13.5px;
  color: var(--text-faint);
  text-decoration: underline;
}
.sponsor-back-btn:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .waiting-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; gap: 40px; }
}

