/**
 * 🇺🇸 ELITE IRS FILING PACK MODAL — FULL SCREEN
 * Schedule A Line 5a (Sales Tax Deduction — Actual Expense Method)
 * Reuses .elite-taxr-* design tokens; adds .elite-irs-* specifics.
 */

.elite-irs-overlay {
    position: fixed; inset: 0;
    z-index: 10110;
    display: flex; align-items: stretch; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .5s cubic-bezier(.34,1.56,.64,1), visibility .5s, background .6s ease;
    background: linear-gradient(135deg, rgba(5,8,20,0.98) 0%, rgba(15,5,30,0.98) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
}
.elite-irs-overlay.light-theme {
    background: linear-gradient(135deg, rgba(240,242,247,0.98) 0%, rgba(255,255,255,0.98) 100%);
}
.elite-irs-overlay:not(.hidden) { opacity: 1; visibility: visible; }

.elite-irs-close {
    position: absolute; top: 32px; right: 32px;
    width: 48px; height: 48px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%; color: #F5F5F7; font-size: 1.125rem;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.elite-irs-overlay.light-theme .elite-irs-close {
    background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: #1D1D1F;
}
.elite-irs-close:hover {
    background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4);
    color: #ef4444; transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 30px rgba(239,68,68,.4);
}

.elite-irs-content {
    width: 100%; max-width: 1000px; height: 100%;
    overflow-y: auto; overflow-x: hidden;
    padding: 56px 48px 80px;
    opacity: 0; transform: translateY(30px) scale(.97);
    transition: all .6s cubic-bezier(.34,1.56,.64,1);
    scrollbar-width: none; -ms-overflow-style: none;
}
.elite-irs-overlay:not(.hidden) .elite-irs-content {
    opacity: 1; transform: translateY(0) scale(1);
}
.elite-irs-content::-webkit-scrollbar { display: none; }

.elite-irs-header { text-align: center; margin-bottom: 36px; }
.elite-irs-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.1rem; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    animation: irs-glow 3s ease-in-out infinite;
}
.elite-irs-overlay.light-theme .elite-irs-title {
    background: linear-gradient(135deg, #1e40af, #6d28d9, #be185d);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.elite-irs-title i {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
}
@keyframes irs-glow {
    0%,100% { filter: drop-shadow(0 0 18px rgba(59,130,246,.5)); }
    50%     { filter: drop-shadow(0 0 28px rgba(139,92,246,.7)); }
}
.elite-irs-subtitle {
    font-size: .9375rem; color: rgba(245,245,247,.65);
    max-width: 640px; margin: 0 auto; line-height: 1.55; letter-spacing: .3px;
}
.elite-irs-overlay.light-theme .elite-irs-subtitle { color: rgba(29,29,31,.65); }

/* Form 1040 Schedule A reference badge */
.elite-irs-form-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.35);
    border-radius: 999px;
    font-family: 'Orbitron', sans-serif;
    font-size: .6875rem; font-weight: 700; letter-spacing: 1px;
    color: #60a5fa; text-transform: uppercase;
    margin-top: 8px;
}
.elite-irs-overlay.light-theme .elite-irs-form-badge {
    background: rgba(30,64,175,.08); border-color: rgba(30,64,175,.3); color: #1e40af;
}

/* Summary cards */
.elite-irs-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.elite-irs-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 24px;
    transition: all .3s ease;
}
.elite-irs-overlay.light-theme .elite-irs-card {
    background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08);
}
.elite-irs-card:hover {
    border-color: rgba(59,130,246,.35); transform: translateY(-2px);
}
.elite-irs-card-label {
    font-size: .6875rem; text-transform: uppercase; letter-spacing: 1.4px;
    color: rgba(245,245,247,.45); margin-bottom: 6px; font-weight: 600;
}
.elite-irs-overlay.light-theme .elite-irs-card-label { color: rgba(29,29,31,.5); }
.elite-irs-card-value {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700;
    color: #60a5fa; letter-spacing: .5px;
}
.elite-irs-overlay.light-theme .elite-irs-card-value { color: #1e40af; }
.elite-irs-card-hint {
    font-size: .75rem; color: rgba(245,245,247,.4); margin-top: 4px;
}
.elite-irs-overlay.light-theme .elite-irs-card-hint { color: rgba(29,29,31,.5); }

/* Section */
.elite-irs-section { margin-bottom: 32px; }
.elite-irs-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.0625rem; font-weight: 600; letter-spacing: .6px;
    color: #F5F5F7; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.elite-irs-overlay.light-theme .elite-irs-section-title { color: #1D1D1F; }
.elite-irs-section-title i { color: #60a5fa; font-size: 1rem; }
.elite-irs-overlay.light-theme .elite-irs-section-title i { color: #1e40af; }

/* Manifest table */
.elite-irs-table-wrap {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; overflow: hidden;
}
.elite-irs-overlay.light-theme .elite-irs-table-wrap {
    background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.07);
}
.elite-irs-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.elite-irs-table th, .elite-irs-table td {
    padding: 11px 16px; text-align: left;
}
.elite-irs-table thead th {
    font-family: 'Orbitron', sans-serif;
    font-size: .6875rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(245,245,247,.55);
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.elite-irs-overlay.light-theme .elite-irs-table thead th {
    color: rgba(29,29,31,.6); background: rgba(0,0,0,.02);
    border-bottom-color: rgba(0,0,0,.08);
}
.elite-irs-table tbody td {
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: rgba(245,245,247,.8);
}
.elite-irs-overlay.light-theme .elite-irs-table tbody td {
    border-bottom-color: rgba(0,0,0,.04); color: rgba(29,29,31,.85);
}
.elite-irs-table tbody tr:hover td { background: rgba(59,130,246,.05); }
.elite-irs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.elite-irs-table .tax { color: #60a5fa; font-weight: 600; }

/* Method / disclaimer box */
.elite-irs-method-box {
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08));
    border: 1px solid rgba(59,130,246,.25);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex; gap: 14px; align-items: flex-start;
}
.elite-irs-overlay.light-theme .elite-irs-method-box {
    background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(109,40,217,.06));
    border-color: rgba(30,64,175,.25);
}
.elite-irs-method-box i {
    color: #60a5fa; font-size: 1.25rem; margin-top: 2px; flex-shrink: 0;
}
.elite-irs-overlay.light-theme .elite-irs-method-box i { color: #1e40af; }
.elite-irs-method-box-text {
    font-size: .875rem; color: rgba(245,245,247,.85); line-height: 1.55;
}
.elite-irs-overlay.light-theme .elite-irs-method-box-text { color: rgba(29,29,31,.85); }
.elite-irs-method-box-text b { color: #93c5fd; }
.elite-irs-overlay.light-theme .elite-irs-method-box-text b { color: #1d4ed8; }

.elite-irs-disclaimer {
    font-size: .75rem; color: rgba(245,245,247,.4); line-height: 1.6;
    padding: 14px 18px;
    background: rgba(255,255,255,.02); border: 1px dashed rgba(255,255,255,.07);
    border-radius: 12px; margin-bottom: 28px;
}
.elite-irs-overlay.light-theme .elite-irs-disclaimer {
    color: rgba(29,29,31,.5); background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.08);
}

/* Generate button */
.elite-irs-generate {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px;
}
.elite-irs-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: .875rem; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.elite-irs-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139,92,246,.5);
}
.elite-irs-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.elite-irs-btn.secondary {
    background: rgba(255,255,255,.06);
    color: rgba(245,245,247,.85);
    box-shadow: none;
}
.elite-irs-overlay.light-theme .elite-irs-btn.secondary {
    background: rgba(0,0,0,.04); color: rgba(29,29,31,.85);
}
.elite-irs-btn.secondary:hover { background: rgba(255,255,255,.1); }
.elite-irs-btn .fa-spinner { animation: irs-spin .9s linear infinite; }
@keyframes irs-spin { to { transform: rotate(360deg); } }

/* Trigger button next to existing Download Receipts */
.elite-irs-trigger-btn {
    margin-top: 10px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, rgba(59,130,246,.13), rgba(139,92,246,.13));
    border: 1px solid rgba(59,130,246,.36);
    border-radius: 12px;
    color: #60a5fa;
    font-family: 'Orbitron', sans-serif;
    font-size: .8125rem; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.elite-irs-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(139,92,246,.22));
    border-color: rgba(59,130,246,.6);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59,130,246,.25);
    color: #93c5fd;
}

/* Empty state */
.elite-irs-empty {
    text-align: center; padding: 64px 24px;
}
.elite-irs-empty i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: .55; margin-bottom: 16px;
}
.elite-irs-empty-title {
    font-family: 'Orbitron', sans-serif; font-size: 1.125rem;
    color: #F5F5F7; margin-bottom: 8px; letter-spacing: .5px;
}
.elite-irs-overlay.light-theme .elite-irs-empty-title { color: #1D1D1F; }
.elite-irs-empty-text {
    font-size: .9375rem; color: rgba(245,245,247,.55);
    max-width: 440px; margin: 0 auto; line-height: 1.55;
}
.elite-irs-overlay.light-theme .elite-irs-empty-text { color: rgba(29,29,31,.6); }

/* Progress overlay during ZIP generation */
.elite-irs-progress {
    position: fixed; inset: 0; z-index: 10300;
    background: rgba(0,0,0,.72); backdrop-filter: blur(14px);
    display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 18px;
}
.elite-irs-progress.active { display: flex; }
.elite-irs-progress-spinner {
    width: 64px; height: 64px;
    border: 3px solid rgba(96,165,250,.25);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: irs-spin 1s linear infinite;
}
.elite-irs-progress-text {
    font-family: 'Orbitron', sans-serif; font-size: .875rem;
    letter-spacing: 1px; text-transform: uppercase;
    color: #93c5fd;
}

body.elite-irs-open { overflow: hidden; }
