@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  --primary: #8B5CF6;
  --secondary: #10B981;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --bg-color: #050505;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0; font-family: 'Inter', sans-serif;
  background-color: var(--bg-color); color: var(--text);
  overflow-x: hidden; min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #2e1065 0%, #000000 70%);
}

h1, h2, h3, .logo-text, .main-btn, .links-title, .col-header, .acc-text span { font-family: 'Outfit', sans-serif; }

/* ФОН */
.ghost-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.ghost { position: absolute; opacity: 0.25; color: #fff; animation: floatGhost infinite ease-in-out; }
@keyframes floatGhost { 50% { transform: translate(20px, -40px) rotate(-5deg); } }
.g-1 { top: 10%; left: 10%; width: 60px; height: 60px; animation-duration: 12s; color: var(--primary); }
.g-2 { top: 60%; right: 15%; width: 100px; height: 100px; animation-duration: 18s; color: var(--secondary); opacity: 0.15; }
.g-3 { bottom: 10%; left: 20%; width: 40px; height: 40px; animation-duration: 9s; }
.container { max-width: 500px; margin: 0 auto; padding: 24px; position: relative; z-index: 10; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
.logo-text { font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.status-pill { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; background: rgba(16, 185, 129, 0.15); color: #34d399; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(16, 185, 129, 0.2); }

/* Hero */
.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 0 0 16px; background: linear-gradient(135deg, #fff 30%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 16px; color: var(--text-muted); line-height: 1.6; max-width: 340px; margin: 0 auto 32px; }
.main-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px; background: var(--primary); border-radius: 20px; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4); overflow: hidden; }
.main-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 20px; padding: 18px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; height: 130px; }
.card.wide { grid-column: span 2; height: auto; flex-direction: row; align-items: center; }
.icon-box { width: 40px; height: 40px; background: rgba(255,255,255,0.07); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card.wide .icon-box { margin-bottom: 0; margin-left: 16px; }
.card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* --- АККОРДЕОН СРАВНЕНИЯ --- */
.accordion-wrapper { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(12px); margin-bottom: 30px; transition: 0.3s; }
.accordion-wrapper.active { border-color: #8B5CF6; box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1); }
.accordion-btn { width: 100%; background: transparent; border: none; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #fff; }
.accordion-btn:hover { background: rgba(255, 255, 255, 0.05); }
.acc-left { display: flex; align-items: center; gap: 12px; text-align: left; }
.icon-circle { width: 36px; height: 36px; background: rgba(139, 92, 246, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8B5CF6; }
.acc-text { display: flex; flex-direction: column; }
.acc-text span:first-child { font-weight: 700; font-size: 16px; }
.acc-sub { font-size: 11px; color: var(--text-muted); }
.arrow-icon { transition: transform 0.3s; color: var(--text-muted); }
.accordion-wrapper.active .arrow-icon { transform: rotate(180deg); color: #fff; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: rgba(0, 0, 0, 0.2); }

/* Battle Grid */
.battle-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px; /* Уменьшил зазор для симметрии */
  padding: 20px; 
  align-items: stretch; /* Растягивает на одну высоту */
}
.battle-col { 
  flex: 1; 
  border-radius: 16px; 
  padding: 15px 10px; 
  display: flex; 
  flex-direction: column; 
  position: relative; 
}

/* Free VPN (Прозрачный + пунктир) */
.battle-col.enemy {
  background: rgba(255, 255, 255, 0.03); /* Прозрачный фон, не черный! */
  border: 1px dashed rgba(255,255,255,0.2);
  overflow: hidden; 
}
.scratch-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px);
  pointer-events: none;
}
.col-header.bad { text-align: center; color: #9ca3af; font-weight: 700; margin-bottom: 20px; font-size: 15px; }

/* NetGhost */
.battle-col.hero {
  background: rgba(139, 92, 246, 0.1); border: 1px solid #8B5CF6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
  z-index: 2; overflow: hidden;
}
.col-header.good { text-align: center; color: #fff; font-weight: 800; margin-bottom: 20px; font-size: 16px; }
.badge-pro { font-size: 9px; background: #8B5CF6; padding: 2px 6px; border-radius: 4px; color: #fff; vertical-align: top; margin-left: 4px; }

/* Списки */
.battle-list { list-style: none; padding: 0; margin: 0; }
.battle-list li { margin-bottom: 15px; text-align: center; display: flex; flex-direction: column; }
.stat-lbl { font-size: 10px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }

/* Значения (ИСПРАВЛЕНО: Ярче и четче) */
.stat-val.bad { 
  font-size: 13px; 
  color: #ef4444; /* Ярко-красный */
  font-weight: 600; 
  text-decoration: line-through; 
  opacity: 1; /* Полная непрозрачность */
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.3); /* Легкое свечение */
}
.stat-val.good { 
  font-size: 13px; 
  color: #fff; 
  font-weight: 700; 
  background: linear-gradient(90deg, #fff, #a78bfa); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}

.shine-effect { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); transform: skewX(-20deg); animation: shineCard 4s infinite; }
@keyframes shineCard { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* Links */
.links-title { font-size: 14px; font-weight: 700; color: var(--text-muted); margin: 0 0 10px 4px; text-transform: uppercase; letter-spacing: 1px; }
.links-section { background: var(--glass); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 40px; }
.link-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.05); }
.server-status-section { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; backdrop-filter: blur(12px); }
.server-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.server-row:last-child { border-bottom: none; }
.server-left { display: flex; align-items: center; gap: 15px; }
.country-name { 
  font-weight: 700; font-size: 14px; 
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; 
}
.server-ip { font-family: 'Inter', monospace; font-size: 11px; font-weight: 600; }
.ping-value { font-family: 'Inter', monospace; font-size: 13px; font-weight: 600; color: #10B981; }
.signal-bar { display: flex; gap: 2px; justify-content: flex-end; }
.bar { width: 3px; background: rgba(255,255,255,0.2); border-radius: 1px; }
.bar.active { background: #10B981; }
.b1 { height: 4px; } .b2 { height: 7px; } .b3 { height: 10px; }

/* Социальные бейджи */
.social-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1; 
  height: 20px;
}
.social-badge svg { display: block; margin-right: 4px; }
.yt-icon { color: #ff0000; } 
.inst-icon { color: #d62976; }
.inst-gradient { background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Docs */
.doc-page .container { max-width: 680px; }
.doc-card { background: rgba(20, 20, 25, 0.7); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: 24px; padding: 32px; margin-bottom: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.doc-card h1 { font-size: 32px; margin-top: 0; margin-bottom: 12px; background: linear-gradient(135deg, #fff 30%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.doc-card .date { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; display: block; opacity: 0.7; }
.doc-card h2 { font-size: 20px; color: #fff; margin-top: 36px; margin-bottom: 16px; border-left: 3px solid var(--primary); padding-left: 14px; }
.doc-card h3 { font-size: 16px; color: #e5e7eb; margin-top: 24px; margin-bottom: 10px; font-weight: 700; }
.doc-card p { color: #d1d5db; font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.doc-card ul { margin-bottom: 16px; padding-left: 20px; list-style: none; }
.doc-card li { margin-bottom: 10px; line-height: 1.6; color: #d1d5db; position: relative; padding-left: 6px; }
.doc-card li::before { content: "•"; color: var(--secondary); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }
.highlight-box { background: rgba(139, 92, 246, 0.08); border: 1px dashed rgba(139, 92, 246, 0.3); padding: 20px; border-radius: 16px; margin: 24px 0; }
.doc-card a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); transition: 0.2s; }
.doc-card a:hover { color: #fff; border-color: #fff; }
.bottom-back-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 20px; color: #fff; text-decoration: none; font-weight: 600; margin-top: 10px; }
.footer { text-align: center; padding-bottom: 30px; color: #444; font-size: 12px; }
.footer a { color: #666; margin: 0 6px; text-decoration: none; }
