:root {
  --bg: #080b10;
  --bg2: #0d1117;
  --panel: #111827;
  --text: #f0f4ff;
  --muted: #8892a4;
  --faint: #1e2636;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --green: #00ff88;
  --red: #ff4466;
  --border: rgba(255,255,255,0.07);
  --glow: rgba(0,212,255,0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
}
.nav-logo .logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  padding: 7px 14px; border-radius: 8px; font-size: 0.875rem;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--faint); }
.nav-user { color: var(--muted); font-size: 0.875rem; padding: 7px 14px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.0; margin-bottom: 24px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 60%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted); max-width: 560px; margin-bottom: 44px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── VISUALIZER (dekoratif) ── */
.visualizer {
  display: flex; align-items: flex-end; gap: 3px;
  height: 60px; margin: 50px auto 0; opacity: 0.6;
}
.bar {
  width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  animation: bar-anim 1.2s ease-in-out infinite;
}
.bar:nth-child(1)  { animation-delay: 0.0s; height: 20%; }
.bar:nth-child(2)  { animation-delay: 0.1s; height: 60%; }
.bar:nth-child(3)  { animation-delay: 0.2s; height: 90%; }
.bar:nth-child(4)  { animation-delay: 0.3s; height: 45%; }
.bar:nth-child(5)  { animation-delay: 0.4s; height: 100%; }
.bar:nth-child(6)  { animation-delay: 0.5s; height: 70%; }
.bar:nth-child(7)  { animation-delay: 0.6s; height: 30%; }
.bar:nth-child(8)  { animation-delay: 0.7s; height: 80%; }
.bar:nth-child(9)  { animation-delay: 0.8s; height: 55%; }
.bar:nth-child(10) { animation-delay: 0.9s; height: 40%; }
.bar:nth-child(11) { animation-delay: 1.0s; height: 95%; }
.bar:nth-child(12) { animation-delay: 1.1s; height: 25%; }
.bar:nth-child(13) { animation-delay: 0.15s; height: 65%; }
.bar:nth-child(14) { animation-delay: 0.35s; height: 50%; }
.bar:nth-child(15) { animation-delay: 0.55s; height: 85%; }
@keyframes bar-anim {
  0%,100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* ── STATS ROW ── */
.stats-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 48px;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── HOW IT WORKS ── */
.section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 60px;
}
.step-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); }
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }
.step-num {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}
.step-icon { font-size: 2.2rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 60px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature-icon.cyan { background: rgba(0,212,255,0.1); }
.feature-icon.purple { background: rgba(124,58,237,0.1); }
.feature-icon.green { background: rgba(0,255,136,0.1); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center; padding: 100px 24px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.06) 0%, transparent 70%);
}
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 20px;
}
.cta-section p { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; border: none;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  cursor: pointer; transition: all 0.25s; letter-spacing: -0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #060b10; box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.45); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: var(--faint); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-danger { background: rgba(255,68,102,0.1); color: var(--red); border: 1px solid rgba(255,68,102,0.25); }
.btn-danger:hover { background: rgba(255,68,102,0.2); }

/* ── DOWNLOAD CARDS ── */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin: 40px 0;
}
.download-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: all 0.3s;
}
.download-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); }
.dl-icon { font-size: 3rem; margin-bottom: 16px; }
.download-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.download-card .dl-meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 24px; }
.unavailable { color: var(--muted); font-size: 0.85rem; font-style: italic; }

/* ── INSTALL STEPS ── */
.install-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.install-step {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.install-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.install-step ol { padding-left: 18px; color: var(--muted); font-size: 0.875rem; }
.install-step li { margin-bottom: 6px; line-height: 1.6; }
.install-step code {
  background: var(--faint); padding: 2px 8px; border-radius: 5px;
  font-size: 0.82rem; color: var(--accent); font-family: monospace;
}

/* ── FLASH / FORM ── */
.flash-list { margin-bottom: 20px; }
.flash {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-size: 0.9rem;
}
.flash-error   { background: rgba(255,68,102,0.1);  color: var(--red); border: 1px solid rgba(255,68,102,0.25); }
.flash-success { background: rgba(0,255,136,0.08); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }

/* ── AUTH PAGES ── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 100px 24px 60px;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 24px; padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 14px;
}
.auth-logo h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.auth-logo p { color: var(--muted); font-size: 0.875rem; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group input {
  padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--faint);
  color: var(--text); font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.form-footer { text-align: center; margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
.form-footer a { color: var(--accent); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ── ADMIN ── */
.page-wrap { padding: 100px 40px 60px; max-width: 1100px; margin: 0 auto; }
.page-wrap h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 32px; }
.section-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin: 32px 0 16px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 10px 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--faint); font-size: 0.9rem; vertical-align: middle; }
.tbl tr:hover td { background: var(--faint); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-pending  { background: rgba(234,179,8,0.1);  color: #eab308; border: 1px solid rgba(234,179,8,0.2); }
.badge-approved { background: rgba(0,255,136,0.08); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.badge-rejected { background: rgba(255,68,102,0.1); color: var(--red);   border: 1px solid rgba(255,68,102,0.2); }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── EMPTY STATE ── */
.empty { color: var(--muted); font-size: 0.9rem; padding: 24px 0; font-style: italic; }

/* ── FOOTER ── */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .auth-card { padding: 32px 24px; }
  .page-wrap { padding: 90px 20px 40px; }
}
