/*
Theme Name: Security Risk Assessor Pro 2025
Description: Enterprise-grade AI security assessment platform
Version: 6.0
Author: Security Analytics Pro
*/

:root {
    /* Primary Palette - Deep Professional Blues */
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --primary-ultra-light: #e6f2ff;
    
    /* Secondary - Elegant Purple Accent */
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #a78bfa;
    
    /* Status Colors */
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0891b2;
    --info-light: #cffafe;
    
    /* Neutrals - Rich Grays */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Shadows - Elegant Depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 50px 100px -20px rgba(0, 0, 0, 0.35);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #fae8ff 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.spa-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Premium Hero Section */
.spa-modern-hero {
    text-align: center;
    padding: 6rem 1rem 5rem;
    margin-bottom: 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Floating Shield Icon */
.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(0, 102, 255, 0.3);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.hero-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    border-radius: var(--radius-2xl);
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon i {
    font-size: 3.5rem;
    color: var(--white);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Hero Typography */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Trust Badges */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.3);
}

.stat:hover::before {
    left: 100%;
}

.stat i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Premium Feature Cards */
.spa-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feature-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl), 0 0 0 4px var(--primary-ultra-light);
    transform: translateY(-8px) scale(1.02);
}

.feature-card.active::before {
    opacity: 1;
}

.feature-card.active::after {
    width: 500px;
    height: 500px;
}

.feature-card:hover:not(.active) {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 102, 255, 0.2);
    position: relative;
    z-index: 1;
}

.card-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.card-meta i {
    font-size: 1rem;
    color: var(--primary);
}

/* Premium Content Sections */
.spa-content-sections {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-200);
}

.content-section {
    display: none;
    padding: 4rem;
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 2.25rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Premium Form Inputs */
.modern-form {
    max-width: 900px;
    margin: 0 auto;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
    font-size: 1.125rem;
}

.input-group input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--gray-900);
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.input-group input:hover {
    border-color: var(--gray-300);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ultra-light), var(--shadow);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: var(--gray-400);
}

/* Premium Upload Zone */
.upload-zone {
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-2xl);
    padding: 5rem 3rem;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    margin-bottom: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.03), transparent);
    opacity: 0;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, var(--white) 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone.dragging {
    border-color: var(--primary);
    background: var(--primary-ultra-light);
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl), 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 102, 255, 0.3);
    transition: var(--transition);
}

.upload-zone:hover .upload-icon {
    transform: translateY(-10px) rotate(5deg);
}

.upload-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.upload-zone h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.upload-zone p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.upload-note {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Premium File Info Card */
.file-info-card {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, #ede9fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2.5rem;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.file-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.file-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.file-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.file-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.0625rem;
    word-break: break-all;
}

.remove-btn {
    background: var(--white);
    border: 2px solid var(--danger);
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.remove-btn:hover {
    background: var(--danger);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Premium Toggle */
.toggle-group {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 68px;
    height: 36px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-inner);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

.toggle-content {
    flex: 1;
}

.toggle-content strong {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.toggle-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Security Info Panel */
.security-info {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.security-info h4 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.security-info h4 i {
    color: var(--primary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.security-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.security-item i {
    color: var(--primary);
    font-size: 1.375rem;
}

.security-item span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* Premium Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-family: inherit;
}

.modern-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
    width: 400px;
    height: 400px;
}

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

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    width: 100%;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 102, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(0, 102, 255, 0.4);
}

.primary-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.secondary-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.danger-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: var(--white);
}

.danger-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(220, 38, 38, 0.3);
}

.btn-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Premium Results Section */
.results-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    margin-top: 4rem;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.results-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.results-content {
    padding: 3rem;
}

/* Risk Alert Cards */
.risk-alert {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
    color: var(--white);
    animation: fadeIn 0.6s ease;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.risk-alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.alert-critical { 
    background: linear-gradient(135deg, var(--danger) 0%, #991b1b 100%);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(220, 38, 38, 0.3);
}

.alert-high { 
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(249, 115, 22, 0.3);
}

.alert-medium { 
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 158, 11, 0.3);
}

.alert-low { 
    background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(5, 150, 105, 0.3);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.alert-header h3 {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.alert-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.625rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    backdrop-filter: blur(10px);
    font-size: 1.125rem;
    box-shadow: var(--shadow);
}

.risk-alert p {
    position: relative;
    z-index: 1;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Risk Assessment Grid */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.risk-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border-left: 5px solid;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.risk-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.05;
    background: currentColor;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.risk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.risk-card.critical { border-left-color: var(--danger); color: var(--danger); }
.risk-card.high { border-left-color: #f97316; color: #f97316; }
.risk-card.medium { border-left-color: #f59e0b; color: #f59e0b; }
.risk-card.low { border-left-color: var(--success); color: var(--success); }

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.risk-title {
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.risk-title i {
    font-size: 1.375rem;
}

.risk-score {
    padding: 0.375rem 1.125rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.risk-score.critical { background: var(--danger); }
.risk-score.high { background: #f97316; }
.risk-score.medium { background: #f59e0b; }
.risk-score.low { background: var(--success); }

.risk-level {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evidence-box {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.25rem;
    max-height: 220px;
    overflow-y: auto;
}

.evidence-item {
    padding: 0.75rem;
    background: var(--white);
    margin: 0.625rem 0;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    border-left: 4px solid currentColor;
    color: var(--gray-700);
    box-shadow: var(--shadow-xs);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: block;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Section Cards */
.section-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.section-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.section-card h3 i {
    color: var(--primary);
}

.findings-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.finding-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.finding-item i {
    color: var(--success);
    margin-top: 3px;
    font-size: 1.25rem;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--warning-light) 0%, #fde68a 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--warning);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.action-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.125rem;
    box-shadow: var(--shadow);
}

.action-text {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.0625rem;
}

/* Parsing Status */
.parsing-status {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, #ede9fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin: 2.5rem 0;
    animation: fadeIn 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.parsing-status h4 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.parsing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.parsing-step {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.parsing-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

.progress-container {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: var(--shadow-inner);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 700;
}

/* ============ MOBILE REPORT OPTIMIZATION ============ */

@media (max-width: 768px) {
    /* Results Container */
    .results-container {
        margin: 2rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .results-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .results-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-actions .modern-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .results-content {
        padding: 1.5rem;
    }
    
    /* Risk Alert Cards */
    .risk-alert {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .alert-header h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .alert-badge {
        align-self: flex-start;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Risk Assessment Grid */
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .risk-card {
        padding: 1.25rem;
        border-left-width: 4px;
    }
    
    .risk-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .risk-title {
        font-size: 1rem;
    }
    
    .risk-score {
        align-self: flex-start;
        padding: 0.375rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .evidence-box {
        max-height: 150px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .evidence-item {
        padding: 0.625rem;
        font-size: 0.8125rem;
        margin: 0.5rem 0;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .stat-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .stat-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    /* Section Cards */
    .section-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .section-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-card h3 i {
        font-size: 1.5rem;
    }
    
    /* Findings List */
    .findings-list {
        gap: 0.875rem;
    }
    
    .finding-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .finding-item i {
        align-self: flex-start;
    }
    
    /* Actions List */
    .actions-list {
        gap: 0.875rem;
    }
    
    .action-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .action-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .action-text {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    
    /* Payment Modal */
    .payment-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Table Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .results-header h2 {
        font-size: 1.25rem;
    }
    
    .risk-alert {
        padding: 1.25rem;
    }
    
    .alert-header h3 {
        font-size: 1.125rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 1.25rem;
    }
    
    /* Better text readability */
    .risk-level,
    .stat-label,
    .evidence-item {
        font-size: 0.75rem;
    }
    
    /* Button adjustments */
    .modern-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .modern-btn .btn-content {
        gap: 0.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .modern-btn,
    .remove-btn,
    .alert-close,
    #card-button {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
    }
    
    /* Increase spacing for fat fingers */
    .results-actions {
        gap: 1rem;
    }
    
    .risk-grid,
    .stats-grid {
        gap: 1rem;
    }
    
    /* Prevent accidental taps */
    .finding-item,
    .action-item,
    .risk-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    /* Better scroll on mobile */
    .evidence-box,
    .results-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .results-container {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .risk-card,
    .stat-card,
    .section-card {
        border-width: 1px;
    }
    
    .modern-btn {
        border-width: 2px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .spa-container {
        padding: 1rem;
    }
    
    .spa-modern-hero {
        padding: 4rem 1rem 3rem;
    }
    
    .hero-icon {
        width: 90px;
        height: 90px;
    }
    
    .hero-icon i {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .spa-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .upload-zone {
        padding: 3rem 1.5rem;
    }
    
    .results-header {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .modern-btn {
        width: 100%;
    }
    
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .spa-modern-hero,
    .spa-features-grid,
    button,
    .modern-btn {
        display: none !important;
    }
    
    .results-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modern-btn {
        border: 3px solid currentColor;
    }
    
    .input-group input {
        border: 3px solid var(--gray-900);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ============ ENHANCED PAYMENT MODAL ANIMATIONS ============ */

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced mobile optimizations for payment modal */
@media (max-width: 768px) {
    .payment-modal-content {
        border-radius: 16px !important;
        padding: 1.25rem !important;
        margin: 0.5rem !important;
        max-height: 85vh !important;
    }
    
    #card-container {
        min-height: 56px !important;
        padding: 1rem !important;
    }
    
    #card-button {
        min-height: 48px !important;
        font-size: 0.9375rem !important;
    }
    
    #cancel-payment {
        min-height: 44px !important;
    }
    
    /* Better touch targets */
    #modal-close-btn,
    #cancel-payment,
    #card-button {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent zoom on input focus */
    @media (max-width: 480px) {
        #card-container input {
            font-size: 16px !important; /* Prevents iOS zoom */
        }
    }
}

/* Landscape orientation support */
@media (max-width: 768px) and (orientation: landscape) {
    .payment-modal-content {
        max-height: 75vh !important;
        overflow-y: auto !important;
    }
}

/* High-DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .payment-modal-content {
        border-width: 1px;
    }
    
    #card-container {
        border-width: 2px;
    }
}

/* Dark mode support for payment modal */
@media (prefers-color-scheme: dark) {
    .payment-modal-overlay {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .payment-modal-content {
        background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }
    
    .payment-modal-content h2,
    .payment-modal-content h3 {
        color: #f8fafc !important;
    }
    
    .payment-modal-content p {
        color: #cbd5e1 !important;
    }
    
    #card-container {
        background: #1e293b !important;
        border-color: #475569 !important;
    }
    
    #cancel-payment {
        background: #334155 !important;
        border-color: #475569 !important;
        color: #cbd5e1 !important;
    }
}

/* Enhanced button hover effects */
#card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.4) !important;
}

#card-button:active {
    transform: translateY(0);
}

#cancel-payment:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Loading animation enhancement */
.btn-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Environment indicator in admin bar */
#wpadminbar .environment-indicator {
    background: #ef4444 !important;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    margin-left: 10px !important;
}

#wpadminbar .environment-sandbox {
    background: #f59e0b !important;
}

#wpadminbar .environment-production {
    background: #10b981 !important;
}

/* Payment modal environment indicator */
.payment-environment-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 100;
}

.environment-sandbox-badge {
    background: #f59e0b;
    color: #92400e;
}

.environment-production-badge {
    background: #10b981;
    color: #064e3b;
}

/* Error animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Payment overlay styles */
.payment-processing-overlay {
    animation: fadeIn 0.3s ease !important;
}

.payment-success-overlay {
    animation: fadeIn 0.3s ease !important;
}

/* Card error state */
.square-card-container.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

/* Modern alert enhancements */
.modern-alert.error {
    border-left: 4px solid #ef4444;
}

.modern-alert.error i {
    color: #ef4444;
}

.modern-alert .error-id {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button loading states */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Additional animations */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Card brand icons */
.card-brand-icon {
    transition: all 0.3s ease;
}

.card-brand-icon i {
    transition: all 0.3s ease;
}

/* Loading states */
.secure-payment-overlay .fa-spin {
    animation: spin 1s linear infinite;
}

/* Step circles */
.step-circle {
    transition: all 0.3s ease;
}

.step-circle.active {
    animation: pulse 2s infinite;
}

/* Error states */
.error-modal-content {
    animation: shakeSoft 0.5s ease-in-out;
}

@keyframes shakeSoft {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-2px); }
    40%, 80% { transform: translateX(2px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secure-payment-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left !important;
    }
    
    .step-circle {
        margin: 0 !important;
        flex-shrink: 0;
    }
}

/* Payment Error States */
.payment-error-modal .modern-btn.primary-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.payment-error-modal .modern-btn.secondary-btn {
    background: #e2e8f0;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.payment-error-modal .modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Card input error state */
.square-card-container.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

/* Card input focus state */
.square-card-container.focused {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Card input valid state */
.square-card-container.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Error message below card input */
.card-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.card-error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Payment processing error animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile optimizations for error modal */
@media (max-width: 768px) {
    .payment-error-modal .error-modal-content {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }
    
    .payment-error-modal .modern-btn {
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 44px !important;
    }
}

/* Ensure payment modal z-index is high enough */
.payment-modal-overlay {
    z-index: 99999 !important;
}

.payment-error-modal {
    z-index: 100000 !important;
}

/* Success state for card */
.square-card-container.success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Professional Recommendations Styles */
.professional-recommendations {
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    margin: 20px;
    border-radius: 16px;
    border: 1px solid #bae6fd;
}
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.recommendation-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
.recommendation-category h4 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeafe;
}
.recommendation-category ul.small-bullets {
    list-style-type: none;
    padding-left: 0;
}
.recommendation-category ul.small-bullets li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.recommendation-category ul.small-bullets li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Deep Data Analysis Styles */
.deep-data-section {
    padding: 40px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 20%);
    margin: 20px;
    border-radius: 16px;
    border: 1px solid #fbbf24;
}
.deep-data-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}
.deep-data-content h4 {
    color: #92400e;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.deep-data-content ol.small-text,
.deep-data-content ul.small-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}
.deep-data-content ol.small-text li,
.deep-data-content ul.small-text li {
    margin-bottom: 8px;
}
.deep-data-content strong {
    color: #1e40af;
}
.facebook-steps {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}
.analysis-benefits {
    background: #ecfdf5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
}
.disclaimer-notice {
    background: #fef2f2;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}
.small-text {
    font-size: 0.85rem;
    line-height: 1.6;
}
.very-small-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}