:root {
  --bg: #0d0b08;
  --card: rgba(26, 22, 16, 0.72);
  --card-border: rgba(212, 175, 55, 0.18);
  --text: #f0e6d2;
  --muted: #a89878;
  --accent: #d4af37;
  --accent-bright: #e8c547;
  --accent-dim: rgba(212, 175, 55, 0.12);
  --telegram: #2aabee;
  --telegram-dim: rgba(42, 171, 238, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pop {
  0% { transform: scale(0.85); opacity: 0.6; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-orbs::before,
.bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbDrift 12s ease-in-out infinite;
}

.bg-orbs::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 175, 55, 0.09);
}

.bg-orbs::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -60px;
  background: rgba(180, 130, 40, 0.06);
  animation-delay: -6s;
  animation-duration: 16s;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 8px;
  animation: fadeUp 0.5s var(--ease-out) both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s var(--ease-out) 0.05s both;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.3));
  transition: filter 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 22px rgba(232, 197, 71, 0.45));
  transform: scale(1.02);
}

.telegram-cta {
  text-align: center;
  margin-top: 16px;
  animation: fadeUp 0.5s var(--ease-out) 0.5s both;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--telegram);
  text-decoration: none;
  background: var(--telegram-dim);
  border: 1px solid rgba(42, 171, 238, 0.25);
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-snap),
    box-shadow 0.18s var(--ease-out);
}

.telegram-link:hover {
  background: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.15);
}

.telegram-link:active {
  transform: translateY(0) scale(0.98);
}

.telegram-link svg {
  flex-shrink: 0;
}

.telegram-link span {
  line-height: 1.3;
  text-align: left;
}

.domain-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.5px;
}

.domain-name::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}

h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
  animation: fadeUp 0.5s var(--ease-out) 0.15s both;
}

.domain {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-snap),
    box-shadow 0.18s var(--ease-out);
  animation: fadeUp 0.45s var(--ease-out) both;
}

.domain:nth-child(1) { animation-delay: 0.2s; }
.domain:nth-child(2) { animation-delay: 0.27s; }
.domain:nth-child(3) { animation-delay: 0.34s; }
.domain:nth-child(4) { animation-delay: 0.41s; }
.domain:nth-child(5) { animation-delay: 0.48s; }

.domain::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: var(--accent-bright);
  transform: translateY(-50%);
  transition: height 0.2s var(--ease-snap);
}

.domain-label::after {
  content: ' →';
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.domain:hover .domain-label::after {
  opacity: 1;
  transform: translateX(0);
}

.domain:active {
  transform: translateX(2px) scale(0.99);
  transition-duration: 0.08s;
}

.domain-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.18s var(--ease-out);
  flex: 1;
  min-width: 0;
}

.domain:hover {
  background: var(--accent-dim);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08);
}

.domain:hover::before {
  height: 60%;
}

.domain:hover .domain-label {
  color: var(--accent-bright);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.badge.just-updated {
  animation: pop 0.35s var(--ease-snap);
}

.badge.checking {
  background: rgba(168, 152, 120, 0.15);
  color: var(--muted);
}

.badge.checking::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid rgba(168, 152, 120, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.badge.online {
  background: rgba(92, 184, 92, 0.15);
  color: #7dd87d;
  box-shadow: 0 0 12px rgba(92, 184, 92, 0.15);
}

.badge.online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7dd87d;
  box-shadow: 0 0 6px #7dd87d;
}

.badge.offline {
  background: rgba(201, 83, 83, 0.15);
  color: #e88888;
}

.badge.offline::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e88888;
}

.badge.unknown {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

.net-banner {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #e88888;
  background: rgba(201, 83, 83, 0.1);
  border: 1px solid rgba(201, 83, 83, 0.2);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 0;
  transition:
    max-height 0.35s var(--ease-out),
    opacity 0.25s var(--ease-out),
    padding 0.35s var(--ease-out),
    margin 0.35s var(--ease-out);
}

.net-banner.visible {
  max-height: 80px;
  opacity: 1;
  padding: 12px 14px;
  margin-bottom: 12px;
  animation: slideIn 0.3s var(--ease-out);
}

footer {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
  animation: fadeUp 0.5s var(--ease-out) 0.55s both;
}

.footer-disclaimer {
  max-width: 420px;
  margin: 10px auto 0;
  line-height: 1.55;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

footer a:hover {
  color: var(--accent-bright);
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-snap);
}

.guide-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.container--guide {
  max-width: 560px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
  animation: fadeUp 0.4s var(--ease-out) both;
}

.back-link:hover {
  color: var(--accent-bright);
}

.guide-tip {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--accent-dim);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
  animation: fadeUp 0.5s var(--ease-out) 0.12s both;
}

.guide-tip a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
}

.guide-tip a:hover {
  text-decoration: underline;
}

.guide-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
  animation: fadeUp 0.5s var(--ease-out) both;
}

.guide-card:nth-of-type(1) { animation-delay: 0.15s; }
.guide-card:nth-of-type(2) { animation-delay: 0.22s; }
.guide-card:nth-of-type(3) { animation-delay: 0.29s; }

.guide-card--compact {
  padding: 18px 20px;
}

.guide-card__header {
  margin-bottom: 16px;
}

.guide-card__header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 6px;
}

.guide-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.method-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(168, 152, 120, 0.15);
  color: var(--muted);
}

.method-tag--recommended {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  position: relative;
  padding-left: 36px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
}

.steps a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
}

.steps a:hover {
  text-decoration: underline;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.store-links a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-snap);
}

.store-links a:hover {
  background: var(--accent-dim);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.guide-note {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

.vpn-list-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 10px;
}

.vpn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vpn-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-snap);
}

.vpn-item a:hover {
  background: var(--accent-dim);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(4px);
}

.vpn-item__name {
  font-size: 0.88rem;
  font-weight: 600;
}

.vpn-item__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(168, 152, 120, 0.15);
  color: var(--muted);
  flex-shrink: 0;
}

.vpn-item__tag--free {
  background: rgba(92, 184, 92, 0.15);
  color: #7dd87d;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.tips-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tips-list a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
}

.tips-list a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .domain-label { font-size: 0.88rem; }
  .badge { font-size: 0.65rem; padding: 4px 8px; }
  .telegram-link,
  .guide-link { font-size: 0.72rem; padding: 7px 10px; }
}
