/* ==========================================================================
   GHOST OS: ETHEREAL SPEED ENGINE - VISUAL CORE
   VERSION: 11.3.0-ENTERPRISE (GRID SPAN FIX & ABSOLUTE VERBOSITY)
   DESCR: Премиальный визуальный стиль Luxury Glassmorphism.
          Исправлен баг сжатия Grid-элементов. Код развернут до
          абсолютного максимума. Каждое CSS свойство выделено
          в отдельную строку. Отказ от любых сокращений.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И СИСТЕМНЫЕ НАСТРОЙКИ (CORE VARIABLES)
   -------------------------------------------------------------------------- */
:root {
    /* ЦВЕТОВАЯ ПАЛИТРА GHOST: Глубокие фоны и неоновые акценты */
    --ghost-color-bg-deep: #020203;       
    --ghost-color-bg-card: #08080a;       
    
    /* АКЦЕНТЫ: Используем три тона для спектральных переливов */
    --ghost-color-accent-primary: #00ffcc; 
    --ghost-color-accent-secondary: #00ff66; 
    --ghost-color-accent-tertiary: #9d4edd;  
    --ghost-color-accent-danger: #ff3366;  
    
    /* НАСТРОЙКИ СТЕКЛА (GLASSMORPHISM) */
    --ghost-glass-bg: rgba(255, 255, 255, 0.015);
    --ghost-glass-border: rgba(255, 255, 255, 0.04);
    --ghost-glass-blur: blur(25px);
    
    /* ТИПОГРАФИКА ENTERPRISE */
    --ghost-font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --ghost-font-mono: "SF Mono", "Fira Code", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
    
    /* ТАЙМИНГИ АНИМАЦИЙ ДЛЯ ПЛАВНОСТИ (ANIMATION TIMINGS) */
    --ghost-anim-speed-slow: 0.6s;
    --ghost-anim-speed-medium: 0.3s;
    --ghost-anim-speed-fast: 0.15s;
    --ghost-ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --------------------------------------------------------------------------
   2. БАЗОВЫЕ СТИЛИ ДОКУМЕНТА (RESET + BASE ARCHITECTURE)
   -------------------------------------------------------------------------- */
* {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline-width: 0px;
}

body {
    background-color: var(--ghost-color-bg-deep);
    color: #ffffff;
    font-family: var(--ghost-font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
}

/* ФОНОВЫЕ СПЕКТРАЛЬНЫЕ СВЕЧЕНИЯ (AMBIENT GLOW SYSTEM) */
body::before {
    content: '';
    position: absolute;
    width: 30vh;
    height: 30vh;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    
    filter: blur(120px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    
    top: 10%;
    left: 10%;
    background-color: var(--ghost-color-accent-primary);
}

body::after {
    content: '';
    position: absolute;
    width: 30vh;
    height: 30vh;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    
    filter: blur(120px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    
    bottom: 10%;
    right: 10%;
    background-color: var(--ghost-color-accent-tertiary);
}

/* --------------------------------------------------------------------------
   3. ГЛАВНЫЙ КОНТЕЙНЕР ПРИЛОЖЕНИЯ (MAIN APP WRAPPER)
   -------------------------------------------------------------------------- */
.app-container {
    width: 100%;
    max-width: 650px;
    
    padding-top: 30px;
    padding-right: 20px;
    padding-bottom: 30px;
    padding-left: 20px;
    
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* УНИВЕРСАЛЬНЫЙ КЛАСС СТЕКЛЯННОЙ ПАНЕЛИ (GLOBAL GLASS PANEL) */
.glass-panel {
    background-color: var(--ghost-glass-bg);
    backdrop-filter: var(--ghost-glass-blur);
    -webkit-backdrop-filter: var(--ghost-glass-blur);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: var(--ghost-glass-border);
    border-right-color: var(--ghost-glass-border);
    border-bottom-color: var(--ghost-glass-border);
    border-left-color: var(--ghost-glass-border);
    
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
}

/* --------------------------------------------------------------------------
   4. ШАПКА (HEADER) И IP БЛОК (CLIENT IDENTITY)
   -------------------------------------------------------------------------- */
.header-diagnostics {
    text-align: center;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 30px;
    margin-left: 0px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.system-title {
    font-family: var(--ghost-font-mono);
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 7px;
    text-transform: uppercase;
    text-shadow: 0px 0px 25px rgba(0, 255, 204, 0.4);
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 8px;
    margin-left: 0px;
}

.system-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3.5px;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
}

.client-ip-block {
    background-color: var(--ghost-glass-bg);
    backdrop-filter: var(--ghost-glass-blur);
    -webkit-backdrop-filter: var(--ghost-glass-blur);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: var(--ghost-glass-border);
    border-right-color: var(--ghost-glass-border);
    border-bottom-color: var(--ghost-glass-border);
    border-left-color: var(--ghost-glass-border);
    
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
    
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    column-gap: 12px;
    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.2);
}

.ip-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
}

.ip-value {
    font-family: var(--ghost-font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ghost-color-accent-primary);
    text-shadow: 0px 0px 10px rgba(0, 255, 204, 0.3);
}

/* --------------------------------------------------------------------------
   5. ПАНЕЛЬ НАВИГАЦИИ (HORIZONTAL SCROLL TABS v11.0)
   -------------------------------------------------------------------------- */
.navigation-tabs {
    background-color: var(--ghost-glass-bg);
    backdrop-filter: var(--ghost-glass-blur);
    -webkit-backdrop-filter: var(--ghost-glass-blur);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: var(--ghost-glass-border);
    border-right-color: var(--ghost-glass-border);
    border-bottom-color: var(--ghost-glass-border);
    border-left-color: var(--ghost-glass-border);
    
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    
    display: flex;
    flex-direction: row;
    
    padding-top: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 35px;
    margin-left: 0px;
    
    /* КРИТИЧЕСКИЕ ПРАВИЛА ДЛЯ ГОРИЗОНТАЛЬНОГО СКРОЛЛА */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    column-gap: 4px;
}

/* Скрытие системного скроллбара для Chrome/Safari */
.navigation-tabs::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
}

.tab-button {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    
    min-width: -moz-max-content;
    min-width: max-content;
    
    scroll-snap-align: start;
    
    background-color: transparent;
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    
    padding-top: 14px;
    padding-right: 20px;
    padding-bottom: 14px;
    padding-left: 20px;
    
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 1px;
    
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
    
    cursor: pointer;
    
    transition-property: background-color, color, box-shadow, border-top-color, border-right-color, border-bottom-color, border-left-color;
    transition-duration: var(--ghost-anim-speed-fast);
    transition-timing-function: var(--ghost-ease-premium);
    
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button.active-tab {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.15);
    
    border-top-color: rgba(255, 255, 255, 0.08);
    border-right-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   6. ВКЛАДКИ КОНТЕНТА И СЕКЦИИ (CONTENT SECTIONS)
   -------------------------------------------------------------------------- */
.tab-content-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    
    transition-property: opacity, transform;
    transition-duration: var(--ghost-anim-speed-slow), var(--ghost-anim-speed-slow);
    transition-timing-function: var(--ghost-ease-premium), var(--ghost-ease-premium);
}

.tab-content-section.active-section {
    display: block;
    opacity: 1;
    transform: translateY(0px);
    
    animation-name: sectionFadeIn;
    animation-duration: var(--ghost-anim-speed-medium);
    animation-timing-function: var(--ghost-ease-premium);
    animation-fill-mode: forwards;
}

/* ==========================================================================
   7. ДАШБОРД МЕТРИК СКОРОСТИ И АНИМАЦИИ (ACTIVE METRICS ENGINE)
   ========================================================================== */
.metrics-dashboard {
    display: flex;
    flex-direction: row;
    column-gap: 8px;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 40px;
    margin-left: 0px;
    
    justify-content: space-between;
}

.metric-card {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    min-width: 0;
    
    background-color: var(--ghost-glass-bg);
    backdrop-filter: var(--ghost-glass-blur);
    -webkit-backdrop-filter: var(--ghost-glass-blur);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: var(--ghost-glass-border);
    border-right-color: var(--ghost-glass-border);
    border-bottom-color: var(--ghost-glass-border);
    border-left-color: var(--ghost-glass-border);
    
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
    
    padding-top: 25px;
    padding-right: 2px;
    padding-bottom: 25px;
    padding-left: 2px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
    transition-property: background-color, border-top-color, border-right-color, border-bottom-color, border-left-color, transform, box-shadow;
    transition-duration: var(--ghost-anim-speed-medium);
    transition-timing-function: var(--ghost-ease-premium);
    
    overflow-x: hidden;
    position: relative;
}

.metric-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.metric-title {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    
    text-align: center;
    width: 100%;
    
    transition-property: color;
    transition-duration: var(--ghost-anim-speed-medium);
}

.metric-value-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    column-gap: 3px;
    width: 100%; 
}

.metric-value-number {
    font-family: var(--ghost-font-mono);
    font-size: 21px;
    font-weight: 300;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    text-align: center;
    
    transition-property: color, text-shadow;
    transition-duration: var(--ghost-anim-speed-medium);
}

.metric-value-unit {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    
    transition-property: color;
    transition-duration: var(--ghost-anim-speed-medium);
}

/* АНИМАЦИИ КАРТОЧЕК МЕТРИК В АКТИВНОМ СОСТОЯНИИ */
.metric-card.active-ping-card {
    border-top-color: rgba(0, 255, 204, 0.6);
    border-right-color: rgba(0, 255, 204, 0.6);
    border-bottom-color: rgba(0, 255, 204, 0.6);
    border-left-color: rgba(0, 255, 204, 0.6);
    
    background-color: rgba(0, 255, 204, 0.05);
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px 0px rgba(0, 255, 204, 0.15), inset 0px 0px 15px 0px rgba(0, 255, 204, 0.05);
    
    animation-name: pulseCardPing;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

.metric-card.active-ping-card .metric-title {
    color: rgba(0, 255, 204, 0.8);
}

.metric-card.active-ping-card .metric-value-number {
    color: var(--ghost-color-accent-primary);
    text-shadow: 0px 0px 15px rgba(0, 255, 204, 0.6);
    font-weight: 500;
}

.metric-card.active-ping-card .metric-value-unit {
    color: rgba(0, 255, 204, 0.6);
}

.metric-card.active-down-card {
    border-top-color: rgba(0, 255, 102, 0.6);
    border-right-color: rgba(0, 255, 102, 0.6);
    border-bottom-color: rgba(0, 255, 102, 0.6);
    border-left-color: rgba(0, 255, 102, 0.6);
    
    background-color: rgba(0, 255, 102, 0.05);
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px 0px rgba(0, 255, 102, 0.15), inset 0px 0px 15px 0px rgba(0, 255, 102, 0.05);
    
    animation-name: pulseCardDown;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

.metric-card.active-down-card .metric-title {
    color: rgba(0, 255, 102, 0.8);
}

.metric-card.active-down-card .metric-value-number {
    color: var(--ghost-color-accent-secondary);
    text-shadow: 0px 0px 15px rgba(0, 255, 102, 0.6);
    font-weight: 500;
}

.metric-card.active-down-card .metric-value-unit {
    color: rgba(0, 255, 102, 0.6);
}

.metric-card.active-up-card {
    border-top-color: rgba(157, 78, 221, 0.6);
    border-right-color: rgba(157, 78, 221, 0.6);
    border-bottom-color: rgba(157, 78, 221, 0.6);
    border-left-color: rgba(157, 78, 221, 0.6);
    
    background-color: rgba(157, 78, 221, 0.05);
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px 0px rgba(157, 78, 221, 0.15), inset 0px 0px 15px 0px rgba(157, 78, 221, 0.05);
    
    animation-name: pulseCardUp;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

.metric-card.active-up-card .metric-title {
    color: rgba(157, 78, 221, 0.8);
}

.metric-card.active-up-card .metric-value-number {
    color: var(--ghost-color-accent-tertiary);
    text-shadow: 0px 0px 15px rgba(157, 78, 221, 0.6);
    font-weight: 500;
}

.metric-card.active-up-card .metric-value-unit {
    color: rgba(157, 78, 221, 0.6);
}

.metric-card.finished-card {
    border-top-color: rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.2);
    
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(0px);
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.2);
    
    animation-name: finalBurstCard;
    animation-duration: 1s;
    animation-timing-function: var(--ghost-ease-premium);
    animation-fill-mode: forwards;
}

.metric-card.finished-card .metric-value-number {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. ETHEREAL GHOST DRIVE - ИНДИКАТОР 
   -------------------------------------------------------------------------- */
.speed-indicator-system {
    display: flex;
    flex-direction: row;
    justify-content: center;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 60px;
    margin-left: 0px;
}

.ghost-drive-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.drive-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: var(--ghost-glass-border);
    border-right-color: var(--ghost-glass-border);
    border-bottom-color: var(--ghost-glass-border);
    border-left-color: var(--ghost-glass-border);
    
    background-color: rgba(255, 255, 255, 0.01);
}

.drive-core {
    position: absolute;
    width: 60px;
    height: 60px;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    
    background-color: rgba(0, 255, 204, 0.02);
    box-shadow: 0px 0px 35px 2px rgba(0, 255, 204, 0.05);
}

.spectral-trail-container {
    position: absolute;
    width: 100%;
    height: 100%;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    
    background-image: conic-gradient(from 0deg, transparent 0%, var(--ghost-color-accent-primary) 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(transparent 65%, black 66%, black 67.5%, transparent 68.5%);
            mask-image: radial-gradient(transparent 65%, black 66%, black 67.5%, transparent 68.5%);
            
    opacity: 0.1;
    
    transition-property: opacity;
    transition-duration: var(--ghost-anim-speed-slow);
    transition-timing-function: var(--ghost-ease-premium);
}

.drive-status-text {
    z-index: 2;
    font-family: var(--ghost-font-mono);
    font-size: 13px; 
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
    white-space: nowrap; 
}

.ghost-drive-wrapper.idle .drive-core {
    animation-name: coreBreath;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.ghost-drive-wrapper.active .spectral-trail-container {
    opacity: 1;
}

.ghost-drive-wrapper.active.scanning-ping .spectral-trail-container {
    background-image: conic-gradient(from 0deg, transparent 0%, var(--ghost-color-accent-primary) 10%, transparent 80%);
    animation-name: spectralSpin;
    animation-duration: var(--ghost-anim-speed-slow);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ghost-drive-wrapper.active.scanning-down .spectral-trail-container {
    background-image: conic-gradient(from 0deg, transparent 0%, var(--ghost-color-accent-secondary) 15%, transparent 85%);
    animation-name: spectralSpin;
    animation-duration: 0.3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ghost-drive-wrapper.active.scanning-up .spectral-trail-container {
    background-image: conic-gradient(from 0deg, transparent 0%, var(--ghost-color-accent-tertiary) 15%, transparent 85%);
    animation-name: spectralSpin;
    animation-duration: 0.25s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ghost-drive-wrapper.success-burst-animation .drive-core {
    animation-name: burstCoreFlash;
    animation-duration: 1.5s;
    animation-timing-function: var(--ghost-ease-premium);
    animation-fill-mode: forwards;
}

.ghost-drive-wrapper.success-burst-animation .drive-outer-ring {
    animation-name: burstRingPulse;
    animation-duration: 1.5s;
    animation-timing-function: var(--ghost-ease-premium);
    animation-fill-mode: forwards;
}

.ghost-drive-wrapper.success-burst-animation .drive-status-text {
    animation-name: burstTextGlow;
    animation-duration: 1.5s;
    animation-timing-function: var(--ghost-ease-premium);
    animation-fill-mode: forwards;
}

/* --------------------------------------------------------------------------
   9. КНОПКИ ДЕЙСТВИЙ (ACTION BUTTONS)
   -------------------------------------------------------------------------- */
.action-button-container {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.glass-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: rgba(255, 255, 255, 0.06);
    border-right-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(255, 255, 255, 0.06);
    
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    
    padding-top: 22px;
    padding-right: 22px;
    padding-bottom: 22px;
    padding-left: 22px;
    
    cursor: pointer;
    
    transition-property: background-color, border-top-color, border-right-color, border-bottom-color, border-left-color, transform, box-shadow;
    transition-duration: var(--ghost-anim-speed-slow);
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.glass-button::after {
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    
    transition-property: left;
    transition-duration: var(--ghost-anim-speed-slow);
    transition-timing-function: ease;
}

.glass-button:hover::after {
    left: 130%;
}

.glass-button:hover {
    background-color: rgba(255, 255, 255, 0.04);
    
    border-top-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.1);
    
    transform: translateY(-2px);
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.2);
}

.glass-button:active {
    transform: translateY(1px);
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
}

.primary-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 10px; 
    
    font-family: var(--ghost-font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ghost-color-accent-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    width: 100%; 
}

.success-button {
    border-top-color: rgba(0, 255, 102, 0.15);
    border-right-color: rgba(0, 255, 102, 0.15);
    border-bottom-color: rgba(0, 255, 102, 0.15);
    border-left-color: rgba(0, 255, 102, 0.15);
}

.success-button .primary-text {
    color: var(--ghost-color-accent-secondary);
}

.hidden-element {
    display: none !important;
}

/* --------------------------------------------------------------------------
   10. РЕКЛАМНЫЙ БЛОК VPN 3301 И ОБЩИЕ ЭЛЕМЕНТЫ
   -------------------------------------------------------------------------- */
.promo-vpn-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.promo-vpn-banner {
    display: block;
    text-decoration-line: none;
    
    padding-top: 18px;
    padding-right: 20px;
    padding-bottom: 18px;
    padding-left: 20px;
    
    transition-property: background-color, border-top-color, border-right-color, border-bottom-color, border-left-color, transform, box-shadow;
    transition-duration: var(--ghost-anim-speed-slow);
    transition-timing-function: var(--ghost-ease-premium);
    
    box-shadow: 0px 4px 20px 0px rgba(0, 255, 204, 0.05);
}

.promo-vpn-banner:hover {
    border-top-color: rgba(0, 255, 204, 0.3);
    border-right-color: rgba(0, 255, 204, 0.3);
    border-bottom-color: rgba(0, 255, 204, 0.3);
    border-left-color: rgba(0, 255, 204, 0.3);
    
    background-color: rgba(0, 255, 204, 0.05);
    transform: translateY(-2px);
    box-shadow: 0px 8px 30px 0px rgba(0, 255, 204, 0.15);
}

.promo-vpn-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
}

.promo-vpn-icon {
    font-size: 24px;
    filter: drop-shadow(0px 0px 8px rgba(0, 255, 204, 0.6));
}

.promo-vpn-text {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    flex-grow: 1;
}

.promo-vpn-title {
    font-family: var(--ghost-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--ghost-color-accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.promo-vpn-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.promo-vpn-arrow {
    font-size: 18px;
    color: var(--ghost-color-accent-primary);
    
    transition-property: transform;
    transition-duration: var(--ghost-anim-speed-slow);
}

.promo-vpn-banner:hover .promo-vpn-arrow {
    transform: translateX(5px);
}

.controls-panel {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
}

.secondary-button {
    padding-top: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
    padding-left: 16px;
}

.secondary-button .primary-text {
    font-family: var(--ghost-font-primary);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* ==========================================================================
   11. НОВЫЙ БЛОК: OSINT АНАЛИЗ IP (IP DETAILS SECTION)
   ========================================================================== */
.ip-details-container {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
}

.ip-data-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: rgba(255, 255, 255, 0.05);
    
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 12px;
    padding-left: 0px;
}

.ip-data-row:last-child {
    border-bottom-width: 0px;
    padding-bottom: 0px;
}

.ip-data-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ip-data-value {
    font-family: var(--ghost-font-mono);
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.ip-data-value.highlight {
    color: var(--ghost-color-accent-primary);
    font-weight: 600;
}

.ip-data-value.warning {
    color: var(--ghost-color-accent-danger);
}

/* ==========================================================================
   12. НОВЫЙ БЛОК: СЕТКА СЕРВИСОВ И DPI ЧЕКЕР (SERVICES GRID)
   ========================================================================== */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* КРИТИЧЕСКИЙ ФИКС СЖАТИЯ (Игнорирование колонок для заглушки) */
.services-grid-container .servers-placeholder {
    grid-column-start: 1;
    grid-column-end: -1;
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    padding-top: 20px;
    padding-right: 15px;
    padding-bottom: 20px;
    padding-left: 15px;
    
    row-gap: 10px;
    text-align: center;
    
    transition-property: background-color, border-top-color, border-right-color, border-bottom-color, border-left-color, transform, box-shadow;
    transition-duration: var(--ghost-anim-speed-medium);
    transition-timing-function: var(--ghost-ease-premium);
}

.service-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.03);
    
    border-top-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 26px;
    
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-left: 0px;
}

.service-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

.service-status-pill {
    padding-top: 4px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
    
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    
    border-top-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.status-online {
    background-color: rgba(0, 255, 102, 0.1);
    color: var(--ghost-color-accent-secondary);
    
    border-top-color: rgba(0, 255, 102, 0.2);
    border-right-color: rgba(0, 255, 102, 0.2);
    border-bottom-color: rgba(0, 255, 102, 0.2);
    border-left-color: rgba(0, 255, 102, 0.2);
    
    box-shadow: 0px 0px 10px 0px rgba(0, 255, 102, 0.1);
}

.status-offline {
    background-color: rgba(157, 78, 221, 0.1);
    color: var(--ghost-color-accent-tertiary);
    
    border-top-color: rgba(157, 78, 221, 0.2);
    border-right-color: rgba(157, 78, 221, 0.2);
    border-bottom-color: rgba(157, 78, 221, 0.2);
    border-left-color: rgba(157, 78, 221, 0.2);
}

.status-blocked {
    background-color: rgba(255, 51, 102, 0.1);
    color: var(--ghost-color-accent-danger);
    
    border-top-color: rgba(255, 51, 102, 0.2);
    border-right-color: rgba(255, 51, 102, 0.2);
    border-bottom-color: rgba(255, 51, 102, 0.2);
    border-left-color: rgba(255, 51, 102, 0.2);
    
    box-shadow: 0px 0px 10px 0px rgba(255, 51, 102, 0.15);
    
    animation-name: blinkDanger;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.service-ping {
    font-family: var(--ghost-font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    
    margin-top: 4px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

/* --------------------------------------------------------------------------
   13. СТИЛИ СПИСКОВ (SERVERS & HISTORY)
   -------------------------------------------------------------------------- */
.dynamic-servers-list {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.servers-placeholder {
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    
    text-align: center;
}

.loading-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.vpn-node-item, .history-item-card {
    padding-top: 18px;
    padding-right: 20px;
    padding-bottom: 18px;
    padding-left: 20px;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    transition-property: background-color, border-top-color, border-right-color, border-bottom-color, border-left-color;
    transition-duration: var(--ghost-anim-speed-slow);
    transition-timing-function: var(--ghost-ease-premium);
}

.vpn-node-item:hover, .history-item-card:hover {
    border-top-color: rgba(255, 255, 255, 0.12);
    border-right-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    border-left-color: rgba(255, 255, 255, 0.12);
    
    background-color: rgba(255, 255, 255, 0.03);
}

.node-location-block {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.node-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

.node-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.node-details-row {
    font-family: var(--ghost-font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.node-telemetry-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 6px;
}

.status-indicator {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    column-gap: 6px;
    
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.online-status {
    color: var(--ghost-color-accent-secondary);
}

.online-status .status-dot {
    background-color: var(--ghost-color-accent-secondary);
    box-shadow: 0px 0px 10px 0px var(--ghost-color-accent-secondary);
}

.offline-status {
    color: var(--ghost-color-accent-tertiary);
}

.offline-status .status-dot {
    background-color: var(--ghost-color-accent-tertiary);
    box-shadow: 0px 0px 10px 0px var(--ghost-color-accent-tertiary);
}

.node-ping {
    font-family: var(--ghost-font-mono);
    font-size: 14px;
    font-weight: 300;
    color: #ffffff;
}

.history-item-card {
    flex-direction: column;
    align-items: stretch;
    row-gap: 15px;
}

.history-header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255, 255, 255, 0.05);
    
    padding-bottom: 10px;
}

.history-date {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.history-ip {
    font-family: var(--ghost-font-mono);
    font-size: 12px;
    color: var(--ghost-color-accent-primary);
}

.history-metrics-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.history-metric-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
}

.history-val {
    font-family: var(--ghost-font-mono);
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
}

.history-lbl {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   14. АНИМАЦИИ (KEYFRAMES EXPANISON)
   -------------------------------------------------------------------------- */
@keyframes coreBreath {
    0% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0px 0px 25px 0px rgba(0, 255, 204, 0.02);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow: 0px 0px 45px 5px rgba(0, 255, 204, 0.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0px 0px 25px 0px rgba(0, 255, 204, 0.02);
    }
}

@keyframes spectralSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes burstCoreFlash {
    0% {
        transform: scale(1);
        background-color: rgba(0, 255, 204, 0.05);
        box-shadow: 0px 0px 30px 5px rgba(0, 255, 204, 0.1);
    }
    20% {
        transform: scale(1.6);
        background-color: rgba(0, 255, 204, 0.3);
        box-shadow: 0px 0px 100px 30px rgba(0, 255, 204, 0.6);
    }
    100% {
        transform: scale(1);
        background-color: rgba(0, 255, 204, 0.05);
        box-shadow: 0px 0px 45px 5px rgba(0, 255, 204, 0.2);
    }
}

@keyframes burstRingPulse {
    0% {
        transform: scale(1);
        border-top-color: var(--ghost-glass-border);
        border-right-color: var(--ghost-glass-border);
        border-bottom-color: var(--ghost-glass-border);
        border-left-color: var(--ghost-glass-border);
    }
    20% {
        transform: scale(1.08);
        border-top-color: rgba(0, 255, 204, 0.8);
        border-right-color: rgba(0, 255, 204, 0.8);
        border-bottom-color: rgba(0, 255, 204, 0.8);
        border-left-color: rgba(0, 255, 204, 0.8);
        box-shadow: inset 0px 0px 20px rgba(0, 255, 204, 0.3), 0px 0px 20px rgba(0, 255, 204, 0.3);
    }
    100% {
        transform: scale(1);
        border-top-color: rgba(0, 255, 204, 0.2);
        border-right-color: rgba(0, 255, 204, 0.2);
        border-bottom-color: rgba(0, 255, 204, 0.2);
        border-left-color: rgba(0, 255, 204, 0.2);
        box-shadow: none;
    }
}

@keyframes burstTextGlow {
    0% {
        text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
    }
    20% {
        text-shadow: 0px 0px 30px rgba(0, 255, 204, 0.9);
        color: var(--ghost-color-accent-primary);
    }
    100% {
        text-shadow: 0px 0px 20px rgba(0, 255, 204, 0.5);
        color: #ffffff;
    }
}

@keyframes pulseCardPing {
    0% {
        box-shadow: 0px 10px 20px 0px rgba(0, 255, 204, 0.05), inset 0px 0px 5px 0px rgba(0, 255, 204, 0.02);
    }
    100% {
        box-shadow: 0px 15px 35px 0px rgba(0, 255, 204, 0.25), inset 0px 0px 20px 0px rgba(0, 255, 204, 0.1);
        border-top-color: rgba(0, 255, 204, 0.9);
        border-right-color: rgba(0, 255, 204, 0.9);
        border-bottom-color: rgba(0, 255, 204, 0.9);
        border-left-color: rgba(0, 255, 204, 0.9);
    }
}

@keyframes pulseCardDown {
    0% {
        box-shadow: 0px 10px 20px 0px rgba(0, 255, 102, 0.05), inset 0px 0px 5px 0px rgba(0, 255, 102, 0.02);
    }
    100% {
        box-shadow: 0px 15px 35px 0px rgba(0, 255, 102, 0.25), inset 0px 0px 20px 0px rgba(0, 255, 102, 0.1);
        border-top-color: rgba(0, 255, 102, 0.9);
        border-right-color: rgba(0, 255, 102, 0.9);
        border-bottom-color: rgba(0, 255, 102, 0.9);
        border-left-color: rgba(0, 255, 102, 0.9);
    }
}

@keyframes pulseCardUp {
    0% {
        box-shadow: 0px 10px 20px 0px rgba(157, 78, 221, 0.05), inset 0px 0px 5px 0px rgba(157, 78, 221, 0.02);
    }
    100% {
        box-shadow: 0px 15px 35px 0px rgba(157, 78, 221, 0.25), inset 0px 0px 20px 0px rgba(157, 78, 221, 0.1);
        border-top-color: rgba(157, 78, 221, 0.9);
        border-right-color: rgba(157, 78, 221, 0.9);
        border-bottom-color: rgba(157, 78, 221, 0.9);
        border-left-color: rgba(157, 78, 221, 0.9);
    }
}

@keyframes finalBurstCard {
    0% {
        transform: translateY(-5px) scale(1);
        background-color: rgba(255, 255, 255, 0.1);
        border-top-color: rgba(255, 255, 255, 0.6);
        border-right-color: rgba(255, 255, 255, 0.6);
        border-bottom-color: rgba(255, 255, 255, 0.6);
        border-left-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0px 0px 40px 0px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translateY(0px) scale(1);
        background-color: rgba(255, 255, 255, 0.03);
        border-top-color: rgba(255, 255, 255, 0.15);
        border-right-color: rgba(255, 255, 255, 0.15);
        border-bottom-color: rgba(255, 255, 255, 0.15);
        border-left-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.2);
    }
}

@keyframes blinkDanger {
    0% {
        box-shadow: 0px 0px 15px 0px rgba(255, 51, 102, 0.1);
    }
    100% {
        box-shadow: 0px 0px 30px 5px rgba(255, 51, 102, 0.4);
        border-top-color: rgba(255, 51, 102, 0.8);
        border-right-color: rgba(255, 51, 102, 0.8);
        border-bottom-color: rgba(255, 51, 102, 0.8);
        border-left-color: rgba(255, 51, 102, 0.8);
    }
}

/* --------------------------------------------------------------------------
   15. ФУТЕР (FOOTER)
   -------------------------------------------------------------------------- */
.app-footer {
    text-align: center;
    
    padding-top: 30px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    
    margin-top: auto;
}

.footer-text-block {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.copyright-text {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.version-text {
    font-family: var(--ghost-font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
}