
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root, [data-theme="dark"] {
  --bg: #0f130f;
  --bg2: #161b15;
  --bg3: #1a201a;
  --surface: #161b15;
  --card-hover: #1e241d;
  --border: #262d25;
  --border2: #333c32;
  --input-bg: #1a201a;
  --input-border: #333c32;
  --text: #adb5a8;
  --text-bright: #eef2ec;
  --text-mid: #8e968a;
  --text-dim: #666e62;
  --text-faint: #4a5247;
  --text-ghost: #333a31;
  --accent: #5ba36b;
  --accent-hover: #69b479;
  --accent-text: #7cc48b;
  --accent-light: rgba(91,163,107,0.13);
  --green: #5ba36b;
  --red: #cc6060;
  --nav-bg: rgba(15,19,15,0.88);
  --dot-color: rgba(255,255,255,0.02);
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
}

[data-theme="light"] {
  --bg: #eae7dc;
  --bg2: #f2f0e8;
  --bg3: #f2f0e8;
  --surface: #f2f0e8;
  --card-hover: #e5e2d5;
  --border: #d5d1c2;
  --border2: #c3bfad;
  --input-bg: #f6f4ee;
  --input-border: #c9c5b5;
  --text: #4a4d42;
  --text-bright: #1e2419;
  --text-mid: #363b2f;
  --text-dim: #64685a;
  --text-faint: #918f7f;
  --text-ghost: #b3b0a0;
  --accent: #2f6b41;
  --accent-hover: #285c38;
  --accent-text: #2f6b41;
  --accent-light: rgba(47,107,65,0.1);
  --green: #2f6b41;
  --red: #b8473f;
  --nav-bg: rgba(234,231,220,0.9);
  --dot-color: rgba(40,60,40,0.04);
  --shadow: 0 1px 2px rgba(40,45,30,0.06), 0 1px 3px rgba(40,45,30,0.05);
  --shadow-lg: 0 16px 44px rgba(30,45,25,0.14);
}


*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  transition: background 0.2s, border-color 0.2s;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; display: block; }
[data-theme="light"] .nav-logo img { filter: brightness(0.15); }
.nav-logo span { color: var(--accent-text); }

/* Styled NEIR wordmark */
.logo {
  display: inline-flex; align-items: center; gap: 3px; text-decoration: none;
  font-weight: 700; font-size: 24px; letter-spacing: 2px; color: var(--text-bright);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.logo:hover { text-decoration: none; }
.logo-e { display: inline-flex; flex-direction: column; justify-content: center; gap: 3.5px; height: 17px; width: 14px; margin: 0 2px; }
.logo-e span { display: block; height: 3px; background: currentColor; border-radius: 1px; }
.logo-e span:nth-child(2) { width: 68%; }
.logo-i { position: relative; display: inline-block; }
.logo-i i { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.logo-io { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-left: 3px; }

/* Shared Telegram Support/News nav links (consistent across all pages) */
.tg-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.tg-link i { color: #229ED9; font-size: 15px; }
.tg-link:hover { color: var(--text-bright); text-decoration: none; }
/* Dark-hero variant */
.tg-link.on-dark { color: rgba(233,242,233,0.82); }
.tg-link.on-dark:hover { color: #fff; }
.tg-link.on-dark i { color: #4db6e6; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-bright); text-decoration: none; }

.theme-toggle {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { color: var(--text-bright); border-color: var(--text-faint); }

.nav-btn {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-btn:hover { text-decoration: none; }
.nav-btn-ghost { border: 1px solid var(--border2); color: var(--text-mid); background: var(--bg2); box-shadow: var(--shadow); }
.nav-btn-ghost:hover { border-color: var(--text-faint); color: var(--text-bright); }
.nav-btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; box-shadow: var(--shadow); }
.nav-btn-primary:hover { background: var(--accent-hover); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  transition: border-color 0.2s;
}
.footer-left { font-size: 12px; color: var(--text-ghost); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: var(--text-faint); text-decoration: none; }
.footer-links a:hover { color: var(--text-dim); text-decoration: none; }

/* ── Hero ── */
.btn {
  padding: 10px 24px; border-radius: 5px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all 0.15s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg2); color: var(--text-mid); border: 1px solid var(--border2); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: var(--text-faint); color: var(--text-bright); }

/* ── Features ── */
.features-section { max-width: 580px; margin: 0 auto; padding: 48px 24px 0; }
.feature-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 0;
  border-top: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row .fi { color: var(--green); font-size: 14px; margin-top: 2px; width: 16px; text-align: center; flex-shrink: 0; }
.feature-row div { flex: 1; }
.feature-row strong { font-size: 14px; font-weight: 600; color: var(--text-bright); display: block; margin-bottom: 4px; }
.feature-row span { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ── Legal ── */
.page-narrow { max-width: 700px; margin: 0 auto; padding: 48px 24px 72px; }
.page-narrow.legal { max-width: 740px; }
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 52px; box-shadow: var(--shadow); }
.legal h1 { font-size: 26px; font-weight: 600; color: var(--text-bright); margin-bottom: 6px; letter-spacing: -0.6px; }
.legal .updated { font-size: 12px; color: var(--text-ghost); margin-bottom: 32px; }
.legal h2 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-top: 30px; margin-bottom: 9px; letter-spacing: -0.2px; }
.legal p, .legal li { font-size: 14px; color: var(--text-dim); line-height: 1.78; margin-bottom: 7px; }
.legal ul { padding-left: 20px; margin-bottom: 7px; }
.legal strong { color: var(--text-mid); font-weight: 600; }

/* ── Auth ── */
.auth-container { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 150px); padding: 24px; }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 22px; font-weight: 600; color: var(--text-bright); margin-bottom: 6px; letter-spacing: -0.4px; }
.auth-sub { font-size: 13.5px; color: var(--text-faint); margin-bottom: 28px; line-height: 1.55; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.form-input {
  width: 100%; padding: 11px 14px; background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: 9px; color: var(--text-bright); font-size: 14px; font-family: inherit;
  outline: none; transition: all 0.15s; box-shadow: var(--shadow);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-input::placeholder { color: var(--text-ghost); }
select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a84' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer;
}
select.form-input option { background: var(--bg2); color: var(--text-bright); }
.email-row { display: flex; gap: 8px; align-items: center; }
.email-row .form-input { flex: 1; }
.email-row .at-sign { color: var(--text-faint); font-size: 14px; flex-shrink: 0; }
.email-row select.form-input { flex: 0 0 150px; }
.username-status { font-size: 11px; margin-top: 5px; min-height: 16px; }
.username-status.available { color: var(--green); }
.username-status.taken { color: var(--red); }
.username-status.checking { color: var(--text-faint); }
.captcha-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.captcha-q { font-size: 13px; color: var(--text-mid); white-space: nowrap; }
.captcha-q strong { color: var(--text-bright); font-weight: 600; }
.captcha-input {
  width: 56px; padding: 8px; background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: 7px; color: var(--text-bright); font-size: 14px; font-family: inherit; outline: none; text-align: center;
}
.captcha-input:focus { border-color: var(--accent); }
.captcha-err {
  display: none; align-items: center; gap: 4px; font-size: 12px; color: #e05555;
  background: rgba(220,60,60,0.08); border: 1px solid rgba(220,60,60,0.2);
  border-radius: 4px; padding: 5px 10px; width: 100%; margin-top: 6px;
}
.captcha-err.on { display: flex; }
.captcha-err i { font-size: 12px; flex-shrink: 0; }
.form-btn {
  width: 100%; padding: 12px; background: var(--accent); border: none; border-radius: 9px;
  color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  margin-top: 8px; transition: all 0.15s;
}
.form-btn:hover { background: var(--accent-hover); }
.form-btn:disabled { background: var(--border2); color: var(--text-faint); cursor: not-allowed; box-shadow: none; }
.agree-row { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 14px; cursor: pointer; user-select: none; }
.agree-cb { width: 18px; height: 18px; border: 1.5px solid var(--input-border); border-radius: 5px; background: var(--input-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all 0.12s; }
.agree-cb i { font-size: 9px; color: #fff; opacity: 0; transition: opacity 0.12s; }
.agree-row.on .agree-cb { background: var(--accent); border-color: var(--accent); }
.agree-row.on .agree-cb i { opacity: 1; }
.agree-text { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.agree-text a { color: var(--accent-text); }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-faint); }
.auth-footer a { color: var(--accent-text); }

/* Recovery */
.recovery-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: none; align-items: center; justify-content: center; }
.recovery-overlay.on { display: flex; }
.recovery-modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px; padding: 32px; max-width: 460px; width: 90vw; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.recovery-modal h2 { font-size: 18px; font-weight: 600; color: var(--text-bright); margin-bottom: 6px; }
.recovery-modal p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.recovery-phrase { position: relative; background: var(--bg); border: 1px solid var(--border2); border-radius: 6px; padding: 16px 20px; font-size: 15px; color: var(--text-bright); font-weight: 500; letter-spacing: 0.3px; line-height: 1.8; word-spacing: 4px; margin-bottom: 8px; user-select: all; transition: filter 0.18s; cursor: pointer; }
.recovery-phrase.blurred { filter: blur(6px); user-select: none; }
.recovery-hint { font-size: 11px; color: var(--text-faint); margin-bottom: 12px; transition: opacity 0.18s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.recovery-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.recovery-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 6px; color: var(--text-dim); font-size: 13px; font-family: inherit; cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow); }
.recovery-act:hover { border-color: var(--text-faint); color: var(--text-bright); }
.recovery-warn { font-size: 12px; color: var(--red); background: rgba(220,60,60,0.06); border: 1px solid rgba(220,60,60,0.15); border-radius: 5px; padding: 10px 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; text-align: left; }
.recovery-warn i { flex-shrink: 0; }
.recovery-btn { padding: 10px 28px; background: var(--accent); border: none; border-radius: 5px; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.recovery-btn:hover { background: var(--accent-hover); }

.tor-copy {
  font-size: 10px; color: #6a60a0; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 2px 7px; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.tor-copy:hover { color: #9580d0; border-color: #8a7ac0; }

@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .email-row { flex-direction: column; }
  .email-row .at-sign { display: none; }
  .email-row select.form-input { flex: 1; }
}

/* ═══ Shared minimalistic nav/footer (all pages) ═══ */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1080px; margin: 0 auto; width: 100%;
}
.lp-nav-left { display: flex; align-items: center; gap: 28px; }
.lp-nav-links { display: flex; align-items: center; gap: 18px; }
.lp-nav-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.lp-nav-links a:hover { color: var(--text-bright); text-decoration: none; }
.lp-tg {
  font-size: 13.5px; color: var(--accent-text) !important; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; transition: opacity 0.15s;
}
.lp-tg:hover { opacity: 0.75; text-decoration: none; }
.lp-tor {
  font-size: 13px; color: #8b6fd0 !important; text-decoration: none; display: inline-flex;
  align-items: center; gap: 5px; transition: color 0.15s;
}
.lp-tor:hover { color: #a68de0 !important; text-decoration: none; }
.tor-nav-ico { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.lp-nav-div { width: 1px; height: 16px; background: var(--border2); flex-shrink: 0; }
.lp-nav-links a.lp-nav-cta {
  font-size: 13.5px; font-weight: 500; padding: 8px 17px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; transition: all 0.15s;
}
.lp-nav-links a.lp-nav-cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.lp-theme {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 14px; padding: 4px; display: flex; align-items: center; transition: color 0.15s;
}
.lp-theme:hover { color: var(--text-bright); }

.lp-btn {
  font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: 8px;
  text-decoration: none; transition: all 0.15s; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: none; font-family: inherit;
}
.lp-btn:hover { text-decoration: none; }
.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { background: var(--accent-hover); }
.lp-btn-ghost { color: var(--text-mid); border: 1px solid var(--border2); background: none; }
.lp-btn-ghost:hover { border-color: var(--text-faint); color: var(--text-bright); }

.lp-footer {
  max-width: 1080px; margin: 130px auto 0; padding: 28px 32px; width: 100%;
  border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
}
.lp-footer-left { font-size: 12.5px; color: var(--text-faint); }
.lp-footer-links { display: flex; gap: 20px; align-items: center; }
.lp-footer-links a { font-size: 12.5px; color: var(--text-faint); text-decoration: none; }
.lp-footer-links a:hover { color: var(--text-dim); text-decoration: none; }
.lp-footer-social { display: flex; gap: 12px; align-items: center; }
.lp-footer-social a { font-size: 22px; color: var(--text-faint); text-decoration: none; transition: color 0.15s; }
.lp-footer-social a:hover { text-decoration: none; }
.lp-footer-social .lp-ft-tg:hover { color: var(--accent-text); }
.lp-footer-social .lp-ft-x:hover { color: var(--text-bright); }
.lp-footer-div { width: 1px; height: 14px; background: var(--border2); }

@media (max-width: 760px) {
  .lp-nav { padding: 16px; }
  .lp-nav-links { gap: 12px; }
  .lp-tg, .lp-tor, .lp-nav-div { display: none; }
  .lp-footer { flex-direction: column; gap: 14px; text-align: center; }
}

/* ═══ Coming Soon overlay (VPS/VPN mock UI, not built yet) ═══
   Shared across dashboard.html, servers.html, server-manage.html, vpn.html.
   These pages render a fixed light "card on dark hero" look regardless of
   data-theme, so the overlay mirrors that hardcoded light surface for a
   seamless match, while using the accent tokens (which do shift with the
   theme) for its icon, pill and border so it stays in sync either way. */
@keyframes csIn { from { opacity: 0; transform: scale(0.97) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.cs-mock-region { position: relative; }
.cs-mock { pointer-events: none; user-select: none; filter: grayscale(0.4) opacity(0.55); }

.cs-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 28px 24px; border-radius: inherit;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(2.5px) saturate(120%);
  -webkit-backdrop-filter: blur(2.5px) saturate(120%);
  animation: csIn 260ms cubic-bezier(0.23,1,0.32,1) both;
}
.cs-overlay-card { max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.cs-overlay-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 2px;
}
.cs-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light); padding: 4px 12px; border-radius: 20px;
}
.cs-overlay-title { font-size: 16px; font-weight: 700; color: #1c2418; letter-spacing: -0.2px; }
.cs-overlay-text { font-size: 12.5px; color: #55604e; line-height: 1.55; }

/* Slim full-bleed banner used at the top of the standalone mock pages */
.cs-banner {
  width: 100vw; margin-left: calc(50% - 50vw);
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  text-align: center; background: var(--accent-light); border-bottom: 1px solid var(--accent);
  color: var(--accent); font-size: 13.5px; font-weight: 600; padding: 12px 24px;
  animation: csIn 260ms cubic-bezier(0.23,1,0.32,1) both;
}
.cs-banner i { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .cs-overlay, .cs-banner { animation: none; }
}
