/**
 * Components CSS for Index Page
 * Reusable UI components: buttons, forms, alerts, tooltips
 */

/* Global Smooth Scrolling and Modern Interactions */
html {
    scroll-behavior: smooth;
}

/* Smooth focus transitions */
*:focus {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern scroll padding for better UX with fixed headers */
html {
    scroll-padding-top: 2rem;
}

/* Enhanced cursor interactions */
button, .btn, a[href], input[type="submit"], input[type="button"], [role="button"], [tabindex="0"] {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    button:active, .btn:active, a[href]:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Smooth transitions for interactive elements */
.modern-section, .upload-destination-card, .skip-to-upload-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects for modern sections */
.modern-section:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(124, 58, 237, 0.015));
}

/* Smooth loading states */
.loading, .spinner {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Modern selection styling */
::selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-color);
}

/* Form Elements */
.form-select, .form-label {
    background: var(--card-background);
    border: none;
    border-radius: 15px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: 
        inset 3px 3px 6px rgba(163, 177, 198, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-select:focus {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    outline: none;
}

.form-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    background: none;
    box-shadow: none;
    padding: 0;
}

.form-label i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(124, 58, 237, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Purple styling for Auto-detect option */
#provider-select option:first-child {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
    color: #8b5cf6;
    font-weight: 600;
}

/* ========== MODERN SECTION STYLES ========== */

/* Modern CTA Group - Demo and Skip buttons */
.modern-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-cta-group.animate-in {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .modern-cta-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn-modern-primary, .btn-modern-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .btn-modern-primary, .btn-modern-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Modern Section Base Styles */
.modern-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.modern-section-alternate {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(124, 58, 237, 0.01));
}

/* Modern Typography */
.modern-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    line-height: 1.3; /* Increased to prevent descender cutoff */
    padding-bottom: 0.2rem; /* Extra padding for descenders like 'y', 'g' */
}

/* Modern Steps Container */
.modern-steps-container {
    margin-bottom: 3rem;
}

.modern-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Modern Security Container */
.modern-security-container {
    margin-bottom: 3rem;
}

.modern-security-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-security-feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.security-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

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

.security-content {
    flex: 1;
    padding-top: 0.25rem;
}

.security-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.security-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Modern CTA Styles */
.modern-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-decoration: none;
}

.btn-modern-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    text-decoration: none;
}

/* Modern Trust Statement */
.modern-trust-statement {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.modern-trust-statement.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.trust-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Visual Areas */
.modern-visual-area {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-visual-area.animate-in {
    opacity: 1;
    transform: scale(1);
}

.visual-placeholder, .security-visual-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(124, 58, 237, 0.02));
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.visual-elements, .security-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.visual-element, .security-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-element.animate-in, .security-element.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Orbital Animation for Visual Elements */
.visual-element, .security-element {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px; /* Half of element height */
    margin-left: -25px; /* Half of element width */
}

/* Element 1 - starts at 0 degrees (right) */
.visual-element:nth-child(1) {
    animation: orbit1 20s linear infinite;
}
.security-element:nth-child(1) {
    animation: security-orbit1 20s linear infinite;
}

/* Element 2 - starts at 120 degrees (bottom-left) */
.visual-element:nth-child(2) {
    animation: orbit2 20s linear infinite;
}
.security-element:nth-child(2) {
    animation: security-orbit2 20s linear infinite;
}

/* Element 3 - starts at 240 degrees (top-left) */
.visual-element:nth-child(3) {
    animation: orbit3 20s linear infinite;
}
.security-element:nth-child(3) {
    animation: security-orbit3 20s linear infinite;
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    100% { 
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }
    100% { 
        transform: rotate(480deg) translateX(120px) rotate(-480deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(240deg) translateX(120px) rotate(-240deg);
    }
    100% { 
        transform: rotate(600deg) translateX(120px) rotate(-600deg);
    }
}

/* Security elements - Anti-clockwise animations */
@keyframes security-orbit1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    100% { 
        transform: rotate(-360deg) translateX(120px) rotate(360deg);
    }
}

@keyframes security-orbit2 {
    0% {
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }
    100% { 
        transform: rotate(-240deg) translateX(120px) rotate(240deg);
    }
}

@keyframes security-orbit3 {
    0% {
        transform: rotate(240deg) translateX(120px) rotate(-240deg);
    }
    100% { 
        transform: rotate(-120deg) translateX(120px) rotate(120deg);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .visual-element, .security-element {
        animation: none;
    }
    
    .visual-element:nth-child(1), .security-element:nth-child(1) { 
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    .visual-element:nth-child(2), .security-element:nth-child(2) { 
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }
    .visual-element:nth-child(3), .security-element:nth-child(3) { 
        transform: rotate(240deg) translateX(120px) rotate(-240deg);
    }
}

/* Mobile optimizations for visual elements */
@media (max-width: 768px) {
    .visual-element, .security-element {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        margin-top: -16px; /* Half of element height */
        margin-left: -16px; /* Half of element width */
    }
    
    @keyframes orbit1 {
        0% {
            transform: rotate(0deg) translateX(100px) rotate(0deg);
        }
        100% { 
            transform: rotate(360deg) translateX(100px) rotate(-360deg);
        }
    }
    
    @keyframes orbit2 {
        0% {
            transform: rotate(120deg) translateX(100px) rotate(-120deg);
        }
        100% { 
            transform: rotate(480deg) translateX(100px) rotate(-480deg);
        }
    }
    
    @keyframes orbit3 {
        0% {
            transform: rotate(240deg) translateX(100px) rotate(-240deg);
        }
        100% { 
            transform: rotate(600deg) translateX(100px) rotate(-600deg);
        }
    }
    
    /* Security elements - Anti-clockwise animations for mobile */
    @keyframes security-orbit1 {
        0% {
            transform: rotate(0deg) translateX(100px) rotate(0deg);
        }
        100% { 
            transform: rotate(-360deg) translateX(100px) rotate(360deg);
        }
    }
    
    @keyframes security-orbit2 {
        0% {
            transform: rotate(120deg) translateX(100px) rotate(-120deg);
        }
        100% { 
            transform: rotate(-240deg) translateX(100px) rotate(240deg);
        }
    }
    
    @keyframes security-orbit3 {
        0% {
            transform: rotate(240deg) translateX(100px) rotate(-240deg);
        }
        100% { 
            transform: rotate(-120deg) translateX(100px) rotate(120deg);
        }
    }
}

@media (max-width: 576px) {
    .visual-placeholder, .security-visual-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .visual-element, .security-element {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-top: -14px; /* Half of element height */
        margin-left: -14px; /* Half of element width */
    }
    
    @keyframes orbit1 {
        0% {
            transform: rotate(0deg) translateX(60px) rotate(0deg);
        }
        100% { 
            transform: rotate(360deg) translateX(60px) rotate(-360deg);
        }
    }
    
    @keyframes orbit2 {
        0% {
            transform: rotate(120deg) translateX(60px) rotate(-120deg);
        }
        100% { 
            transform: rotate(480deg) translateX(60px) rotate(-480deg);
        }
    }
    
    @keyframes orbit3 {
        0% {
            transform: rotate(240deg) translateX(60px) rotate(-240deg);
        }
        100% { 
            transform: rotate(600deg) translateX(60px) rotate(-600deg);
        }
    }
    
    /* Security elements - Anti-clockwise animations for small mobile */
    @keyframes security-orbit1 {
        0% {
            transform: rotate(0deg) translateX(60px) rotate(0deg);
        }
        100% { 
            transform: rotate(-360deg) translateX(60px) rotate(360deg);
        }
    }
    
    @keyframes security-orbit2 {
        0% {
            transform: rotate(120deg) translateX(60px) rotate(-120deg);
        }
        100% { 
            transform: rotate(-240deg) translateX(60px) rotate(240deg);
        }
    }
    
    @keyframes security-orbit3 {
        0% {
            transform: rotate(240deg) translateX(60px) rotate(-240deg);
        }
        100% { 
            transform: rotate(-120deg) translateX(60px) rotate(120deg);
        }
    }
}

/* Modern Upload Destination Section */
.upload-destination-section {
    padding: 4rem 0 5rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(124, 58, 237, 0.01));
}

/* Upload Section Content */
.upload-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.upload-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modern-content-left {
    position: relative;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove z-index on mobile to prevent overlap */
@media (max-width: 991px) {
    .modern-content-left {
        z-index: 1;
    }
    
    .headers-tutorial-container {
        z-index: 1;
        margin: 2rem 1rem 6rem 1rem; /* Increased bottom margin to separate from upload form */
    }
    
    .modern-visual-area {
        margin-bottom: 3rem; /* Ensure separation from next section */
    }
    
    .upload-form-container {
        margin-top: 3rem; /* Extra spacing from tutorial on mobile */
    }
    
    .upload-intro {
        margin-top: 4rem; /* Extra top margin to prevent overlap with tutorial */
        margin-bottom: 2rem;
        text-align: center; /* Center upload intro content on mobile */
    }
    
    .upload-eyebrow {
        margin-bottom: 1.5rem;
        text-align: center; /* Center eyebrow text on mobile */
    }
}

.upload-form-container {
    margin-top: 1.5rem;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

/* Upload Visual Area */
.upload-visual-container {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Headers Tutorial Container */
.headers-tutorial-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 15;
    margin: 6rem 2rem 3rem 2rem;
}

.tutorial-intro {
    margin-bottom: 2rem;
    opacity: 1;
}

.tutorial-title {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-subtitle {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
}

/* Tutorial Table Styles */
.tutorial-table-wrapper {
    margin-bottom: 2rem;
    background: var(--card-background);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 1;
    box-shadow: 
        12px 12px 24px rgba(163, 177, 198, 0.3),
        -12px -12px 24px rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-table-wrapper:hover {
    box-shadow: 
        10px 10px 20px rgba(163, 177, 198, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.tutorial-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.1rem;
}

.header-column {
    position: relative;
    padding: 1.5rem 1.2rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 12px 12px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.header-column:first-child {
    border-radius: 12px 0 0 0;
}

.header-column:last-child {
    border-radius: 0 12px 0 0;
}

.header-column:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.header-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.header-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.header-column.active .header-highlight {
    opacity: 0.2;
    transform: scaleX(1);
}

.header-column.active .header-text {
    color: var(--primary-color-dark);
    font-weight: 700;
}

.sample-row td {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-size: 1rem;
    border-bottom: 1px solid rgba(163, 177, 198, 0.1);
    transition: all 0.4s ease;
}

.sample-row:last-child td {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.sample-row:last-child .date-cell {
    border-radius: 0 0 0 12px;
}

.sample-row:last-child .amount-cell {
    border-radius: 0 0 12px 0;
}

.sample-row:last-child .description-cell {
    border-radius: 0;
}

.date-cell, .description-cell, .amount-cell {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-cell.highlight, .description-cell.highlight, .amount-cell.highlight {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color-dark);
    font-weight: 600;
}

/* Tutorial Info */
.tutorial-info {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.info-description {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Upload Flow Steps */
.upload-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 120px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:hover {
    transform: translateY(-3px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--card-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.3),
        -6px -6px 12px rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:hover .step-icon {
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

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

.processing-icon {
    animation: gentle-pulse 2s ease-in-out infinite;
}

.step-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.step-formats {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Horizontal Flow Arrows */
.flow-arrow-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1.5rem;
    animation: pulse-arrow 2s ease-in-out infinite;
}

.arrow-1 {
    animation-delay: 0.5s;
}

.arrow-2 {
    animation-delay: 1s;
}

/* Arrow pulse animation */
@keyframes pulse-arrow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Background Decoration - Hidden for cleaner look */
.upload-bg-decoration {
    display: none;
}

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

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slide-fade {
    0% { opacity: 0; transform: translateX(-10px); }
    50% { opacity: 0.6; transform: translateX(0px); }
    100% { opacity: 0; transform: translateX(10px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Legacy Upload Card (for backward compatibility) */
.upload-destination-card {
    background: var(--card-background);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(139, 92, 246, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.08);
}

.upload-destination-title {
    margin-bottom: 2.5rem;
}

.ready-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cta-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3; /* Increased to prevent descender cutoff */
    padding-bottom: 0.2rem; /* Extra padding for descenders like 'g', 'p', 'y' */
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in.animate-in {
    opacity: 1;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Responsive Design for Modern Sections */
@media (max-width: 992px) {
    .modern-section {
        padding: 3rem 0;
    }
    
    .modern-section-title {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }
    
    .visual-placeholder, .security-visual-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .modern-content-right {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-section {
        padding: 2.5rem 0;
    }
    
    .modern-section-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .security-title {
        font-size: 1.1rem;
    }
    
    .security-description {
        font-size: 0.9rem;
    }
    
    .visual-placeholder, .security-visual-placeholder {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }
    
    .upload-destination-card {
        padding: 2rem 1.5rem;
    }
    
    .ready-text {
        font-size: 1.2rem;
    }
    
    .cta-text {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .modern-section-title {
        font-size: 1.8rem;
    }
    
    .modern-step {
        margin-bottom: 2rem;
    }
    
    .modern-security-feature {
        margin-bottom: 1.5rem;
    }
    
    .visual-placeholder, .security-visual-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .ready-text {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.6rem;
    }
}

/* ========== COMPACT LAYOUT STYLES ========== */

/* Hero Section Compact */
.hero-section-compact {
    padding: 2rem 0;
    background: none;
    border: none;
}

.hero-content-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-compact {
    flex-shrink: 0;
}

.hero-logo-small {
    width: 60px;
    height: 60px;
}

.hero-text-compact {
    text-align: left;
}

.hero-title-compact {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle-compact {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Provider Strip Layout */
.providers-section-strip {
    text-align: center;
}

.providers-title-strip {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.providers-title-strip i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(124, 58, 237, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
}

.providers-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.provider-logo-strip {
    display: inline-block;
    transition: transform 0.2s ease;
}

.provider-logo-strip img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.provider-logo-strip:hover {
    transform: translateY(-2px);
}

.provider-logo-strip:hover img {
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Compact Form Elements */
.form-label-compact {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.form-select-compact {
    padding: 9px 12px; /* Better vertical padding for text alignment */
    font-size: 0.9rem;
    border-radius: 12px;
    height: 42px;
    width: 100%;
    line-height: 1.2; /* Explicit line-height for better text positioning */
    background: var(--card-background) !important;
    border: none !important;
    color: var(--text-color) !important;
    font-weight: 500;
    box-shadow: 
        inset 3px 3px 6px rgba(163, 177, 198, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center; /* Center text vertically */
}

.form-select-compact:focus {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    outline: none !important;
}

.anonymization-toggle-container-compact {
    background: var(--card-background);
    border-radius: 12px;
    padding: 8px 10px; /* Reduced padding for more text space */
    height: 42px; /* Match select height */
    width: 100%; /* Ensure full width usage */
    display: flex;
    align-items: center; /* Center content vertically */
    box-shadow: 
        inset 3px 3px 6px rgba(163, 177, 198, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    cursor: not-allowed; /* Show disabled cursor */
    pointer-events: none; /* Prevent any interactions */
    opacity: 0.7; /* Visually indicate disabled state */
}

.anonymization-toggle-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

/* Custom Checkbox Styling */
.checkbox-label-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    width: 100%;
}

.checkbox-compact {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-compact {
    height: 18px;
    width: 18px;
    background: var(--card-background);
    border-radius: 6px;
    position: relative;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkbox-compact:checked + .checkmark-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    box-shadow: 
        2px 2px 4px rgba(163, 177, 198, 0.3),
        -2px -2px 4px rgba(255, 255, 255, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.checkmark-compact:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg); /* -60% instead of -50% to account for checkmark shape */
}

.checkbox-compact:checked + .checkmark-compact:after {
    display: block;
}

.toggle-label-compact {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

/* Disabled checkbox styling */
.checkbox-compact:disabled + .checkmark-compact {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(124, 58, 237, 0.6));
    box-shadow: 
        2px 2px 4px rgba(163, 177, 198, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.checkbox-compact:disabled + .checkmark-compact:after {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Compact Upload Zone */
.upload-zone-compact {
    padding: 2rem 1.5rem;
    border-radius: 15px;
}

.upload-title-compact {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.upload-subtitle-compact {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* How It Works Compact */
.how-it-works-compact {
    height: 100%;
}

.neomorphism-steps-compact {
    margin: 0;
    padding: 0;
}

.neomorphism-steps-compact li {
    margin-bottom: 1rem;
}

.neomorphism-steps-compact li::before {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

.connecting-line-compact {
    left: 15px;
    top: 32px;
    bottom: 32px;
    width: 2px;
}

.neomorphism-steps-compact .step-content {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Privacy & Security Compact */
.privacy-security-compact {
    height: 100%;
}

.privacy-features-compact {
    margin: 0;
    padding: 0;
}

.privacy-features-compact .security-badge {
    font-size: 0.87rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments for Compact Layout */
@media (max-width: 768px) {
    .hero-content-compact {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-text-compact {
        text-align: center;
    }
    
    .hero-title-compact {
        font-size: 2rem;
    }
    
    .hero-subtitle-compact {
        font-size: 0.9rem;
    }
    
    .providers-strip {
        gap: 0.5rem;
    }
    
    .provider-logo-strip img {
        width: 35px;
        height: 35px;
    }
    
    .upload-zone-compact {
        padding: 1.5rem 1rem;
    }
    
    .upload-title-compact {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section-compact {
        padding: 1.5rem 0 !important;
    }
    
    .hero-title-compact {
        font-size: 1.8rem;
    }
    
    .providers-title-strip {
        font-size: 0.8rem;
    }
    
    .provider-logo-strip img {
        width: 30px;
        height: 30px;
    }
    
    .form-label-compact {
        font-size: 0.8rem;
    }
    
    .form-select-compact {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .toggle-label-compact {
        font-size: 0.75rem;
    }
    
    .checkmark-compact {
        height: 14px;
        width: 14px;
    }
    
    .anonymization-toggle-container-compact {
        padding: 6px 8px;
    }
}

/* Medium screens - additional responsive adjustments */
@media (max-width: 992px) {
    .toggle-label-compact {
        font-size: 0.8rem;
    }
    
    .anonymization-toggle-container-compact {
        padding: 7px 9px;
    }
}

/* Small screens - tighter layout */
@media (max-width: 576px) {
    .toggle-label-compact {
        font-size: 0.7rem;
    }
    
    .checkmark-compact {
        height: 12px;
        width: 12px;
    }
    
    .anonymization-toggle-container-compact {
        padding: 5px 6px;
    }
    
    .anonymization-toggle-compact {
        gap: 0.15rem;
    }
}

/* Extra small screens - minimal layout */
@media (max-width: 400px) {
    .toggle-label-compact {
        font-size: 0.65rem;
    }
}

/* Emergency breakpoint for very narrow windows */
@media (max-width: 320px) {
    .toggle-label-compact {
        font-size: 0.6rem;
        white-space: normal; /* Allow text wrapping as last resort */
        line-height: 1.1;
    }
    
    .anonymization-toggle-container-compact {
        height: auto; /* Allow container to grow with wrapped text */
        min-height: 36px;
        padding: 4px 5px;
    }
    
    .upload-zone-compact {
        padding: 1rem 0.75rem;
    }
    
    .upload-title-compact {
        font-size: 1rem;
    }
    
    .upload-subtitle-compact {
        font-size: 0.85rem;
    }
}

/* Currency Select Styling */
.currency-select {
    background: var(--card-background) !important;
    border: 2px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.currency-select:focus {
    outline: none !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8),
        0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.currency-select:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 
        inset 2px 2px 4px rgba(163, 177, 198, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(139, 92, 246, 0.1) !important;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    border: none;
    border-radius: 20px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(124, 58, 237, 1));
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    color: white;
}

.cta-button {
    background: var(--card-background) !important;
    color: var(--text-dark) !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    padding: 18px 40px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        12px 12px 24px rgba(163, 177, 198, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(163, 177, 198, 0.1) !important;
    color: var(--text-dark) !important;
    background: #e2e8f0 !important;
}

.cta-button:focus {
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7) !important;
    color: var(--text-dark) !important;
    background: #e2e8f0 !important;
    outline: none !important;
}

.cta-button i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 58, 237, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

/* Purple text for CTA button - override any conflicting styles */
.success-actions .cta-button,
.cta-button {
    --primary-color: rgba(139, 92, 246, 0.9);
    color: rgba(139, 92, 246, 0.9) !important;
}

.success-actions .cta-button:hover,
.cta-button:hover {
    --primary-color: rgba(124, 58, 237, 1);
    color: rgba(124, 58, 237, 1) !important;
}

.btn-link-subtle {
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 8px 0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-link-subtle:hover {
    color: rgba(124, 58, 237, 1) !important;
    text-decoration: underline !important;
}

/* Success panel specific button styling for better contrast */
.success-panel .btn-link-subtle {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}

.success-panel .btn-link-subtle:hover {
    color: rgba(124, 58, 237, 1) !important;
}

/* Alert Styles */
.alert-danger {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
    border: none;
    border-radius: 15px;
    color: var(--text-dark);
    border-left: 4px solid rgba(139, 92, 246, 0.8);
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.success-panel {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.08));
    border: none;
    border-radius: 25px;
    padding: 2rem;
    color: var(--text-dark);
    text-align: center;
    box-shadow: 
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    animation: successSlideIn 0.5s ease-out;
    border-left: 4px solid rgba(139, 92, 246, 0.8);
}

.success-icon i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Privacy Tooltip Styling */
.privacy-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.privacy-help-icon {
    color: rgba(139, 92, 246, 0.7);
    font-size: 1rem;
    cursor: help;
    transition: all 0.3s ease;
}

.privacy-help-icon:hover {
    color: rgba(139, 92, 246, 1);
    transform: scale(1.1);
}

.privacy-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 15px;
    transform: translateY(-50%);
    background: var(--card-background);
    color: var(--text-dark);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    max-width: 320px;
    z-index: 1000;
    font-weight: normal;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.privacy-tooltip-content::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--card-background);
    filter: drop-shadow(0 2px 2px rgba(163, 177, 198, 0.2));
}

.privacy-tooltip:hover .privacy-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Custom Tooltip Styling */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: #1e293b;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.custom-tooltip i {
    color: rgba(139, 92, 246, 0.7);
    transition: color 0.3s ease;
}

.custom-tooltip:hover i {
    color: var(--primary-color);
}

/* Mobile text wrapping for CTA button */
@media (max-width: 768px) {
    .cta-button {
        white-space: normal !important;
        line-height: 1.2 !important;
        padding: 15px 20px !important;
        text-align: center !important;
    }
    
    .cta-button .bi-bar-chart {
        display: block !important;
        margin: 0 0 5px 0 !important;
    }
    
    /* Responsive tooltip */
    .privacy-tooltip-content {
        white-space: normal;
        max-width: 280px;
        left: 50%;
        top: 100%;
        margin-top: 10px;
        transform: translateX(-50%);
    }
    
    .privacy-tooltip-content::after {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-bottom-color: var(--card-background);
        border-top: none;
    }
    
    .privacy-tooltip:hover .privacy-tooltip-content {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Desktop tooltip - force width */
@media (min-width: 769px) {
    .privacy-tooltip-content {
        width: 320px;
    }
}

/* ========== WHY SECTION STYLES ========== */

/* Why Section Base */
.why-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(124, 58, 237, 0.02));
    position: relative;
    overflow: hidden;
}

/* Why Content Left */
.why-content-left {
    padding: 2rem 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Why Section Introduction */
.why-intro {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-intro.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.why-eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.why-main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding-bottom: 0.2rem;
}

.why-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Benefits Container */
.why-benefits-container {
    margin-bottom: 3rem;
}

.why-benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.why-benefit.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 
        0 8px 20px rgba(139, 92, 246, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
}

.benefit-content {
    flex: 1;
    padding-top: 0.5rem;
}

.benefit-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.benefit-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Why Stats Section */
.why-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(139, 92, 246, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.why-stats.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Visual Showcase Area */
.why-visual-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    min-height: 600px;
}

.why-visual-area.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Chart Showcase Container */
.chart-showcase-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
}

/* Background Glow Effect */
.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Chart Preview Card */
.chart-preview-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Chart Header */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.chart-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Animated Chart Bars */
.chart-bars-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Chart Demo CTA Button */
.chart-demo-cta {
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-demo-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-demo-showcase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.btn-demo-showcase:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.btn-demo-showcase:hover::before {
    left: 100%;
}

.btn-demo-showcase:active {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-demo-showcase i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* External Demo CTA Button - More Prominent */
.chart-demo-cta-external {
    margin-top: 2.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-demo-cta-external.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* External Upload CTA Button - Below Demo Button */
.chart-upload-cta-external {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-upload-cta-external.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-demo-showcase-prominent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

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

.btn-demo-showcase-prominent:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 18px 50px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.btn-demo-showcase-prominent:hover::before {
    left: 100%;
}

.btn-demo-showcase-prominent:active {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-demo-showcase-prominent i {
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--bar-color), rgba(139, 92, 246, 0.7));
    border-radius: 8px 8px 0 0;
    height: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-bar.animate-bar .bar-fill {
    height: var(--bar-height);
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
}

.bar-amount {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.animate-bar .bar-amount {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Insight Cards */
.floating-insights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.insight-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.insight-card.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.insight-trend {
    top: 25%;
    right: -20%;
}

.insight-savings {
    top: 40%;
    left: -25%;
}

.insight-pattern {
    bottom: -1%;
    right: -15%;
}

.insight-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon i {
    font-size: 1rem;
    color: white;
}

.insight-text {
    display: flex;
    flex-direction: column;
}

.insight-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-value {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
}

/* Interactive Pulse Dots */
.interactive-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.pulse-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

.pulse-dot-1 {
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.pulse-dot-2 {
    top: 60%;
    right: 25%;
    animation-delay: 0.7s;
}

.pulse-dot-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1.4s;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

/* Responsive Design for Why Section */
@media (max-width: 992px) {
    .why-main-title {
        font-size: 2.5rem;
    }
    
    .chart-showcase-container {
        max-width: 400px;
        height: 350px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .why-main-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .why-subtitle {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .why-benefit {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
        align-items: center;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .benefit-content {
        align-self: center;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .stat-item {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        align-items: baseline;
    }
    
    .stat-number {
        text-align: left;
        font-size: 1.8rem;
        min-width: 5rem;
        flex-shrink: 0;
    }
    
    .stat-label {
        text-align: left;
        margin-top: 0;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .chart-showcase-container {
        max-width: 320px;
        height: 300px;
    }
    
    .chart-bars-container {
        height: 150px;
        gap: 0.5rem;
    }
    
    .chart-bar {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .floating-insights {
        display: none !important;
    }
    
    .why-visual-area {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .why-main-title {
        font-size: 1.8rem;
    }
    
    .why-subtitle {
        font-size: 1rem;
    }
    
    .benefit-title {
        font-size: 1.2rem;
    }
    
    .benefit-description {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        min-width: 4.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .chart-preview-card {
        padding: 1rem;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .chart-period {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .chart-bars-container {
        height: 120px;
        gap: 0.3rem;
    }
    
    .bar-label {
        font-size: 0.7rem;
    }
    
    .bar-amount {
        font-size: 0.8rem;
    }
    
    .btn-demo-showcase {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-demo-showcase i {
        font-size: 1.1rem;
    }
    
    .btn-demo-showcase-prominent {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 220px;
    }
    
    .btn-demo-showcase-prominent i {
        font-size: 1.2rem;
    }
    
    /* Modern Upload Section Responsive */
    .upload-visual-container {
        height: 300px;
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .upload-flow-steps {
        gap: 1rem;
        max-width: 400px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 2rem;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .step-formats {
        font-size: 0.7rem;
    }
    
    .flow-arrow-horizontal {
        font-size: 1.2rem;
    }
    
    .decoration-circle {
        opacity: 0.3;
    }
    
    .circle-1 {
        width: 60px;
        height: 60px;
    }
    
    .circle-2 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .upload-visual-container {
        height: 350px;
        padding: 1rem;
    }
    
    .headers-tutorial-container {
        max-width: 100%;
        margin: 4rem 1.5rem 2rem 1.5rem;
    }
    
    .tutorial-title {
        font-size: 1.2rem;
    }
    
    .tutorial-subtitle {
        font-size: 0.9rem;
    }
    
    .tutorial-table-wrapper {
        padding: 1rem;
    }
    
    .tutorial-table {
        font-size: 0.8rem;
    }
    
    .header-column {
        padding: 0.8rem 0.5rem;
    }
    
    .sample-row td {
        padding: 0.6rem 0.5rem;
    }
    
    .info-icon i {
        font-size: 2.2rem;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .info-description {
        font-size: 0.95rem;
        line-height: 1.4;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .upload-visual-container {
        height: 350px;
        padding: 0.5rem;
    }
    
    .headers-tutorial-container {
        margin: 2rem 1rem 5rem 1rem; /* Increased bottom margin for mobile */
    }
    
    .tutorial-intro {
        margin-bottom: 1.5rem;
    }
    
    .tutorial-title {
        font-size: 1.1rem;
    }
    
    .tutorial-subtitle {
        font-size: 0.85rem;
    }
    
    .tutorial-table-wrapper {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .tutorial-table {
        font-size: 0.75rem;
    }
    
    .header-column {
        padding: 0.6rem 0.4rem;
    }
    
    .sample-row td {
        padding: 0.5rem 0.4rem;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-icon i {
        font-size: 1.8rem;
    }
    
    .info-text {
        gap: 0.5rem;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
    
    .info-description {
        font-size: 0.85rem;
        line-height: 1.4;
        max-width: 100%;
        word-wrap: break-word;
    }
}
    
    .upload-eyebrow {
        font-size: 0.8rem;
    }
}