/* ============================================================
   BinwareVPN — кастомные стили поверх Tailwind
   ============================================================ */

html, body { background: #0a0a0b; overflow-x: hidden; }
html.light, html.light body { background: #fafafa; color: #18181b; }

[x-cloak] { display: none !important; }

/* Noise texture — тонкая зернистость на фоне */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Прогресс скролла сверху */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, #7ccfff, #bd8fff);
    z-index: 60;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(124,207,255,0.5);
}

/* Скролбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2f; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#7ccfff, #bd8fff); }

/* Выделение */
::selection { background: rgba(124,207,255,0.35); color: #fff; }

/* Focus */
*:focus-visible {
    outline: 2px solid #7ccfff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   КАСТОМНЫЙ PRELOADER
   ============================================================ */

/* Контент скрыт пока loader не снял класс loading */
body.loading main,
body.loading nav,
body.loading footer {
    opacity: 0;
}
body:not(.loading) main,
body:not(.loading) nav,
body:not(.loading) footer {
    animation: body-reveal 0.8s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}
@keyframes body-reveal {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Чуть разные задержки для красоты */
body:not(.loading) nav { animation-delay: 0.05s; animation-fill-mode: both; }
body:not(.loading) main { animation-delay: 0.15s; animation-fill-mode: both; }
body:not(.loading) footer { animation-delay: 0.25s; animation-fill-mode: both; }

.preloader-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0f0f14 0%, #050508 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}
.preloader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Щит-анимация */
.preloader-shield {
    position: relative;
    width: 100px;
    height: 120px;
    margin-bottom: 32px;
}
.preloader-shield svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(124,207,255,0.4));
    animation: preloader-float 3s ease-in-out infinite;
}
@keyframes preloader-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

/* Плавающие частицы вокруг щита */
.preloader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    animation: preloader-particle-float 4s linear infinite;
    opacity: 0;
}
.preloader-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.preloader-particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 0.5s; }
.preloader-particle:nth-child(3) { left: 20%; top: 70%; animation-delay: 1s; }
.preloader-particle:nth-child(4) { left: 70%; top: 80%; animation-delay: 1.5s; }
.preloader-particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; }
.preloader-particle:nth-child(6) { left: 90%; top: 60%; animation-delay: 2.5s; }
@keyframes preloader-particle-float {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(30px, -50px) scale(1.5); }
}

/* Текст бренда */
.preloader-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.35em;
    display: flex;
    gap: 2px;
}
.preloader-brand span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: preloader-letter 0.6s forwards;
    background: linear-gradient(135deg, #ffffff 0%, #7ccfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.preloader-brand span:nth-child(1)  { animation-delay: 0.0s; }
.preloader-brand span:nth-child(2)  { animation-delay: 0.05s; }
.preloader-brand span:nth-child(3)  { animation-delay: 0.10s; }
.preloader-brand span:nth-child(4)  { animation-delay: 0.15s; }
.preloader-brand span:nth-child(5)  { animation-delay: 0.20s; }
.preloader-brand span:nth-child(6)  { animation-delay: 0.25s; }
.preloader-brand span:nth-child(7)  { animation-delay: 0.30s; }
.preloader-brand span:nth-child(8)  { animation-delay: 0.35s; color: #bd8fff; -webkit-text-fill-color: transparent; background: linear-gradient(135deg, #bd8fff, #7ccfff); -webkit-background-clip: text; }
.preloader-brand span:nth-child(9)  { animation-delay: 0.40s; }
.preloader-brand span:nth-child(10) { animation-delay: 0.45s; }
@keyframes preloader-letter {
    to { opacity: 1; transform: translateY(0); }
}

/* Прогресс-линия */
.preloader-line {
    margin-top: 28px;
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.preloader-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #7ccfff, #bd8fff, transparent);
    animation: preloader-progress 1.5s ease-in-out infinite;
}
@keyframes preloader-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.preloader-status {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

/* ============================================================
   ФОРМЫ
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
    background: #131316;
    color: #f5f5f5;
    border: 1px solid #1f1f23;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #7ccfff;
    background: #16161a;
    box-shadow: 0 0 0 3px rgba(124,207,255,0.1);
}
input:disabled { opacity: 0.5; cursor: not-allowed; }

input::placeholder, textarea::placeholder { color: #5a5a63; }

/* Чекбокс */
.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}
.checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #131316;
    border: 1.5px solid #3a3a3f;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all .15s;
    flex-shrink: 0;
    margin-top: 1px;
}
.checkbox input[type="checkbox"]:hover { border-color: #7ccfff; }
.checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    border-color: transparent;
}
.checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 6px; height: 11px;
    border: solid #0a0a0b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio */
.radio input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #131316;
    border: 1.5px solid #3a3a3f;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all .15s;
    flex-shrink: 0;
    margin-top: 1px;
}
.radio input[type="radio"]:hover { border-color: #7ccfff; }
.radio input[type="radio"]:checked {
    border-color: #7ccfff;
    border-width: 2px;
}
.radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 10px; height: 10px;
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    color: #0a0a0b;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a3dcff, #d4a8ff);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: -1;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -5px rgba(124,207,255,.4);
}
.btn-primary:hover:not(:disabled)::before { opacity: 1; }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: #1a1a1f;
    color: #f5f5f5;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #2a2a2f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all .2s;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
}
.btn-secondary:hover:not(:disabled) {
    background: #222227;
    border-color: #4a4a4f;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #b5b5bb;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all .15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Big CTA button с анимированной рамкой */
.btn-hero {
    position: relative;
    background: #0a0a0b;
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}
.btn-hero::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), #7ccfff, #bd8fff, #7ccfff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 4s linear infinite;
    z-index: -1;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotate-border {
    to { --angle: 360deg; }
}
.btn-hero:hover { transform: translateY(-2px); }

/* ============================================================
   КАРТОЧКИ
   ============================================================ */

.card {
    background: #131316;
    border: 1px solid #1f1f23;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color .2s, transform .2s;
    position: relative;
}
.card:hover { border-color: #2a2a2f; }

.card-hover { transition: transform .25s, border-color .25s, box-shadow .25s; }
.card-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(124,207,255,0.3);
    box-shadow: 0 20px 40px -15px rgba(124,207,255,0.15);
}

/* Карточка с градиентной рамкой при hover */
.card-glow {
    position: relative;
    isolation: isolate;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #7ccfff, transparent 50%, #bd8fff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.card-glow:hover::before { opacity: 1; }

/* Градиентный текст */
.text-gradient {
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   АНИМАЦИИ СКРОЛЛА
   ============================================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 100ms; }
.scroll-reveal-delay-2 { transition-delay: 200ms; }
.scroll-reveal-delay-3 { transition-delay: 300ms; }
.scroll-reveal-delay-4 { transition-delay: 400ms; }
.scroll-reveal-delay-5 { transition-delay: 500ms; }

/* ============================================================
   SPEED TEST GRAPH (декоративный)
   ============================================================ */

.speed-bar {
    transform-origin: left;
    animation: speed-bar-fill 2s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
    transform: scaleX(0);
}
@keyframes speed-bar-fill {
    to { transform: scaleX(var(--bar-width, 1)); }
}

/* Pulse glow для live-indicators */
.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* ============================================================
   ТАБЛИЦЫ
   ============================================================ */

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 100%; }

/* Comparison table */
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.comparison-row.header {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8a8a94;
    padding: 0.5rem 0;
}
.comparison-check {
    font-size: 1.1rem;
}

/* ============================================================
   БЕЙДЖИ И АЛЕРТЫ
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-green { background: rgba(34,197,94,.12); color: #4ade80; }
.badge-red { background: rgba(239,68,68,.12); color: #f87171; }
.badge-yellow { background: rgba(234,179,8,.12); color: #facc15; }
.badge-blue { background: rgba(124,207,255,.12); color: #7ccfff; }
.badge-gray { background: rgba(156,163,175,.12); color: #9ca3af; }

.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}
.alert-success { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); color: #4ade80; }
.alert-error { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); color: #f87171; }
.alert-info { background: rgba(124,207,255,.08); border-color: rgba(124,207,255,.25); color: #7ccfff; }
.alert-warning { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.25); color: #facc15; }

/* ============================================================
   LIQUID GLASS (стеклянный эффект)
   ============================================================ */

/* Когда glass-card используется совместно с .card — переопределяем */
.card.glass-card,
.glass-card.card {
    background: rgba(15, 15, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
}

.glass-card {
    position: relative;
    background: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow:
        0 12px 40px 0 rgba(0, 0, 0, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
    transition: border-color .3s, transform .3s, box-shadow .3s;
    overflow: hidden;
}

/* Блик сверху */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: inherit 0 0 0;
}

.glass-card:hover {
    border-color: rgba(124, 207, 255, 0.25);
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px 0 rgba(0, 0, 0, 0.4),
        0 0 50px 0 rgba(124, 207, 255, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
}

/* Плотная тёмная glass-панель (для хедера и табов) */
.glass-panel {
    background: rgba(12, 12, 16, 0.65);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Активное состояние табов/кнопок в glass-panel */
.glass-active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 2px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Pill-капсулы (используются в хедере для статусов) */
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e5e5e7;
    transition: all .2s;
}
.glass-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Fallback */
@supports not (backdrop-filter: blur(10px)) {
    .glass-card, .card.glass-card { background: #131316; backdrop-filter: none; }
    .glass-panel { background: rgba(12, 12, 16, 0.92); }
    .glass-pill { background: rgba(255, 255, 255, 0.05); }
}

/* Floating header wrapper */
.header-floating {
    position: fixed;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 1240px;
    z-index: 50;
}
@media (min-width: 640px) {
    .header-floating { top: 1rem; }
}
@media (min-width: 1024px) {
    .header-floating { top: 1.25rem; }
}

/* ============================================================
   КАРТА EUROPE
   ============================================================ */

.map-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.map-container svg { width: 100%; height: auto; }

.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
}
.map-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ccfff, #bd8fff);
    position: relative;
    box-shadow: 0 0 20px rgba(124,207,255,0.6);
}
.map-pin-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse-dot 2s ease-out infinite;
}
.map-pin-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.2s;
}
.map-pin:hover .map-pin-label { opacity: 1; }

/* ============================================================
   МОБИЛЬНЫЕ АДАПТАЦИИ
   ============================================================ */

@media (max-width: 640px) {
    .form-row { flex-direction: column; align-items: stretch !important; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* Отключаем некоторые анимации на медленных устройствах */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   UNIQUE DESIGN LANGUAGE — фирменные паттерны
   ============================================================ */

/* === Неоновая полоса сверху карточки (наш фирменный приём) === */
.neon-top {
    position: relative;
    isolation: isolate;
}
.neon-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7ccfff 50%, transparent);
    opacity: 0.4;
    transition: opacity 0.3s;
}
.neon-top:hover::before { opacity: 0.9; }

/* === Dotted texture для hero === */
.dotted-bg {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(124,207,255,0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* === Терминал-стиль карточка (моя уникальная фича) === */
.terminal-card {
    position: relative;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    overflow: hidden;
}
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: #6a6a72;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.terminal-dots {
    display: flex;
    gap: 0.375rem;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-body {
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    color: #d4d4d8;
    line-height: 1.6;
}
.terminal-prompt { color: #7ccfff; }
.terminal-comment { color: #6a6a72; }
.terminal-value { color: #bd8fff; }
.terminal-string { color: #a8e6a3; }

/* === Sparkline (мини-график нагрузки для серверов) === */
.sparkline {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}
.sparkline-bar {
    width: 2px;
    background: linear-gradient(180deg, #7ccfff, #bd8fff);
    border-radius: 1px;
    opacity: 0.7;
}

/* === Sidebar nav с тонкой световой полосой слева === */
.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #8a8a94;
    font-weight: 500;
    transition: all 0.15s;
}
.sidebar-link::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #7ccfff, #bd8fff);
    border-radius: 0 2px 2px 0;
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(124, 207, 255, 0.6);
}
.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}
.sidebar-link.active {
    color: #fff;
    background: rgba(124, 207, 255, 0.05);
}
.sidebar-link.active::before {
    height: 60%;
}
.sidebar-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}
.sidebar-link.active .sidebar-link-icon {
    opacity: 1;
    color: #7ccfff;
}

/* === Status indicator (зелёная точка + текст) === */
.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: ui-monospace, 'SF Mono', monospace;
}
.status-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === Geometric display heading === */
.display-heading {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    font-feature-settings: 'ss01', 'ss02';
}

/* === Tabular numbers for stats === */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* === Metric card (uniques stats block) === */
.metric-card {
    position: relative;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.875rem;
    transition: border-color 0.2s;
}
.metric-card:hover {
    border-color: rgba(124, 207, 255, 0.2);
}
.metric-label {
    font-size: 0.6875rem;
    color: #6a6a72;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.metric-delta {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-family: ui-monospace, monospace;
}
.metric-delta.positive { color: #4ade80; }
.metric-delta.negative { color: #f87171; }

/* === Divider с надписью посередине === */
.divider-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6a6a72;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2rem 0 1.5rem;
}
.divider-label::before,
.divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
}
.divider-label::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

/* === Copy-button с результатом === */
.copy-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    color: #8a8a94;
    font-family: ui-monospace, monospace;
    cursor: pointer;
    transition: all 0.15s;
}
.copy-btn-inline:hover {
    background: rgba(124, 207, 255, 0.08);
    border-color: rgba(124, 207, 255, 0.25);
    color: #7ccfff;
}

/* ============================================================
   СИГНАТУРНЫЕ КАРТОЧКИ (уникальный стиль BinwareVPN)
   ============================================================ */

/* Neon-border card — тёмная карточка со светящейся 1px верхней границей */
.neon-card {
    position: relative;
    background: rgba(14, 14, 18, 0.75);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}

/* Верхний неоновый акцент */
.neon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124, 207, 255, 0.6) 30%,
        rgba(189, 143, 255, 0.6) 70%,
        transparent 100%);
    opacity: 0.7;
    transition: opacity .3s, left .3s, right .3s;
}

.neon-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}
.neon-card:hover::before {
    opacity: 1;
    left: 0; right: 0;
}

/* Вариант: акцент с свечением (для hero-cards) */
.neon-card-glow::before {
    box-shadow: 0 0 20px rgba(124, 207, 255, 0.3);
}

/* Code-style карточка (моноширинный контент) */
.code-card {
    position: relative;
    background: rgba(8, 8, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

/* Верхняя "кнопочная" полоса как в macOS-терминале */
.code-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.code-card-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

/* Sidebar активный пункт — тонкая светящаяся линия слева */
.sidebar-item {
    position: relative;
    padding-left: 14px;
}
.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #7ccfff, #bd8fff);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(124, 207, 255, 0.6);
    transition: height .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-item.active::before,
.sidebar-item:hover::before {
    height: 60%;
}
.sidebar-item:hover::before {
    background: linear-gradient(180deg, rgba(124, 207, 255, 0.4), rgba(189, 143, 255, 0.4));
}
.sidebar-item.active::before {
    background: linear-gradient(180deg, #7ccfff, #bd8fff);
}
.sidebar-item.active {
    color: #fff;
}
.sidebar-item.active .sidebar-icon {
    color: #7ccfff;
}

/* Numeric display — tabular numerals */
.tabular { font-variant-numeric: tabular-nums; }

/* Dotted background (для фоновых декораций) */
.dotted-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Sparkline-трейлинг градиент */
.sparkline-gradient {
    background: linear-gradient(180deg, rgba(124, 207, 255, 0.25) 0%, transparent 100%);
}

/* Divider с градиентом по центру */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
}

/* Label монограмма — "[B]" маленькая */
.mono-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}
.mono-label::before {
    content: '[';
    color: rgba(124, 207, 255, 0.7);
}
.mono-label::after {
    content: ']';
    color: rgba(124, 207, 255, 0.7);
}

/* ============================================================
   3D GLOBE
   ============================================================ */
.globe-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px 0;
}
#globe {
    cursor: grab;
    border-radius: 50%;
    max-width: 100%;
    height: auto;
}
#globe:active { cursor: grabbing; }
