.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.no-scroll {
    overflow: hidden;
}

.navbar.disabled {
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-modal .modal-content {
    background-color: #1f2933;
    color: #fff;
    border-radius: 15px;
    padding: 20px;
}

.settings-content {
    background-color: #0f1720;
    color: #fff;
    border-radius: 20px;
    padding: 18px;
}

.settings-body {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 10px;
}

.settings-body::-webkit-scrollbar {
    width: 8px;
}

.settings-body::-webkit-scrollbar-track {
    background: #071019;
    border-radius: 10px;
}

.settings-body::-webkit-scrollbar-thumb {
    background: #2f4150;
    border-radius: 10px;
}

.settings-body::-webkit-scrollbar-thumb:hover {
    background: #4c6277;
}

.cookie-block {
    border-bottom: 1px solid #223242;
    padding: 14px 0;
}

.block-header {
    cursor: default;
}

.block-header .title,
.cookie-block .title {
    font-weight: 600;
    color: #e6eef7;
    font-size: 1rem;
}

.toggle-btn {
    background: none;
    border: 1px solid #2f567a;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background .15s, color .15s;
    cursor: pointer;
}

.toggle-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease, opacity 200ms ease;
    opacity: 0;
}

.panel.cookie_expanded {
    opacity: 1;
    max-height: 360px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    vertical-align: middle;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #263746;
    transition: .25s;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2.7px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

input:checked+.slider {
    background-color: #2b9cff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.02);
}

input:checked+.slider:before {
    transform: translateX(20px);
}


.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding-bottom: 6px;
}

.btn-customize {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: transparent;
}

.cookie-modal .btn-customize {
    border-color: #fff;
}

.btn-customize:hover,
.cookie-modal .btn-customize:hover {
    color: #000;
    background: #fff;
}

.btn-accept {
    background-color: #0045E6;
    color: white;
    border: none;
}

.btn-close-white {
    filter: invert(1) brightness(1.8);
    opacity: .9;
}

.reopen-btn {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 1080;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(8, 18, 28, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #0b1220;
}

.reopen-btn .dot {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2b9cff, #33d17a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(43, 156, 255, .18);
}

.cookie-settings-modal h3,
.cookie-modal h3 {
    font-size: 1.4rem;
}

.cookie-settings-modal h5 {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .modal-dialog.modal-lg {
        max-width: 92%;
        margin: 1.5rem;
    }

    .settings-body {
        max-height: 340px;
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.language-switcher form {
    margin: 0;
    padding: 0;
    line-height: 1;
}

button.lang-link {
    all: unset;
    display: inline;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

button.lang-link:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

button.lang-link:active {
    transform: translateY(0);
}

button.lang-link.active {
    color: #2b9cff;
    font-weight: 700;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    font-weight: 300;
}

@media (max-width: 480px) {
    .language-switcher {
        font-size: 0.85rem;
        gap: 6px;
    }

    button.lang-link {
        font-size: 0.85rem;
    }
}
