/**
 * Credit Recovery Page Styles
 * Refined legal-financial aesthetic
 * Typography: Crimson Pro (display), Plus Jakarta Sans (body), Space Mono (legal)
 * Colors: Teal palette (#4a807c primary)
 */

/* ═══════════════════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════ */

.credit-recovery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.hero-section {
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════════════════ */

.form-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    animation: slideUp 0.5s ease-out 0.1s backwards;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--teal-mid, #4a807c);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    background: var(--bg-input, #ffffff);
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--teal-soft, rgba(74, 128, 124, 0.3));
    background: var(--teal-pale, #e8f0ef);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-mid, #4a807c);
    background: var(--bg-card, #ffffff);
    box-shadow: 0 0 0 4px rgba(74, 128, 124, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group small {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--teal-mid, #4a807c);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════
   TIER HEADERS (Progressive Disclosure)
   ═══════════════════════════════════════════════════════ */

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border, rgba(0,0,0,0.08));
}

.tier-header:first-of-type {
    margin-top: 0;
}

.tier-header h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tier-badge.required {
    background: var(--teal-mid, #4a807c);
    color: white;
}

.tier-badge.optional {
    background: var(--teal-pale, #e8f0ef);
    color: var(--teal-text, #2c5654);
}

.tier-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Form Grid (2-column layout) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

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

/* Helper Text in Labels */
.form-group label .required-mark {
    color: var(--teal-mid, #4a807c);
    font-weight: 700;
}

.form-group label .helper-text {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    display: block;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Submit Section */
.submit-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border, rgba(0,0,0,0.08));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-generate {
    background: var(--teal-mid, #4a807c);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.125rem 3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(74, 128, 124, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-generate:hover {
    background: var(--teal-deep, #3d6b68);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74, 128, 124, 0.35);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate .icon {
    width: 24px;
    height: 24px;
}

.submit-helper {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-align: center;
    max-width: 500px;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background: var(--teal-mid, #4a807c);
    color: white;
}

.btn-primary:hover {
    background: var(--teal-deep, #3d6b68);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74, 128, 124, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(74, 128, 124, 0.15);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--teal-mid, #4a807c);
    border: 2px solid var(--teal-mid, #4a807c);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--teal-pale, #e8f0ef);
    border-color: var(--teal-deep, #3d6b68);
    color: var(--teal-deep, #3d6b68);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2.5rem;
    animation: scaleIn 0.3s ease-out 0.3s backwards;
}

/* ═══════════════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════════════ */

.results-section {
    display: none;
    margin-top: 3rem;
}

.results-section.visible {
    display: block;
    animation: expandResults 0.4s ease-out;
}

.results-header {
    background: linear-gradient(135deg, var(--teal-mid, #4a807c) 0%, var(--teal-deep, #3d6b68) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    animation: slideDown 0.4s ease-out;
}

.results-header h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.results-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.95;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   SUMMARY DASHBOARD (4-Card Layout)
   ═══════════════════════════════════════════════════════ */

.summary-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-top: none;
    padding: 2rem 2.5rem;
    animation: staggerIn 0.6s ease-out 0.2s backwards;
}

.summary-card {
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-card:hover {
    border-color: var(--teal-soft, rgba(74, 128, 124, 0.3));
    box-shadow: 0 8px 24px rgba(74, 128, 124, 0.12);
    transform: translateY(-4px);
}

.summary-card.highlight {
    background: linear-gradient(135deg, var(--teal-pale, #e8f0ef) 0%, rgba(74, 128, 124, 0.08) 100%);
    border-color: var(--teal-mid, #4a807c);
    border-width: 2px;
}

.summary-card.highlight:hover {
    box-shadow: 0 12px 32px rgba(74, 128, 124, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--teal-pale, #e8f0ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-mid, #4a807c);
}

.summary-card.highlight .card-icon {
    background: var(--teal-mid, #4a807c);
    color: white;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-value {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.summary-card.highlight .card-value {
    color: var(--teal-deep, #3d6b68);
}

.card-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Card Breakdown (Traffic Light Counts) */
.card-breakdown {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.breakdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.breakdown-item.green {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.breakdown-item.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.breakdown-item.red {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

/* Confidence Bar */
.confidence-bar {
    width: 100%;
    height: 8px;
    background: var(--border, rgba(0,0,0,0.08));
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.confidence-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.results-body {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 2.5rem;
}

/* ═══════════════════════════════════════════════════════
   OPPORTUNITY CARDS
   ═══════════════════════════════════════════════════════ */

.opportunities-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.opportunity-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-left: 4px solid var(--teal-mid, #4a807c);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out backwards;
}

.opportunity-card:nth-child(1) { animation-delay: 0ms; }
.opportunity-card:nth-child(2) { animation-delay: 100ms; }
.opportunity-card:nth-child(3) { animation-delay: 200ms; }
.opportunity-card:nth-child(4) { animation-delay: 300ms; }
.opportunity-card:nth-child(5) { animation-delay: 400ms; }
.opportunity-card:nth-child(6) { animation-delay: 500ms; }
.opportunity-card:nth-child(7) { animation-delay: 600ms; }
.opportunity-card:nth-child(8) { animation-delay: 700ms; }
.opportunity-card:nth-child(9) { animation-delay: 800ms; }
.opportunity-card:nth-child(10) { animation-delay: 900ms; }
.opportunity-card:nth-child(11) { animation-delay: 1000ms; }
.opportunity-card:nth-child(12) { animation-delay: 1100ms; }
.opportunity-card:nth-child(13) { animation-delay: 1200ms; }
.opportunity-card:nth-child(14) { animation-delay: 1300ms; }
.opportunity-card:nth-child(15) { animation-delay: 1400ms; }

.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 128, 124, 0.12);
    border-color: var(--teal-soft, rgba(74, 128, 124, 0.3));
}

.opportunity-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.opportunity-header-text {
    flex: 1;
}

.opportunity-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.opportunity-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.opportunity-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.category-badge,
.subcategory-badge,
.risk-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge {
    background: var(--teal-mid, #4a807c);
    color: white;
}

.subcategory-badge {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-secondary);
}

.risk-badge.risk-baixo {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.risk-badge.risk-medio {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.risk-badge.risk-alto {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

/* ═══════════════════════════════════════════════════════
   TRAFFIC LIGHT SYSTEM
   ═══════════════════════════════════════════════════════ */

/* Large Traffic Light Indicator */
.traffic-light {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.traffic-light:hover {
    transform: scale(1.1) rotate(5deg);
}

.traffic-light svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.traffic-light.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: pulse-green 2.5s ease-in-out infinite;
}

.traffic-light.green::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: ripple 2s ease-out infinite;
}

.traffic-light.yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    animation: pulse-yellow 2.5s ease-in-out infinite;
}

.traffic-light.yellow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.3);
    animation: ripple 2s ease-out infinite;
}

.traffic-light.red {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    animation: pulse-red 2.5s ease-in-out infinite;
}

.traffic-light.red::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    animation: ripple 2s ease-out infinite;
}

/* Confidence Badge */
.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.confidence-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.confidence-badge.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.confidence-badge.red {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

/* ═══════════════════════════════════════════════════════
   LEGAL BASIS SECTION
   ═══════════════════════════════════════════════════════ */

.legal-basis-section {
    background: var(--teal-pale, #e8f0ef);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-basis-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--teal-deep, #3d6b68);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-basis-header svg {
    color: var(--teal-mid, #4a807c);
}

.legal-source {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: var(--bg-card, white);
    border-left: 3px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.legal-source:last-child {
    margin-bottom: 0;
}

.legal-source.approves {
    border-left-color: var(--success, #10b981);
}

.legal-source.denies {
    border-left-color: var(--error, #dc2626);
}

.legal-source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.legal-source-title {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.source-verdict {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.source-verdict.approves {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.source-verdict.denies {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

.conflict-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #92400e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.conflict-warning strong {
    font-weight: 700;
    color: #78350f;
}

.legal-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-items li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.legal-items li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--teal-mid, #4a807c);
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════
   LEGAL HIERARCHY VISUALIZATION (STJ > CARF > RFB)
   ═══════════════════════════════════════════════════════ */

.legal-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Hierarchy Level Container */
.hierarchy-level {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--bg-card, white);
    border: 2px solid var(--border, rgba(0,0,0,0.08));
    transition: all 0.3s ease;
}

.hierarchy-level:hover {
    border-color: var(--teal-soft, rgba(74, 128, 124, 0.3));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* STJ Level (Highest Authority) */
.hierarchy-level.level-stj {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

/* CARF Level */
.hierarchy-level.level-carf {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

/* RFB Level */
.hierarchy-level.level-rfb {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.2);
}

/* Conflicting RFB (red highlight) */
.hierarchy-level.level-rfb.conflicting {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

/* Authority Badges */
.hierarchy-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hierarchy-badge.stj {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.hierarchy-badge.carf {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.hierarchy-badge.rfb {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Hierarchy Content */
.hierarchy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hierarchy-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.hierarchy-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hierarchy-citation {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.375rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--teal-pale, #e8f0ef);
    margin-top: 0.25rem;
}

.hierarchy-more {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--teal-mid, #4a807c);
    font-weight: 600;
    padding-left: 1rem;
}

/* Verdict Badges */
.hierarchy-verdict {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hierarchy-verdict.binding {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.hierarchy-verdict.approves {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.hierarchy-verdict.denies {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}

/* Hierarchy Connectors */
.hierarchy-connector {
    height: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal-mid, #4a807c) 0%, var(--teal-soft, rgba(74, 128, 124, 0.3)) 100%);
    margin: 0 auto;
    position: relative;
}

.hierarchy-connector::before {
    content: "↓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card, white);
    color: var(--teal-mid, #4a807c);
    font-size: 0.875rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.hierarchy-connector.conflict {
    background: linear-gradient(180deg, #f59e0b 0%, #dc2626 100%);
}

.hierarchy-connector.conflict::before {
    content: "⚠";
    color: #dc2626;
}

/* Conflict Override Warning */
.conflict-override {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px dashed rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 600;
}

.conflict-override svg {
    flex-shrink: 0;
    color: #dc2626;
}

/* ═══════════════════════════════════════════════════════
   SCORE BREAKDOWN
   ═══════════════════════════════════════════════════════ */

.score-breakdown {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.score-breakdown-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.score-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.score-note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border, rgba(0,0,0,0.08));
    margin-top: 0.75rem;
    line-height: 1.6;
}

.score-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   EXPANDABLE SECTIONS
   ═══════════════════════════════════════════════════════ */

.expandable-section {
    border-top: 1px solid var(--border, rgba(0,0,0,0.08));
    margin-top: 1rem;
}

.expandable-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.expandable-header:hover {
    color: var(--teal-mid, #4a807c);
    background: var(--teal-pale, rgba(74, 128, 124, 0.05));
}

.expandable-header span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expandable-content.show {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.expandable-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expandable-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.expandable-content li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--teal-mid, #4a807c);
    font-weight: bold;
}

.opportunity-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════
   FINANCIAL IMPACT
   ═══════════════════════════════════════════════════════ */

.financial-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .financial-impact {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
}

.financial-impact h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.impact-value {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-mid, #4a807c);
    margin-bottom: 0.5rem;
}

.impact-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   NEXT STEPS
   ═══════════════════════════════════════════════════════ */

.next-steps {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.next-steps h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.next-steps ol {
    padding-left: 1.5rem;
    margin: 0;
}

.next-steps li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.next-steps li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   LOADING & EMPTY STATES
   ═══════════════════════════════════════════════════════ */

.loading {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
}

.loading.visible {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border, rgba(0,0,0,0.08));
    border-top-color: var(--teal-mid, #4a807c);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   ERROR STATE
   ═══════════════════════════════════════════════════════ */

.error-message {
    display: none;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #991b1b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.error-message.visible {
    display: block;
    animation: shake 0.4s ease-in-out;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

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

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

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

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

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

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-yellow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .credit-recovery-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tier-header h2 {
        font-size: 1.25rem;
    }

    .results-header {
        padding: 2rem 1.5rem;
    }

    .results-body {
        padding: 2rem 1.5rem;
    }

    .summary-dashboard {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1rem;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .opportunity-card {
        padding: 1.5rem;
    }

    .opportunity-header {
        flex-direction: column;
        gap: 1rem;
    }

    /* Reduce traffic light size on mobile */
    .traffic-light {
        width: 48px;
        height: 48px;
    }

    .traffic-light svg {
        width: 24px;
        height: 24px;
    }

    .confidence-score {
        align-items: center;
    }

    .confidence-score .score {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .next-steps {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .summary-dashboard {
        grid-template-columns: 1fr;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .tier-badge {
        font-size: 0.625rem;
    }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════
   PHASE B: SEARCH UI & DUAL BADGES
   ═══════════════════════════════════════════════════════ */

/* Search Card */
.search-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.search-header svg {
    color: var(--teal-mid, #4a807c);
}

.search-header h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.search-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Search Input Group */
.search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input-group input[type="text"] {
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s;
}

.search-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--teal-mid, #4a807c);
    box-shadow: 0 0 0 3px rgba(74, 128, 124, 0.1);
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-mid, #4a807c), var(--teal-deep, #3d6b68));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 128, 124, 0.3);
}

/* Search Filters */
.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.filter-group select,
.filter-group input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--teal-mid, #4a807c);
    box-shadow: 0 0 0 3px rgba(74, 128, 124, 0.1);
}

/* Search Help */
.search-help {
    border-top: 1px solid var(--border, #e5e7eb);
    padding-top: 1.5rem;
}

.help-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.75rem;
}

.help-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.example-chip {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    color: var(--teal-deep, #3d6b68);
    background: rgba(74, 128, 124, 0.08);
    border: 1px solid rgba(74, 128, 124, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-chip:hover {
    background: rgba(74, 128, 124, 0.15);
    border-color: var(--teal-mid, #4a807c);
}

/* Toggle Advanced Form */
.toggle-advanced {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: transparent;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle:hover {
    color: var(--teal-deep, #3d6b68);
    border-color: var(--teal-mid, #4a807c);
    background: rgba(74, 128, 124, 0.05);
}

.btn-toggle svg {
    transition: transform 0.3s;
}

/* Dual Badges Section */
.dual-badges-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 128, 124, 0.03), rgba(61, 107, 104, 0.05));
    border: 1px solid rgba(74, 128, 124, 0.15);
    border-radius: 10px;
}

.badges-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 1rem;
}

.badges-header svg {
    color: var(--teal-mid, #4a807c);
}

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

.badge-card {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    background: #ffffff;
    transition: all 0.2s;
}

.badge-card.badge-green {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.badge-card.badge-yellow {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
}

.badge-card.badge-red {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
}

.badge-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.5rem;
}

.badge-status {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.badge-card.badge-green .badge-status {
    color: #10b981;
}

.badge-card.badge-yellow .badge-status {
    color: #f59e0b;
}

.badge-card.badge-red .badge-status {
    color: #dc2626;
}

.badge-ref {
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.5rem;
}

.badge-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(107, 114, 128, 0.15);
    font-style: italic;
}

.badges-legend {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
}

.badges-legend svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.badges-legend span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    line-height: 1.5;
}

/* Exclusions Panel */
.exclusions-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(107, 114, 128, 0.04);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
}

.exclusions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.exclusions-header svg {
    color: var(--text-secondary, #6b7280);
}

.exclusions-header h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.exclusions-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1rem;
}

.exclusions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exclusion-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #ffffff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s;
}

.exclusion-item:hover {
    border-color: var(--text-secondary, #6b7280);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.exclusion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #dc2626;
}

.exclusion-content {
    flex: 1;
}

.exclusion-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.25rem;
}

.exclusion-reason {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.25rem;
}

.exclusion-category {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .help-examples {
        flex-direction: column;
    }

    .example-chip {
        text-align: center;
    }
}
