@font-face {
    font-family: 'ALS Sector';
    src: url('ALS_Sector-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ALS Sector';
    src: url('ALS_Sector-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ALS Sector Stencil';
    src: url('ALS_Sector-Stencil.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #1A1A19;
    --mstu-blue: #006CDC;
    --mstu-yellow: #2397EA;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(26, 26, 25, 0.7);
    --border-glow: 0 0 10px rgba(0, 108, 220, 0.4);
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'ALS Sector', sans-serif;
    overflow-x: hidden;
    cursor: crosshair;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--mstu-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

#custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--mstu-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px), (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}


.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1100;
}

.mstu-logo {
    height: 40px;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: var(--text-muted);
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--mstu-blue);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-yellow {
    background: var(--mstu-yellow);
    color: var(--bg-color);
}

.btn-yellow:hover {
    background: #ffd700;
    box-shadow: 0 0 15px rgba(234, 195, 27, 0.5);
}

.btn-blue {
    background: var(--mstu-blue);
    color: var(--text-white);
}

.btn-blue:hover {
    box-shadow: 0 0 20px rgba(0, 108, 220, 0.6);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

#map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.coordinate-tracker {
    font-family: 'Courier New', monospace;
    color: var(--mstu-blue);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.coordinate-tracker .label {
    opacity: 0.5;
}

.glitch-text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-labels {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.label-item {
    background: rgba(0, 108, 220, 0.2);
    border-left: 3px solid var(--mstu-blue);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-family: monospace;
}

.b-box {
    position: relative;
    border: 1px solid rgba(0, 108, 220, 0.3);
    transition: all 0.3s ease;
}

.b-box:hover {
    border-color: var(--mstu-blue);
    box-shadow: var(--border-glow);
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--mstu-blue);
}

.node.tl { top: -3px; left: -3px; }
.node.tr { top: -3px; right: -3px; }
.node.bl { bottom: -3px; left: -3px; }
.node.br { bottom: -3px; right: -3px; }

.bento-section {
    padding: 80px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
}

.bento-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--mstu-blue);
}

.bento-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-medium {
    grid-column: span 2;
}

.item-small {
    grid-column: span 1;
}

.item-full {
    grid-column: span 4;
}

.accent-blue { background: rgba(0, 108, 220, 0.05); }
.accent-yellow { background: rgba(234, 195, 27, 0.05); }

.section-divider {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0.5;
}

.divider-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, var(--mstu-blue), transparent);
}

.decor-block {
    overflow: hidden;
    background: rgba(0, 108, 220, 0.05) !important;
    position: relative;
    min-height: 250px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-scanner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mstu-blue), transparent);
    box-shadow: 0 0 15px var(--mstu-blue);
    z-index: 5;
    animation: scan 4s linear infinite;
}

.scanner-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 108, 220, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
}

.scanner-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.target-box {
    width: 120px;
    height: 120px;
    max-width: 40vw;
    max-height: 40vw;
    border: 1px solid rgba(0, 108, 220, 0.5);
    position: relative;
    animation: pulse-target 2s ease-in-out infinite;
}

.target-box::before, .target-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mstu-blue);
}

.target-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.target-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.scanner-text {
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 2px;
    border-left: 2px solid var(--mstu-blue);
    max-width: 100%;
    text-align: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
}

.text-cmd {
    color: var(--text-white);
    font-weight: bold;
    white-space: nowrap;
}

.text-data {
    color: var(--mstu-blue);
    opacity: 0.8;
    white-space: nowrap;
}

@keyframes scan {
    0% { top: -5%; }
    100% { top: 105%; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulse-target {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

.form-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(0, 108, 220, 0.1) 0%, transparent 70%);
}

.glass-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 50px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.career-path {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 108, 220, 0.05);
    border-radius: 4px;
    border-left: 2px solid var(--mstu-blue);
    flex-wrap: wrap;
}

.career-path li {
    list-style: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-color);
    position: relative;
}

footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 1200px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-mini-logo {
    height: 45px;
    width: auto;
    filter: brightness(0.9);
}

.footer-status {
    font-family: monospace;
}

.online {
    color: #00ff00;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-full {
        grid-column: span 2;
    }
    .career-path {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .burger-menu {
        display: flex;
    }

    .glass-header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }

    .glass-header nav.active {
        display: flex;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding-top: 120px;
    }

    .hero-labels {
        position: static;
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        width: 100%;
    }

    .label-item {
        width: fit-content;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-item, .item-large, .item-medium, .item-small, .item-full {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto;
        padding: 25px;
    }

    .glitch-text {
        font-size: 2.2rem;
    }

    .career-path {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
    }

    .glass-form-container {
        width: 100%;
        padding: 25px 15px;
    }

    footer {
        padding: 40px 0;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 15px;
    }

    .footer-mini-logo {
        height: 60px;
    }

    .footer-status {
        margin-top: 10px;
    }
}

/* Стили для системы бронирования */
.workspace-zone { cursor: pointer; }

.workspace-zone .desk-rect {
    fill: rgba(0, 108, 220, 0.1);
    stroke: rgba(0, 108, 220, 0.4);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.workspace-zone:hover .desk-rect {
    fill: rgba(0, 108, 220, 0.25);
    stroke: var(--mstu-blue);
    filter: drop-shadow(0 0 5px var(--mstu-blue));
}

.workspace-zone.selected .desk-rect {
    fill: rgba(35, 151, 234, 0.3);
    stroke: var(--mstu-yellow);
    filter: drop-shadow(0 0 10px var(--mstu-yellow));
}

.zone-label {
    fill: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
    pointer-events: none;
}

.workspace-zone:hover .zone-label,
.workspace-zone.selected .zone-label {
    fill: var(--text-white);
    font-weight: bold;
}

.time-slots-grid {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slots-grid::-webkit-scrollbar {
    width: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb {
    background: var(--mstu-blue);
    border-radius: 2px;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 108, 220, 0.3);
    color: var(--text-muted);
    padding: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--mstu-blue);
    color: var(--text-white);
    background: rgba(0, 108, 220, 0.1);
}

.time-slot-btn.selected {
    background: rgba(0, 108, 220, 0.2);
    border-color: var(--mstu-yellow);
    color: var(--mstu-yellow);
    box-shadow: 0 0 10px rgba(234, 195, 27, 0.2);
}

#submit-booking:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

.booking-status {
    border-left: 2px solid var(--mstu-blue);
}

@media (max-width: 992px) {
    .booking-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Custom Responsible Checkbox Styling */
.responsible-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 25px;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'ALS Sector', sans-serif;
    transition: color 0.2s ease;
}

.responsible-checkbox-container:hover {
    color: var(--text-muted);
}

.responsible-checkbox-container input[type="checkbox"] {
    display: none;
}

.responsible-custom-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--mstu-blue);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.responsible-checkbox-container input[type="checkbox"]:checked + .responsible-custom-box {
    background: var(--mstu-blue);
    border-color: var(--mstu-yellow);
    box-shadow: 0 0 10px rgba(0, 108, 220, 0.6);
}

.responsible-checkbox-container input[type="checkbox"]:checked + .responsible-custom-box::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Responsible Weekly Schedule Panel */
.responsible-panel {
    transition: all 0.3s ease-in-out;
}

.responsible-panel.active {
    display: block !important;
    animation: fadeIn 0.4s ease-out;
}

.responsible-week-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.week-toggle-btn {
    flex: 1;
    background: rgba(26, 26, 25, 0.8);
    border: 1px solid rgba(0, 108, 220, 0.3);
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 0.78rem;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'ALS Sector', sans-serif;
}

.week-toggle-btn:hover {
    border-color: var(--mstu-yellow);
    color: var(--mstu-yellow);
}

.week-toggle-btn.active {
    background: var(--mstu-blue);
    border-color: var(--mstu-yellow);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 108, 220, 0.6);
    font-weight: bold;
}

.responsible-day-date {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: normal;
    letter-spacing: 0;
    margin-top: 4px;
    font-family: monospace;
}

.responsible-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
}

.responsible-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.responsible-day-header {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--mstu-yellow);
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 108, 220, 0.3);
    font-family: 'ALS Sector', sans-serif;
}

.responsible-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.responsible-slots::-webkit-scrollbar {
    width: 4px;
}

.responsible-slots::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.responsible-slots::-webkit-scrollbar-thumb {
    background: rgba(0, 108, 220, 0.5);
    border-radius: 2px;
}

.resp-slot-btn {
    background: rgba(26, 26, 25, 0.8);
    border: 1px solid rgba(0, 108, 220, 0.3);
    color: var(--text-white);
    padding: 6px 4px;
    font-size: 0.72rem;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: monospace;
    flex-shrink: 0;
}

.resp-slot-btn:hover {
    border-color: var(--mstu-yellow);
    background: rgba(0, 108, 220, 0.2);
    color: var(--mstu-yellow);
}

.resp-slot-btn.selected {
    background: var(--mstu-blue) !important;
    border-color: var(--mstu-yellow) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 108, 220, 0.6);
    font-weight: bold;
}

.resp-slot-btn:disabled,
.resp-slot-btn.disabled-past,
.resp-slot-btn.occupied {
    background: rgba(220, 53, 69, 0.25) !important;
    border-color: rgba(220, 53, 69, 0.6) !important;
    color: #ff6b6b !important;
    cursor: not-allowed !important;
    opacity: 0.75;
    text-decoration: line-through;
}

.responsible-col.past-day {
    opacity: 0.6;
    border-color: rgba(220, 53, 69, 0.4) !important;
    background: rgba(220, 53, 69, 0.08) !important;
}

.responsible-col.past-day .responsible-day-header {
    color: #ff6b6b !important;
}

@media (max-width: 992px) {
    .responsible-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .responsible-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .responsible-col {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* Map Zoom Popup Modal */
.map-zoom-btn {
    box-shadow: 0 0 12px rgba(0, 108, 220, 0.4);
    transition: all 0.2s ease;
}

.map-zoom-btn:hover {
    box-shadow: 0 0 18px rgba(0, 108, 220, 0.7);
    transform: translateY(-2px);
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.map-modal.active {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--bg-color);
    border: 1px solid var(--mstu-blue);
    box-shadow: 0 0 30px rgba(0, 108, 220, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 108, 220, 0.3);
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: 1.5px;
}

.map-modal-close-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.map-modal-close-icon:hover {
    color: var(--mstu-yellow);
}

.map-modal-body {
    padding: 20px;
    overflow: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    touch-action: pan-x pan-y;
}

.modal-map-wrapper {
    width: 100%;
    min-width: 700px;
}

.modal-map-wrapper svg {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

.map-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 108, 220, 0.3);
}

@media (max-width: 768px) {
    .map-modal-container {
        max-height: 95vh;
    }
    .map-modal-header h3 {
        font-size: 0.9rem;
    }
    .modal-map-wrapper {
        min-width: 600px;
    }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 50px);
}

.toast {
    pointer-events: auto;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--mstu-blue);
    border-left: 4px solid var(--mstu-blue);
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: 4px;
    font-family: 'ALS Sector', sans-serif;
    font-size: 0.85rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 108, 220, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.toast.toast-hide {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

.toast-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

.toast-success {
    border-color: rgba(0, 255, 136, 0.4);
    border-left-color: #00ff88;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 136, 0.2);
}
.toast-success .toast-icon { color: #00ff88; }

.toast-error {
    border-color: rgba(255, 68, 68, 0.4);
    border-left-color: #ff4444;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 68, 68, 0.2);
}
.toast-error .toast-icon { color: #ff4444; }

.toast-warning {
    border-color: rgba(255, 184, 0, 0.4);
    border-left-color: var(--mstu-yellow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 184, 0, 0.2);
}
.toast-warning .toast-icon { color: var(--mstu-yellow); }

.toast-info {
    border-color: rgba(0, 108, 220, 0.4);
    border-left-color: var(--mstu-blue);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 108, 220, 0.3);
}
.toast-info .toast-icon { color: var(--mstu-blue); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.toast-close:hover {
    color: var(--text-white);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(50px) scale(0.9); }
}

/* --- FILTER TABS --- */
.filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 108, 220, 0.3);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-family: 'ALS Sector', monospace;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--mstu-yellow);
    color: var(--mstu-yellow);
    background: rgba(0, 108, 220, 0.15);
}

.filter-btn.active {
    background: var(--mstu-blue) !important;
    border-color: var(--mstu-yellow) !important;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 108, 220, 0.5);
}




