.incentive-page {
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ee;
    --blue: #1769e0;
    --green: #087f5b;
    --amber: #b45309;
    background: #f7f9fc;
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: 56px;
}

.incentive-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.incentive-hero {
    background: #13213d;
    color: #fff;
    padding: 34px 0 30px;
    border-bottom: 4px solid #2f80ed;
}

.incentive-hero .eyebrow {
    color: #9ec5ff;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.incentive-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 10px; font-weight: 800; }
.incentive-hero p { color: #d7e3f5; max-width: 780px; margin: 0; line-height: 1.6; }

.privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .82rem;
    background: rgba(255,255,255,.07);
    border-radius: 6px;
}

.incentive-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; margin-top: 24px; }
.tool-panel, .result-panel, .info-band, .compare-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.tool-panel { padding: 24px; }
.result-panel { padding: 22px; align-self: start; position: sticky; top: 88px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-heading h2, .result-panel h2 { font-size: 1.22rem; font-weight: 800; margin: 0; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: #263247; }
.field small { display: block; color: var(--muted); margin-top: 5px; font-size: .76rem; line-height: 1.4; }
.field input, .field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 9px 11px;
    color: #111827;
    background: #fff;
}
.field input:focus, .field select:focus { outline: 3px solid rgba(23,105,224,.14); border-color: var(--blue); }

.section-label { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; font-weight: 800; }
.advanced-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.advanced-box summary { cursor: pointer; font-weight: 800; color: var(--blue); }
.advanced-box .field-grid { margin-top: 16px; }

.result-main { background: #edf5ff; border-left: 4px solid var(--blue); padding: 15px; margin: 14px 0 16px; }
.result-main span { display: block; color: var(--muted); font-size: .8rem; }
.result-main strong { display: block; font-size: 1.7rem; margin-top: 3px; color: #0f3f84; }
.result-main[data-status="eligible"] { background: #ecfdf5; border-left-color: var(--green); }
.result-main[data-status="eligible"] strong { color: #065f46; font-size: 1.3rem; }
.result-main[data-status="review"] { background: #fff8e7; border-left-color: #d97706; }
.result-main[data-status="review"] strong { color: #92400e; font-size: 1.3rem; }
.result-main[data-status="ineligible"] { background: #fff1f2; border-left-color: #dc2626; }
.result-main[data-status="ineligible"] strong { color: #991b1b; font-size: 1.3rem; }
.result-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.result-row span { color: var(--muted); }
.result-row strong { text-align: right; color: var(--ink); }
.result-row.good strong { color: var(--green); }
.result-row.warn strong { color: var(--amber); }

.result-actions { display: grid; gap: 8px; margin-top: 18px; }
.tool-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 13px; border-radius: 6px; text-decoration: none; font-weight: 800; }
.tool-link.primary { color: #fff; background: var(--blue); }
.tool-link.secondary { color: var(--blue); border: 1px solid #a8c9f7; background: #fff; }

.callout { margin-top: 16px; padding: 12px 14px; border: 1px solid #f0c36a; background: #fff8e7; color: #613c00; border-radius: 6px; font-size: .82rem; line-height: 1.5; }
.callout.info { border-color: #b8d6fb; background: #f1f7ff; color: #193f70; }
.hidden { display: none !important; }

.content-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 12px; }
.content-tabs button { border: 1px solid #b9c7da; background: #fff; color: #314158; border-radius: 6px; padding: 9px 13px; font-weight: 800; }
.content-tabs button.active { background: #182b4e; color: #fff; border-color: #182b4e; }
.info-band { padding: 22px; }
.info-band h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.info-band p, .info-band li { color: #475569; line-height: 1.65; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.example-card { border: 1px solid var(--line); padding: 15px; border-radius: 6px; background: #fbfcfe; }
.example-card strong { display: block; margin-bottom: 6px; }
.example-card button { border: 0; color: #fff; background: var(--blue); border-radius: 5px; padding: 7px 10px; margin-top: 8px; font-weight: 700; }

.compare-section { margin-top: 26px; padding: 22px; }
.compare-section h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.compare-section > p { color: var(--muted); margin-bottom: 16px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; text-align: left; }
.compare-table th { background: #f1f5f9; color: #334155; }
.compare-table td:first-child { font-weight: 800; width: 24%; }

.legal-footnote { margin-top: 18px; color: #64748b; font-size: .78rem; line-height: 1.5; }

.deduction-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.compact-heading { margin-bottom: 14px; }
.compact-heading h2 { font-size: 1.05rem; }
.item-search { margin-bottom: 10px; }
.item-search input { max-width: 520px; }
.entry-builder { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) auto; gap: 10px; align-items: end; }
.entry-builder:has(#akvOzelTutarWrap:not(.hidden)) { grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) minmax(170px, 1.2fr) auto; }
.add-entry-button { min-height: 44px; border: 0; border-radius: 6px; padding: 9px 16px; background: var(--blue); color: #fff; font-weight: 800; white-space: nowrap; }
.selected-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.selected-items-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.selected-items-table th { text-align: left; background: #f1f5f9; color: #475569; padding: 9px 10px; white-space: nowrap; }
.selected-items-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.selected-items-table th:nth-child(2), .selected-items-table td:nth-child(2) { text-align: right; }
.selected-items-table th:last-child, .selected-items-table td:last-child { text-align: center; width: 76px; }
.effect-badge { display: inline-block; border-radius: 4px; padding: 4px 7px; font-size: .73rem; font-weight: 800; }
.effect-badge.deductible { background: #dcfce7; color: #166534; }
.effect-badge.nondeductible { background: #fff3cd; color: #854d0e; }
.effect-badge.special { background: #dbeafe; color: #1e40af; }
.row-actions { display: inline-flex; gap: 5px; }
.row-actions button { width: 30px; height: 30px; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.row-actions button:hover { border-color: var(--blue); color: var(--blue); }
.empty-selection { padding: 18px; color: var(--muted); text-align: center; font-size: .84rem; }
.tax-credit-box { margin-top: 20px; }
.detail-intro { color: var(--muted); font-size: .84rem; margin: 10px 0 14px; }
.compact-table-wrap { margin-top: 12px; }
.example-loader { max-width: 700px; }
.example-loader > p { color: var(--muted); margin: 10px 0 14px; }
.law-columns { display: grid; gap: 10px; }
.law-columns details { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.law-columns summary { cursor: pointer; font-weight: 800; color: #263247; }
.law-columns ul, .law-columns p { margin: 10px 0 0; }

@media (max-width: 900px) {
    .incentive-grid { grid-template-columns: 1fr; }
    .result-panel { position: static; }
    .example-grid { grid-template-columns: 1fr; }
    .entry-builder, .entry-builder:has(#akvOzelTutarWrap:not(.hidden)) { grid-template-columns: 1fr 1fr; }
    .entry-type { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .incentive-wrap { padding: 0 14px; }
    .incentive-hero { padding: 22px 0 18px; }
    .incentive-hero h1 { font-size: 1.7rem; line-height: 1.18; margin-bottom: 7px; }
    .incentive-hero p { font-size: .86rem; line-height: 1.45; }
    .incentive-hero .eyebrow { margin-bottom: 7px; font-size: .7rem; }
    .privacy-note { width: 100%; margin-top: 12px; font-size: .74rem; padding: 7px 9px; }
    .incentive-grid { gap: 12px; margin-top: 14px; }
    .tool-panel, .result-panel, .info-band, .compare-section { padding: 14px; }
    .panel-heading { margin-bottom: 14px; }
    .panel-heading h2, .result-panel h2 { font-size: 1.05rem; }
    .field-grid { gap: 12px; }
    .field-grid { grid-template-columns: 1fr; }
    .field input, .field select { min-height: 42px; padding: 8px 10px; }
    .result-main { margin: 10px 0 12px; padding: 12px; }
    .result-main strong { font-size: 1.35rem; }
    .result-row { padding: 8px 0; font-size: .82rem; }
    .content-tabs { margin: 18px 0 9px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .content-tabs::-webkit-scrollbar { display: none; }
    .content-tabs button { flex: 0 0 auto; padding: 7px 10px; font-size: .76rem; }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
    .compare-table thead { display: none; }
    .compare-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    .compare-table td { border: 0; padding: 5px 0; }
    .compare-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
    .entry-builder, .entry-builder:has(#akvOzelTutarWrap:not(.hidden)) { grid-template-columns: 1fr; }
    .entry-type { grid-column: auto; }
    .selected-items-table { min-width: 650px; }
}
