/* HFI Cookie Consent System - Clean Professional */

.hfi-cookie-card-professional {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 380px;
    z-index: 10000;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hfi-cookie-card-professional.hfi-show {
    transform: translateX(0);
    opacity: 1;
}

.hfi-cookie-card-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.15) 50%, 
        rgba(16, 185, 129, 0.15) 100%);
    border-radius: 24px;
    filter: blur(20px);
    opacity: 0.8;
}

.hfi-cookie-card-container {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.hfi-cookie-card-header-pro {
    padding: 24px 24px 20px 24px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(118, 75, 162, 0.03) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hfi-cookie-brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hfi-cookie-icon-pro {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hfi-cookie-icon-pro::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
}

.hfi-cookie-brand-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hfi-cookie-brand-text p {
    margin: 0;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.hfi-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ef4444;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hfi-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
}

.hfi-close-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.hfi-cookie-card-body-pro {
    padding: 24px;
}

.hfi-privacy-notice {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hfi-notice-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.hfi-notice-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.hfi-notice-content p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.hfi-cookie-categories-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hfi-category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #4a5568;
}

.hfi-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.hfi-essential-chip .hfi-chip-dot {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.hfi-analytics-chip .hfi-chip-dot {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.hfi-marketing-chip .hfi-chip-dot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.hfi-cookie-card-actions-pro {
    padding: 24px;
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hfi-action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-bottom: 16px;
}

.hfi-action-buttons-grid .hfi-btn-pro:first-child {
    grid-column: 1 / -1;
}

.hfi-btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.01em;
    min-height: 48px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hfi-btn-pro:active {
    transform: scale(0.98);
}

.hfi-btn-primary-pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 
        0 4px 16px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hfi-btn-primary-pro:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(102, 126, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hfi-btn-secondary-pro {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.hfi-btn-secondary-pro:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.hfi-btn-outline-pro {
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.hfi-btn-outline-pro:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.18);
    color: #2d3748;
    transform: translateY(-1px);
}

.hfi-btn-ghost-pro {
    background: transparent;
    color: #718096;
    border: 1px solid rgba(113, 128, 150, 0.2);
}

.hfi-btn-ghost-pro:hover {
    background: rgba(113, 128, 150, 0.06);
    border-color: rgba(113, 128, 150, 0.3);
    color: #4a5568;
}

.hfi-trust-indicators {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hfi-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hfi-trust-item svg {
    color: #10b981;
}

/* Professional Settings Modal */
.hfi-cookie-settings-professional {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hfi-settings-backdrop-pro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hfi-settings-modal-pro {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hfi-cookie-settings-professional.hfi-show .hfi-settings-modal-pro {
    transform: scale(1);
    opacity: 1;
}

.hfi-settings-header-pro {
    padding: 24px 24px 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.hfi-settings-header-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.hfi-header-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hfi-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hfi-header-text h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hfi-header-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.hfi-close-btn-pro {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hfi-close-btn-pro:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hfi-close-btn-pro:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.hfi-settings-content-pro {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.hfi-cookie-section-pro {
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.hfi-cookie-section-pro:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.hfi-cookie-section-pro:last-child {
    margin-bottom: 0;
}

.hfi-section-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hfi-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.hfi-essential-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.hfi-analytics-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.hfi-marketing-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.hfi-section-info {
    flex: 1;
}

.hfi-section-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.01em;
}

.hfi-section-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

.hfi-cookie-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hfi-detail-item {
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hfi-toggle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Professional Toggle */
.hfi-professional-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    cursor: pointer;
}

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

.hfi-toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
    border: 2px solid transparent;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hfi-toggle-thumb {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

input:checked + .hfi-essential-track {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

input:checked + .hfi-analytics-track {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

input:checked + .hfi-marketing-track {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

input:checked + .hfi-toggle-track .hfi-toggle-thumb {
    transform: translateX(26px);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

input:disabled + .hfi-toggle-track {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

input:disabled + .hfi-toggle-track .hfi-toggle-thumb {
    transform: translateX(26px);
}

.hfi-toggle-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hfi-settings-footer-pro {
    padding: 20px 24px 24px 24px;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hfi-footer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hfi-cookie-card-professional {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
    }
    
    .hfi-settings-modal-pro {
        margin: 16px;
        max-width: none;
        max-height: 90vh;
    }
    
    .hfi-action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .hfi-action-buttons-grid .hfi-btn-pro:first-child {
        grid-column: 1;
    }
    
    .hfi-footer-actions {
        flex-direction: column;
    }
    
    .hfi-section-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .hfi-toggle-section {
        align-self: flex-start;
        flex-direction: row;
        gap: 10px;
    }
    
    .hfi-settings-content-pro {
        max-height: 60vh;
    }
}

/* Scrollbar styling for modal content */
.hfi-settings-content-pro::-webkit-scrollbar {
    width: 6px;
}

.hfi-settings-content-pro::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}

.hfi-settings-content-pro::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.hfi-settings-content-pro::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}