/* ============================================
   LIVE NETWORK PULSE - Cyberpunk Edition
   Created: 2026-01-27
   ============================================ */

/* === VARIABLES === */
:root {
    --np-bg-dark: #0a0a12;
    --np-bg-grid: #111122;
    --np-cyan: #00f0ff;
    --np-green: #00ff88;
    --np-orange: #ff6b00;
    --np-purple: #a855f7;
    --np-pink: #ff0080;
    --np-yellow: #ffd600;
    --np-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5);
    --np-glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
    --np-glow-orange: 0 0 20px rgba(255, 107, 0, 0.5);
}

/* === MAIN CONTAINER === */
.network-pulse {
    background: var(--np-bg-dark);
    position: relative;
    padding: 40px 20px 60px;
    overflow: hidden;
    min-height: 600px;
}

/* Grid Background */
.network-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Scanlines */
.network-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}

/* === HEADER === */
.np-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.np-title {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--np-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.np-status-dot {
    width: 10px;
    height: 10px;
    background: var(--np-green);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: var(--np-glow-green);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.np-status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--np-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 5px 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

/* === MAP CONTAINER === */
.np-map-container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    min-height: 400px;
}

/* === BACKBONE PROVIDERS === */
.np-backbones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 10px;
}

.np-backbone {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.np-backbone-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.np-backbone-node:hover {
    transform: scale(1.2);
}

.np-backbone-node.frankfurt { border-color: var(--np-cyan); background: rgba(0,240,255,0.2); }
.np-backbone-node.amsterdam { border-color: var(--np-orange); background: rgba(255,107,0,0.2); }
.np-backbone-node.warsaw { border-color: var(--np-purple); background: rgba(168,85,247,0.2); }
.np-backbone-node.kyiv { border-color: var(--np-yellow); background: rgba(255,214,0,0.2); }
.np-backbone-node.bucharest { border-color: var(--np-pink); background: rgba(255,0,128,0.2); }

.np-backbone-node:hover.frankfurt { box-shadow: var(--np-glow-cyan); }
.np-backbone-node:hover.amsterdam { box-shadow: var(--np-glow-orange); }

.np-backbone-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === DATA FLOW LINES === */
.np-data-lines {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
}

.np-data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--np-cyan), transparent);
    transform-origin: left center;
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

/* === CENTRAL CORE === */
.np-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.np-core-ring {
    width: 200px;
    height: 200px;
    border: 3px solid var(--np-cyan);
    border-radius: 50%;
    position: relative;
    animation: coreRotate 20s linear infinite;
    box-shadow: 
        0 0 30px rgba(0,240,255,0.3),
        inset 0 0 30px rgba(0,240,255,0.1);
}

.np-core-ring::before,
.np-core-ring::after {
    content: '';
    position: absolute;
    border: 2px dashed rgba(0,240,255,0.3);
    border-radius: 50%;
}

.np-core-ring::before {
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    animation: coreRotate 15s linear infinite reverse;
}

.np-core-ring::after {
    top: 40px; left: 40px; right: 40px; bottom: 40px;
    animation: coreRotate 10s linear infinite;
}

@keyframes coreRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.np-core-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    text-align: center;
}

.np-core-city {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--np-cyan);
    text-shadow: var(--np-glow-cyan);
    margin-bottom: 5px;
}

.np-core-company {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

/* === REGION CITIES === */
.np-cities {
    /* Fixed: moved higher to avoid overlap */
    position: absolute;
    bottom: 180px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.np-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.np-city:hover {
    transform: translateY(-5px);
}

.np-city-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--np-green);
    border: 2px solid rgba(255,255,255,0.3);
    animation: cityPulse 2s ease-in-out infinite;
    box-shadow: var(--np-glow-green);
}

.np-city:nth-child(even) .np-city-dot {
    animation-delay: 0.5s;
}

.np-city:nth-child(3n) .np-city-dot {
    animation-delay: 1s;
}

@keyframes cityPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.np-city-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.np-city:hover .np-city-name {
    color: var(--np-green);
}

.np-city-more {
    font-size: 0.8rem;
    color: var(--np-cyan);
    opacity: 0.8;
}

/* === STATS BAR === */
.np-stats {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
    z-index: 10;
}

.np-stat {
    text-align: center;
    padding: 15px 25px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.np-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.np-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--np-cyan);
    font-weight: bold;
}

.np-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === CTA BUTTON === */
.np-cta {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 30px;
}

.np-cta-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--np-orange), #ff8c00);
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(255,107,0,0.3);
}

.np-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255,107,0,0.5);
}

.np-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* === MOBILE RESPONSIVE === */

/* ==========================================
   RESPONSIVE - PROPER MOBILE ADAPTATION
   ========================================== */

/* TABLET 768px */
@media (max-width: 768px) {
    .network-pulse {
        padding: 20px 15px 30px;
        min-height: auto;
    }
    
    .np-title {
        font-size: 1.1rem;
    }
    
    .np-map-container {
        height: 220px;
    }
    
    .np-backbones {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .np-backbone {
        font-size: 0.65rem;
        padding: 6px 10px;
    }
    
    .np-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .np-cta-btn {
        font-size: 0.9rem;
        padding: 14px 24px;
    }
}

/* MOBILE 480px */
@media (max-width: 480px) {
    .network-pulse {
        padding: 15px 12px 100px;
        min-height: auto;
        overflow: hidden;
    }
    
    .np-title {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .np-subtitle {
        font-size: 0.55rem;
        margin-bottom: 8px;
    }
    
    .np-status {
        font-size: 0.5rem;
        padding: 3px 8px;
        margin-bottom: 12px;
    }
    
    /* КАРТА - скрыта */
    .np-map-container {
        display: none !important;
    }
    
    /* ПРОВАЙДЕРЫ - горизонтальный скролл */
    .np-backbones {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 8px 0;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
        scrollbar-width: none;
    }
    
    .np-backbones::-webkit-scrollbar {
        display: none;
    }
    
    .np-backbone {
        flex-shrink: 0;
        font-size: 0.55rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    /* СТАТИСТИКА - 2 колонки */
    .np-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .np-stat {
        padding: 12px 8px;
    }
    
    .np-stat-icon {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .np-stat-value {
        font-size: 1.1rem;
    }
    
    .np-stat-label {
        font-size: 0.45rem;
        letter-spacing: 0;
    }
    
    /* CTA - fixed внизу */
    .np-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 15px;
        background: linear-gradient(to top, rgba(10,10,18,0.98) 0%, rgba(10,10,18,0.9) 100%);
        z-index: 100;
        border-top: 1px solid rgba(0, 240, 255, 0.2);
    }
    
    .np-cta-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 14px 20px;
        letter-spacing: 0.5px;
    }
    
    /* Модалка */
    .np-modal-content {
        width: 95%;
        padding: 25px 18px;
        margin: 15px;
    }
    
    .np-modal-title {
        font-size: 1rem;
    }
    
    .np-modal-price span {
        font-size: 1.4rem;
    }
}

/* VERY SMALL 360px */
@media (max-width: 360px) {
    .np-title {
        font-size: 0.8rem;
    }
    
    .np-stat-value {
        font-size: 1rem;
    }
    
    .np-cta-btn {
        font-size: 0.75rem;
        padding: 12px 15px;
    }
}

/* LANDSCAPE */
@media (max-width: 768px) and (orientation: landscape) {
    .network-pulse {
        padding-bottom: 80px;
    }
    
    .np-map-container {
        display: none !important;
    }
    
    .np-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
}

/* === PROMO BONUSES === */
.np-promo {
    text-align: center;
    margin-bottom: 20px;
}

.np-promo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.np-promo-speed {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--np-cyan);
    text-shadow: var(--np-glow-cyan);
}

.np-promo-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--np-orange);
    text-shadow: var(--np-glow-orange);
}

.np-promo-bonuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.np-promo-bonus {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
}

.np-promo-bonus strong {
    color: var(--np-cyan);
}

.np-promo-bonus--gift {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.3);
}

.np-promo-bonus--gift strong {
    color: var(--np-orange);
}

/* Mobile promo */
@media (max-width: 480px) {
    .np-promo-main {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .np-promo-speed,
    .np-promo-price {
        font-size: 1.3rem;
    }
    
    .np-promo-bonuses {
        flex-direction: column;
        gap: 6px;
    }
    
    .np-promo-bonus {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* === УВЕЛИЧЕННЫЕ ШРИФТЫ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 480px) {
    /* Promo - увеличено в 2 раза */
    .np-promo-speed,
    .np-promo-price {
        font-size: 1.6rem !important;
    }
    
    .np-promo-bonus {
        font-size: 0.9rem !important;
        padding: 10px 14px !important;
    }
    
    /* Stats labels - увеличено в 2 раза */
    .np-stat-label {
        font-size: 0.55rem !important;
    }
    
    .np-stat-value {
        font-size: 1.3rem !important;
    }
    
    /* Backbone providers - увеличено */
    .np-backbone {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }
    
    /* Title/subtitle */
    .np-title {
        font-size: 1.1rem !important;
    }
    
    .np-subtitle {
        font-size: 0.7rem !important;
    }
    
    /* CTA button */
    .np-cta-btn {
        font-size: 1rem !important;
        padding: 16px 24px !important;
    }
}
