:root {
    /* Основная палитра */
    --coint-primary: #0a0f2e; /* Глубокий космический синий */
    --coint-secondary: #1a237e; /* Панельный синий */
    --coint-accent: #ff6d00; /* Оранжевый индикатор (как лампочки) */
    --coint-accent-secondary: #ffab00; /* Жёлтый сигнальный */
    --coint-metal: #37474f; /* Цвет металлических поверхностей */
    --coint-metal-light: #546e7a; /* Светлый металл */
    --coint-glow: rgba(255, 109, 0, 0.7); /* Свечение индикаторов */
    --coint-grid: rgba(26, 35, 126, 0.3); /* Сетка панелей */
    --coint-darker: #050a1c;
    
    /* Градиенты для металлических поверхностей */
    --coint-gradient-metal: linear-gradient(135deg, 
        #263238 0%, 
        #37474f 50%, 
        #455a64 100%);
    --coint-gradient-panel: linear-gradient(135deg, 
        rgba(10, 15, 46, 0.9) 0%, 
        rgba(26, 35, 126, 0.8) 100%);
    --coint-gradient-accent: linear-gradient(135deg, 
        rgba(255, 109, 0, 100%) 0%, 
        rgba(255, 171, 0, 100%) 100%);
}

[data-bs-theme="dark"] {
    --bs-body-bg: #050a1c;
    --bs-body-color: #e8eaf6;
    --bs-primary: #ff6d00;
    --bs-secondary: #1a237e;
    --bs-border-color: #37474f;
}


a {
    text-decoration: none;
}

p, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
body {
    background: 
        radial-gradient(circle at 20% 30%, rgba(26, 35, 126, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(10, 15, 46, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #050a1c 0%, #0a0f2e 100%);
    font-family: 'Roboto Mono', 'Segoe UI', monospace;
    padding-top: 76px;
    position: relative;
    overflow-x: hidden;
}

/* Фоновый эффект сетки*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--coint-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--coint-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* ===== НАВИГАЦИЯ===== */
.coint-navbar {
    background-image: url(http://coint.devlab-x.ru/assets/themes/coint/images/BG.png?v1.2.8);
/*    background-size: cover;*/
    background-repeat: repeat;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--coint-accent);
    box-shadow: 0 5px 20px rgba(255, 109, 0, 0.2);
    transition: all 0.3s;
    background-position: center;
}

.coint-navbar.scrolled {
    border-bottom-width: 2px;
    box-shadow: 0 3px 15px rgba(255, 109, 0, 0.15);
}

.nav-link {
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-size: 18px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 109, 0, 0.1);
    border-color: var(--coint-accent);
    color: #E4D00A !important;
    text-shadow: 0 0 10px var(--coint-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--coint-gradient-accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.coint-logo-text {
    
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, rgb(0, 176, 180) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== ГЕРОЙ СЕКЦИЯ - КОМАНДНЫЙ МОСТ ===== */
.coint-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--coint-accent);
}


.coint-title {
    
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, rgb(0, 176, 180) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* ===== КАРТОЧКИ - ПАНЕЛИ УПРАВЛЕНИЯ ===== */
.server-card, .news-card, .feature-card {
    background: var(--coint-gradient-panel);
    border: 2px solid var(--coint-metal);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.server-card:hover, .news-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--coint-accent);
    box-shadow: 
        0 15px 30px rgba(255, 109, 0, 0.2),
        0 0 30px rgba(255, 109, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.server-icon {
    width: 80px;
    height: 80px;
    background: var(--coint-gradient-metal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--coint-accent);
    box-shadow: 
        0 0 20px var(--coint-glow),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.server-icon i {
    font-size: 2.5rem;
    color: var(--coint-accent-secondary);
    filter: drop-shadow(0 0 10px var(--coint-glow));
}

/* ===== КНОПКИ - ПЕРЕКЛЮЧАТЕЛИ ===== */
.coint-btn, .btn-primary, .btn-outline-primary, .bg-primary {
    background-color: rgba(255, 109, 0, 0.1) !important;
    border-color: var(--coint-accent);
    color: #E4D00A !important;
    text-shadow: 0 0 10px var(--coint-glow);
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    font-family: 'Roboto Mono', monospace;
    border-width: 2px;
    padding: 0.5rem;
}

.coint-btn::before, .btn-primary::before, .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

        background: var(--coint-gradient-accent);
    transition: all 0.3s;
    transform: translateX(0%);
}

.coint-btn:hover::before, .btn-primary:hover::before, .btn-outline-primary:hover::before {
    left: 100%;
}

.coint-btn:hover, .btn-primary:hover, .btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 109, 0, 0.4),
        0 0 30px rgba(255, 171, 0, 0.3);
    border-color: var(--coint-accent-secondary);
}

/* ===== ИНДИКАТОРЫ СТАТУСА ===== */
.badge {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-success {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50;
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.badge.bg-danger {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: #f44336;
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* ===== ПРОГРЕСС БАРЫ - ШКАЛЫ ПРИБОРОВ ===== */
.progress {
    background: var(--coint-gradient-metal);
    border: 1px solid var(--coint-metal-light);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    background: var(--coint-gradient-accent);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ФОРМЫ - ИНТЕРФЕЙС ВВОДА ===== */
.form-control.bg-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid var(--coint-metal);
    color: var(--coint-accent-secondary);
    font-family: 'Roboto Mono', monospace;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control.bg-dark:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--coint-accent);
    box-shadow: 
        0 0 0 0.25rem rgba(255, 109, 0, 0.25),
        0 0 20px var(--coint-glow);
    color: #fff;
}

.input-group-text {
    background: var(--coint-gradient-metal);
    border: 2px solid var(--coint-metal);
    border-right: none;
    color: var(--coint-accent);
    font-weight: 700;
}

/* ===== СЕКЦИИ С КОНТУРАМИ ===== */
.section-title {
    
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--coint-gradient-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--coint-glow);
}

.page-header {
    background: none;
    border-bottom: 3px solid var(--coint-accent);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 109, 0, 0.1) 50%, 
        transparent 100%);
    animation: headerGlow 3s infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
/* Шестерёнки в углах */
.decorative-gear {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.decorative-gear:nth-child(1) { top: 10%; left: 5%; }
.decorative-gear:nth-child(2) { top: 20%; right: 10%; }
.decorative-gear:nth-child(3) { bottom: 15%; left: 8%; }
.decorative-gear:nth-child(4) { bottom: 25%; right: 5%; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Технические линии */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent, 
        var(--coint-accent), 
        transparent);
    height: 1px;
    opacity: 0.3;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--coint-darker);
    border-top: 3px solid var(--coint-accent);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--coint-accent-secondary), 
        transparent);
    box-shadow: 0 0 20px var(--coint-glow);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .coint-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .server-card:hover {
        transform: translateY(-5px);
    }
}

/* ===== АНИМАЦИИ ДЛЯ ИНТЕРАКТИВА ===== */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px var(--coint-glow); }
    50% { box-shadow: 0 0 20px var(--coint-glow); }
}

.server-card:hover .server-icon {
    animation: pulseGlow 1s infinite;
}

/* Эффект "загрузки данных" */
.loading-bar {
    height: 4px;
    background: linear-gradient(90deg, 
        var(--coint-accent), 
        var(--coint-accent-secondary));
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== СПЕЦИАЛЬНЫЕ КЛАССЫ ДЛЯ ДИНАМИКИ ===== */
.tech-panel {
    background: var(--coint-gradient-panel);
    border: 2px solid var(--coint-glow);
    box-shadow: 0 0 10px var(--coint-glow) !important;
    border-radius: 6px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--coint-gradient-accent);
}

.led-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--coint-accent);
    box-shadow: 0 0 10px var(--coint-glow);
    animation: ledPulse 2s infinite;
}

.led-indicator.online { background: #4caf50; }
.led-indicator.offline { background: #f44336; }
.led-indicator.warning { background: #ff9800; }

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Стили для кода/мониторов */
.code-display {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--coint-accent);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--coint-accent-secondary);
    overflow-x: auto;
    position: relative;
}



.border-primary, .server-card, .news-card, .feature-card, .border-success {
    box-shadow: 0 0 10px var(--coint-glow) !important;
    border-color: var(--coint-glow) !important;
}

.bg-dark {
    background: var(--coint-gradient-panel);
        border-radius: 12px;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    padding-left: 16px;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.1);
    animation: zoomEffect 20s linear infinite;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(5, 10, 28, 0.85) 0%,
        rgba(26, 35, 126, 0.6) 50%,
        rgba(55, 71, 79, 0.4) 100%);
}

@keyframes zoomEffect {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Эффект голографического дисплея */
.coint-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255, 109, 0, 0.1) 50%),
        linear-gradient(transparent 50%, rgba(255, 171, 0, 0.1) 50%);
    background-size: 100px 100px;
    opacity: 0.05;
    animation: scanLines 10s linear infinite;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(5, 10, 28, 0.4) 0%,
        rgba(26, 35, 126, 0.2) 50%,
        rgba(55, 71, 79, 0.1) 100%);
    z-index: 1;
}

/* Навигация карусели */
.hero-bg-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.hero-bg-prev,
.hero-bg-next {
    background: rgba(255, 109, 0, 0.2);
    border: 2px solid var(--coint-accent);
    color: var(--coint-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.hero-bg-prev:hover,
.hero-bg-next:hover {
    background: var(--coint-accent);
    color: white;
    box-shadow: 0 0 15px var(--coint-glow);
    transform: scale(1.1);
}

.hero-bg-dots {
    display: flex;
    gap: 10px;
}

.hero-bg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.hero-bg-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.hero-bg-dot:hover {
    background: var(--coint-accent);
    transform: scale(1.2);
}

.hero-bg-dot.active {
    background: var(--coint-accent);
    box-shadow: 0 0 10px var(--coint-glow);
}

.hero-bg-dot.active::before {
    border-color: var(--coint-accent);
}

/* Контент героя поверх карусели */
.hero-content {
    position: relative;
    z-index: 2;
}

.social-link2 {
    color: #fff;
    font-size: 32px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-bg-nav {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero-bg-prev,
    .hero-bg-next {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .hero-bg-dot {
        width: 10px;
        height: 10px;
    }
}

/* Анимация смены фона */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%) scale(1.1);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1.1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(1.1);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1.1);
        opacity: 1;
    }
}

.hero-bg-slide.slide-left {
    animation: slideInLeft 1.5s ease-out;
}

.hero-bg-slide.slide-right {
    animation: slideInRight 1.5s ease-out;
}

/* ===== ФОН ВСЕГО САЙТА ===== */
.site-backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.site-bg-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.site-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.4) contrast(1.1);
    transform: scale(1.1);
    animation: siteBgZoomEffect 30s linear infinite;
}

.site-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.site-bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(5, 10, 28, 0.9) 0%,
        rgba(26, 35, 126, 0.7) 50%,
        rgba(55, 71, 79, 0.5) 100%);
}

@keyframes siteBgZoomEffect {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.site-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(5, 10, 28, 0.1) 0%,
        rgba(26, 35, 126, 0.1) 50%,
        rgba(55, 71, 79, 0.1) 100%);
    z-index: 1;
}


/* Эффект голографического дисплея для всего фона */
.site-backgrounds::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255, 109, 0, 0.05) 50%),
        linear-gradient(transparent 50%, rgba(255, 171, 0, 0.05) 50%);
    background-size: 200px 200px;
    opacity: 0.03;
    animation: siteScanLines 15s linear infinite;
    z-index: 2;
}

@keyframes siteScanLines {
    0% { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

/* Убираем старый фон body */
body {
    background: transparent !important;
    font-family: 'Roboto Mono', 'Segoe UI', monospace;
    padding-top: 76px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Убираем сетку если она мешает */
body::before {
    display: none;
}

.btn.show {
    border-color: transparent;
}