:root {
  --bg0: #0B0B0F;
  --bg1: #101014;
  --surface: #15151B;
  --surface2: #1C1C23;
  --surface3: #23232B;
  --border: #26262E;
  --border-strong: #363640;
  --text1: #F4F4F6;
  --text2: #A1A1AA;
  --text3: #6B6B74;
  --accent: #FFFFFF;
  --accent-ink: #0B0B0F;
  --success: #2FBF6D;
  --danger: #F04438;
  --warning: #F0B429;
  --info: #93A6C8;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg0);
  color: var(--text1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand-name .dot { color: var(--success); }
.brand-tag { font-size: 11px; color: var(--text3); font-weight: 500; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-links span.link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links span.link:hover { color: var(--text1); background: var(--surface2); }
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s, opacity .15s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .92; }

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  z-index: 60;
  padding: 0;
  transition: background .2s, border-color .2s, transform .15s;
}
.nav-toggle:hover {
  background: var(--surface2);
  border-color: var(--accent);
}
.nav-toggle:active {
  transform: scale(0.94);
}
.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--text1);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, background-color .2s;
}
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 26px;
}
.hero-badge .pill { background: var(--success); color: #06160C; font-weight: 800; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--success); }
.hero p.sub {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--text2);
  font-size: clamp(15px, 2.2vw, 18px);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.08); }
.btn-ghost { background: var(--surface2); color: var(--text1); border: 1px solid var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--text3); }
.hero-meta b { color: var(--text2); }

/* ---------- phone mock (replica UI aplikasi) ---------- */
.hero-visual {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  border-radius: 36px;
  border: 1px solid var(--border-strong);
  background: var(--bg1);
  padding: 10px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.phone-screen {
  border-radius: 28px;
  background: var(--bg0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ph-header {
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
}
.ph-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.ph-logo img { width: 100%; height: 100%; object-fit: cover; }
.ph-title { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.ph-title .half { color: var(--text3); font-weight: 600; }
.ph-sub { font-size: 9.5px; color: var(--text3); }
.ph-info {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ph-info svg { width: 15px; height: 15px; color: var(--text2); }

.ph-body { padding: 12px; display: flex; flex-direction: column; gap: 11px; }
.ph-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.ph-tab {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}
.ph-tab.on { background: var(--surface3); color: var(--text1); }
.ph-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ph-card-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.ph-card-title svg { width: 15px; height: 15px; color: var(--text2); }
.ph-row2 { display: flex; gap: 8px; }
.ph-field { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ph-field > span { font-size: 10px; font-weight: 600; color: var(--text2); }
.ph-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 9px;
  height: 36px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
}
.ph-select svg { width: 14px; height: 14px; color: var(--text3); flex-shrink: 0; }
.ph-area {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 50px;
  padding: 9px 11px;
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.55;
}
.ph-gen {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px;
  border-radius: 10px;
  letter-spacing: .01em;
}
.ph-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--text3); }
.ph-hint .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.ph-nav {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 8px 8px;
}
.ph-navitem { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ph-navitem svg { width: 16px; height: 16px; color: var(--text3); }
.ph-navitem.on svg { color: var(--text1); }
.ph-navitem span { font-size: 8.5px; font-weight: 600; color: var(--text3); }
.ph-navitem.on span { color: var(--text1); }
.ph-ind { width: 16px; height: 2.5px; border-radius: 999px; margin-top: 1px; background: transparent; }
.ph-navitem.on .ph-ind { background: var(--text1); }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; font-weight: 800; }
.section-head p { color: var(--text2); margin-top: 12px; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform .15s, border-color .15s, background .15s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface2); }
.feature-ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface3);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-ic svg { width: 21px; height: 21px; color: var(--accent); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { color: var(--text2); font-size: 13.5px; margin-top: 8px; }

/* ---------- models strip ---------- */
.models-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.model-chip .st { color: var(--success); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; position: relative; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--success);
  opacity: .55;
}
.step h3 { font-size: 16px; margin-top: 12px; font-weight: 700; }
.step p { color: var(--text2); font-size: 13.5px; margin-top: 7px; }

/* ---------- download page ---------- */
.dl-hero { max-width: 1080px; margin: 0 auto; padding: 80px 24px 40px; text-align: center; }
.dl-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
.dl-hero p { color: var(--text2); margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

.dl-card {
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}
.dl-version { font-size: 13px; font-weight: 700; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; }
.dl-big { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.dl-big .ok { color: var(--success); }
.dl-meta { color: var(--text2); font-size: 13.5px; margin-top: 10px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 38px;
  border-radius: 14px;
  margin-top: 26px;
  transition: transform .15s, box-shadow .15s;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,255,255,.1); }
.dl-btn svg { width: 20px; height: 20px; }
.dl-note { margin-top: 16px; font-size: 12.5px; color: var(--text3); }
.dl-alts { max-width: 620px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dl-alt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--text2); transition: border-color .15s, color .15s; }
.dl-alt:hover { border-color: var(--border-strong); color: var(--text1); }

.dl-feats { max-width: 1080px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dl-feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.dl-feat svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.dl-feat b { display: block; font-size: 14px; }
.dl-feat span { color: var(--text2); font-size: 12.5px; }

/* ---------- donate ---------- */
.don-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 22px 0 18px;
}
.don-preset {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text2);
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s, color .15s;
}
.don-preset:hover {
  border-color: var(--success);
  color: var(--text1);
  background: rgba(47, 191, 109, 0.08);
  transform: translateY(-1px);
}
.don-preset.on {
  background: linear-gradient(135deg, rgba(47, 191, 109, 0.2) 0%, rgba(34, 154, 87, 0.12) 100%);
  color: #FFFFFF;
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success), 0 6px 18px rgba(47, 191, 109, 0.22);
}

.don-custom-wrap {
  margin-top: 16px;
  text-align: left;
}
.don-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
}
.don-opt {
  color: var(--text3);
  font-weight: 500;
  margin-left: 2px;
}
.don-custom-box {
  display: flex;
  align-items: center;
  background: var(--bg1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.don-custom-box:focus-within {
  border-color: var(--success);
  box-shadow: 0 0 0 2.5px rgba(47, 191, 109, 0.25);
}
.don-currency-tag {
  padding: 12px 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--success);
  background: var(--surface2);
  border-right: 1px solid var(--border-strong);
  user-select: none;
}
.don-number-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text1);
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 800;
  outline: none;
  letter-spacing: -0.01em;
  -moz-appearance: textfield;
}
.don-number-input::-webkit-outer-spin-button, .don-number-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.don-hint {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 500;
}

.don-note-wrap {
  margin-top: 16px;
  text-align: left;
}
.don-input-with-icon {
  display: flex;
  align-items: center;
  background: var(--bg1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color .18s, box-shadow .18s;
}
.don-input-with-icon:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.don-input-icon {
  width: 17px;
  height: 17px;
  color: var(--text3);
  flex-shrink: 0;
  margin-right: 8px;
}
.don-text-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text1);
  padding: 12px 0;
  font-size: 13.5px;
  outline: none;
}

.don-err {
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(240, 68, 56, 0.12);
  border: 1px solid rgba(240, 68, 56, 0.35);
  font-size: 13px;
  color: var(--danger);
  font-weight: 600;
  text-align: left;
}

/* Premium Gradient CTA Button */
.don-btn-main {
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #2FBF6D 0%, #229A57 100%);
  color: #04140B;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(47, 191, 109, 0.36);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.don-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(47, 191, 109, 0.48);
  opacity: .97;
}
.don-btn-main:active {
  transform: scale(0.98);
}
.don-btn-icon { width: 18px; height: 18px; color: #04140B; }
.don-arrow-icon { width: 17px; height: 17px; color: #04140B; transition: transform .15s ease; }
.don-btn-main:hover .don-arrow-icon { transform: translateX(3px); }

.don-qr-frame {
  margin: 20px auto 14px;
  display: flex;
  justify-content: center;
}
.don-qr {
  width: 240px;
  height: 240px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.don-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.don-qr .empty { color: #555566; font-size: 13px; }

.don-meta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.don-meta-item { display: flex; flex-direction: column; gap: 3px; }
.don-meta-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.don-countdown { font-size: 17px; font-weight: 800; color: var(--warning); }
.don-order { font-size: 12px; color: var(--text1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.don-pill-row { margin-top: 12px; }
.don-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text1);
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.6);
  animation: pulseGlow 1.6s infinite;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(240, 180, 41, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
}

.don-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(47, 191, 109, 0.16);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 32px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(47, 191, 109, 0.25);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { color: var(--text3); font-size: 13px; }
.footer-inner .heart { color: var(--danger); }
.footer-inner a { color: var(--text2); font-weight: 600; font-size: 13px; }
.footer-inner a:hover { color: var(--text1); }
.footer-links { display: flex; gap: 18px; }

/* ---------- admin ---------- */
.admin-body { min-height: 100vh; background: var(--bg0); }
.admin-shell { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-top h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.admin-top h1 small { color: var(--text3); font-weight: 600; font-size: 13px; margin-left: 8px; }
.auth-wrap { max-width: 420px; margin: 80px auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.card h2 svg { width: 17px; height: 17px; color: var(--text2); }

.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 26px; letter-spacing: -0.02em; font-weight: 800; }
.stat span { color: var(--text3); font-size: 12.5px; font-weight: 600; }
.stat b.ok { color: var(--success); }
.stat b.warn { color: var(--warning); }

.input, .select, .textarea {
  width: 100%;
  background: var(--bg1);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text1);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 90px; }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text2); margin-bottom: 7px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-danger { background: rgba(240,68,56,.12); color: var(--danger); }
.btn-danger:hover { background: rgba(240,68,56,.2); }
.btn-soft { background: var(--surface2); color: var(--text1); border: 1px solid var(--border-strong); }
.btn-soft:hover { border-color: var(--accent); }
.btn-ok { background: rgba(47,191,109,.14); color: var(--success); }
.btn-ok:hover { background: rgba(47,191,109,.24); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar .input { flex: 1; min-width: 200px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 11px 14px;
  background: var(--bg1);
  color: var(--text3);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }
td .mono { color: var(--text1); font-size: 12.5px; }
td .ts { font-size: 12px; color: var(--text3); white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.badge-active { background: rgba(47,191,109,.14); color: var(--success); }
.badge-inactive { background: var(--surface3); color: var(--text3); }

.empty { text-align: center; color: var(--text3); padding: 40px 0; font-size: 13.5px; }

.mt { margin-top: 12px; }
.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text1);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(240,68,56,.5); color: var(--danger); }
.toast.ok { border-color: rgba(47,191,109,.5); color: var(--success); }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #111116;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a, .nav-links span.link {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text2);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: color .15s, background .15s;
  }

  .nav-links a:hover, .nav-links a:active {
    color: var(--text1);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    justify-content: center;
    background: var(--surface2);
    color: var(--text1);
    border: 1px solid var(--border-strong);
    box-shadow: none;
  }

  .nav-links .nav-cta:hover {
    background: var(--surface3);
    color: #FFFFFF;
    border-color: var(--text3);
  }

  .section { padding: 52px 18px; }
  .hero { padding: 64px 18px 48px; }
  .footer-inner { justify-content: center; text-align: center; padding: 32px 18px; }

  /* Download & Donate page responsive margins */
  .dl-hero { padding: 52px 18px 24px; }
  .dl-card {
    width: calc(100% - 36px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    padding: 26px 18px;
    border-radius: 18px;
  }
  .dl-alts {
    width: calc(100% - 36px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
    gap: 10px;
  }
  .dl-feats {
    padding: 40px 18px 60px;
    gap: 12px;
  }
  .dl-feat {
    padding: 16px;
    border-radius: 14px;
  }
}
