:root {
  --bg: #07090c;
  --bg2: #0d1015;
  --bg3: #151920;
  --card: #11151b;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(215, 25, 32, 0.55);
  --text: #f4f5f7;
  --muted: rgba(244, 245, 247, 0.62);
  --brand: #d71920;
  --accent: #ef2b31;
  --accent2: #a40f15;
  --glow: rgba(215, 25, 32, 0.22);
  --green: #53c98b;
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(215, 25, 32, 0.14), transparent 28%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
  color: var(--text);
}

body::before,
body::after {
  display: none;
}

nav,
.topbar {
  background: rgba(7, 9, 12, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.logo {
  color: var(--text);
  gap: 10px;
}

.logo-badge {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.logo-me,
.logo-nord {
  color: var(--text);
}

.logo-vpn {
  color: var(--brand);
}

.nav-back,
.back-link {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-back:hover,
.back-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.card,
.hero-card,
.content-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(21, 25, 32, 0.98), rgba(13, 16, 21, 0.98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.card-title,
.meta-item span,
.eyebrow {
  color: #ff5a5f;
}

.stat-card,
.sub-link-input,
.app-btn,
.renew-btn,
.referral-score,
.meta-item,
.doc-nav a {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.stat-card:hover,
.app-btn:hover,
.renew-btn:hover,
.doc-nav a:hover {
  border-color: var(--border-hover);
  background: rgba(215, 25, 32, 0.07);
}

.copy-btn {
  color: #fff;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: none;
}

.copy-btn:hover {
  background: var(--accent);
  box-shadow: 0 10px 26px var(--glow);
}

.referral-card {
  border-color: rgba(215, 25, 32, 0.32);
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(13, 16, 21, 0.98));
}

.support-icon,
.tg-avatar {
  border-radius: 4px;
  background: rgba(215, 25, 32, 0.12);
}

.error-icon {
  position: relative;
  width: 44px;
  height: 36px;
  border: 3px solid var(--brand);
  border-radius: 4px;
  background: rgba(215, 25, 32, 0.14);
}

.error-icon::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 29px;
  height: 22px;
  border: 3px solid var(--text);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin: 0 auto 8px;
  border: 1px solid rgba(215, 25, 32, 0.38);
  border-radius: 3px;
  color: #ff5a5f;
  background: rgba(215, 25, 32, 0.08);
  font-family: 'Golos Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.traffic-bar {
  background: rgba(255, 255, 255, 0.08);
}

.traffic-fill {
  background: linear-gradient(90deg, var(--brand), #ff5a5f);
}

.toast {
  color: var(--text);
  background: var(--card);
  border-color: rgba(83, 201, 139, 0.4);
}

.page {
  color: var(--text);
}

.topbar-inner {
  max-width: 1180px;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 4px;
  background: var(--brand);
}

.eyebrow {
  border: 1px solid rgba(215, 25, 32, 0.34);
  border-radius: 3px;
  background: rgba(215, 25, 32, 0.1);
}

.eyebrow::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(215, 25, 32, 0.12);
}

.lead,
p,
li,
.notice {
  color: var(--muted);
}

.notice {
  border: 1px solid rgba(215, 25, 32, 0.28);
  border-radius: 4px;
  background: rgba(215, 25, 32, 0.08);
}

.notice strong,
h1,
h2 {
  color: var(--text);
}

.section + .section {
  border-top-color: var(--border);
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  nav,
  .topbar {
    backdrop-filter: none;
  }

  .logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 0;
  }

  .hero-card,
  .content-card,
  .card {
    border-radius: 4px;
    box-shadow: none;
  }

  .hero-card,
  .content-card {
    padding: 22px 18px;
  }

  .back-link {
    padding: 9px 11px;
    white-space: nowrap;
  }

  h1 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .greeting {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .logo {
    font-size: 13px;
  }

  .logo-badge {
    width: 34px;
    height: 34px;
  }

  .nav-back,
  .back-link {
    font-size: 12px;
  }

  h1 {
    font-size: 26px;
  }
}
