/* ============================================
   Credit Stamina - Main Stylesheet
   Brand Colors:
   - Stamina Blue: #1E40AF
   - Power Purple: #7C3AED
   - Growth Green: #059669
   - Alert Amber: #D97706
   - Error Red: #DC2626
   - Dark Charcoal: #111827
   - Medium Gray: #6B7280
   - Light Gray: #F3F4F6
   - Pure White: #FFFFFF
============================================ */

:root {
    --stamina-blue: #1E40AF;
    --stamina-purple: #7C3AED;
    --power-purple: #7C3AED;
    --growth-green: #059669;
    --alert-amber: #D97706;
    --error-red: #DC2626;
    --dark-charcoal: #111827;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --pure-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #FFFFFF;
    min-height: 100vh;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: #0f172a;
    position: relative;
    padding: 0 20px;
}

@media (max-width: 768px) {
    #app {
        max-width: 100%;
        padding: 0 16px;
    }
}

/* ============================================
   HEADER
============================================ */
.header {
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(30, 64, 175, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.header-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
}

.app-name {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.btn-icon {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   NAVIGATION TABS
============================================ */
.nav-tabs {
    display: flex;
    padding: 0 20px;
    gap: 4px;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.nav-tab.active {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

.nav-tab:hover {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   SCREENS
============================================ */
.screen {
    display: none;
    padding: 20px 16px;
    padding-bottom: 40px;
}

.screen.active {
    display: block;
}

.screen-content {
    max-width: 100%;
}

/* ============================================
   SUMMARY CARDS
============================================ */
.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
}

.summary-card.total { border-left-color: #1E40AF; }
.summary-card.damage { border-left-color: #DC2626; }
.summary-card.removable { border-left-color: #D97706; }
.summary-card.monitor { border-left-color: #059669; }

.summary-icon {
    font-size: 24px;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-number {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.summary-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================
   LANE SECTIONS
============================================ */
.lanes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lane-section {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.lane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.damage-header { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); border-left: 4px solid #DC2626; }
.removable-header { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border-left: 4px solid #D97706; }
.monitor-header { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); border-left: 4px solid #059669; }

.lane-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.lane-emoji {
    font-size: 18px;
}

.lane-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    color: white;
}

.damage-badge { background: #DC2626; }
.removable-badge { background: #D97706; }
.monitor-badge { background: #059669; }

.lane-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   ACCOUNT CARDS
============================================ */
.account-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
}

.account-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1E40AF;
}

.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.account-creditor {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.account-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #EEF2FF;
    color: #1E40AF;
}

.account-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-top: 2px;
}

.stat-value.danger { color: #DC2626; }
.stat-value.warning { color: #D97706; }
.stat-value.success { color: #059669; }

/* ============================================
   SEE ALL BUTTON
============================================ */
.see-all-btn {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1.5px dashed #D1D5DB;
    border-radius: 10px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.see-all-btn:hover {
    background: #F3F4F6;
    border-color: #1E40AF;
    color: #1E40AF;
}

.see-all-btn.expanded {
    border-color: #1E40AF;
    color: #1E40AF;
    background: #EEF2FF;
}

/* ============================================
   UTILIZATION BAR
============================================ */
.utilization-bar-container {
    margin-top: 10px;
}

.utilization-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 4px;
}

.utilization-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.utilization-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.utilization-fill.low { background: #059669; }
.utilization-fill.medium { background: #D97706; }
.utilization-fill.high { background: #DC2626; }

/* AI Strategy Preview on Account Cards */
.account-strategy-preview {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8EEFF 100%);
    border-radius: 8px;
    border-left: 3px solid #3B82F6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.strategy-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.strategy-text {
    font-size: 12px;
    color: #1E40AF;
    line-height: 1.4;
    flex: 1;
}

/* AI Next Steps Button */
.btn-ai-next-steps {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-ai-next-steps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-ai-next-steps:active {
    transform: translateY(0);
}

/* AI Next Steps Modal */
.ai-next-steps-card {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.ai-next-steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-next-steps-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-next-steps-body {
    padding: 20px 24px;
}

.ai-step-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ai-step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.ai-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ai-step-content {
    flex: 1;
}

.ai-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.ai-step-description {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.4;
    margin-bottom: 6px;
}

.ai-step-account {
    font-size: 12px;
    color: #60A5FA;
    margin-top: 4px;
}

.ai-step-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.ai-step-priority.priority-High {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.ai-step-priority.priority-Medium {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

.ai-step-priority.priority-Low {
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
}

.ai-step-complete {
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: fit-content;
}

.ai-step-complete:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.ai-step-complete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-loading {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
    font-size: 14px;
    position: relative;
}

.ai-loading::before {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    margin: 0 auto 16px;
    overflow: hidden;
    position: relative;
}

.ai-loading::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #10B981);
    border-radius: 100px;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: aiProgressPulse 2s ease-in-out infinite;
}

.ai-empty-state {
    text-align: center;
    padding: 40px;
    color: #94A3B8;
    font-size: 14px;
}

.ai-error {
    text-align: center;
    padding: 40px;
    color: #FCA5A5;
    font-size: 14px;
}

/* ============================================
   ACTION QUEUE
============================================ */
.actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.filter-tabs {
    display: flex;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-tab {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #6B7280;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.filter-tab.active {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* Priority Filters - matches status filter styling */
.priority-filters {
    display: flex;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 12px;
}

.priority-filter {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #6B7280;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.priority-filter:hover {
    background: rgba(99, 102, 241, 0.1);
}

.priority-filter.active {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

#actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
}

.action-card.priority-1 { border-left-color: #DC2626; }
.action-card.priority-2 { border-left-color: #D97706; }
.action-card.priority-3 { border-left-color: #059669; }
.action-card.completed { opacity: 0.6; border-left-color: #6B7280; }

.action-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.action-account-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.priority-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.priority-badge.p1 { background: #FEE2E2; color: #DC2626; }
.priority-badge.p2 { background: #FEF3C7; color: #D97706; }
.priority-badge.p3 { background: #DCFCE7; color: #059669; }

.action-next {
    font-size: 14px;
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 6px;
}

.action-notes {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-due-date {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-due-date.overdue { color: #DC2626; font-weight: 600; }
.action-due-date.soon { color: #D97706; font-weight: 600; }

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-complete {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-complete:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

.btn-dismiss {
    background: #F3F4F6;
    color: #6B7280;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-dismiss:hover {
    background: #E5E7EB;
}

/* ============================================
   MODAL
============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 95, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.modal-container.modal-large {
    max-width: 650px;
    width: 95vw;
    padding: 32px;
}

/* Score Tips Modal */
.score-tips-summary {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.score-tips-current,
.score-tips-target,
.score-tips-points {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.score-tips-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-tips-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #F1F5F9;
}

.score-tips-value.highlight {
    color: #34D399;
    font-size: 28px;
}

.score-tips-arrow {
    font-size: 24px;
    color: #64748B;
    font-weight: 700;
}

.score-tips-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #94A3B8;
    font-size: 14px;
}

.score-tips-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    line-height: 1.6;
    color: #E2E8F0;
    font-size: 14px;
}

.score-tips-content p {
    margin: 0 0 12px 0;
}

/* Professional Step Styling for AI Recommendations */
.score-tip-step {
    display: flex;
    gap: 15px;
    padding: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-left: 4px solid #667eea;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.score-tip-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.score-tip-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.score-tip-content {
    flex: 1;
}

.score-tip-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.score-tip-body {
    margin-top: 10px;
}

.score-tip-paragraph {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 10px;
}

.score-tip-detail {
    font-size: 0.85rem;
    color: #A5B4FC;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
}

.score-tip-simple {
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(248, 250, 252, 0.1);
    border-left: 3px solid #94A3B8;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.6;
}

.score-tips-content p:last-child {
    margin-bottom: 0;
}

.score-tips-content strong {
    color: #34D399;
    font-weight: 700;
}

.score-tips-content ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.score-tips-content li {
    margin-bottom: 8px;
}

/* Score Prediction Disclaimer */
.prediction-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.disclaimer-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.disclaimer-text {
    color: #FBBF24;
    font-weight: 500;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2,
.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-lane-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-lane-badge.damage { background: #FEE2E2; color: #DC2626; }
.modal-lane-badge.removable { background: #FEF3C7; color: #D97706; }
.modal-lane-badge.monitor { background: #DCFCE7; color: #059669; }

.modal-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-field-label {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

.modal-field-value {
    font-size: 14px;
    font-weight: 600;
    color: #F1F5F9;
}

.modal-field-value.danger { color: #FCA5A5; }
.modal-field-value.warning { color: #FCD34D; }
.modal-field-value.success { color: #6EE7B7; }

.modal-divider {
    height: 1px;
    background: #F3F4F6;
}

/* ============================================
   LOADING
============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   AI PROGRESS INDICATOR
============================================ */
.ai-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-progress-content {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.ai-progress-message {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   EMPTY STATE
============================================ */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #6B7280;
    font-size: 13px;
    font-style: italic;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 360px) {
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    .account-card-stats {
        grid-template-columns: 1fr 1fr;
    }
}
/* ============================================
   UPLOAD SCREEN
   ============================================ */

.upload-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.upload-header {
    margin-bottom: 20px;
}

.upload-subtitle {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 4px;
    line-height: 1.5;
}

/* Bureau Cards */
.bureau-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.bureau-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    border-radius: 12px;
    border: 2px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.bureau-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bureau-card.selected {
    border-color: var(--stamina-blue);
    background: rgba(30, 64, 175, 0.05);
}

.bureau-card.equifax .bureau-icon { background: #E31837; }
.bureau-card.experian .bureau-icon { background: #1A3C8F; }
.bureau-card.transunion .bureau-icon { background: #00A3E0; }

.bureau-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

.bureau-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

/* Bureau Selector */
.bureau-selector {
    margin-bottom: 20px;
}

.bureau-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 10px;
}

/* Browse File label button */
.upload-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--stamina-blue);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 0;
    transition: background 0.2s ease;
}

.upload-btn:hover {
    background: #1e3a8a;
}

/* Upload submit button */
.btn-upload {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--stamina-blue), var(--stamina-purple));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-upload:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Selected file display */
.selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--dark-charcoal);
}

.file-icon {
    font-size: 18px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FAFAFA;
    margin-bottom: 20px;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--stamina-blue);
    background: rgba(30, 64, 175, 0.03);
}

.drop-zone.has-file {
    border-color: var(--growth-green);
    background: rgba(5, 150, 105, 0.03);
}

.drop-icon {
    color: #9CA3AF;
    margin-bottom: 12px;
}

.drop-zone.has-file .drop-icon {
    color: var(--growth-green);
}

.drop-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 4px;
}

.drop-subtitle {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.drop-hint {
    font-size: 12px;
    color: #9CA3AF;
}

/* Upload Progress */
.upload-progress {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-charcoal);
}

.progress-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-top-color: var(--stamina-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.progress-bar-container,
.progress-bar-wrap {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
}

.progress-animation {
    padding: 10px 0;
}

.progress-text {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 10px;
    text-align: center;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--stamina-blue), var(--power-purple));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Upload Results */
.upload-results {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    margin-bottom: 20px;
}

.results-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--stamina-blue), var(--power-purple));
    color: white;
}

.results-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-subtitle {
    font-size: 13px;
    opacity: 0.85;
}

.results-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.result-stat {
    text-align: center;
}

.result-stat-number {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.result-stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-accounts {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.result-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: var(--light-gray);
}

.result-account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

.result-account-lane {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.result-account-lane.damage { background: rgba(220,38,38,0.1); color: #DC2626; }
.result-account-lane.removable { background: rgba(217,119,6,0.1); color: #D97706; }
.result-account-lane.monitor { background: rgba(5,150,105,0.1); color: #059669; }

.results-actions {
    padding: 16px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--light-gray);
}

.btn-view-dashboard {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--stamina-blue), var(--power-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-view-dashboard:hover {
    opacity: 0.9;
}

.btn-upload-another {
    flex: 1;
    padding: 12px;
    background: var(--light-gray);
    color: var(--dark-charcoal);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upload-another:hover {
    background: #E5E7EB;
}

/* Upload Result Card */
.upload-result-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.upload-result-card.success {
    border-color: rgba(5, 150, 105, 0.3);
    background: rgba(5, 150, 105, 0.02);
}

.upload-result-card.error {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.02);
}

.result-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.upload-result-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 8px;
}

.upload-result-card p {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 12px;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.result-lane {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.result-lane.damage {
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
}

.result-lane.removable {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
}

.result-lane.monitor {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

/* Upload Error */
.upload-error {
    background: white;
    border-radius: 16px;
    border: 1px solid #FCA5A5;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-error p {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 16px;
}

/* Info Section */
.upload-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 2px;
}

.info-item p {
    font-size: 12px;
    color: var(--medium-gray);
    margin: 0;
}

/* Nav tab - 3 tabs */
.nav-tabs {
    display: flex;
}

.nav-tab {
    flex: 1;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark-charcoal);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--growth-green); }
.toast.error { background: var(--error-red); }

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

.modal-delete-btn {
    background: rgba(220, 38, 38, 0.08);
    color: var(--error-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-delete-btn:hover {
    background: rgba(220, 38, 38, 0.15);
}

.modal-action-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.modal-action-item.completed {
    opacity: 0.6;
}

.modal-action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-action-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-charcoal);
    flex: 1;
    line-height: 1.4;
}

.modal-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   AI ADVISOR
   ============================================ */

/* Floating Action Button */
.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7C3AED, #1E40AF);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.ai-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.ai-fab:active {
    transform: translateY(0);
}

.ai-fab-icon {
    font-size: 16px;
}

.ai-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Overlay */
.ai-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    backdrop-filter: blur(2px);
}

.ai-overlay.active {
    display: block;
}

/* AI Panel */
.ai-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ai-panel.open {
    transform: translateY(0);
}

/* Panel Header */
.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #7C3AED, #1E40AF);
    color: white;
    flex-shrink: 0;
}

.ai-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-name {
    font-size: 16px;
    font-weight: 700;
}

.ai-status {
    font-size: 11px;
    opacity: 0.8;
}

.ai-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quick Questions */
.ai-quick-questions {
    padding: 14px 16px 8px;
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.ai-quick-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ai-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.ai-chips::-webkit-scrollbar { display: none; }

.ai-chip {
    white-space: nowrap;
    padding: 7px 12px;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-charcoal);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-chip:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
}

/* Messages */
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-message.assistant .ai-message-avatar {
    background: linear-gradient(135deg, #7C3AED, #1E40AF);
    color: white;
}

.ai-message.user .ai-message-avatar {
    background: var(--light-gray);
    font-size: 16px;
}

.ai-message-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.ai-message.assistant .ai-message-bubble {
    background: var(--light-gray);
    color: var(--dark-charcoal);
    border-bottom-left-radius: 4px;
}

.ai-message.user .ai-message-bubble {
    background: linear-gradient(135deg, #7C3AED, #1E40AF);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px;
}

.ai-typing-dot {
    width: 7px;
    height: 7px;
    background: #9CA3AF;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Input Area */
.ai-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--light-gray);
    background: white;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.ai-input:focus {
    border-color: #7C3AED;
}

.ai-send-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #7C3AED, #1E40AF);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

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

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Markdown-style formatting in AI responses */
.ai-message-bubble strong { font-weight: 700; }
.ai-message-bubble em { font-style: italic; }

/* ============================================
   AUTH SCREEN
   ============================================ */

/* ==================== LANDING PAGE ==================== */
.landing-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0A0F1E 0%, #0D1229 40%, #130D2E 70%, #1A0A2E 100%);
    overflow-y: auto;
    z-index: 100;
}
.landing-screen.active {
    display: block;
}
.landing-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.landing-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.5) 0%, rgba(99,102,241,0.3) 30%, transparent 70%);
    filter: blur(60px);
    animation: orb-move 8s ease-in-out infinite;
    transform-origin: center;
}

.landing-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(139,92,246,0.15) 40%, transparent 70%);
    filter: blur(80px);
    animation: orb-move 8s ease-in-out infinite;
    animation-delay: -4s;
    transform-origin: center;
}

@keyframes orb-move {
    0% {
        top: 80%;
        left: 70%;
        opacity: 1;
        transform: scale(1);
    }
    25% {
        top: 50%;
        left: 80%;
        opacity: 0.8;
        transform: scale(1.1);
    }
    50% {
        top: 10%;
        left: 20%;
        opacity: 0.6;
        transform: scale(0.85);
    }
    75% {
        top: 30%;
        left: 10%;
        opacity: 0.75;
        transform: scale(0.95);
    }
    100% {
        top: 80%;
        left: 70%;
        opacity: 1;
        transform: scale(1);
    }
}
.landing-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

@media (max-width: 768px) {
    .landing-content {
        max-width: 100%;
        padding: 0 16px 40px;
    }
}
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 16px;
}
.landing-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.landing-brand {
    font-size: 16px;
    font-weight: 800;
    color: #F1F5F9;
    letter-spacing: -0.3px;
}
.landing-signin-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #F1F5F9;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.landing-signin-btn:hover {
    background: rgba(255,255,255,0.15);
}
.landing-hero {
    text-align: center;
    padding: 32px 0 36px;
}
.landing-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.4);
    color: #A5B4FC;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.landing-headline {
    font-size: 36px;
    font-weight: 900;
    color: #F1F5F9;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #F1F5F9 0%, #A5B4FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-subheadline {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0 0 28px;
}
.landing-cta-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
    letter-spacing: -0.2px;
}
.landing-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.45);
}
.landing-cta-note {
    font-size: 12px;
    color: #475569;
    margin-top: 10px;
}
.landing-pricing-note {
    margin-top: 12px;
    font-size: 12px;
    color: #64748B;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-block;
}
.landing-how {
    margin-bottom: 32px;
}
.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.landing-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
}
.landing-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.landing-step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.landing-step-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}
.landing-step-text span {
    font-size: 12px;
    color: #64748B;
    line-height: 1.5;
}
.landing-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0 20px;
}
.landing-price {
    font-size: 42px;
    font-weight: 900;
    color: #F1F5F9;
    letter-spacing: -1px;
}
.landing-price span {
    font-size: 18px;
    font-weight: 600;
    color: #64748B;
}
.landing-price-desc {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}
.landing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}
.landing-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(10px);
}
.landing-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(99,102,241,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.landing-feature-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}
.landing-feature-text span {
    font-size: 12px;
    color: #64748B;
    line-height: 1.5;
}
.landing-score-section {
    margin-bottom: 36px;
}
.landing-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #F1F5F9;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.landing-score-ranges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.landing-score-range {
    border-radius: 12px;
    border: 1px solid;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lsr-range {
    font-size: 13px;
    font-weight: 800;
}
.lsr-label {
    font-size: 12px;
    font-weight: 700;
}
.lsr-desc {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
}
.landing-bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    padding: 32px 24px;
    margin-bottom: 24px;
}
.landing-bottom-cta h2 {
    font-size: 22px;
    font-weight: 800;
    color: #F1F5F9;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.landing-bottom-cta p {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 20px;
}
.landing-signin-link {
    display: block;
    background: none;
    border: none;
    color: #6366F1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: underline;
}
.landing-footer {
    text-align: center;
    font-size: 11px;
    color: #334155;
    padding-top: 8px;
}

/* ==================== AUTH SCREEN ==================== */

/* User Menu */
.btn-user {
    position: relative;
}

.user-menu {
    position: fixed;
    top: 70px;
    right: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 500;
    min-width: 220px;
    border: 1px solid #F3F4F6;
}

.user-menu-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.user-menu-email {
    font-size: 12px;
    color: #6B7280;
    word-break: break-all;
}

.user-menu-divider {
    height: 1px;
    background: #F3F4F6;
    margin-bottom: 12px;
}

.user-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #DC2626;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: rgba(220,38,38,0.08);
}

.user-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 499;
}

/* ==================== NEW SCREENS ==================== */

/* Screen header row */
.screen-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 13px;
    color: #6B7280;
    margin: -8px 0 16px 0;
}

/* Nav tabs - updated for 6 tabs */
.nav-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 0 8px;
    gap: 2px;
    position: sticky;
    top: 60px;
    z-index: 90;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    flex: 0 0 auto;
    padding: 12px 14px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-tab.active {
    color: #1E40AF;
    border-bottom-color: #1E40AF;
}

/* Add action button */
.btn-add-action {
    padding: 8px 16px;
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ==================== LETTERS SCREEN ==================== */

.letter-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.letter-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
}

.letter-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.letter-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.letter-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.letter-type-badge.pay-for-delete { background: #FEF3C7; color: #92400E; }
.letter-type-badge.goodwill { background: #D1FAE5; color: #065F46; }
.letter-type-badge.bureau-dispute { background: #DBEAFE; color: #1E40AF; }
.letter-type-badge.debt-validation { background: #EDE9FE; color: #5B21B6; }

.letter-card-meta {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 12px;
}

.letter-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-view-letter {
    padding: 7px 14px;
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.btn-delete-letter {
    padding: 7px 14px;
    background: rgba(220,38,38,0.08);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
    cursor: pointer;
}

.letter-textarea {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
    resize: vertical;
    box-sizing: border-box;
    color: #111827;
}

.letter-generating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #F0F4FF;
    border-radius: 10px;
    font-size: 14px;
    color: #1E40AF;
    font-weight: 500;
}

.field-desc {
    font-size: 12px;
    color: #6B7280;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* ==================== SCORES SCREEN ==================== */

.score-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.score-card {
    background: white;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
}

.score-current {
    font-size: 28px;
    font-weight: 800;
    color: #1E40AF;
    line-height: 1;
    margin-bottom: 4px;
}

.score-change {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.score-change.positive { color: #059669; }
.score-change.negative { color: #DC2626; }
.score-change.neutral { color: #6B7280; }

.score-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
}

.score-entry-card {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.score-entry-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.score-entry-value {
    font-size: 24px;
    font-weight: 800;
    color: #1E40AF;
    min-width: 52px;
}

.score-entry-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.score-entry-date {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.score-entry-bureau {
    font-size: 12px;
    color: #6B7280;
}

.score-entry-notes {
    font-size: 12px;
    color: #6B7280;
    font-style: italic;
}

.btn-delete-score {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    flex-shrink: 0;
}

.btn-delete-score:hover { opacity: 1; }

/* ==================== HISTORY SCREEN ==================== */

.history-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-bureau-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.history-bureau-icon.equifax { background: linear-gradient(135deg, #DC2626, #EF4444); }
.history-bureau-icon.experian { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.history-bureau-icon.transunion { background: linear-gradient(135deg, #059669, #10B981); }
.history-bureau-icon.unknown { background: linear-gradient(135deg, #6B7280, #9CA3AF); }

.history-info {
    flex: 1;
    min-width: 0;
}

.history-bureau-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.history-file-name {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.history-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.history-status.complete { background: #D1FAE5; color: #065F46; }
.history-status.processing { background: #FEF3C7; color: #92400E; }
.history-status.error { background: #FEE2E2; color: #991B1B; }

/* ==================== PROFILE SCREEN ==================== */

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.profile-email {
    font-size: 13px;
    color: #6B7280;
}

.settings-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #F3F4F6;
}

.settings-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827 !important;
    margin: 0 0 16px 0;
}

.settings-desc {
    font-size: 13px;
    color: #6B7280 !important;
    margin: 0 0 12px 0;
}

.settings-field {
    margin-bottom: 14px;
}

.settings-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151 !important;
    margin-bottom: 6px;
}

.settings-field input,
.settings-field textarea,
.settings-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: white;
    color: #111827;
}

/* Ensure dropdown options are visible */
.settings-field select option {
    background: white;
    color: #111827;
}

/* Ensure labels in settings sections are dark */
.settings-section .settings-title,
.settings-section .settings-desc,
.settings-section label {
    color: #374151 !important;
}

.settings-section .settings-desc {
    color: #6B7280 !important;
}

/* Settings Info Cards */
.settings-info-card {
    border-radius: 12px;
    padding: 14px;
}

.settings-info-card-green {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.settings-info-card-purple {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.settings-info-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151 !important;
    margin-bottom: 2px;
}

.settings-info-desc {
    font-size: 11px;
    color: #6B7280 !important;
}

.btn-replay-tutorial {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-replay-tutorial:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.settings-field input:focus,
.settings-field textarea:focus {
    border-color: #1E40AF;
}

.settings-field input:disabled {
    background: #F9FAFB;
    color: #6B7280;
}

/* Address Form Grid */
.address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.address-full-width {
    grid-column: 1 / -1;
}

.address-city {
    grid-column: 1 / 2;
}

.address-state {
    grid-column: 2 / 3;
}

.address-zip {
    grid-column: 3 / 4;
}

.label-optional {
    font-weight: 400;
    color: #6B7280;
    font-size: 12px;
}

/* Letter Address Grid */
.letter-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.letter-address-full {
    grid-column: 1 / -1;
}

.letter-address-city {
    grid-column: 1 / 2;
}

.letter-address-state {
    grid-column: 2 / 3;
}

.letter-address-zip {
    grid-column: 3 / 4;
}

.btn-save-profile {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.btn-danger-outline {
    width: 100%;
    padding: 12px;
    background: none;
    color: #DC2626;
    border: 1.5px solid #DC2626;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

/* ==================== FORM FIELDS (Modals) ==================== */

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: white;
    color: #111827;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #1E40AF;
}

/* Modal footer buttons */
.btn-cancel {
    padding: 10px 20px;
    background: #F3F4F6;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 20px;
    background: #F3F4F6;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1E40AF;
    cursor: pointer;
}

.modal-large {
    max-width: 600px;
    width: 95vw;
}

/* Modal footer */
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #F3F4F6;
    flex-wrap: wrap;
}

/* User menu profile item */
.user-menu-item.profile-item {
    color: #374151;
}

.user-menu-item.profile-item:hover {
    background: #F3F4F6;
}

/* Loading spinner small */
.loading-spinner.small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

/* Empty state with icon */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-state p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

/* File clear button */
.file-clear {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
}

.file-clear:hover {
    background: #F3F4F6;
    color: #DC2626;
}

/* Account modal bureau badge */
.modal-bureau-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #DBEAFE;
    color: #1E40AF;
    margin-left: 8px;
}

/* Score range indicator */
.score-range {
    font-size: 11px;
    color: #6B7280;
    text-align: center;
    margin-top: 4px;
}

/* Get-current letter type badge */
.letter-type-badge.get-current { background: #FEE2E2; color: #991B1B; }

/* ============================================
   HOUSEHOLD / INVITE STYLES
============================================ */
.household-status {
    margin-bottom: 16px;
}

.household-member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    margin-bottom: 8px;
}

.household-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stamina-blue), var(--power-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.household-member-info {
    flex: 1;
}

.household-member-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

.household-member-role {
    font-size: 12px;
    color: var(--medium-gray);
}

.household-invite-form {
    margin-bottom: 12px;
}

.invite-input-row {
    display: flex;
    gap: 8px;
}

.invite-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.invite-input-row input:focus {
    outline: none;
    border-color: var(--stamina-blue);
}

.btn-invite {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--stamina-blue), var(--power-purple));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-invite:hover {
    opacity: 0.9;
}

.household-invites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invite-pending-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 10px;
}

.invite-pending-info {
    font-size: 13px;
}

.invite-pending-email {
    font-weight: 600;
    color: var(--dark-charcoal);
}

.invite-pending-status {
    font-size: 11px;
    color: #D97706;
    margin-top: 2px;
}

.btn-cancel-invite {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
}

.btn-cancel-invite:hover {
    background: rgba(220, 38, 38, 0.08);
}

.household-joined-banner {
    padding: 12px 14px;
    background: rgba(30, 64, 175, 0.06);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--stamina-blue);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Existing data warning on upload page */
.existing-data-warning {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--dark-charcoal);
}

.existing-data-icon {
    font-size: 16px;
    margin-right: 6px;
}

.existing-data-text {
    margin-bottom: 10px;
}

.existing-data-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-charcoal);
}

.radio-option input[type="radio"] {
    accent-color: var(--stamina-blue);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ============================================
   SCORE ESTIMATOR
   ============================================ */

.score-estimator-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #4C1D95 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: white;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

.score-estimator-left {
    flex-shrink: 0;
}

.score-estimator-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.score-estimator-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.score-estimator-rating {
    font-size: 14px;
    font-weight: 600;
}

.score-estimator-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.score-potential {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 12px;
    width: 100%;
}

.score-potential-icon {
    font-size: 20px;
}

.score-potential-label {
    font-size: 11px;
    opacity: 0.8;
}

.score-potential-value {
    font-size: 16px;
    font-weight: 700;
    color: #86EFAC;
}

.score-breakdown-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.score-factor {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.score-factor.negative {
    background: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.score-factor.warning {
    background: rgba(245, 158, 11, 0.3);
    color: #FCD34D;
}

.score-factor.positive {
    background: rgba(5, 150, 105, 0.3);
    color: #6EE7B7;
}

/* ============================================
   REAL SCORES DASHBOARD CARD
   ============================================ */

.real-scores-section {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 4px;
}

/* ==================== PAYWALL & TRIAL ==================== */
.paywall-card {
    background: #0F172A;
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    max-width: 360px;
    width: 90%;
}
.paywall-header {
    margin-bottom: 20px;
}
.paywall-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.paywall-title {
    font-size: 22px;
    font-weight: 800;
    color: #F1F5F9;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.paywall-subtitle {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}
.paywall-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}
.paywall-price {
    font-size: 38px;
    font-weight: 900;
    color: #F1F5F9;
    letter-spacing: -1px;
}
.paywall-price span {
    font-size: 16px;
    font-weight: 600;
    color: #64748B;
}
.paywall-price-desc {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}
.paywall-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}
.paywall-feature {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
}
.paywall-cta-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
    transition: all 0.2s;
}
.paywall-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.45);
}
.paywall-cancel-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    width: 100%;
}
.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border-bottom: 1px solid rgba(99,102,241,0.2);
    padding: 8px 16px;
    font-size: 12px;
    color: #A5B4FC;
}
.trial-upgrade-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Tooltip Buttons ── */
.tooltip-btn {
    position: relative;
}
.btn-tooltip {
    visibility: hidden;
    opacity: 0;
    background: #1E293B;
    color: #F1F5F9;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
}
.tooltip-btn:hover .btn-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ── Dispute Limit Modal ── */
.dispute-limit-card {
    background: #0F172A;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    max-width: 360px;
    width: 90%;
}
.dispute-limit-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.dispute-limit-title {
    font-size: 18px;
    font-weight: 800;
    color: #F1F5F9;
    margin: 0 0 10px;
}
.dispute-limit-message {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin: 0 0 16px;
}
.dispute-limit-info {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.dispute-limit-info strong {
    font-size: 12px;
    color: #FCD34D;
}
.dispute-limit-info span {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.5;
}
.dispute-limit-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Profile Letter Banner ── */
.profile-letter-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}
.profile-letter-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.profile-letter-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-letter-banner-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #A5B4FC;
}
.profile-letter-banner-text span {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
}

.label-required {
    font-size: 10px;
    font-weight: 600;
    color: #818CF8;
    margin-left: 6px;
    background: rgba(99,102,241,0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Letter Profile Warning ── */
.letter-profile-warning {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #FCD34D;
    margin-bottom: 12px;
}
.letter-profile-warning a {
    color: #FBBF24;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Score Gauge ── */
.score-gauges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.score-gauge-card {
    background: #0F172A;
    border-radius: 14px;
    padding: 12px 8px 10px;
    text-align: center;
    border: 1px solid #1E293B;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-gauge-bureau {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.score-gauge-wrap {
    width: 100%;
    position: relative;
}

.score-gauge-svg {
    width: 100%;
    height: auto;
    display: block;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-top: -6px;
}

.gauge-label-left,
.gauge-label-right {
    font-size: 9px;
    color: #475569;
    font-weight: 600;
}

.score-gauge-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-top: 4px;
}

.score-gauge-next-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.score-gauge-next-tier:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.next-tier-icon {
    font-size: 12px;
}

.next-tier-text {
    font-weight: 800;
    color: inherit;
}

.score-gauge-label {
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
    margin-bottom: 6px;
}

.score-gauge-ranges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 6px;
    font-size: 8px;
    font-weight: 600;
    color: #64748B;
}

.score-gauge-ranges span {
    white-space: nowrap;
}

.real-scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-charcoal);
}

.real-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.real-score-card {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 1px solid #E2E8F0;
}

.real-score-bureau {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.real-score-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.real-score-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.real-score-date {
    font-size: 10px;
    color: #94A3B8;
}

.log-score-prompt {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px dashed #CBD5E1;
}

.log-score-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.log-score-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-score-text strong {
    font-size: 14px;
    color: var(--dark-charcoal);
}

.log-score-text span {
    font-size: 12px;
    color: #64748B;
}

.btn-log-score {
    background: var(--stamina-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-log-score:hover {
    background: #1D4ED8;
}

/* ============================================
   COMPREHENSIVE REDESIGN - Mobile First
   Brand: Blue #1E40AF → Purple #7C3AED gradient
   ============================================ */

/* --- Global App Background --- */
body {
    background: #0F172A;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    background: #0F172A;
}

#screen-app {
    max-width: 1200px;
    margin: 0 auto;
    background: #0F172A;
}

@media (max-width: 768px) {
    #app {
        max-width: 100%;
    }
    #screen-app {
        max-width: 100%;
    }
}

/* --- Screen Background --- */
.screen {
    background: #0F172A;
    min-height: calc(100vh - 120px);
}

/* --- Header Upgrade --- */
.header {
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.header-brand {
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

/* --- Nav Tabs Upgrade --- */
.nav-tabs {
    background: rgba(0,0,0,0.2);
    padding: 0 8px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    font-size: 12px;
    padding: 10px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 4px;
}

.nav-tab.active {
    color: #FFFFFF;
    border-bottom-color: #A78BFA;
    font-weight: 700;
}

/* --- Summary Cards Upgrade --- */
.summary-cards {
    gap: 10px;
    margin-bottom: 20px;
}

.summary-card {
    background: #1E293B;
    border-radius: 14px;
    border-left: none;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    padding: 14px 16px;
}

.summary-card.damage {
    background: linear-gradient(135deg, #1E293B 0%, #2D1515 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.summary-card.removable {
    background: linear-gradient(135deg, #1E293B 0%, #2D2010 100%);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.summary-card.monitor {
    background: linear-gradient(135deg, #1E293B 0%, #0F2D1E 100%);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.summary-number {
    font-size: 28px;
    font-weight: 900;
    color: #F1F5F9;
}

.summary-label {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

/* --- Lane Sections Upgrade --- */
.lane-section {
    background: #1E293B;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.lane-section.lane-damage {
    border-top: 3px solid #EF4444;
}

.lane-section.lane-removable {
    border-top: 3px solid #F59E0B;
}

.lane-section.lane-monitor {
    border-top: 3px solid #10B981;
}

.lane-title {
    font-size: 15px;
    font-weight: 700;
    color: #F1F5F9;
}

.lane-desc {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 12px;
}

.lane-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.lane-badge.damage { background: rgba(239,68,68,0.2); color: #FCA5A5; }
.lane-badge.removable { background: rgba(245,158,11,0.2); color: #FCD34D; }
.lane-badge.monitor { background: rgba(16,185,129,0.2); color: #6EE7B7; }

/* --- Account Cards Upgrade --- */
.account-card {
    background: #0F172A;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s;
}

.account-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.account-creditor {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}

.account-type-badge {
    font-size: 10px;
    background: rgba(124, 58, 237, 0.2);
    color: #C4B5FD;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 10px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #E2E8F0;
}

.stat-value.danger { color: #FCA5A5; }
.stat-value.success { color: #6EE7B7; }

/* --- See All Button --- */
.see-all-btn {
    width: 100%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #C4B5FD;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.see-all-btn:hover {
    background: rgba(124, 58, 237, 0.25);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #475569;
}

.empty-icon { font-size: 36px; margin-bottom: 8px; }

/* --- Action Cards Upgrade --- */
.action-card {
    background: #1E293B;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.action-card.priority-1 { border-left: 3px solid #EF4444; }
.action-card.priority-2 { border-left: 3px solid #F59E0B; }
.action-card.priority-3 { border-left: 3px solid #10B981; }
.action-card.completed { opacity: 0.5; }

.action-account-name {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}

.priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.priority-badge.p1 { background: rgba(239,68,68,0.2); color: #FCA5A5; }
.priority-badge.p2 { background: rgba(245,158,11,0.2); color: #FCD34D; }
.priority-badge.p3 { background: rgba(16,185,129,0.2); color: #6EE7B7; }

.action-next {
    font-size: 13px;
    color: #CBD5E1;
    margin: 8px 0;
    line-height: 1.4;
}

.action-notes {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 8px;
    line-height: 1.4;
}

.action-due-date {
    font-size: 12px;
    color: #64748B;
}

.action-due-date.overdue { color: #FCA5A5; }
.action-due-date.soon { color: #FCD34D; }

.btn-complete {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-dismiss {
    background: rgba(255,255,255,0.08);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Filter Tabs --- */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-tab {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-tab.active {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border-color: transparent;
}

/* --- Screen Headers --- */
.screen-header {
    margin-bottom: 20px;
}

.screen-title {
    font-size: 22px;
    font-weight: 800;
    color: #F1F5F9;
    margin-bottom: 4px;
}

.screen-subtitle {
    font-size: 13px;
    color: #64748B;
}

/* --- Add Action Button --- */
.btn-add-action {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 16px;
    transition: opacity 0.2s;
}

.btn-add-action:hover { opacity: 0.9; }

/* --- Letter Cards --- */
.letter-card {
    background: #1E293B;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.letter-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 4px;
}

.letter-card-meta {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 12px;
}

.btn-view-letter {
    background: rgba(124, 58, 237, 0.2);
    color: #C4B5FD;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-delete-letter {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Score Cards --- */
.score-entry-card {
    background: #1E293B;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Modals Upgrade --- */
.modal-overlay {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #F1F5F9;
}

.modal-title {
    color: #F1F5F9;
    font-size: 18px;
    font-weight: 700;
}

.modal-field-label {
    color: #64748B;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-field-value {
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 600;
}

/* --- Form Inputs in Dark Mode --- */
.modal-content input,
.modal-content select,
.modal-content textarea {
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.1);
    color: #F1F5F9;
    border-radius: 10px;
    padding: 10px 14px;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #475569;
}

.modal-content label {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
}

/* --- Primary Button --- */
.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Upload Page --- */
.bureau-card {
    background: #1E293B;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: all 0.2s;
}

.bureau-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: #263548;
}

.bureau-card.selected {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.15);
}

.bureau-label {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
}

.drop-zone {
    background: #1E293B;
    border: 2px dashed rgba(124, 58, 237, 0.4);
    border-radius: 16px;
    color: #64748B;
    transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.1);
}

/* --- History Cards --- */
.history-card {
    background: #1E293B;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* --- AI Chat --- */
.ai-panel {
    background: #1E293B;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.ai-message.assistant .ai-message-content {
    background: #0F172A;
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px 16px 16px 4px;
}

.ai-input-area {
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
}

#ai-input {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    color: #F1F5F9;
    border-radius: 12px;
}

#ai-input::placeholder { color: #475569; }

/* --- Profile Page --- */
.profile-section {
    background: #1E293B;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.profile-section h3 {
    color: #F1F5F9;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-field label {
    color: #64748B;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field input {
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.1);
    color: #F1F5F9;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
}

/* --- Toast Notifications --- */
.toast {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    color: #F1F5F9;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.success { border-left: 3px solid #10B981; }
.toast.error { border-left: 3px solid #EF4444; }

/* --- Real Scores Card Dark Mode --- */
.real-scores-section {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.06);
}

.real-scores-header {
    color: #F1F5F9;
}

.real-score-card {
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.08);
}

.real-score-bureau {
    color: #64748B;
}

.real-score-date { color: #475569; }

.log-score-prompt {
    background: #1E293B;
    border: 2px dashed rgba(124, 58, 237, 0.3);
}

.log-score-text strong { color: #F1F5F9; }
.log-score-text span { color: #64748B; }

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    #app { max-width: 100%; }

    .screen { padding: 16px 12px 80px; }

    .summary-cards { grid-template-columns: 1fr 1fr; gap: 8px; }

    .summary-number { font-size: 24px; }

    .nav-tab { font-size: 11px; padding: 10px 8px; }

    .account-card { padding: 12px; }

    .lane-section { padding: 14px 12px; }

    .modal-content { 
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .btn-primary { padding: 14px; font-size: 15px; }

    .real-scores-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .real-score-value { font-size: 22px; }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0F172A; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* --- Upload Result Cards --- */
.upload-result-card {
    background: #1E293B;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.upload-result-card.success { border-top: 3px solid #10B981; }
.upload-result-card.error { border-top: 3px solid #EF4444; }

.upload-result-card h3 { color: #F1F5F9; margin-bottom: 8px; }
.upload-result-card p { color: #94A3B8; font-size: 14px; }

.result-lane {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px;
}

.result-lane.damage { background: rgba(239,68,68,0.2); color: #FCA5A5; }
.result-lane.removable { background: rgba(245,158,11,0.2); color: #FCD34D; }
.result-lane.monitor { background: rgba(16,185,129,0.2); color: #6EE7B7; }

.btn-view-dashboard {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-upload-another {
    background: rgba(255,255,255,0.08);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Utilization Bar Dark Mode --- */
.utilization-bar-container { margin-top: 10px; }
.utilization-label { color: #64748B; font-size: 11px; }
.utilization-bar { background: #0F172A; border-radius: 4px; height: 6px; }
.utilization-fill.low { background: #10B981; }
.utilization-fill.medium { background: #F59E0B; }
.utilization-fill.high { background: #EF4444; }

/* --- Modal Bureau Badge --- */
.modal-bureau-badge {
    background: rgba(124, 58, 237, 0.2);
    color: #C4B5FD;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

/* --- Existing Data Warning --- */
#existing-data-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #FCD34D;
    font-size: 13px;
    margin-bottom: 16px;
}

/* --- Progress Bar --- */
.progress-bar-wrap {
    background: #0F172A;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

#progress-bar {
    background: linear-gradient(90deg, #1E40AF, #7C3AED);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

#progress-text {
    color: #94A3B8;
    font-size: 13px;
    text-align: center;
}

/* ============================================
   AUTH SCREEN - RESPONSIVE FIX
   ============================================ */

/* Smaller logo on desktop/laptop */
@media (min-width: 480px) {
    .auth-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 8px;
    }

    .auth-app-name {
        font-size: 22px;
    }

    .auth-tagline {
        font-size: 13px;
    }

    .auth-container {
        gap: 16px;
        max-width: 380px;
    }

    .auth-card {
        padding: 28px;
        border-radius: 20px;
    }

    /* Constrain app width on desktop - looks like a mobile app */
    #app {
        max-width: 1200px;
        box-shadow: 0 0 60px rgba(0,0,0,0.5);
    }

    #screen-app {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0,0,0,0.5);
    }

    /* Add subtle desktop frame */
    #app::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse at center, #1a1040 0%, #060B14 70%);
        z-index: -1;
    }
}

/* Large desktop - even more compact */
@media (min-width: 768px) {
    #app {
        max-width: 1200px;
        min-height: 100vh;
        border-radius: 0;
    }

    #screen-app {
        max-width: 1200px;
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-logo {
        width: 52px;
        height: 52px;
    }

    .auth-app-name {
        font-size: 20px;
    }
}

/* Fix auth tab text wrapping on desktop */
.auth-tab {
    white-space: nowrap;
    font-size: 13px;
}

/* ============================================
   PROGRESS DASHBOARD
============================================ */

.progress-dashboard-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.progress-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-dashboard-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.btn-simulator {
    padding: 8px 14px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-simulator:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.progress-main {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.progress-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.progress-ring-svg {
    width: 100%;
    height: 100%;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-ring-pct {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.progress-ring-label {
    font-size: 10px;
    color: #94A3B8;
    margin-top: 2px;
}

.progress-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
}

.progress-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.progress-stat-value.positive { color: #10B981; }
.progress-stat-value.negative { color: #EF4444; }

.progress-stat-label {
    font-size: 11px;
    color: #94A3B8;
}

.milestones-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

.milestone-badge.earned {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.milestone-icon { font-size: 14px; }

.progress-actions-row {
    display: flex;
    gap: 8px;
}

.progress-action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* ============================================
   DISPUTE COUNTDOWN
============================================ */

.dispute-countdown-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
}

.dispute-countdown-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.dispute-countdown-bureaus {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dispute-bureau-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dispute-bureau-name {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    width: 90px;
    flex-shrink: 0;
}

.dispute-bureau-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dispute-bureau-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.dispute-bureau-count {
    font-size: 11px;
    font-weight: 600;
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.dispute-countdown-note {
    font-size: 11px;
    color: #64748B;
    margin-top: 10px;
    text-align: center;
}

/* ============================================
   SCORE SIMULATOR
============================================ */

.score-simulator-card {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.score-simulator-body {
    padding: 20px 24px;
}

.simulator-subtitle {
    color: #94A3B8;
    font-size: 13px;
    margin-bottom: 16px;
}

.simulator-current-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    color: #93C5FD;
    font-weight: 600;
}

.simulator-score-value {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
}

.simulator-instruction {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.simulator-account-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.simulator-account-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.simulator-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.simulator-action-btn {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.2);
    color: #C4B5FD;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.simulator-action-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    transform: scale(1.03);
}

.simulator-result-card {
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
}

.simulator-result-header {
    font-size: 12px;
    font-weight: 600;
    color: #6EE7B7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.simulator-result-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.simulator-result-current {
    font-size: 32px;
    font-weight: 800;
    color: #94A3B8;
}

.simulator-result-arrow {
    font-size: 24px;
    color: #10B981;
}

.simulator-result-new {
    font-size: 32px;
    font-weight: 800;
    color: #10B981;
}

.simulator-result-change {
    font-size: 18px;
    font-weight: 700;
    color: #6EE7B7;
    margin-bottom: 8px;
}

.simulator-result-reason {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 8px;
}

.simulator-disclaimer {
    font-size: 11px;
    color: #64748B;
    font-style: italic;
}

/* ============================================
   EXPORT MODAL
============================================ */

.export-card {
    max-width: 420px;
}

.export-body {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.export-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.export-info {
    flex: 1;
}

.export-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.export-desc {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 2px;
}

.export-arrow {
    font-size: 18px;
    color: #64748B;
}

/* ============================================
   EDUCATION HUB
============================================ */

.education-card {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.education-body {
    padding: 16px 24px 24px;
}

.education-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.edu-cat-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edu-cat-btn.active, .edu-cat-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.3);
}

.edu-article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edu-article-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.edu-article-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.edu-article-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.edu-article-meta {
    flex: 1;
}

.edu-article-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.edu-article-category {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.edu-article-toggle {
    font-size: 12px;
    color: #64748B;
    transition: transform 0.2s ease;
}

.edu-article-content {
    padding: 0 16px 16px;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.edu-article-content strong {
    color: #E2E8F0;
}

/* ============================================
   ONBOARDING
============================================ */

.onboarding-card {
    max-width: 480px;
    overflow: hidden;
    padding: 0;
}

.onboarding-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #10B981);
    transition: width 0.4s ease;
}

.onboarding-step {
    padding: 32px 28px 24px;
    text-align: center;
}

.onboarding-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.onboarding-title {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.onboarding-subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 24px;
}

.onboarding-body {
    text-align: left;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.onboarding-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onboarding-list li {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #E2E8F0;
    font-size: 13px;
}

.onboarding-lanes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onboarding-lane {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
}

.onboarding-lane.damage { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.onboarding-lane.removable { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }
.onboarding-lane.monitor { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }

.onboarding-lane-icon { font-size: 20px; flex-shrink: 0; }

.onboarding-lane-info strong {
    display: block;
    color: #FFFFFF;
    font-size: 13px;
    margin-bottom: 3px;
}

.onboarding-lane-info span {
    font-size: 12px;
    color: #94A3B8;
}

.onboarding-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboarding-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #E2E8F0;
}

.onboarding-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.onboarding-ai-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboarding-ai-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.onboarding-ai-icon { font-size: 22px; flex-shrink: 0; }

.onboarding-ai-item strong {
    display: block;
    color: #FFFFFF;
    font-size: 13px;
    margin-bottom: 3px;
}

.onboarding-ai-item span {
    font-size: 12px;
    color: #94A3B8;
}

.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-dots {
    display: flex;
    gap: 6px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: #3B82F6;
    width: 20px;
    border-radius: 4px;
}

.onboarding-btns {
    display: flex;
    gap: 8px;
}

.onboarding-btn-next {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.onboarding-btn-back {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================
   CELEBRATION / CONFETTI
============================================ */

.celebration-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 24px;
    padding: 40px 48px;
    text-align: center;
    z-index: 10000;
    animation: celebrationPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebrationPop {
    from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.celebration-icon {
    font-size: 64px;
    margin-bottom: 12px;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.celebration-title {
    font-size: 14px;
    font-weight: 600;
    color: #6EE7B7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.celebration-label {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
}

.confetti-piece {
    position: fixed;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   STAMINA POINTS SYSTEM
============================================ */

.points-widget-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.points-widget-card:hover {
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.15);
}

.points-widget-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.points-widget-icon {
    font-size: 28px;
}

.points-widget-value {
    font-size: 20px;
    font-weight: 800;
    color: #FCD34D;
}

.points-widget-label {
    font-size: 11px;
    color: #94A3B8;
}

.points-widget-right {
    flex: 1;
}

.points-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.points-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #FCD34D);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.points-progress-label {
    font-size: 11px;
    color: #94A3B8;
    text-align: right;
}

/* Points Toast */
.points-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.points-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Rewards Modal */
.rewards-card {
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
}

.rewards-body {
    padding: 20px 24px 24px;
}

.rewards-balance {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(234,179,8,0.1) 100%);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.rewards-balance-main {
    margin-bottom: 16px;
}

.rewards-star {
    font-size: 40px;
    margin-bottom: 8px;
}

.rewards-points-big {
    font-size: 48px;
    font-weight: 900;
    color: #FCD34D;
    line-height: 1;
}

.rewards-points-label {
    font-size: 13px;
    color: #94A3B8;
    margin-top: 4px;
}

.rewards-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.rewards-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.rewards-stat-lbl {
    font-size: 11px;
    color: #64748B;
}

.rewards-redeem-section {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    margin-bottom: 20px;
}

.rewards-redeem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rewards-redeem-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.rewards-redeem-cost {
    font-size: 13px;
    font-weight: 700;
    color: #FCD34D;
}

.rewards-redeem-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.rewards-redeem-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #FCD34D);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rewards-redeem-progress {
    font-size: 12px;
    color: #94A3B8;
    text-align: right;
    margin-bottom: 12px;
}

.rewards-redeem-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.rewards-redeem-btn.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.rewards-redeem-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245,158,11,0.4);
}

.rewards-redeem-btn.disabled {
    background: rgba(255,255,255,0.08);
    color: #64748B;
    cursor: not-allowed;
}

.rewards-redeem-note {
    font-size: 11px;
    color: #64748B;
    text-align: center;
    margin: 0;
}

.rewards-how-section, .rewards-history-section {
    margin-bottom: 20px;
}

.rewards-how-title {
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.rewards-how-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rewards-how-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.rewards-how-icon { font-size: 16px; flex-shrink: 0; }

.rewards-how-label-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rewards-how-label {
    font-size: 13px;
    color: #E2E8F0;
}

.rewards-how-note {
    font-size: 10px;
    color: #10B981;
    font-weight: 600;
    margin-top: 1px;
}

.rewards-how-pts {
    font-size: 13px;
    font-weight: 700;
    color: #FCD34D;
    flex-shrink: 0;
}

.rewards-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

.rewards-history-desc {
    color: #94A3B8;
    flex: 1;
}

.rewards-history-pts.positive { color: #FCD34D; font-weight: 700; }
.rewards-history-pts.negative { color: #EF4444; font-weight: 700; }

/* ============================================
   BUNDLE A: LETTER STATUS TRACKING
============================================ */

.letter-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.letter-send-status {
    font-size: 12px;
    font-weight: 600;
}

.letter-sent-date {
    font-size: 11px;
    color: #64748B;
}

.letter-deadline {
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0;
}

.letter-response-notes {
    font-size: 12px;
    color: #94A3B8;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px 0;
}

.btn-update-status {
    padding: 6px 12px;
    background: rgba(59,130,246,0.15);
    color: #93C5FD;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-update-status:hover {
    background: rgba(59,130,246,0.25);
}

/* Certified Mail Button */
.btn-certified-mail {
    padding: 6px 12px;
    background: rgba(16,185,129,0.15);
    color: #6EE7B7;
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-certified-mail:hover { background: rgba(16,185,129,0.25); }

/* Score Prediction Button */
.btn-score-prediction {
    padding: 10px 16px;
    background: rgba(59,130,246,0.15);
    color: #93C5FD;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-score-prediction:hover { background: rgba(59,130,246,0.25); }

/* Score Prediction Modal */
.prediction-summary {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.prediction-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.prediction-target-score {
    font-size: 32px;
    font-weight: 900;
    color: #3B82F6;
}
.prediction-target-lbl {
    font-size: 10px;
    color: #64748B;
    text-align: center;
}
.prediction-summary-text {
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.5;
}
.prediction-chart {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.prediction-chart-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.prediction-chart-area { position: relative; }
.prediction-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: #475569;
}
.prediction-milestones, .prediction-actions {
    margin-bottom: 16px;
}
.prediction-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.prediction-milestone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(16,185,129,0.06);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(16,185,129,0.15);
}
.prediction-milestone-month {
    font-size: 12px;
    font-weight: 700;
    color: #10B981;
    min-width: 30px;
}
.prediction-milestone-text {
    font-size: 13px;
    color: #CBD5E1;
    flex: 1;
}
.prediction-milestone-score {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
}
.prediction-action-item {
    font-size: 13px;
    color: #CBD5E1;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.letter-status-card {
    max-width: 420px;
}

.letter-status-body {
    padding: 16px 24px 24px;
}

.letter-status-form .letter-status-creditor {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.letter-deadline-info {
    padding: 10px 14px;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #93C5FD;
    margin-top: 8px;
}

/* ============================================
   BUNDLE A: ACCOUNT NOTES
============================================ */

.account-card-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 8px;
}

.btn-account-notes {
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-account-notes:hover {
    background: rgba(255,255,255,0.1);
    color: #E2E8F0;
}

.account-notes-card {
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
}

.account-notes-body {
    padding: 16px 24px 24px;
}

.notes-add-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #E2E8F0;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

.notes-add-form textarea:focus {
    outline: none;
    border-color: rgba(59,130,246,0.4);
}

.note-item {
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.note-text {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.5;
    margin-bottom: 6px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #64748B;
}

.note-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.note-delete-btn:hover { opacity: 1; }

/* ============================================
   BUNDLE B: REFERRAL SYSTEM
============================================ */

.referral-card {
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
}

.referral-body {
    padding: 16px 24px 24px;
}

.referral-content {}

.referral-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(234,179,8,0.1) 100%);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 14px;
    margin-bottom: 16px;
}

.referral-hero-icon { font-size: 36px; }

.referral-hero-text strong {
    display: block;
    color: #FCD34D;
    font-size: 15px;
    margin-bottom: 3px;
}

.referral-hero-text span {
    font-size: 12px;
    color: #94A3B8;
}

.referral-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.referral-stat {
    flex: 1;
    text-align: center;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.referral-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #FFFFFF;
}

.referral-stat-lbl {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.referral-link-section {
    margin-bottom: 20px;
}

.referral-link-label {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.referral-link-row {
    display: flex;
    gap: 8px;
}

.referral-link-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #E2E8F0;
    font-size: 12px;
}

.referral-copy-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.referral-code-row {
    font-size: 12px;
    color: #64748B;
    margin-top: 6px;
}

.referral-how {
    margin-bottom: 16px;
}

.referral-how-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.referral-how-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.referral-how-step span {
    width: 24px;
    height: 24px;
    background: rgba(59,130,246,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #93C5FD;
    flex-shrink: 0;
}

.referral-share-btns {
    display: flex;
    gap: 8px;
}

.referral-share-btn {
    flex: 1;
    padding: 10px 8px;
    background: rgba(255,255,255,0.06);
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.referral-share-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* ============================================
   BUNDLE C: SUBSCRIPTION MANAGEMENT
============================================ */

.sub-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sub-status-badge.active { background: rgba(16,185,129,0.15); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.sub-status-badge.trial { background: rgba(59,130,246,0.15); color: #93C5FD; border: 1px solid rgba(59,130,246,0.3); }
.sub-status-badge.paused { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }

.btn-primary-outline {
    padding: 10px 20px;
    background: transparent;
    color: #3B82F6;
    border: 1px solid #3B82F6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 8px;
}

.btn-primary-outline:hover {
    background: rgba(59,130,246,0.1);
}

/* ============================================
   BUNDLE C: ADMIN DASHBOARD
============================================ */

.admin-card {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-body {
    padding: 16px 24px 24px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.admin-stat-card {
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.admin-stat-card.active { border-color: rgba(16,185,129,0.3); }
.admin-stat-card.trial { border-color: rgba(59,130,246,0.3); }

.admin-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #FFFFFF;
}

.admin-stat-lbl {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.admin-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.admin-users-table {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    align-items: center;
}

.admin-user-email {
    color: #E2E8F0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sub-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.admin-sub-badge.active { background: rgba(16,185,129,0.2); color: #6EE7B7; }
.admin-sub-badge.trial { background: rgba(59,130,246,0.2); color: #93C5FD; }
.admin-sub-badge.cancelled { background: rgba(239,68,68,0.2); color: #FCA5A5; }

/* Admin Feedback List */
.admin-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.admin-feedback-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
}

.admin-feedback-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-feedback-email {
    color: #E2E8F0;
    font-weight: 600;
    font-size: 13px;
}

.admin-feedback-screen {
    background: rgba(99,102,241,0.2);
    color: #93C5FD;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.admin-feedback-date {
    color: #64748B;
    font-size: 11px;
    margin-left: auto;
}

.admin-feedback-content {
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.5;
}

.admin-feedback-content strong {
    color: #E2E8F0;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.admin-feedback-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================
   DASHBOARD ACTION BAR
============================================ */
.dashboard-action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.btn-action-plan {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(59,130,246,0.2));
    border: 1px solid rgba(139,92,246,0.35);
    color: #C4B5FD;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.btn-action-plan:hover { background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(59,130,246,0.3)); }
.btn-notifications {
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.btn-notifications:hover { background: rgba(255,255,255,0.08); }
.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    margin-left: 4px;
}

/* ============================================
   30/60/90 DAY ACTION PLAN
============================================ */
.plan-summary {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}
.plan-summary-text {
    flex: 1;
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.5;
}
.plan-target-gain {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.plan-target-val {
    font-size: 28px;
    font-weight: 900;
    color: #10B981;
}
.plan-target-lbl {
    font-size: 10px;
    color: #64748B;
    text-align: center;
}
.plan-phase {
    margin-bottom: 20px;
}
.plan-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px 10px 0 0;
    margin-bottom: 2px;
}
.plan-phase-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}
.plan-phase-theme {
    font-size: 12px;
    color: #64748B;
    margin-top: 2px;
}
.plan-phase-impact {
    font-size: 13px;
    font-weight: 700;
}
.plan-tasks { display: flex; flex-direction: column; gap: 2px; }
.plan-task {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 14px;
}
.plan-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}
.plan-task-title {
    font-size: 13px;
    font-weight: 700;
    color: #F1F5F9;
    flex: 1;
}
.plan-task-priority {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-task-desc {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 8px;
}
.plan-task-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.plan-task-category {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
.plan-task-impact {
    font-size: 11px;
    color: #10B981;
    font-weight: 700;
}
.plan-task-due {
    font-size: 11px;
    color: #64748B;
    margin-left: auto;
}

/* ============================================
   SMART NOTIFICATIONS MODAL
============================================ */
.notification-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notification-setting:last-of-type { border-bottom: none; }
.notification-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 3px;
}
.notification-setting-desc {
    font-size: 12px;
    color: #64748B;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
input:checked + .toggle-slider { background: #10B981; }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Revenue stat card */
.admin-stat-card.revenue { border-color: rgba(16,185,129,0.2); }
.admin-stat-card.revenue.active { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.08); }

/* Revenue chart */
.admin-revenue-chart {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.revenue-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 70px;
}
.revenue-bar-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}
.revenue-bar {
    width: 100%;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: opacity 0.2s;
}
.revenue-bar-wrap:hover .revenue-bar { opacity: 0.7; }

/* Admin Dashboard Widget on main screen */
.admin-dashboard-widget,
#admin-dashboard-widget {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
}
.admin-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-admin-full {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6EE7B7;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.btn-admin-full:hover { background: rgba(16,185,129,0.25); }
.admin-widget-revenue {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.admin-widget-rev-item {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}
.admin-widget-rev-item.highlight {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.2);
}
.admin-widget-rev-val {
    font-size: 16px;
    font-weight: 800;
    color: #10B981;
}
.admin-widget-rev-lbl {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
}
.admin-widget-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.admin-widget-stat {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-widget-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}
.admin-widget-stat-lbl {
    font-size: 10px;
    color: #64748B;
}

/* ============================================
   LEGAL SCREENS
============================================ */

.legal-screen-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-back {
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-back:hover {
    background: rgba(255,255,255,0.1);
}

.legal-content {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
}

.legal-updated {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 20px 0 8px;
}

.legal-content p {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.7;
    margin: 0 0 12px;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-link-btn {
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.legal-link-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59,130,246,0.3);
}

/* ══════════════════════════════════════════════
   FEATURE: SCORE GOAL SETTING
   ══════════════════════════════════════════════ */

.score-goal-bar-wrap {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 10px 0 4px;
}
.score-goal-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.score-goal-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.score-goal-bar-scores {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}
.score-goal-start { color: #64748B; }
.score-goal-arrow { color: #475569; }
.score-goal-current { color: #60A5FA; }
.score-goal-sep { color: #334155; }
.score-goal-target { color: #34D399; }
.score-goal-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.score-goal-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3B82F6, #34D399);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.score-goal-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 99px;
}
.score-goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.score-goal-pct {
    font-size: 11px;
    font-weight: 700;
    color: #34D399;
}
.score-goal-edit-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.15s;
}
.score-goal-edit-btn:hover { color: #60A5FA; background: rgba(96,165,250,0.1); }

/* Goal Setting Modal */
.goal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.goal-modal {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.goal-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-align: center;
}
.goal-modal-sub {
    font-size: 13px;
    color: #64748B;
    text-align: center;
    margin-bottom: 20px;
}
.goal-score-display {
    text-align: center;
    font-size: 52px;
    font-weight: 800;
    color: #34D399;
    margin: 8px 0;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}
.goal-score-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 16px;
}
.goal-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.08);
    outline: none;
    margin: 8px 0 4px;
}
.goal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #34D399);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59,130,246,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}
.goal-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #475569;
    margin-bottom: 16px;
}
.goal-score-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}
.goal-tier-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
.goal-tier-btn:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.08); }
.goal-tier-btn.active { border-color: #3B82F6; background: rgba(59,130,246,0.15); }
.goal-tier-score { font-size: 13px; font-weight: 700; color: #E2E8F0; }
.goal-tier-label { font-size: 9px; color: #64748B; margin-top: 2px; }
.goal-modal-actions { display: flex; gap: 10px; }
.goal-save-btn {
    flex: 1;
    background: linear-gradient(135deg, #3B82F6, #34D399);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.goal-save-btn:hover { opacity: 0.9; }
.goal-cancel-btn {
    background: rgba(255,255,255,0.06);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* ══════════════════════════════════════════════
   FEATURE: ENHANCED TRIAL BANNER
   ══════════════════════════════════════════════ */

.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.trial-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.trial-banner.trial-plenty {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border-bottom: 1px solid rgba(99,102,241,0.2);
    color: #A5B4FC;
}
.trial-banner.trial-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(234,179,8,0.12));
    border-bottom: 1px solid rgba(245,158,11,0.3);
    color: #FCD34D;
}
.trial-banner.trial-urgent {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(220,38,38,0.12));
    border-bottom: 1px solid rgba(239,68,68,0.35);
    color: #FCA5A5;
    animation: pulse-banner 2s infinite;
}
@keyframes pulse-banner {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.trial-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.trial-days-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    padding: 0 6px;
}
.trial-plenty .trial-days-badge { background: rgba(99,102,241,0.3); color: #C7D2FE; }
.trial-warning .trial-days-badge { background: rgba(245,158,11,0.3); color: #FDE68A; }
.trial-urgent .trial-days-badge { background: rgba(239,68,68,0.3); color: #FECACA; }
.trial-banner-msg { font-size: 12px; font-weight: 500; }
.trial-banner-msg strong { font-weight: 700; }
.trial-reassurance {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}
.trial-upgrade-btn {
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.trial-plenty .trial-upgrade-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}
.trial-warning .trial-upgrade-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}
.trial-urgent .trial-upgrade-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    animation: pulse-btn 1.5s infinite;
}
@keyframes pulse-btn {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.trial-upgrade-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* ══════════════════════════════════════════════
   FEATURE: CUSTOM CONFIRM MODAL + UNDO TOAST
   ══════════════════════════════════════════════ */

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-modal {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: slideUp 0.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.confirm-modal-icon {
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}
.confirm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #F1F5F9;
    text-align: center;
    margin-bottom: 6px;
}
.confirm-modal-msg {
    font-size: 13px;
    color: #64748B;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}
.confirm-modal-actions {
    display: flex;
    gap: 10px;
}
.confirm-cancel-btn {
    flex: 1;
    background: rgba(255,255,255,0.06);
    color: #94A3B8;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.confirm-cancel-btn:hover { background: rgba(255,255,255,0.1); color: #E2E8F0; }
.confirm-delete-btn {
    flex: 1;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.confirm-delete-btn:hover { opacity: 0.9; }
.confirm-delete-btn.confirm-btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}
.confirm-delete-btn.confirm-btn-blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Undo Toast */
.undo-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    min-width: 240px;
}
.undo-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.undo-toast-msg {
    font-size: 13px;
    color: #CBD5E1;
    flex: 1;
}
.undo-toast-timer {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}
.undo-toast-timer svg {
    transform: rotate(-90deg);
}
.undo-timer-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3; }
.undo-timer-fill {
    fill: none;
    stroke: #3B82F6;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 88;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset linear;
}
.undo-btn {
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60A5FA;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.undo-btn:hover { background: rgba(59,130,246,0.3); color: #93C5FD; }

/* ============================================
   FEATURE 1: SCORE CHANGE CELEBRATION SCREEN
   ============================================ */
.score-celebration-popup {
    position: relative;
    background: linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(30,41,59,0.97) 100%);
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 28px;
    padding: 32px 28px 28px;
    max-width: 420px;
    width: 92%;
    z-index: 10001;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.2);
    animation: celebrationPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes celebrationPop {
    from { transform: scale(0.7) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.score-cel-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #94A3B8;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.score-cel-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.score-cel-header { text-align: center; margin-bottom: 24px; }
.score-cel-emoji { font-size: 48px; margin-bottom: 8px; animation: bounce 0.6s ease 0.3s both; }
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.score-cel-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.score-cel-tier { font-size: 15px; font-weight: 600; }
.score-cel-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.score-cel-old, .score-cel-new { text-align: center; }
.score-cel-label { font-size: 11px; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.score-cel-num { font-size: 36px; font-weight: 800; color: #94A3B8; }
.score-cel-num.new { color: #10B981; }
.score-cel-arrow { text-align: center; }
.score-cel-improvement {
    font-size: 20px; font-weight: 800; color: #10B981;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 4px;
}
.score-cel-arrow-icon { font-size: 20px; color: #475569; }
.score-cel-milestone {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: #A5B4FC;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}
.score-cel-share-section { margin-bottom: 16px; }
.score-cel-share-label { font-size: 12px; color: #64748B; text-align: center; margin-bottom: 8px; }
.score-cel-share-card {
    background: linear-gradient(135deg, #1E3A5F, #1E293B);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    text-align: center;
}
.share-card-logo { font-size: 12px; color: #60A5FA; font-weight: 700; margin-bottom: 6px; }
.share-card-headline { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.share-card-scores { font-size: 18px; color: #94A3B8; margin-bottom: 4px; }
.share-card-scores strong { color: #10B981; }
.share-card-tag { font-size: 11px; color: #475569; }
.score-cel-share-btns { display: flex; gap: 8px; }
.score-cel-share-btn {
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.score-cel-share-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.score-cel-done {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.score-cel-done:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.4); }

/* ============================================
   FEATURE 2: DISPUTE TIMELINE TRACKER
   ============================================ */
.timeline-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.timeline-modal {
    background: linear-gradient(135deg, rgba(15,23,42,0.98) 0%, rgba(30,41,59,0.98) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: slideUp 0.3s ease;
}
.timeline-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.timeline-modal-title { font-size: 18px; font-weight: 700; color: #fff; }
.timeline-modal-subtitle { font-size: 13px; color: #64748B; margin-top: 2px; }
.timeline-modal-body { flex: 1; overflow-y: auto; padding: 20px; }
.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748B;
}
.timeline-empty-icon { font-size: 40px; margin-bottom: 12px; }
.timeline-track { position: relative; }
.timeline-event {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 20px;
}
.timeline-event.last { padding-bottom: 0; }
.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(15,23,42,0.98);
}
.timeline-connector {
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99,102,241,0.4), rgba(99,102,241,0.1));
}
.timeline-content { flex: 1; padding-top: 6px; }
.timeline-event-title { font-size: 14px; font-weight: 600; color: #E2E8F0; margin-bottom: 2px; }
.timeline-event-desc { font-size: 12px; color: #64748B; margin-bottom: 3px; }
.timeline-event-date { font-size: 11px; color: #475569; }
.timeline-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.timeline-stats { display: flex; gap: 20px; }
.timeline-stat { text-align: center; }
.timeline-stat-num { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.timeline-stat-label { font-size: 11px; color: #64748B; }
.timeline-close-btn {
    padding: 10px 20px;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 10px;
    color: #A5B4FC;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.timeline-close-btn:hover { background: rgba(99,102,241,0.3); color: #fff; }
.btn-account-timeline {
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.25);
    color: #A5B4FC;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-account-timeline:hover { background: rgba(99,102,241,0.25); color: #C7D2FE; }

/* ============================================
   FEATURE 3: FIRST-WIN GUIDED FLOW
   ============================================ */
.first-win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.first-win-modal {
    background: linear-gradient(135deg, rgba(15,23,42,0.98) 0%, rgba(30,41,59,0.98) 100%);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,185,129,0.1);
    animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.first-win-header {
    text-align: center;
    padding: 28px 24px 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1));
    border-bottom: 1px solid rgba(16,185,129,0.15);
}
.first-win-emoji { font-size: 44px; margin-bottom: 8px; }
.first-win-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.first-win-subtitle { font-size: 14px; color: #64748B; }
.first-win-steps { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.first-win-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.2s;
}
.first-win-step.active {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.25);
}
.fw-step-num {
    width: 28px; height: 28px;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #A5B4FC;
    flex-shrink: 0;
}
.first-win-step.active .fw-step-num {
    background: rgba(16,185,129,0.2);
    border-color: rgba(16,185,129,0.4);
    color: #34D399;
}
.fw-step-content { flex: 1; }
.fw-step-title { font-size: 14px; font-weight: 600; color: #E2E8F0; margin-bottom: 4px; }
.fw-step-desc { font-size: 12px; color: #64748B; line-height: 1.5; }
.fw-step-check { color: #10B981; font-size: 16px; opacity: 0; }
.fw-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}
.fw-badge.removable { background: rgba(245,158,11,0.2); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.fw-badge.damage { background: rgba(239,68,68,0.2); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.first-win-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.first-win-reward {
    text-align: center;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
}
.first-win-reward strong { color: #FCD34D; }
.first-win-btns { display: flex; gap: 10px; }
.fw-btn-secondary {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #64748B;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.fw-btn-secondary:hover { background: rgba(255,255,255,0.08); color: #94A3B8; }
.fw-btn-primary {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.fw-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,0.4); }
.first-win-highlight {
    animation: firstWinPulse 1s ease 3;
    outline: 3px solid #10B981;
    outline-offset: 3px;
}
@keyframes firstWinPulse {
    0%,100% { outline-color: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { outline-color: #34D399; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* ============================================
   FEATURE 4: INACTIVITY RE-ENGAGEMENT NUDGE
   ============================================ */
.inactivity-nudge {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 32px);
    max-width: 420px;
    background: linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(30,41,59,0.97) 100%);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.inactivity-nudge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nudge-close {
    position: absolute;
    top: 8px; right: 10px;
    background: none;
    border: none;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}
.nudge-close:hover { color: #94A3B8; }
.nudge-icon { font-size: 28px; flex-shrink: 0; }
.nudge-content { flex: 1; min-width: 0; padding-right: 16px; }
.nudge-title { font-size: 13px; font-weight: 700; color: #E2E8F0; margin-bottom: 2px; }
.nudge-message { font-size: 12px; color: #64748B; line-height: 1.4; }
.nudge-message strong { color: #94A3B8; }
.nudge-action-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.nudge-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

/* ============================================
   DIGITAL SIGNATURE
   ============================================ */
.sig-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.sig-tab.active {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.5);
    color: #A5B4FC;
}
.sig-font-option {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
    background: #fff;
}
.sig-font-option.selected {
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}
.sig-font-option:hover {
    border-color: rgba(99,102,241,0.5);
}

/* ============================================
   JOURNAL / NEXT STEPS
   ============================================ */
.journal-container {
    padding: 0;
}
.journal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}
.journal-tab {
    background: none;
    border: none;
    color: #64748B;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.journal-tab.active {
    background: rgba(99,102,241,0.15);
    color: #A5B4FC;
}
.journal-entry {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.journal-entry-date {
    font-size: 11px;
    color: #64748B;
}
.journal-entry-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.journal-entry-type.auto { background: rgba(99,102,241,0.15); color: #A5B4FC; }
.journal-entry-type.manual { background: rgba(52,211,153,0.15); color: #34D399; }
.journal-entry-type.task { background: rgba(245,158,11,0.15); color: #F59E0B; }
.journal-entry-text {
    color: #E2E8F0;
    font-size: 14px;
    line-height: 1.5;
}
.journal-entry-text[contenteditable="true"] {
    outline: 1px solid rgba(99,102,241,0.4);
    border-radius: 6px;
    padding: 4px;
    min-height: 20px;
}
.journal-entry-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.journal-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}
.journal-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.journal-btn.complete { border-color: rgba(52,211,153,0.3); color: #34D399; }
.journal-btn.complete:hover { background: rgba(52,211,153,0.1); }
.journal-btn.delete { border-color: rgba(239,68,68,0.3); color: #EF4444; }
.journal-btn.delete:hover { background: rgba(239,68,68,0.1); }
.journal-add-form {
    background: rgba(99,102,241,0.05);
    border: 1px dashed rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}
.journal-add-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    box-sizing: border-box;
}
.journal-completed {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ============================================
   DUPLICATE ACCOUNT BANNER
   ============================================ */
.duplicate-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 14px;
    padding: 14px 16px;
}
.duplicate-banner-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.duplicate-banner-text { flex: 1; }
.duplicate-banner-text strong { display: block; color: #A5B4FC; font-size: 13px; margin-bottom: 4px; }
.duplicate-banner-text span { color: #94A3B8; font-size: 12px; line-height: 1.5; }
.duplicate-banner-close {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}
.duplicate-banner-close:hover { color: #fff; }

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
    color: #64748B;
}

.form-input[readonly] {
    background: rgba(0, 0, 0, 0.2);
    color: #94A3B8;
    cursor: not-allowed;
}

/* ==================== PULSING LOADING ANIMATION ==================== */

/* ==================== PULSING LOADING ANIMATION ==================== */
@keyframes pulseFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.pulsing-text {
    animation: pulseFade 1.5s ease-in-out infinite;
}

.pulsing-text-fast {
    animation: pulseFade 1s ease-in-out infinite;
}

/* ==================== BIOMETRIC AUTH ==================== */
.biometric-prompt {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.biometric-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.biometric-prompt:active {
    transform: translateY(0);
}

.biometric-icon {
    font-size: 20px;
}

/* Billing Section Styles */

.billing-plan-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.billing-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.billing-plan-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.billing-plan-price {
  font-size: 24px;
  font-weight: 700;
  color: #818cf8;
}

.billing-period {
  font-size: 14px;
  font-weight: 400;
  color: #94a3b8;
}

.billing-plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.billing-plan-features span {
  font-size: 14px;
  color: #cbd5e1;
}

.billing-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billing-payment-method,
.billing-upcoming,
.billing-history {
  margin-bottom: 24px;
}

.billing-loading {
  color: #64748b;
  font-style: italic;
}

.billing-payment-display,
.billing-upcoming-display,
.billing-history-display {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  padding: 16px;
}

.billing-payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-card-icon {
  font-size: 24px;
}

.billing-card-brand {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.billing-card-last4 {
  font-size: 14px;
  color: #94a3b8;
}

.billing-card-expiry {
  font-size: 12px;
  color: #64748b;
  margin-left: auto;
}

.billing-no-payment {
  justify-content: center;
  color: #64748b;
}

.billing-no-payment-icon {
  font-size: 20px;
}

.billing-no-payment-text {
  font-size: 14px;
}

.billing-upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.billing-upcoming-amount {
  font-size: 20px;
  font-weight: 700;
  color: #818cf8;
}

.billing-upcoming-date {
  font-size: 14px;
  color: #94a3b8;
}

.billing-upcoming-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.billing-status-draft {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.billing-status-open {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.billing-status-paid {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.billing-status-void {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.billing-no-upcoming {
  text-align: center;
  color: #64748b;
}

.billing-no-upcoming-text {
  font-size: 14px;
}

.billing-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.billing-history-item:last-child {
  border-bottom: none;
}

.billing-history-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.billing-history-amount {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.billing-history-date {
  font-size: 12px;
  color: #94a3b8;
}

.billing-history-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-history-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.billing-history-invoice {
  font-size: 12px;
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s;
}

.billing-history-invoice:hover {
  color: #a5b4fc;
}

.billing-history-empty {
  text-align: center;
  padding: 24px;
  color: #64748b;
}

.billing-history-empty-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.billing-history-empty-text {
  font-size: 14px;
}

.billing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.billing-actions button {
  width: 100%;
}
/* Letter Payment Modal Styles */

.letter-payment-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ERR Explanation Section */
.err-explanation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  color: white;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.err-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.err-text h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.err-text p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.err-text ul {
  margin: 12px 0;
  padding-left: 20px;
}

.err-text li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.err-text strong {
  font-weight: 600;
  color: white;
}

.err-note {
  margin-top: 16px !important;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-style: italic;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Payment Options */
.payment-options {
  margin-bottom: 24px;
}

.payment-options h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.payment-option {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: #667eea;
  background: #f8fafc;
}

.payment-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.option-header input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.option-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

.option-cost {
  font-weight: 700;
  font-size: 18px;
  color: #667eea;
}

.option-description {
  margin: 8px 0 0 32px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* Recipient Form */
.recipient-form {
  margin-bottom: 24px;
}

.recipient-form h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

/* Quick-fill Buttons */
.quick-fill-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.quick-fill-btn {
  flex: 1;
  padding: 10px 16px;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-fill-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  padding: 12px 24px;
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Letter Credits Modal */
.letter-credits-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.credits-intro {
  text-align: center;
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
}

.credit-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.credit-package {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.credit-package:hover {
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.credit-package.featured {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.package-price {
  font-size: 28px;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 8px;
}

.package-per-letter {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.package-savings {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-package {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-package:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.credits-info-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.credits-info-box h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.credits-info-box ul {
  margin: 0;
  padding-left: 20px;
}

.credits-info-box li {
  margin: 8px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

/* Credits Display in Profile */
.credits-info {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.credit-item:last-child {
  border-bottom: none;
}

.credit-label {
  font-size: 14px;
  color: #64748b;
}

.credit-value {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .credit-packages {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .err-explanation {
    flex-direction: column;
    text-align: center;
  }
  
  .quick-fill-buttons {
    flex-direction: column;
  }
}

/* Card Payment Section */
.card-payment-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
}

.card-payment-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.stripe-card-element {
  padding: 12px 16px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.stripe-card-element:hover {
  border-color: #cbd5e1;
}

.stripe-card-element:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.card-errors {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.card-security-note {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-security-note::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236677ea"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>') center/contain no-repeat;
}

/* LetterStream Info Section */
.letterstream-info {
  margin-top: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 16px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-icon {
  font-size: 32px;
}

.info-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.info-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.info-content p strong {
  color: white;
  font-weight: 600;
}

.info-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.info-content li {
  margin: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.info-content li strong {
  color: white;
  font-weight: 600;
}

.info-pricing {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.pricing-value {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
}

.info-note {
  margin-top: 16px !important;
  padding: 12px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-style: italic;
  line-height: 1.5;
}

.info-note strong {
  color: white !important;
}

/* ==================== AUTO-LOGOUT WARNING ==================== */
.auto-logout-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in;
}

.auto-logout-warning-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.auto-logout-warning-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.auto-logout-warning h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.auto-logout-warning p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px 0;
  opacity: 0.95;
}

.auto-logout-warning p strong {
  color: #ffd700;
  font-weight: 700;
}

.auto-logout-warning-actions {
  margin-bottom: 20px;
}

.auto-logout-warning .btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auto-logout-warning .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.auto-logout-countdown {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.countdown-bar {
  height: 100%;
  background: #ffd700;
  width: 100%;
  transform-origin: left;
}

@keyframes countdown {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

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

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

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

/* ==================== PASSWORD RESET MODAL ==================== */
.password-reset-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in;
}

.password-reset-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.password-reset-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounceIn 0.5s ease-out;
}

.password-reset-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.password-reset-content > p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  opacity: 0.95;
}

.reset-email-display {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 24px 0;
  word-break: break-all;
}

.reset-instructions {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 20px 0;
  text-align: left;
}

.reset-instructions h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #ffd700;
}

.reset-instructions ol {
  margin: 0;
  padding-left: 24px;
}

.reset-instructions li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  opacity: 0.95;
}

.reset-instructions li:last-child {
  margin-bottom: 0;
}

.reset-instructions strong {
  color: #ffd700;
  font-weight: 600;
}

.reset-tips {
  background: rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.5;
}

.reset-tips p {
  margin: 0;
  opacity: 0.95;
}

.reset-tips strong {
  color: #ffd700;
}

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

.reset-actions .btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.reset-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.reset-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.reset-actions .btn-primary {
  background: white;
  color: #667eea;
}

.reset-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==================== ENHANCED ANALYTICS ==================== */
.enhanced-analytics {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.analytics-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.analytics-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.analytics-content {
  flex: 1;
  min-width: 0;
}

.analytics-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.analytics-trend {
  font-size: 12px;
  font-weight: 500;
}

.analytics-trend.positive {
  color: #10B981;
}

.analytics-trend.neutral {
  color: rgba(255, 255, 255, 0.7);
}

.analytics-trend.negative {
  color: #EF4444;
}

.score-trend-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.score-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.score-trend-header span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.score-trend-period {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.score-trend-chart {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkline {
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .analytics-row {
    grid-template-columns: 1fr;
  }
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
  }
  
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .nav-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .nav-tab span {
    display: none; /* Hide text on very small screens, keep emoji */
  }
  
  .nav-tab.active span {
    display: inline;
  }
}

/* Mobile Summary Cards */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .summary-card {
    padding: 12px;
  }
  
  .summary-icon {
    font-size: 20px;
  }
  
  .summary-number {
    font-size: 20px;
  }
  
  .summary-label {
    font-size: 10px;
  }
}

/* Mobile Account Cards */
@media (max-width: 768px) {
  .account-card {
    padding: 12px;
  }
  
  .account-creditor {
    font-size: 14px;
  }
  
  .account-type-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .account-card-stats {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .stat-label {
    font-size: 9px;
  }
  
  .stat-value {
    font-size: 12px;
  }
}

/* Mobile Lane Sections */
@media (max-width: 768px) {
  .lane-section {
    margin-bottom: 16px;
  }
  
  .lane-header {
    padding: 10px 12px;
  }
  
  .lane-title {
    font-size: 14px;
  }
  
  .lane-badge {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  .lane-cards {
    gap: 10px;
  }
}

/* Mobile Progress Dashboard */
@media (max-width: 768px) {
  .progress-main {
    flex-direction: column;
    gap: 20px;
  }
  
  .progress-ring-container {
    width: 200px;
    height: 200px;
  }
  
  .progress-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .progress-stat-value {
    font-size: 18px;
  }
  
  .progress-stat-label {
    font-size: 11px;
  }
  
  .milestones-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .milestone-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .milestone-name {
    display: none;
  }
}

/* Mobile Score Gauges */
@media (max-width: 768px) {
  .score-gauges-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .score-gauge {
    padding: 16px;
  }
  
  .score-value {
    font-size: 28px;
  }
}

/* Mobile Buttons */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px; /* Better touch target */
  }
  
  .btn-ai-next-steps,
  .btn-score-prediction {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .progress-action-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Mobile Modals */
@media (max-width: 768px) {
  .modal-container {
    max-width: 95%;
    max-height: 90vh;
    margin: 20px auto;
    padding: 20px;
  }
  
  .modal-header {
    padding: 0 0 16px 0;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 0;
  }
  
  .modal-footer {
    padding: 16px 0 0 0;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Mobile Forms */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
/* Mobile Auth Forms */
@media (max-width: 768px) {
  .auth-form {
    padding: 20px;
  }
  
  .auth-field {
    margin-bottom: 14px;
  }
  
  .auth-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .auth-input {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .auth-submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .auth-forgot-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Mobile Landing Page */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .pricing-section {
    padding: 40px 20px;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile Letters Screen */
@media (max-width: 768px) {
  .letter-card {
    padding: 12px;
  }
  
  .letter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .letter-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Mobile Actions Screen */
@media (max-width: 768px) {
  .action-card {
    padding: 12px;
  }
  
  .action-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Mobile Scores Screen */
@media (max-width: 768px) {
  .score-log-card {
    padding: 12px;
  }
  
  .score-log-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Mobile Profile Screen */
@media (max-width: 768px) {
  .profile-section {
    padding: 16px;
  }
  
  .profile-section h3 {
    font-size: 16px;
  }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  .nav-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .account-card-stats {
    grid-template-columns: 1fr;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
  }
}/* ============================================
   BUDGET PLANNER STYLES
   ============================================ */

/* Budget Planner Screen */
#screen-budget-planner {
    padding: 20px;
}

.screen-header {
    text-align: center;
    margin-bottom: 30px;
}

.screen-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screen-header .subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Budget Summary Card */
.budget-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.budget-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.budget-summary-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.budget-summary-header .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.budget-summary-header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.budget-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.budget-summary-item {
    background: #1E293B;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.budget-summary-item:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.1);
}

.budget-summary-item.income {
    border-left-color: #22c55e;
}

.budget-summary-item.expenses {
    border-left-color: #ef4444;
}

.budget-summary-item.available {
    border-left-color: #3b82f6;
}

.budget-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.budget-category-name {
    font-size: 15px;
    font-weight: 700;
    color: #F1F5F9;
    margin: 0;
}

.budget-card-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.budget-amount {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.budget-amount.negative {
    color: #fca5a5;
}

.budget-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.budget-breakdown {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.budget-breakdown h3 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.expense-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
}

.expense-category:last-child {
    padding-bottom: 0;
}

.expense-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.expense-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFFFFF;
}

/* No Budget State */
.no-budget-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 25px;
}

/* Payment Plans Section */
.payment-plans-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #FFFFFF;
    font-weight: 700;
}

.payment-plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-plan-card {
    background: #1E293B;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.payment-plan-card:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-plan-card.active {
    border-left-color: #667eea;
    border-left-width: 4px;
    background: rgba(102, 126, 234, 0.15);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.plan-strategy {
    background: rgba(102, 126, 234, 0.2);
    color: #818cf8;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    font-weight: 500;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.plan-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.plan-status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

/* Budget Modal */
.budget-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.budget-section {
    margin-bottom: 30px;
}

.budget-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #1e293b;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #64748b;
    font-weight: 600;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 35px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.budget-summary-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    color: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.highlight {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-row.highlight span:last-child {
    color: #86efac;
}

.summary-row span:last-child.negative {
    color: #fca5a5;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .budget-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .budget-modal {
        max-width: 95%;
        margin: 20px;
    }
    
    .screen-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .plan-metrics {
        grid-template-columns: 1fr;
    }
    
    .budget-summary-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}/* ============================================
   AI PLAN GENERATION STYLES
   ============================================ */

/* Create Plan Modal */
.create-plan-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.strategy-selection {
    padding: 20px 0;
}

.strategy-selection h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.strategy-description {
    color: #94A3B8;
    margin-bottom: 30px;
}

.strategy-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.strategy-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.strategy-card:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.strategy-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.strategy-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.strategy-card p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.strategy-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Plan Details Modal */
.plan-details-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.plan-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.plan-strategy-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.plan-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan-metric {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.plan-metric .metric-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.plan-metric .metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
}

.plan-metric .metric-value.highlight {
    color: #86efac;
}

/* AI Analysis Section */
.ai-analysis-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-analysis-section h3,
.ai-analysis-section h4 {
    margin: 0 0 15px 0;
    color: #FFFFFF;
}

.ai-analysis-section h4 {
    font-size: 1.1rem;
    margin-top: 25px;
}

.ai-analysis-text,
.ai-reasoning-text {
    color: #94A3B8;
    line-height: 1.7;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Allocations Section */
.allocations-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.allocations-section h3 {
    margin: 0 0 20px 0;
    color: #FFFFFF;
}

.allocations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.allocation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.allocation-card.dispute {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.allocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.allocation-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.dispute-badge {
    background: #f59e0b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.allocation-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.allocation-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
}

.allocation-detail .detail-label {
    color: #64748b;
    font-size: 0.9rem;
}

.allocation-detail .detail-value {
    font-weight: 600;
    color: #1e293b;
}

.allocation-detail .detail-value.highlight {
    color: #059669;
}

.allocation-reason {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #475569;
    line-height: 1.5;
}

.allocation-reason strong {
    color: #1e293b;
}

/* Plan Actions */
.plan-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strategy-cards {
        grid-template-columns: 1fr;
    }
    
    .plan-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .allocation-details {
        grid-template-columns: 1fr;
    }
    
    .create-plan-modal,
    .plan-details-modal {
        max-width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .plan-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-actions {
        flex-direction: column;
    }
    
    .plan-actions button {
        width: 100%;
    }
}/* ============================================
   PAYMENT TRACKING STYLES
   ============================================ */

/* Record Payment Modal */
.record-payment-modal {
    max-width: 500px;
}

.payment-creditor-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* Payment Progress Modal */
.payment-progress-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.progress-overview {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.progress-circle {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
}

.progress-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.progress-stat .stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.progress-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Allocation Progress List */
.allocation-progress-list {
    margin-top: 30px;
}

.allocation-progress-list h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
}

.allocation-progress-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
}

.allocation-progress-item.paid-off {
    border-color: #22c55e;
    background: #f0fdf4;
}

.allocation-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.allocation-progress-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
}

.progress-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.allocation-progress-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

.progress-detail span {
    color: #64748b;
}

.paid-off-badge {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Updated Plan Details Modal */
.allocations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.allocations-header h3 {
    margin: 0;
    color: #1e293b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .progress-percentage {
        font-size: 1.5rem;
    }
    
    .progress-stat .stat-value {
        font-size: 1.2rem;
    }
    
    .record-payment-modal,
    .payment-progress-modal {
        max-width: 95%;
        margin: 20px;
    }
}
/* ===== AI PROGRESS ANIMATIONS ===== */
@keyframes aiProgressPulse {
    0% { width: 5%; opacity: 0.7; }
    30% { width: 45%; opacity: 1; }
    60% { width: 75%; opacity: 1; }
    85% { width: 90%; opacity: 0.9; }
    100% { width: 95%; opacity: 0.7; }
}

@keyframes aiProgressSteps {
    0%   { width: 8%; }
    20%  { width: 25%; }
    40%  { width: 50%; }
    60%  { width: 70%; }
    80%  { width: 85%; }
    95%  { width: 93%; }
    100% { width: 95%; }
}

@keyframes aiIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes aiDotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* AI Loading Container */
.ai-progress-container {
    text-align: center;
    padding: 40px 20px;
}

.ai-progress-icon {
    animation: aiIconPulse 2s ease-in-out infinite;
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
}

.ai-progress-bar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    height: 6px;
    width: 260px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.ai-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #10B981);
    border-radius: 100px;
    animation: aiProgressSteps 25s ease-out forwards;
}

.ai-progress-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}

.ai-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: aiDotBounce 1.4s ease-in-out infinite;
}
.ai-step-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-step-dot:nth-child(3) { animation-delay: 0.4s; }

/* AI Disclaimer Box */
.ai-disclaimer {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 340px;
    margin: 16px auto 0;
}

.ai-disclaimer p {
    color: rgba(245,158,11,0.85);
    font-size: 11px;
    margin: 0;
    line-height: 1.5;
}

/* Modern AI Icon replacement for robot emoji */
.ai-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* ===== GOAL SELECTOR (Signup) ===== */
.goal-btn {
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s ease;
}

.goal-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: rgba(124,58,237,0.05);
}

.goal-btn.selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(109,40,217,0.1));
    color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* ===== HOME SUMMARY CARD ===== */
.home-summary-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 4px;
}

.home-summary-header {
    margin-bottom: 14px;
}

.home-greeting {
    font-size: 18px;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 2px;
}

.home-subtitle {
    font-size: 12px;
    color: #64748B;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.home-stat-card {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.home-stat-card:hover {
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
    transform: translateY(-1px);
}

.home-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.home-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #F1F5F9;
    line-height: 1.1;
}

.home-stat-label {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
    font-weight: 500;
}

.home-stat-change {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

.home-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-quick-btn {
    flex: 1;
    min-width: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #CBD5E1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-align: center;
}

.home-quick-btn:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.4);
    color: #A5B4FC;
}

/* ===== LETTER STATUS IMPROVEMENTS ===== */
.letter-status-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.letter-status-step {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

.letter-status-step.active {
    color: #A5B4FC;
    font-weight: 700;
}

.letter-status-step.done {
    color: #10B981;
}

.letter-status-arrow {
    color: #334155;
    font-size: 10px;
}

/* ===== SCORE MODAL IMPROVEMENTS ===== */
.score-mode-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.score-mode-btn.active {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.5);
    color: #A5B4FC;
}

.score-bureau-input-card {
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.score-bureau-label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.score-bureau-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #F1F5F9;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 8px 4px;
    font-family: inherit;
}

.score-bureau-input:focus {
    outline: none;
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.08);
}

.score-bureau-input::placeholder {
    font-size: 12px;
    font-weight: 400;
    color: #475569;
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.cookie-consent-message {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-link:hover {
    color: #a78bfa;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.cookie-btn-customize {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
    }
}

/* ============================================
   COOKIE CUSTOMIZE MODAL
   ============================================ */

.cookie-customize-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.cookie-customize-modal.show,
.cookie-customize-modal[style*="display: flex"],
.cookie-customize-modal[style*="display:flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.cookie-customize-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.cookie-customize-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
}

.cookie-customize-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-customize-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-customize-body {
    padding: 24px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.cookie-option-info p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

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

.cookie-customize-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.cookie-customize-footer button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 40px 20px 20px 20px;
    clear: both;
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

/* Force all footer links to correct color */
.site-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: #c4b5fd !important;
}

.site-footer .footer-contact a {
    color: #c4b5fd !important;
}

.site-footer .footer-contact a:hover {
    color: #ffffff !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #f1f5f9;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.footer-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #c4b5fd !important;
    transform: translateX(4px);
}

.footer-contact p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.footer-contact strong {
    color: #f1f5f9;
    font-weight: 700;
}

.footer-contact a {
    color: #c4b5fd !important;
    text-decoration: none !important;
}

.footer-contact a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    margin-top: 30px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #c4b5fd !important;
}

.footer-separator {
    color: #475569;
    font-size: 12px;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
        padding: 30px 0 20px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   FCRA ACKNOWLEDGMENT MODAL
   ============================================ */

.fcra-acknowledgment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.fcra-acknowledgment-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fcra-acknowledgment-icon {
    font-size: 64px;
    text-align: center;
    margin: 20px 0 16px;
}

.fcra-acknowledgment-content h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 8px 0;
}

.fcra-acknowledgment-subtitle {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px 0;
}

.fcra-acknowledgment-disclaimer {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 0 20px 24px;
    max-height: 300px;
    overflow-y: auto;
}

.fcra-acknowledgment-disclaimer h3 {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.fcra-disclaimer-text {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.8;
}

.fcra-disclaimer-text p {
    margin: 0 0 12px 0;
}

.fcra-disclaimer-text p:last-child {
    margin-bottom: 0;
}

.fcra-disclaimer-text strong {
    color: #ffffff;
    font-weight: 600;
}

.fcra-acknowledgment-actions {
    padding: 0 20px;
}

.fcra-acknowledgment-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    margin-bottom: 20px;
    user-select: none;
}

.fcra-acknowledgment-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.fcra-acknowledgment-buttons {
    display: flex;
    gap: 12px;
}

.fcra-acknowledgment-button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fcra-acknowledgment-button.cancel {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fcra-acknowledgment-button.cancel:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

.fcra-acknowledgment-button.confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fcra-acknowledgment-button.confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.fcra-acknowledgment-button.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fcra-acknowledgment-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin: 16px 20px 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fcra-acknowledgment-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.fcra-acknowledgment-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .fcra-acknowledgment-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .fcra-acknowledgment-icon {
        font-size: 48px;
    }
    
    .fcra-acknowledgment-content h2 {
        font-size: 24px;
    }
    
    .fcra-acknowledgment-buttons {
        flex-direction: column;
    }
    
    .fcra-acknowledgment-disclaimer {
        max-height: 250px;
    }
}

/* ============================================
   LEGAL MODALS
   ============================================ */

.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.legal-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.legal-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
}

.legal-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.legal-modal-body h3 {
    color: #f1f5f9;
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 12px;
}

.legal-modal-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-modal-body li {
    margin-bottom: 8px;
}
