/* ==========================================================================
   CryptoSphere Official Cookie Consent & Compliance Stylesheet
   Modern 2026 Liquid Glass & Cyberpunk Aesthetic
   ========================================================================== */

.cs-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 1180px;
    margin: 0 auto;
    z-index: 99999;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 240, 255, 0.12);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
}

.cs-cookie-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cs-cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
}

.cs-cookie-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 255, 168, 0.15));
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.cs-cookie-text {
    flex: 1;
}

.cs-cookie-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-cookie-title .badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00F0FF;
}

.cs-cookie-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.cs-cookie-desc a {
    color: #00F0FF;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.cs-cookie-desc a:hover {
    color: #00FFA8;
}

.cs-cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-btn-cookie {
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.cs-btn-accept-all {
    background: linear-gradient(135deg, #00F0FF, #00FFA8);
    color: #030712;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.28);
}

.cs-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 240, 255, 0.45);
}

.cs-btn-necessary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cs-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
    padding: 10px 14px;
}

.cs-btn-settings:hover {
    color: #00F0FF;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   Cookie Preferences Modal
   ========================================================================== */

.cs-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cs-cookie-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cs-cookie-modal {
    background: #0d1326;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
    overflow: hidden;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f1f5f9;
}

.cs-cookie-modal-backdrop.open .cs-cookie-modal {
    transform: scale(1) translateY(0);
}

.cs-cookie-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cs-cookie-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.cs-cookie-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.cs-cookie-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cs-cookie-modal-body {
    padding: 24px 28px;
    max-height: 60vh;
    overflow-y: auto;
}

.cs-cookie-category {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.cs-cookie-category:hover {
    border-color: rgba(0, 240, 255, 0.2);
}

.cs-cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cs-cookie-cat-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-cookie-cat-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* Switch Toggle Styling */
.cs-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cs-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cs-switch input:checked + .cs-switch-slider {
    background: linear-gradient(135deg, #00F0FF, #00FFA8);
    border-color: transparent;
}

.cs-switch input:checked + .cs-switch-slider:before {
    transform: translateX(20px);
    background-color: #030712;
}

.cs-switch input:disabled + .cs-switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cs-cookie-modal-footer {
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .cs-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 18px 20px;
        gap: 18px;
    }
    .cs-cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cs-btn-cookie {
        flex: 1;
    }
    .cs-btn-settings {
        width: 100%;
    }
}
