:root {
    font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
    color: #182c3a;
    background: #f3f6f5;
    --ink: #182c3a;
    --muted: #475f69;
    --navy: #102e3e;
    --green: #08705e;
    --line: #d4e0de;
    --surface: #fff;
    --radius: 1rem;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #08705e; outline-offset: 4px; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .75rem 1rem; z-index: 2; background: white; }
.skip-link:focus { top: .65rem; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-links { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.75rem; gap: 1.5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; width: fit-content; font-weight: 750; font-size: 1.2rem; text-decoration: none; color: var(--navy); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .65rem; background: var(--green); color: #fff; font-size: 1.45rem; line-height: 1; }
.brand-mark { flex: 0 0 2.15rem; }
.brand small { display: block; color: var(--muted); font-size: .75rem; white-space: normal; overflow-wrap: anywhere; }
.site-nav { display: flex; gap: .35rem; align-items: center; }
.site-nav a, .account-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .85rem; color: var(--ink); font-weight: 650; text-decoration: none; border-radius: .55rem; white-space: nowrap; }
.site-nav a:hover, .site-nav [aria-current="page"] { background: #e9f3ef; color: #07584b; }
.account-link { justify-self: end; color: #07584b; border: 1px solid var(--line); }
.account-link:hover { background: #e9f3ef; }

main { flex: 1; padding-block: clamp(1.5rem, 4vw, 3.25rem) clamp(2.5rem, 6vw, 5rem); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.041em; margin-bottom: .75rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.35rem; background: linear-gradient(115deg, #102e3e 20%, #124653 78%, #126151); color: #fff; }
.hero::after {
    content: ""; position: absolute; z-index: -1; width: 34rem; aspect-ratio: 1; right: -3rem; top: 50%; transform: translateY(-48%);
    border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 2rem, #a1decb24 2.03rem 2.1rem);
    mask-image: linear-gradient(110deg, transparent, black 52%);
}
.hero-content { padding: clamp(1.0rem, 3vw, 1.8rem); max-width: 51rem; }
.hero h1 { font-size: clamp(1.25rem, 3vw, 2rem); }
.hero p { max-width: 36rem; color: #dceeea; font-size: clamp(1rem, 2.1vw, 1.18rem); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero .button { background: #9ce7cc; border-color: #9ce7cc; color: #0c332f; }
.hero .button:hover { background: #beeedf; }
.hero .button-secondary { background: transparent; border-color: #91b8b4; color: #fff; }
.hero .button-secondary:hover { background: #315460; }
.hero a:focus-visible { outline-color: #b7f2df; }
.section-title { font-size: 1.45rem; letter-spacing: -.025em; margin: 2rem 0 .9rem; }
.grid, .operations { list-style: none; padding: 0; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; align-content: start; height: 100%; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.card:hover, .operation-row:hover { border-color: #67a696; box-shadow: 0 5px 22px #103f3010; }
.card-icon { grid-row: span 2; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; color: #07584b; background: #e5f4ee; border-radius: .7rem; font-size: 1.45rem; line-height: 1; }
.card strong { align-self: center; font-size: 1.1rem; }
.card-description { color: var(--muted); margin-top: .18rem; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { font-weight: 600; }
.intro { margin-bottom: 1.5rem; }
.intro p { color: var(--muted); margin-bottom: 0; font-size: 1.08rem; }
.notice, .service-message { padding: 1rem 1.15rem; background: #e9f3ef; border: 1px solid #c4ddd4; border-radius: .75rem; color: #173e38; margin-block: 1rem; }
.service-message { max-width: 44rem; background: var(--surface); border-color: var(--line); }
.service-message h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.service-message p { color: var(--muted); }
.operations { display: grid; gap: .55rem; max-width: 52rem; }
.operation-row { min-height: 3.5rem; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); text-decoration: none; }
.operation-row span { color: var(--muted); font-size: .9rem; }
.account-logout { width: 100%; font: inherit; cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; gap: .9rem; align-items: end; margin-block: 1.3rem; padding: clamp(1rem, 2.4vw, 1.45rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: .35rem; min-width: min(12rem, 100%); max-width: 100%; font-weight: 650; }
.filters select, .filters input, .button { min-height: 2.85rem; padding: .55rem .85rem; border-radius: .55rem; font: inherit; }
.filters select, .filters input { background: #fbfdfc; border: 1px solid #829b99; max-width: 100%; color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; background: var(--green); color: white; border: 1px solid var(--green); text-decoration: none; cursor: pointer; font-weight: 650; text-align: center; }
.button:hover { background: #07584b; }
.button-secondary { background: #fff; color: var(--green); border-color: #a5c2b9; }
.button-secondary:hover { background: #e9f3ef; }
.login-page { max-width: 39rem; }
.login-page .filters { display: grid; padding: clamp(1rem, 4vw, 1.7rem); box-shadow: 0 8px 25px #102e3e0a; }
.login-page input:not([type=hidden]) { width: 100%; }
.login-page .button { margin-top: .35rem; }
.values-wrap { overflow-x: auto; }
.tapu-table-actions { display: flex; justify-content: flex-end; margin-block: 1rem .75rem; }
.values { width: 100%; background: white; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.tapu-values { font-size: .875rem; }
.tapu-values td { font-size: .75rem; }
.values caption { text-align: left; font-weight: 700; padding-block: .75rem; }
.values caption span { display: inline-block; margin-inline-start: .55rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.values th, .values td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.values thead th { background: #e9f3ef; }
.values tbody tr:nth-child(even) { background: #f7faf9; }
.values tbody tr:last-child > * { border-bottom: 0; }
.values th:last-child, .values td:last-child { text-align: right; }
.values td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.25rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer strong { color: var(--navy); }
.footer-nav { display: block; margin-top: .35rem; }
.site-footer address { min-width: 0; font-style: normal; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; }
.footer-contact > div { min-width: 0; }
.footer-contact dt { color: var(--navy); font-weight: 650; }
.footer-contact dd { margin: 0; overflow-wrap: anywhere; }
.collection-tabs { display: flex; gap: .45rem; padding: .35rem; width: fit-content; margin-bottom: 1.25rem; background: #e7eeec; border-radius: .7rem; }
.collection-tabs a { min-width: 6.8rem; padding: .65rem .9rem; text-align: center; text-decoration: none; font-weight: 650; color: var(--ink); border-radius: .5rem; }
.collection-tabs [aria-current="page"] { background: white; color: var(--green); box-shadow: 0 1px 4px #102e3e20; }
.collection-note { color: var(--muted); }
.collection-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.debt-payment-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: end;
    align-items: stretch;
    gap: .75rem;
    width: 100%;
    margin-block: 1rem;
}
.debt-payment-total {
    display: grid;
    align-content: center;
    gap: .15rem;
    min-width: min(100%, 12rem);
    max-width: 100%;
    padding: .7rem .95rem;
    border: 1px solid #b8d9cd;
    border-radius: .75rem;
    background: linear-gradient(135deg, #f0f8f4, #e2f2eb);
    text-align: right;
    line-height: 1.2;
}
.debt-payment-total span { color: #365d52; font-size: .875rem; font-weight: 600; }
.debt-payment-total strong {
    color: #104b3e;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.debt-payment-toolbar .button { min-width: 7rem; padding-inline: 1rem; }
.checkout-summary { max-width: 32rem; padding: clamp(1rem, 4vw, 1.75rem); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.payment-layout { display: grid; gap: 1rem; align-items: start; }
.payment-layout > .checkout-summary { max-width: none; min-width: 0; }
@media (min-width: 48rem) {
    .payment-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.checkout-total { display: grid; gap: .25rem; }
.checkout-total span { color: var(--muted); font-weight: 650; }
.checkout-total strong { color: #104b3e; font-size: clamp(1.75rem, 5vw, 2.5rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-summary .collection-actions { margin-bottom: 0; }
.payment-details { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.payment-details > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem .8rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.payment-details dt { color: var(--muted); }
.payment-details dd { margin: 0; font-weight: 650; }
.payment-method { margin-top: 1.2rem; }
.payment-method h2 { margin-bottom: .25rem; font-size: 1.15rem; }
.payment-method p { margin-bottom: 0; color: var(--muted); }
.bank-payment-form { margin-block: 1rem; }
.payment-consents { display: grid; gap: .6rem; margin-block: 1rem; }
.payment-consents details { border: 1px solid var(--line); border-radius: .6rem; background: #fbfdfc; }
.payment-consents summary { cursor: pointer; font-weight: 650; padding: .7rem; }
.payment-consents label { display: flex; gap: .55rem; align-items: baseline; }
.payment-consents input[type=checkbox] { accent-color: var(--green); }
.payment-consents .button { justify-self: start; margin-top: .5rem; }
.payment-policy { padding: .25rem .8rem .8rem; max-height: 22rem; overflow: auto; }
.payment-card-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; min-width: 0; margin: 1rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; }
.payment-card-fields legend { font-weight: 650; }
.payment-card-fields label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.payment-card-brand, .payment-card-fields label:has(input[autocomplete="cc-number"]) { grid-column: 1 / -1; }
.payment-card-fields input, .payment-card-fields select { min-width: 0; width: 100%; min-height: 2.75rem; border: 1px solid #829b99; border-radius: .5rem; padding: .5rem; background: #fbfdfc; font: inherit; }
.payment-card-fields:disabled input { background: #edf2f0; }
.debt-checkbox { width: 1.25rem; height: 1.25rem; accent-color: var(--green); }
.debt-income, .debt-description { display: block; }
.debt-description { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.receipt-heading { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 1rem; }

@media print {
    .masthead, .site-footer, .breadcrumb, .receipt-controls, .skip-link { display: none; }
    :root { background: white; }
    main.wrap { width: 100%; padding: 0; }
    .values-wrap { overflow: visible; }
}

@media (max-width: 58rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) {
    .wrap { width: calc(100% - 1.75rem); }
    .masthead-links { grid-template-columns: 1fr auto; gap: .25rem .6rem; padding-block: .6rem; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; }
    .site-nav a { flex: 1; justify-content: center; }
    .account-link, .site-nav a { padding-inline: .55rem; }
    .hero::after { right: -17rem; opacity: .55; }
    .hero-actions .button { width: 100%; }
    .grid { grid-template-columns: 1fr; gap: .65rem; }
    .filters label, .filters .button { width: 100%; }
    .values th, .values td { padding: .65rem; }
    .footer-contact { display: grid; }
    .debt-payment-toolbar { gap: .5rem; }
    .debt-payment-total { padding-inline: .65rem; }
    .debt-payment-toolbar .button { min-width: auto; padding-inline: .75rem; }
}
.theme-lacivert {
    --ink: #162b45; --muted: #495d75; --navy: #142b4d; --green: #254e82;
    --line: #ccd7e7; --radius: .55rem; --theme-background: #f0f4fa;
    --theme-header: #142b4d; --theme-header-text: #fff; --theme-header-muted: #d6e2f4;
    --theme-mark: #f1c47d; --theme-mark-text: #253246;
    --theme-hero: linear-gradient(110deg, #162e54, #234f7d); --theme-hero-text: #fff;
    --theme-hero-detail: #e3ecf8; --theme-action: #f4c983; --theme-action-text: #19314d;
    --theme-soft: #e5edf8; --theme-footer: #142b4d; --theme-footer-text: #f1f5fa;
}

.theme-yesil {
    --ink: #15392d; --muted: #435e51; --navy: #15392d; --green: #1d6342;
    --line: #c5d9ca; --radius: 1.1rem; --theme-background: #edf5ef;
    --theme-header: #fff; --theme-header-text: #15392d; --theme-header-muted: #435e51;
    --theme-mark: #236343; --theme-mark-text: #fff;
    --theme-hero: #dceee0; --theme-hero-text: #15392d; --theme-hero-detail: #305245;
    --theme-action: #1d6342; --theme-action-text: #fff;
    --theme-soft: #e1f0e5; --theme-footer: #e0eee4; --theme-footer-text: #1a4133;
}

.theme-sade {
    --surface: #fffdf8; --ink: #272a2a; --muted: #5b5750; --navy: #272a2a; --green: #8a422d;
    --line: #ded6c9; --radius: .2rem; --theme-background: #fffdf8;
    --theme-header: #fffdf8; --theme-header-text: #272a2a; --theme-header-muted: #5b5750;
    --theme-mark: #8a422d; --theme-mark-text: #fff;
    --theme-hero: #fffdf8; --theme-hero-text: #272a2a; --theme-hero-detail: #5b5750;
    --theme-action: #8a422d; --theme-action-text: #fff;
    --theme-soft: #f3e8df; --theme-footer: #f2ede5; --theme-footer-text: #272a2a;
}

body[class^="theme-"] { background: var(--theme-background); color: var(--ink); }
.masthead { background: var(--theme-header, var(--surface)); }
.brand, .site-nav a, .account-link { color: var(--theme-header-text, var(--ink)); }
.brand small { color: var(--theme-header-muted, var(--muted)); }
.brand-mark { background: var(--theme-mark, var(--green)); color: var(--theme-mark-text, #fff); border-radius: var(--radius); }
.site-nav a:hover, .site-nav [aria-current="page"], .account-link:hover {
    background: var(--theme-soft); color: var(--green);
}
.session-header { background: var(--theme-soft); color: var(--ink); }
.session-header-content {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end;
    column-gap: 1rem; row-gap: .15rem; padding-block: .4rem; font-size: .875rem; overflow-wrap: anywhere;
}
.session-header-content span { font-variant-numeric: tabular-nums; }
.hero { background: var(--theme-hero); color: var(--theme-hero-text); border-radius: var(--radius); }
.hero p { color: var(--theme-hero-detail); }
.hero .button { background: var(--theme-action); border-color: var(--theme-action); color: var(--theme-action-text); }
.hero .button-secondary { background: transparent; border-color: currentColor; color: var(--theme-hero-text); }
.hero .button:hover, .hero .button-secondary:hover { filter: brightness(.92); }
.hero a:focus-visible { outline-color: var(--theme-hero-text); }
.card-icon, .values thead th, .notice, .service-message { background: var(--theme-soft); color: var(--ink); }
.card-icon, .button { border-radius: var(--radius); }
.card:hover, .operation-row:hover { border-color: var(--green); }
.button:hover { background: var(--green); filter: brightness(.9); }
.button-secondary:hover { background: var(--theme-soft); }
.site-footer { background: var(--theme-footer); color: var(--theme-footer-text); }
.site-footer a, .site-footer strong, .footer-contact dt { color: inherit; }

.theme-lacivert .hero::after {
    border-radius: 0; background: repeating-linear-gradient(118deg, transparent 0 17px, #ffffff20 18px 19px);
}
.theme-yesil .hero::after {
    background: repeating-radial-gradient(ellipse at 55% 65%, transparent 0 18px, #4b8e6340 19px 21px);
}
.theme-sade .hero { border-bottom: 2px solid var(--green); }
.theme-sade .hero::after { content: none; }
.theme-sade .hero-content { padding-inline: 0; }
.theme-sade .hero h1 { font-family: Georgia, serif; font-weight: 500; }
.theme-sade .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.8rem; }
.theme-sade .card { border-width: 0 0 1px; background: transparent; padding-inline: 0; }

@media (max-width: 38rem) {
    .theme-sade .grid { grid-template-columns: 1fr; }
    .session-header-content { justify-content: flex-start; }
}

@media print {
    body[class^="theme-"] { background: white; color: black; }
}
.sms-countdown { display: flex; align-items: center; gap: .75rem; color: var(--muted); }
.sms-ring {
    display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: conic-gradient(var(--green) var(--sms-progress, 100%), var(--line) 0);
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.sms-ring strong {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--surface);
}
.sms-expired { margin: 0; }
.login-page button:disabled { opacity: .6; cursor: not-allowed; }
