/* NewLive SMP — Forest Emerald UI (v2) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: #050d09;
  --bg2: #0a1810;
  --surface: #0e1f16;
  --surface2: #142a1d;
  --surface3: #1a3526;
  --border: rgba(52, 211, 153, 0.1);
  --border-mid: rgba(52, 211, 153, 0.18);
  --border-strong: rgba(52, 211, 153, 0.32);
  --text: #ecfdf5;
  --muted: #6b9080;
  --muted2: #4a6b5a;
  --primary: #10b981;
  --primary2: #34d399;
  --primary3: #6ee7b7;
  --accent: #a7f3d0;
  --warn: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --grad: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
  --grad-soft: linear-gradient(180deg, rgba(16, 185, 129, 0.12), transparent 70%);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -15%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 95% 5%, rgba(20, 184, 166, 0.06), transparent 50%);
  background-attachment: fixed;
}
a { color: var(--primary2); text-decoration: none; cursor: pointer; transition: color 0.15s; }
a:hover { color: var(--primary3); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--primary3);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(5, 13, 9, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grad);
  color: #022c22;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.35);
}
.nav-links {
  display: flex;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary2);
  background: rgba(16, 185, 129, 0.1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.22rem 0.48rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: 0.15s;
}
.lang-btn:hover { border-color: var(--border-mid); color: var(--text); }
.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #022c22;
}

/* ===== PAGES ===== */
.page { display: none; padding: 1.75rem 0 3rem; }
.page.active { display: block; animation: fadeUp 0.28s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary2);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-mid);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ecfdf5 30%, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== STAT STRIP ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.25rem 0;
}
.stat-strip .c {
  padding: 1rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-strip .c:last-child { border-right: none; }
.stat-strip .v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.stat-strip .l {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 0.25rem;
}

/* ===== CARDS & GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-glow);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ===== SECTION ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 0.35rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: #022c22;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--border-strong);
}

/* ===== FORMS ===== */
.form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  max-width: 420px;
  margin: 0 auto;
}
.form-box label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  margin-top: 0.85rem;
}
.form-box label:first-of-type { margin-top: 0; }
.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.form-box textarea { resize: vertical; min-height: 60px; }

/* ===== MESSAGES ===== */
.msg {
  font-size: 0.84rem;
  display: none;
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.msg.ok {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--success);
}
.msg.err {
  display: block;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger);
}

/* ===== RANK CARDS ===== */
.rank-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rank-card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}
.rank-card .features {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 1rem;
  flex: 1;
}
.rank-card .features li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.rank-card .features li:last-child { border-bottom: none; }
.rank-card .features li::before {
  content: "▸";
  color: var(--primary);
  font-size: 0.7rem;
}
.rank-card .btn { width: 100%; margin-top: auto; }

/* ===== VOTE STATS ===== */
.vote-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto 1.25rem;
}
.vote-stats .c {
  padding: 0.9rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.vote-stats .c:last-child { border-right: none; }
.vote-stats .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.vote-stats .l {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 0.15rem;
}

/* ===== LOGS / PATCH ===== */
.patch-empty {
  color: var(--muted2);
  font-size: 0.84rem;
  padding: 0.5rem 0;
}
.log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.log-row:last-child { border-bottom: none; }
.log-row .who { font-weight: 600; color: var(--text); }
.log-row .meta { color: var(--muted); font-size: 0.75rem; }
.log-row.clickable { cursor: pointer; border-radius: 4px; padding: 0.5rem 0.4rem; margin: 0 -0.4rem; }
.log-row.clickable:hover { background: rgba(16, 185, 129, 0.06); }
.log-row .status-pending { color: var(--warn); font-size: 0.7rem; font-weight: 700; }
.log-row .status-ok { color: var(--success); font-size: 0.7rem; font-weight: 700; }
.log-row .status-fail { color: var(--danger); font-size: 0.7rem; font-weight: 700; }

/* ===== QR BOX (legacy, always hidden — payment uses modal only) ===== */
.qr-box {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 2.5rem 0 0;
}
.footer-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 1.15rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}
.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.footer-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--grad);
  color: #022c22;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.footer-h {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 0.7rem;
}
.footer-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
footer a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  transition: color 0.15s;
}
footer a:hover { color: var(--primary2); }
.dot-online {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  margin-right: 0.3rem;
  vertical-align: middle;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 1.15rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted2);
  width: min(1080px, 100%);
  margin: 0 auto;
}

/* ===== MODAL (QRIS payment) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.82);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  width: min(380px, 100%);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--shadow-glow);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-state h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.5rem 0 0.3rem;
}
.modal-state .muted { color: var(--muted); font-size: 0.86rem; }
.modal-state .small {
  font-size: 0.7rem;
  margin-top: 0.7rem;
  word-break: break-all;
  color: var(--muted2);
}
.modal-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--border-strong);
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
}
.modal-qr-wrap {
  margin: 1rem auto;
  padding: 0.7rem;
  background: #fff;
  border-radius: 10px;
  width: fit-content;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}
.modal-qr-wrap img {
  display: block;
  width: 210px;
  height: 210px;
  object-fit: contain;
}
.modal-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary2);
  margin: 0.3rem 0 0.8rem;
}
.modal-loader-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--warn);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0.5rem auto 1rem;
  border: 3px solid var(--border-mid);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0.3rem auto 0.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.modal-icon.ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.modal-icon.fail {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.corners { position: relative; }
.corners::before,
.corners::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--primary);
  pointer-events: none;
  z-index: 3;
  opacity: 0.7;
}
.corners::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.corners::after { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    width: 100%;
    order: 3;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0.15rem;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .c:nth-child(2) { border-right: none; }
  .stat-strip .c:nth-child(1),
  .stat-strip .c:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .hero h1 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 0.85rem; }
  .container { padding: 0 0.85rem; }
  .stat-strip .v { font-size: 1.1rem; }
}

/* Profile log detail rows */
.log-detail-row {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.log-detail-row .log-main {
  flex: 1;
  min-width: 140px;
  font-size: 0.82rem;
  line-height: 1.45;
}
.log-detail-row .log-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.log-detail-row .log-msg {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}
.log-detail-row:hover {
  background: rgba(16, 185, 129, 0.06);
}

.cf-turnstile {
  margin-top: 0.85rem;
  min-height: 70px;
  display: flex;
  justify-content: center;
}

/* Custom captcha */
.captcha-box {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.04);
}
.captcha-box label {
  margin-top: 0 !important;
  margin-bottom: 0.45rem;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.captcha-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary2);
  min-width: 5.5rem;
  letter-spacing: 0.02em;
}
.captcha-row input {
  flex: 1;
  max-width: 100px;
  padding: 0.45rem 0.6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.captcha-row input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.captcha-refresh {
  padding: 0.35rem 0.55rem !important;
  font-size: 1rem !important;
  min-width: 2.2rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
  }
  .nav-links.mobile-open { display: flex !important; }
  .nav-links a {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
  .nav { height: auto; min-height: 60px; }
  .nav-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}
