﻿:root {
  --bg: #06172f;
  --bg2: #082044;
  --bg3: #0b2d5b;
  --card: #0a2448;
  --border: rgba(156, 199, 255, 0.16);
  --border-hover: rgba(76, 165, 255, 0.62);
  --text: #f7fbff;
  --muted: rgba(225, 238, 255, 0.68);
  --brand: #1f7cff;
  --accent: #58b7ff;
  --accent2: #8bd1ff;
  --glow: rgba(31, 124, 255, 0.32);
  --green: #53c98b;
}

body.legal-page {
  --bg: #06172f;
  --bg2: #082044;
  --bg3: #0b2d5b;
  --card: #0a2448;
  --border: rgba(156, 199, 255, 0.16);
  --border-hover: rgba(76, 165, 255, 0.62);
  --text: #f7fbff;
  --muted: rgba(225, 238, 255, 0.70);
  --brand: #1f7cff;
  --accent: #58b7ff;
  --accent2: #8bd1ff;
  --glow: rgba(31, 124, 255, 0.32);
  --green: #53c98b;
}

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

body {
  background-color: #030b15;
  background-image: url("/assets/vpn1/area_bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: var(--text);
}

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

nav,
.topbar {
  background: rgba(5, 20, 43, 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: 14px;
  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: 18px;
  background: linear-gradient(145deg, rgba(12, 45, 91, 0.98), rgba(8, 32, 68, 0.98));
  box-shadow: 0 22px 70px rgba(0, 18, 42, 0.36);
}

.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: #36a9f4;
}

.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: 14px;
  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(8, 119, 216, 0.07);
}

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

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

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

.support-icon,
.tg-avatar {
  border-radius: 14px;
  background: rgba(8, 119, 216, 0.12);
}

.error-icon {
  position: relative;
  width: 44px;
  height: 36px;
  border: 3px solid var(--brand);
  border-radius: 14px;
  background: rgba(8, 119, 216, 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: 24px 24px 0 0;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin: 0 auto 8px;
  border: 1px solid rgba(8, 119, 216, 0.38);
  border-radius: 12px;
  color: #36a9f4;
  background: rgba(8, 119, 216, 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), #36a9f4);
}

.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;
  background:
    linear-gradient(100deg, rgba(7, 23, 47, 0.96) 0%, rgba(7, 23, 47, 0.78) 100%),
    url("/assets/umbrella-storm-banner.jpg") center / cover;
}

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

.eyebrow {
  border: 1px solid rgba(8, 119, 216, 0.34);
  border-radius: 12px;
  background: rgba(8, 119, 216, 0.1);
}

.eyebrow::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(8, 119, 216, 0.12);
}

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

.notice {
  border: 1px solid rgba(8, 119, 216, 0.28);
  border-radius: 14px;
  background: rgba(8, 119, 216, 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: 14px;
    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;
  }
}
