/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f141e;
    /* Dark theme matching */
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    border-top: 1px solid #2a3b55;
    display: flex;
    justify-content: center;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #fff;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #a0aab9;
    line-height: 1.5;
}

.cookie-text a {
    color: #4da6ff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.c-btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.c-btn-accept {
    background-color: #0066ff;
    color: #fff;
}

.c-btn-accept:hover {
    background-color: #0055dd;
}

.c-btn-reject {
    background-color: transparent;
    border: 1px solid #4a5b75;
    color: #fff;
}

.c-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.c-btn-settings {
    background-color: transparent;
    color: #a0aab9;
    padding: 10px;
    text-decoration: underline;
}

.c-btn-settings:hover {
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.visible {
    display: flex;
    opacity: 1;
}

.cookie-modal-content {
    background: #1a212d;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #2a3b55;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a3b55;
    padding-bottom: 15px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.cookie-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.cookie-close:hover {
    color: #fff;
}

.cookie-options {
    margin-bottom: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #2a3b55;
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #fff;
}

.option-info p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3b4252;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0066ff;
}

input:focus+.slider {
    box-shadow: 0 0 1px #0066ff;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

input:disabled+.slider {
    background-color: #2a3b55;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a3b55;
}

@media (max-width: 600px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }

    .c-btn {
        flex: 1;
        text-align: center;
    }

    .c-btn-settings {
        flex-basis: 100%;
        text-align: center;
        order: 3;
    }
}