:root {
    --bg-gradient-start: #0a0f1c;
    --bg-gradient-end: #03060c;
    --text-primary: #e3f2fd;
    --text-secondary: #cdd9ff;
    --card-inform: #0a0f1c;
    --card-bg: rgba(10, 20, 30, 0.6);
    --card-header: rgba(163, 0, 0, 0.9);
    --navbar-bg: rgba(3, 6, 12, 0.6);
    --stats-bg: rgba(0, 20, 30, 0.5);
    --border-color: rgba(163, 0, 0, 0.3);
    --badge-bg: #1e2a3a;
    --footer-border: rgba(163, 0, 0, 0.2);
    --btn-cyber-bg: rgba(16, 32, 48, 0.7);
    --glitch-red: rgba(255,0,0,0.4);
    --glitch-green: rgba(0,255,0,0.3);
}
[data-theme="light"] {
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-end: #d7d7d7;
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --card-inform:;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-header: rgba(0, 136, 204, 1);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --stats-bg: rgba(200, 220, 240, 0.7);
    --border-color: rgba(0, 100, 150, 0.3);
    --badge-bg: #e2e8f0;
    --footer-border: rgba(0, 100, 150, 0.2);
    --btn-cyber-bg: rgba(200, 220, 240, 0.8);
    --glitch-red: rgba(200, 50, 50, 0.2);
    --glitch-green: rgba(50, 150, 50, 0.2);
}
html {
  font-size: 14px;
}
* {
    font-family: Science Gothic;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--navbar-bg);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-primary) !important;
    transition: 0.3s;
    font-weight: 500;
    opacity: 0.8;
}
    .nav-link:hover {
        color: #c40000 !important;
        text-shadow: 0 0 4px #c40000;
    }


[data-theme="light"] .nav-link:hover {
    color: #0088cc !important;
    text-shadow: 0 0 4px #0088cc;
}
label{
    color: white;
}
[data-theme="light"]
label {
    color: black;
}
.card-body {
    background: var(--badge-bg) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s !important;
    color: var(--text-primary) !important;
}

.card-header {
    background: var(--card-header) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s !important;
    color: var(--text-primary) !important;
}
.card {
    border: 1px solid #c40000;
}
[data-theme="light"]
.card {
    border: 1px solid rgb(0, 136, 204);
}
.stat-cardl {
    background: var(--card-header) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s !important;
    color: var(--text-primary) !important;
}
.stat-cardlow {
    background: var(--card-inform) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s !important;
    color: var(--text-primary) !important;
}
.navbar-brand {
    color: var(--text-primary) !important;
    transition: 0.3s;
    font-weight: 500;
    opacity: 0.8;
}
    .navbar-brand:hover {
        color: #c40000 !important;
        text-shadow: 0 0 4px #c40000;
    }
[data-theme="light"] .navbar-brand:hover {
    color: #0088cc !important;
    text-shadow: 0 0 4px #0088cc;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    background: var(--bg-gradient-end);
}


body {
    background: radial-gradient(circle at 20% 30%, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;

}
.border-info {
    border-color: #c40000 !important;
}
[data-theme="light"] .border-info {
    border-color: #0088cc !important;
}
.text-info {
    color: #c40000 !important;
}
[data-theme="light"] .text-info {
    color: #0088cc !important;
}
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .cyber-bg {
    opacity: 0.15;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}
.glitch {
    font-size: 3.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 var(--glitch-red), -0.05em -0.025em 0 var(--glitch-green);
    animation: glitch-shake 0.3s infinite alternate;
}
@keyframes glitch-shake {
    0% {
        transform: translate(0);
    }

    100% {
        transform: translate(-1px, 1px);
    }
}
.navbar-toggler {
    border-color: #c40000 !important;
    
}
[data-theme="light"] .navbar-toggler {
    border-color: rgba(0, 136, 204, 1) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(196, 0, 0, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 136, 204, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.btn-cyber {
    padding: 0.8rem 2rem !important;
    font-weight: bold;
    background: var(--btn-cyber-bg);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    color: #c40000;
    border: 1px solid #c40000;
    transition: 0.2s;
}
[data-theme="light"] .btn-cyber {
    padding: 0.8rem 2rem;
    font-weight: bold;
    background: var(--btn-cyber-bg);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    color: rgb(0, 136, 204);
    border: 1px solid rgb(0, 136, 204);
    transition: 0.2s;
}
[data-theme="light"] .btn-cyber:hover{
    color: #0a0f1c;
}
.btn-cyber-primary {
    background: #a30000;
    color: #0a0f1c;
    border: none;
    box-shadow: 0 0 12px #a30000;
}

    .btn-cyber-primary:hover {
        background: #c40000;
        box-shadow: 0 0 22px #c40000;
        transform: scale(1.02);
    }
[data-theme="light"] .btn-cyber-primary {
    background: rgb(0, 136, 204);
    color: #f0f4f8;
    border: none;
    box-shadow: 0 0 12px #0066cc;
}
    [data-theme="light"].btn-cyber-primary:hover {
        background: #0066cc;
        box-shadow: 0 0 22px #0066cc;
        transform: scale(1.02);
    }
.btn-cyber-outline:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

[data-theme="light"] .btn-cyber-outline:hover {
    background: rgba(0, 150, 200, 0.15);
}

/* Карточки с фоном */
.card-cyber {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s;
    height: 100%;
    color: var(--text-primary);
}

    .card-cyber:hover {
        border-color: #c40000;
        transform: translateY(-8px);
        box-shadow: 0 10px 25px -5px rgba(0, 255, 255, 0.2);
    }
[data-theme="light"] .card-cyber:hover {
    border-color: #0ff;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(0, 255, 255, 0.2);
}
.badge-cyber {
    background: var(--badge-bg);
    color: #ff5722;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

[data-theme="light"] .badge-cyber {
    color: #0066cc;
    font-weight: 600;
}

/* Статистика */
.stats-block {
    background: var(--stats-bg);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #c40000;
    line-height: 1.2;
}

[data-theme="light"] .stat-number {
    color: #0088cc;
}

footer {
    border-top: 1px solid var(--footer-border);
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}