/* Premium Professional Credit Dispute Platform Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Premium Variables - Advanced SaaS Color Palette */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --neural-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --background-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --surface-light: #ffffff;
    --surface-dark: #f1f5f9;
    --border-light: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-premium: 0 20px 60px rgba(102, 126, 234, 0.15);
}

/* Base Styles */
body {
    background: var(--background-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.02em;
}

/* Premium Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.35);
}

/* Modern Tracking Timeline Styles */
.timeline-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-circle {
    background: var(--success-gradient) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.3);
}

.timeline-step.active .timeline-circle {
    background: var(--primary-gradient) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Enhanced Card Styles */
.card.shadow-sm {
    box-shadow: var(--shadow-medium);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

/* Enhanced Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-light);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.5s;
}

.upload-zone:hover::before {
    left: 100%;
}

.upload-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-primary);
}

.upload-zone.dragover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

/* Credit Score Demo */
.credit-score-demo {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.credit-score-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
    border-radius: 16px;
}

.credit-score-demo > * {
    position: relative;
    z-index: 1;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator:hover {
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: var(--shadow-soft);
}

/* Premium Enhanced Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-transform: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    color: var(--text-white);
    filter: brightness(1.05);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-soft);
}

.btn-warning {
    background: var(--warning-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-soft);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 15px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--surface-light);
    outline: none;
}

.form-control-lg {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 15px;
}

/* File Preview */
.file-preview {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    transform: scale(0.98);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-preview.show {
    transform: scale(1);
    opacity: 1;
}

/* Progress Bar */
.progress-modern {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-modern {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

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

/* Navigation */
.navbar {
    background: var(--surface-light) !important;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alerts */
.alert {
    border: 1px solid;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    background: var(--surface-dark);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    border-radius: 8px 8px 0 0;
    margin-right: 0.25rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tabs .nav-link:hover {
    background: var(--surface-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-tabs .nav-link.active {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--border-light);
    border-bottom-color: var(--surface-light);
    box-shadow: var(--shadow-soft);
}

/* Tables */
.table {
    background: var(--surface-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.table th {
    background: var(--surface-dark);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.table-hover tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

/* Account Status Badges */
.account-status {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.account-status.negative {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.account-status.positive {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.account-status.neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Letter Preview */
.letter-preview-content {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    min-height: 600px;
    position: relative;
}

.letter-content {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Professional Letter Display */
.letter-html {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 600px;
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000000;
}

.letter-html .letter-content {
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000000;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Letter Header Styling */
.letter-html p:first-child,
.letter-html div:first-child {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Date styling */
.letter-html p:nth-child(3),
.letter-html div:nth-child(3) {
    margin-bottom: 2rem;
    font-weight: normal;
}

/* Letter body paragraphs */
.letter-html p,
.letter-html div {
    margin: 1rem 0;
    text-align: left;
}

/* Bureau address block */
.letter-html p:nth-child(2),
.letter-html div:nth-child(2) {
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Signature block */
.letter-html p:last-child,
.letter-html div:last-child {
    margin-top: 2rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.5s ease-out;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Account Cards */
.account-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--success-gradient);
}

.account-card.negative::before {
    background: var(--danger-gradient);
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: #6366f1;
}

.account-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.03);
    box-shadow: var(--shadow-medium);
}

/* Footer */
footer {
    background: var(--surface-light) !important;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .step-indicator {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .credit-score-demo .row {
        text-align: center;
    }
    
    .credit-score-demo .col-md-4 {
        margin-bottom: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.display-3 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

/* Professional Dashboard Elements */
.dashboard-stat {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    display: block;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Enhanced Modals */
.modal-content {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-large);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-dark);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Success States */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

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

/* Feature Highlights */
.feature-highlight {
    background: rgba(99, 102, 241, 0.03);
    border-left: 3px solid #6366f1;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
}

.feature-highlight h6 {
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Professional Color Scheme */
.text-primary-custom {
    color: #6366f1 !important;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern SaaS Features */
.saas-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pricing-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid #6366f1;
    position: relative;
}

.pricing-highlight::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Professional Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-neutral {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Modern Input Groups */
.input-group-modern {
    position: relative;
}

.input-group-modern .form-control {
    padding-left: 3rem;
}

.input-group-modern .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 10;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Professional Cards with Borders */
.pro-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-medium);
}

/* Loading States for Buttons */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Premium Glassmorphism Effects */
.premium-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.premium-glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advanced Micro-Interactions */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* Premium Typography */
.premium-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.premium-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* Advanced Dashboard Cards */
.dashboard-card-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--premium-gradient);
    border-radius: 24px 24px 0 0;
}

.dashboard-card-premium:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
}

/* Premium Form Enhancements */
.form-control-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.form-control-premium:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 8px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Premium Badge System */
.badge-premium {
    background: var(--premium-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-security {
    background: var(--success-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.badge-compliance {
    background: var(--neural-gradient);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
}

/* Premium Animations */
@keyframes premiumFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6), 0 0 60px rgba(139, 92, 246, 0.4); }
}

@keyframes premiumPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-premium-float {
    animation: premiumFloat 6s ease-in-out infinite;
}

.animate-premium-glow {
    animation: premiumGlow 3s ease-in-out infinite;
}

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

/* Premium Navigation Enhancement */
.premium-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Sidebar Enhancement */
.premium-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.05);
}

.premium-sidebar a {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-sidebar a:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.premium-sidebar a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Premium Tables */
.table-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.table-premium thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    padding: 1.25rem 1rem;
    border: none;
}

.table-premium tbody tr {
    transition: all 0.2s ease;
}

.table-premium tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

/* Premium Status Indicators */
.status-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: premiumPulse 3s ease-in-out infinite;
}

.status-premium.positive {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.status-premium.negative {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.status-premium.processing {
    background: var(--warning-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 236, 210, 0.4);
}

/* Premium Loading States */
.loading-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spinner-premium {
    width: 50px;
    height: 50px;
    background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    mask: radial-gradient(circle at center, transparent 35%, black 36%);
    animation: spin 2s linear infinite;
}

/* Premium Achievement Badges */
.achievement-badge {
    background: var(--premium-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: premiumGlow 4s ease-in-out infinite;
}

/* Premium Interactive Elements */
.interactive-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.interactive-card:hover::before {
    transform: scaleX(1);
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

/* Premium Grid System */
.premium-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.premium-grid-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-grid-item:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-premium);
}

/* CRITICAL FIX: Main Content Area - Prevents content from hiding behind sidebar */
.content {
    margin-left: var(--side-w);
    margin-top: var(--nav-h);
    padding: 2rem;
    min-height: calc(100vh - var(--nav-h));
    background: var(--bg);
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ======================================== */

/* Mobile First - Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    body {
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.5;
    }
    
    /* Enhanced Form Controls for Mobile */
    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px 16px !important;
        border-radius: 12px !important;
        min-height: 48px !important; /* Touch target size */
        border: 2px solid var(--border-light) !important;
        transition: all 0.3s ease !important;
    }
    
    .form-control:focus {
        border-color: #6366f1 !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
        transform: scale(1.02) !important;
    }
    
    .form-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        color: var(--text-primary) !important;
    }
    
    /* Mobile Button Optimization */
    .btn {
        font-size: 16px !important;
        padding: 14px 24px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        transition: all 0.3s ease !important;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    }
    
    .btn-primary:hover, .btn-primary:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
    }
    
    /* Mobile Card Layout */
    .card {
        margin: 1rem 0.5rem !important;
        border-radius: 20px !important;
        border: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1.5rem !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    /* Mobile Typography */
    h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.5rem !important; line-height: 1.3 !important; }
    h4 { font-size: 1.25rem !important; line-height: 1.4 !important; }
    
    /* Mobile Container and Layout */
    .container, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    
    .col-md-6, .col-lg-5 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile Form Rows */
    .row .col-md-6 {
        margin-bottom: 1rem !important;
    }
    
    /* Mobile Alert Messages */
    .alert {
        margin: 1rem 0.5rem !important;
        padding: 1rem !important;
        font-size: 14px !important;
        border-radius: 16px !important;
    }
    
    /* Mobile Navigation */
    .app-nav .container-fluid {
        padding: 0 1rem !important;
    }
    
    .app-brand {
        font-size: 1.5rem !important;
    }
    
    .btn-group .btn {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-height: 40px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .content {
        margin-left: 0 !important;
        padding: 1rem !important;
        margin-top: var(--nav-h) !important;
    }
    
    .sidebar {
        display: none !important;
    }
    
    /* Tablet Form Optimization */
    .form-control {
        font-size: 16px !important;
        padding: 10px 14px !important;
        min-height: 44px !important;
    }
    
    .btn {
        font-size: 15px !important;
        padding: 12px 20px !important;
        min-height: 44px !important;
    }
    
    /* Tablet Card Layout */
    .glass-card {
        margin: 1rem !important;
        border-radius: 15px !important;
    }
    
    .upload-zone {
        padding: 2rem 1rem !important;
    }
    
    .step-indicator {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .credit-score-demo .row {
        text-align: center !important;
    }
    
    .credit-score-demo .col-md-4 {
        margin-bottom: 1rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s !important;
    }
    
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    .content {
        margin-left: 0 !important;
        padding-top: calc(var(--nav-h) + 20px) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Mobile-Specific Form Enhancements */
@media (max-width: 576px) {
    /* Checkbox and Radio Button Touch Targets */
    .form-check-input {
        width: 20px !important;
        height: 20px !important;
        margin-top: 2px !important;
        cursor: pointer !important;
    }
    
    .form-check-label {
        font-size: 14px !important;
        line-height: 1.5 !important;
        cursor: pointer !important;
        padding-left: 8px !important;
    }
    
    /* Mobile Input Groups */
    .input-group .form-control {
        border-radius: 12px 0 0 12px !important;
    }
    
    .input-group .btn {
        border-radius: 0 12px 12px 0 !important;
        padding: 12px 16px !important;
    }
    
    /* Mobile Modal Adjustments */
    .modal-dialog {
        margin: 1rem 0.5rem !important;
    }
    
    .modal-content {
        border-radius: 20px !important;
    }
    
    /* Mobile Table Responsiveness */
    .table-responsive {
        font-size: 14px !important;
    }
    
    .table th, .table td {
        padding: 8px !important;
        vertical-align: middle !important;
    }
    
    /* Mobile Badge and Tag Adjustments */
    .badge {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Mobile Progress Bars */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
    }
    
    /* Mobile Utility Classes */
    .text-mobile-center { text-align: center !important; }
    .p-mobile-2 { padding: 1rem !important; }
    .m-mobile-2 { margin: 1rem !important; }
    .mb-mobile-3 { margin-bottom: 1.5rem !important; }
    .mt-mobile-3 { margin-top: 1.5rem !important; }
}

/* Touch-Friendly Hover States for Mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .glass-card:hover {
        transform: none !important;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-control, .btn {
        border-width: 1px !important;
    }
}