/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    padding: 24px;
    display: none;
    animation: cookieSlideUp 0.4s ease;
}

.cookie-consent.active {
    display: block;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cookie-consent-text p {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: #4d9eff;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #7db3ff;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #1f86ff 0%, #4d9eff 50%, #7db3ff 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(30, 115, 190, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 115, 190, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: #4d9eff;
    border: none;
    padding: 12px 16px;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #7db3ff;
}

/* Cookie Settings Panel */
.cookie-settings {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings.active {
    display: block;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cookie-category-info p {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
    margin-top: 2px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #1f86ff;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-save-btn {
    margin-top: 16px;
}

/* Privacy checkbox in forms */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1f86ff;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-checkbox label {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-checkbox label a {
    color: #4d9eff;
    text-decoration: underline;
}

.privacy-checkbox label a:hover {
    color: #7db3ff;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px 16px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
        min-width: 120px;
    }
}
