/* =========================  ARAÇ IZGARASI  ========================= */

.tools-search-wrap { margin-bottom: 20px; }

.tools-search-wrap input,
.hp-search-row input,
.faq-search-input {
    max-width: 440px;
    padding: 10px 14px 10px 38px;
    border-radius: var(--r);
    border: 1px solid var(--border-strong);
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 13px center;
    background-size: 15px 15px;
    font-size: 0.86rem;
    color: var(--text);
}
:root[data-theme="dark"] .tools-search-wrap input,
:root[data-theme="dark"] .hp-search-row input,
:root[data-theme="dark"] .faq-search-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ABA69B' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
}

.tools-search-wrap input:focus,
.hp-search-row input:focus,
.faq-search-input:focus {
    background-repeat: no-repeat;
    background-position: 13px center;
    background-size: 15px 15px;
}

.tools-count { color: var(--text-faint); font-size: 0.74rem; font-weight: 500; margin-top: 7px; }

.tools-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 22px;
}

.tools-chips-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.tools-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tools-chip {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    padding: 6px 12px;
    cursor: pointer;
    transition: color .14s, background-color .14s, border-color .14s;
}
.tools-chip:hover {
    color: var(--text);
    border-color: var(--brand-line);
    background: var(--brand-soft);
}
.tools-chip.is-active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.tools-category-block { margin-bottom: 28px; }
.tools-category-block.is-empty { display: none; }

.tools-category-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

@media (max-width: 980px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tools-search-wrap input, .hp-search-row input, .faq-search-input { max-width: 100%; }
}

/* Hücreli ızgara: kartlar 1px hatlarla bölünmüş net bölmeler */
.tool-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    padding: 18px 36px 18px 18px;
    cursor: pointer;
    position: relative;
    outline-offset: -2px;
    transition: background-color .14s;
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
}

.tool-row:hover { background: var(--surface-2); }
.tool-row:hover .tool-name { color: var(--brand); }

.tool-row .tool-no {
    width: 39px; height: 39px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.tool-row .tool-no svg { width: 21px; height: 21px; }
.tool-row .tool-no svg [stroke="white"] { stroke: currentColor; }
.tool-row .tool-no svg [fill="white"] { fill: currentColor; }

.tool-row .tool-text { flex: 1; min-width: 0; }

.tool-row .tool-name {
    font-weight: 800;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: -0.015em;
    margin-bottom: 5px;
    transition: color .14s;
}

.tool-row .tool-desc { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }

.tool-row .tool-arrow {
    position: absolute;
    top: 18px; right: 16px;
    color: var(--brand);
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity .14s;
}
.tool-row:hover .tool-arrow { opacity: 1; }
.tool-row.tool-hidden { display: none; }

/* Skeleton loading */
@keyframes sk-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.sk {
    display: block;
    background: linear-gradient(
        90deg,
        var(--surface-sunk) 0%,
        var(--surface-2) 45%,
        var(--surface-sunk) 90%
    );
    background-size: 200% 100%;
    animation: sk-shimmer 1.15s ease-in-out infinite;
    border-radius: 6px;
}

.tool-row.is-skeleton,
.bilgi-card.is-skeleton {
    pointer-events: none;
    cursor: default;
}
.tool-row.is-skeleton:hover {
    background: var(--surface);
}
.tool-row.is-skeleton:hover .tool-name {
    color: inherit;
}
.bilgi-card.is-skeleton:hover {
    border-color: var(--border);
    box-shadow: none;
}

.sk-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    margin-top: 1px;
}
.sk-line {
    height: 11px;
}
.sk-line-lg {
    height: 14px;
}
.sk-w-30 { width: 30%; }
.sk-w-40 { width: 40%; }
.sk-w-45 { width: 45%; }
.sk-w-50 { width: 50%; }
.sk-w-55 { width: 55%; }
.sk-w-60 { width: 60%; }
.sk-w-65 { width: 65%; }
.sk-w-70 { width: 70%; }
.sk-w-75 { width: 75%; }
.sk-w-80 { width: 80%; }
.sk-w-85 { width: 85%; }
.sk-w-90 { width: 90%; }
.sk-w-95 { width: 95%; }
.sk-w-100 { width: 100%; }
.sk-mt-6 { margin-top: 6px; }
.sk-mt-8 { margin-top: 8px; }
.sk-mt-10 { margin-top: 10px; }
.sk-btn {
    width: 108px;
    height: 38px;
    flex-shrink: 0;
    align-self: center;
    border-radius: var(--r-sm);
}

.tools-skeleton .tools-category-heading {
    margin-bottom: 10px;
}
.tools-skeleton .sk-heading {
    width: 160px;
    height: 18px;
    margin: 0 0 12px;
}
.tools-skeleton[hidden],
#tools-groups[hidden] {
    display: none !important;
}

.bilgi-card.is-skeleton .faq-q-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}
.bilgi-card.is-skeleton .sk-tag {
    width: 64px;
    height: 20px;
    border-radius: 999px;
}
.bilgi-card.is-skeleton .sk-date {
    width: 92px;
    height: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .sk { animation: none; background: var(--surface-sunk); }
}

.tool-stub-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

#tools { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* =========================  ANA SAYFA BANNER  ========================= */

.banner.home-banner {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 42vw, 480px);
    display: grid;
    grid-template: 1fr / 1fr;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.banner.home-banner > * {
    grid-area: 1 / 1;
}

.banner-media {
    background-color: #0d3d28;
    background-image:
        linear-gradient(115deg, rgba(8, 42, 28, 0.88) 0%, rgba(8, 42, 28, 0.45) 42%, transparent 72%),
        url('/images/aydinlik-bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

:root[data-theme="dark"] .banner-media {
    background-color: #050b18;
    background-image:
        linear-gradient(115deg, rgba(5, 11, 24, 0.9) 0%, rgba(5, 11, 24, 0.5) 42%, transparent 72%),
        url('/images/dark-bg.png');
}

.banner-scrim {
    pointer-events: none;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, #061a12 78%, transparent) 0%,
        color-mix(in srgb, #061a12 42%, transparent) 46%,
        transparent 72%
    );
}

:root[data-theme="dark"] .banner-scrim {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, #030712 82%, transparent) 0%,
        color-mix(in srgb, #030712 48%, transparent) 46%,
        transparent 72%
    );
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 72px) 24px;
    box-sizing: border-box;
}

.banner-copy {
    max-width: 34rem;
}

.banner.home-banner .page-kicker {
    background: color-mix(in srgb, #ffffff 10%, transparent);
    border-color: color-mix(in srgb, #ffffff 28%, transparent);
    color: color-mix(in srgb, #ffffff 82%, transparent);
}

.banner.home-banner .page-kicker .dot {
    background: #7ed9a8;
}

.banner.home-banner .hero-brand {
    color: #ffffff;
    margin: 12px 0 14px;
}

.banner.home-banner .hero-brand .logo-dark {
    color: #ffffff;
}

.banner.home-banner .hero-brand .logo-blue {
    color: #7ed9a8;
}

.banner.home-banner .hero-brand .logo-domain {
    color: color-mix(in srgb, #ffffff 55%, transparent);
}

.banner.home-banner .hero-title {
    color: #f4f7f5;
}

.banner.home-banner .hero-subtitle {
    margin: 0 0 22px;
    max-width: 46ch;
    color: color-mix(in srgb, #ffffff 78%, transparent);
}

.banner.home-banner .hero-actions {
    justify-content: flex-start;
}

.banner.home-banner .hero-actions .btn {
    background: #ffffff;
    color: #0a2f20;
    border-color: #ffffff;
}

.banner.home-banner .hero-actions .btn:hover {
    background: #e8f5ee;
    border-color: #e8f5ee;
    color: #0a2f20;
}

.banner.home-banner .hero-actions .btn-ghost {
    border-color: color-mix(in srgb, #ffffff 35%, transparent);
    color: #ffffff;
    background: color-mix(in srgb, #ffffff 8%, transparent);
}

.banner.home-banner .hero-actions .btn-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: color-mix(in srgb, #ffffff 16%, transparent);
}

.banner-copy > * {
    animation: fd-rise .55s ease both;
}
.banner-copy > *:nth-child(2) { animation-delay: .06s; }
.banner-copy > *:nth-child(3) { animation-delay: .12s; }
.banner-copy > *:nth-child(4) { animation-delay: .18s; }
.banner-copy > *:nth-child(5) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .banner-copy > * { animation: none; }
}

@media (max-width: 640px) {
    .banner.home-banner {
        min-height: 360px;
    }
    .banner-media {
        background-image:
            linear-gradient(180deg, rgba(8, 42, 28, 0.88) 0%, rgba(8, 42, 28, 0.72) 55%, rgba(13, 61, 40, 0.55) 100%),
            url('/images/aydinlik-bg.png');
    }
    :root[data-theme="dark"] .banner-media {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 24, 0.9) 0%, rgba(5, 11, 24, 0.72) 55%, rgba(8, 18, 40, 0.55) 100%),
            url('/images/dark-bg.png');
    }
    .banner-scrim {
        background: linear-gradient(
            180deg,
            color-mix(in srgb, #061a12 55%, transparent) 0%,
            color-mix(in srgb, #061a12 35%, transparent) 100%
        );
    }
    :root[data-theme="dark"] .banner-scrim {
        background: linear-gradient(
            180deg,
            color-mix(in srgb, #030712 60%, transparent) 0%,
            color-mix(in srgb, #030712 40%, transparent) 100%
        );
    }
}

/* =========================  ANA SAYFA  ========================= */

.home-main { padding-top: 28px; }

.home-section { margin-bottom: 48px; }

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.home-section-head .page-title { margin-bottom: 6px; }
.home-section-head .page-subtitle { margin-bottom: 0; max-width: 62ch; }

.home-section-link {
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}

.home-tools-grid {
    grid-template-columns: repeat(3, 1fr);
}

.home-bilgi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.home-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.home-overview-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    padding: 18px 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color .14s, border-color .14s;
}

.home-overview-card:hover {
    background: var(--surface-2);
    border-color: var(--brand-line);
}

.home-overview-label {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 8px;
}

.home-overview-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
    margin-bottom: 8px;
}

.home-cta-copy { min-width: 0; flex: 1 1 280px; }
.home-cta .section-title { margin-bottom: 6px; }
.home-cta-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .home-tools-grid,
    .home-bilgi-grid,
    .home-overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .home-tools-grid,
    .home-bilgi-grid,
    .home-overview-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
    .tools-grid .tool-row {
        animation: fd-rise .45s ease both;
    }
    .tools-grid .tool-row:nth-child(1) { animation-delay: .02s; }
    .tools-grid .tool-row:nth-child(2) { animation-delay: .05s; }
    .tools-grid .tool-row:nth-child(3) { animation-delay: .08s; }
    .tools-grid .tool-row:nth-child(4) { animation-delay: .11s; }
    .tools-grid .tool-row:nth-child(5) { animation-delay: .14s; }
    .tools-grid .tool-row:nth-child(6) { animation-delay: .17s; }
    .tools-grid .tool-row:nth-child(7) { animation-delay: .20s; }
    .tools-grid .tool-row:nth-child(8) { animation-delay: .23s; }
    .tools-grid .tool-row:nth-child(9) { animation-delay: .26s; }
    .tools-grid .tool-row:nth-child(10) { animation-delay: .29s; }
    .tools-grid .tool-row:nth-child(11) { animation-delay: .32s; }
    .tools-grid .tool-row:nth-child(12) { animation-delay: .35s; }
}

/* =========================  ARAÇ DETAY  ========================= */

/* Multi-page: each tool HTML is a standalone page — always show the tool view */
.tool-view { display: block; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 18px;
    cursor: pointer;
    padding: 5px 0;
}
.back-link:hover { color: var(--brand); }

.tool-header h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 5px;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 24px;
    max-width: 68ch;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    padding: 22px;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    margin: -22px -22px 20px;
    padding: 12px 22px;
    background: var(--surface-sunk);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.section-title::before {
    content: '';
    width: 3px;
    height: 13px;
    background: var(--accent);
    flex-shrink: 0;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-status {
    margin: 0 0 12px;
    font-size: 0.86rem;
    line-height: 1.5;
}
.form-status.is-success { color: var(--pos); }
.form-status.is-error { color: var(--neg); }

.contact-form textarea {
    width: 100%;
    min-height: 96px;
    padding: 9px 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    font-size: 0.86rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface-2);
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.unit-label {
    color: var(--text-faint);
    font-weight: 500;
    font-size: 0.68rem;
    margin-left: 5px;
    text-transform: none;
    letter-spacing: 0;
}

input, select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    font-size: 0.86rem;
    font-weight: 500;
    font-family: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--surface-2);
    transition: border-color .13s, background-color .13s, box-shadow .13s;
}

select {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    cursor: pointer;
}

input:hover, select:hover { border-color: var(--border-heavy); }

input:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    /* background shorthand would reset background-image/repeat on search inputs */
    background-color: var(--surface);
    box-shadow: inset 0 0 0 1px var(--brand);
}

input::placeholder { color: var(--text-faint); font-family: 'Inter', sans-serif; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 900px) { .three-column { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Sonuç paneli: en yüksek okuma önceliği ---------- */
.result-box {
    background: var(--surface-sunk);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--brand);
    border-radius: var(--r);
    padding: 4px 18px;
    margin-top: 18px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.result-row:last-child { border-bottom: none; }

.result-row.total {
    border-top: 1px solid var(--border-strong);
    border-bottom: none;
    padding: 14px 0 16px;
    margin-top: 2px;
}

.result-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.result-value {
    color: var(--text);
    font-weight: 600;
    font-size: 1.02rem;
    text-align: right;
    white-space: nowrap;
}

.result-row.total .result-label { color: var(--text); font-size: 0.76rem; }
.result-row.total .result-value { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

.result-value.is-positive, .result-row.total .result-value.is-positive { color: var(--pos); }
.result-value.is-negative, .result-row.total .result-value.is-negative { color: var(--neg); }

/* ---------- Düğmeler ---------- */
button.btn {
    background: var(--brand);
    color: var(--brand-on);
    padding: 11px 24px;
    border: 1px solid var(--brand);
    border-radius: var(--r);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background-color .14s, border-color .14s;
}

button.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.btn:active { transform: translateY(1px); }
button.btn.full { width: 100%; margin-top: 2px; }

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: var(--brand-on);
    border: 1px solid var(--brand);
    padding: 11px 22px;
    border-radius: var(--r-pill);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: background-color .14s, border-color .14s, box-shadow .14s;
}
a.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 9px 16px;
    border-radius: var(--r);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .14s, border-color .14s;
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--border-heavy); }

.btn-tcmb {
    margin-top: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.btn-tcmb:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ---------- Not kutuları ---------- */
.notes, .info-box {
    border-radius: var(--r);
    padding: 16px 18px;
    font-size: 0.79rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
}

.notes { background: var(--warn-soft); border: 1px solid var(--border); border-left: 3px solid var(--warn); }
.info-box { background: var(--brand-soft); border: 1px solid var(--brand-line); border-left: 3px solid var(--brand); }

.notes strong, .info-box strong {
    color: var(--text);
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.notes ul, .info-box ul { margin-left: 17px; margin-top: 4px; }
.notes li, .info-box li { margin-bottom: 5px; }

/* ---------- Veri tabloları ---------- */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    margin-top: 14px;
}

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; }

table.data-table th {
    text-align: left;
    background: var(--surface-sunk);
    padding: 9px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

table.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody tr:nth-child(even) { background: var(--surface-2); }
table.data-table tbody tr:hover { background: var(--brand-soft); }
table.data-table input { border-radius: var(--r-sm); padding: 6px 8px; font-size: 0.78rem; }

/* =========================  DURAĞAN SAYFALAR  ========================= */

.static-content { font-size: 0.9rem; color: var(--text-muted); }

.static-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 26px 0 10px;
    letter-spacing: -0.02em;
}
.static-content h3:first-child { margin-top: 0; }
.static-content p { margin-bottom: 12px; line-height: 1.65; max-width: 72ch; }

.divider-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin: 30px 0 12px;
}

/* ---------- Hizmetler ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    border: 1px solid var(--border-strong);
    background: var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-top: 10px;
}

.service-card {
    background: var(--surface);
    padding: 24px 22px;
    margin: 0 1px 1px 0;
    transition: background-color .14s;
}
.service-card:hover { background: var(--surface-2); }

.service-card .icon {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.service-card .icon svg { width: 20px; height: 20px; display: block; }
.service-card .icon svg [stroke="white"] { stroke: currentColor; }
.service-card .icon svg [fill="white"] { fill: currentColor; }

.service-card h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; color: var(--text); letter-spacing: -0.015em; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 14px 0; line-height: 1.6; }
.service-card .service-link { font-size: 0.78rem; font-weight: 700; color: var(--brand); }
.service-card .service-link:hover { text-decoration: underline; }

.services-cta {
    margin-top: 22px;
    background: var(--brand);
    border-radius: var(--r);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.services-cta p { color: var(--brand-on); font-weight: 600; font-size: 0.98rem; margin: 0; }
.services-cta .btn-white {
    background: var(--brand-on);
    color: var(--brand);
    padding: 10px 20px;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--brand-on);
}
.services-cta .btn-white:hover { background: transparent; color: var(--brand-on); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

footer {
    background: var(--bg);
    border-top: 1px solid var(--border-strong);
    padding: 22px 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.74rem;
}

.placeholder-tag {
    display: inline-block;
    background: var(--warn-soft);
    border: 1px solid var(--warn);
    color: var(--warn);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    margin-bottom: 14px;
}

/* =========================  KURLAR  ========================= */

.rate-updated {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    padding: 4px 11px;
    border-radius: var(--r-sm);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rate-updated .dot { width: 6px; height: 6px; background: var(--pos); flex-shrink: 0; }

.kurlar-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 14px;
}
.kurlar-status.is-error { color: var(--neg, #b42318); font-weight: 600; }

table.rate-table td:first-child { font-family: 'DM Sans', sans-serif; }
table.rate-table th:not(:first-child),
table.rate-table td:not(:first-child) { text-align: right; }
table.rate-table td.rate-code { font-weight: 700; }

.data-source-note {
    font-size: 0.74rem;
    color: var(--text-faint);
    margin-top: 14px;
    line-height: 1.65;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    max-width: 96ch;
}
.data-source-note a { color: var(--brand); font-weight: 600; }
.data-source-note a:hover { text-decoration: underline; }

/* =========================  BİLGİLER (SSS)  ========================= */

.faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    margin-bottom: 8px;
}

.faq-toolbar .fld { display: flex; flex-direction: column; }
.faq-toolbar .fld.grow { flex: 1 1 260px; min-width: 220px; }
.faq-search-input { max-width: 100%; width: 100%; }

.faq-sort-select {
    width: auto;
    min-width: 168px;
}

.faq-chips-row {
    margin: 14px 0 0;
}

.faq-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.73rem;
    color: var(--text-faint);
    padding: 10px 2px 12px;
}
.faq-actions { display: flex; gap: 10px; align-items: center; }
.faq-meta-row button,
.faq-actions .btn-ghost {
    background: none;
    border: none;
    color: var(--brand);
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}
.faq-meta-row button:hover,
.faq-actions .btn-ghost:hover { text-decoration: underline; background: transparent; }
.faq-loading { color: var(--text-faint); font-style: italic; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item.faq-hidden { display: none; }

.faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: transparent;
    border: none;
    font-family: inherit;
    padding: 16px 20px;
    cursor: pointer;
    color: var(--text);
    transition: background-color .14s;
    outline-offset: -2px;
}
.faq-q:hover { background: var(--surface-2); }
.faq-item.open .faq-q { background: var(--surface-sunk); }

.faq-q-main { flex: 1; min-width: 0; }

.faq-q-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text);
}
.faq-item.open .faq-q-text { color: var(--brand); }

.faq-q-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-faint);
    font-weight: 500;
}

.faq-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    padding: 2px 7px;
    border-radius: var(--r-sm);
}

.faq-date { font-variant-numeric: tabular-nums; }

.faq-chev {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: transform .2s ease, color .14s;
}
.faq-chev svg { width: 15px; height: 15px; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--brand); }

.faq-a-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s ease;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }

.faq-a {
    font-size: 0.87rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 2px 20px 20px;
    max-width: 76ch;
    border-left: 2px solid var(--brand-line);
    margin-left: 20px;
    padding-left: 18px;
}

.faq-a sup a { color: var(--brand); font-weight: 700; margin-left: 1px; }

.faq-sources {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.faq-sources a { color: var(--brand); font-weight: 600; }
.faq-sources a:hover { text-decoration: underline; }

.faq-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.86rem;
}
.faq-empty a { color: var(--brand); font-weight: 600; }

.faq-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 18px 0 4px;
}
.faq-pager[hidden] { display: none; }

.faq-page {
    font-family: inherit;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: color .14s, background-color .14s, border-color .14s;
}
.faq-page-nav {
    min-width: 36px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
}
.faq-page:hover:not(:disabled):not(.is-active) {
    color: var(--brand-hover);
    border-color: var(--brand-line);
    background: var(--brand-soft);
}
.faq-page.is-active {
    color: var(--brand-on);
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
}
.faq-page.is-active:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}
.faq-page:disabled {
    color: var(--text-faint);
    background: var(--surface-sunk);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.7;
}
.faq-page-ellipsis {
    min-width: 24px;
    padding: 0 4px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    user-select: none;
}

.bilgi-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    flex-wrap: wrap;
}
.bilgi-card-body { flex: 1 1 280px; min-width: 0; }
.bilgi-card-title {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 8px 0 8px;
}
.bilgi-card-ozet {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.bilgi-card-btn {
    width: auto;
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.82rem;
    align-self: center;
}

.bilgi-detay { max-width: 760px; }
.bilgi-detay-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: -8px 0 18px;
}
.bilgi-detay-body p { margin: 0 0 1em; }

/* =========================  TEK DÜZEN HESAP PLANI  ========================= */

.hp-search-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.hp-search-row .form-group { flex: 1 1 260px; margin-bottom: 0; max-width: 400px; }

.hp-search-row .btn-search {
    background: var(--brand);
    color: var(--brand-on);
    border: 1px solid var(--brand);
    border-radius: var(--r);
    padding: 0 24px;
    height: 38px;
    font-weight: 600;
    font-size: 0.83rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .14s;
}
.hp-search-row .btn-search:hover { background: var(--brand-hover); }

.hp-hint { font-size: 0.74rem; color: var(--text-faint); margin-top: 10px; line-height: 1.6; max-width: 96ch; }

#hp-results { margin-top: 16px; }

.hp-result-card {
    background: var(--surface-sunk);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--brand);
    border-radius: var(--r);
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.hp-result-card .hp-code {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--brand);
    min-width: 60px;
    letter-spacing: -0.01em;
}

.hp-result-card .hp-info { flex: 1 1 auto; min-width: 0; width: 100%; }
.hp-result-card .hp-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }

.hp-result-card .hp-class {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 2px 8px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-no-result { font-size: 0.85rem; color: var(--text-faint); padding: 14px 2px; }
.hp-more-count { font-size: 0.75rem; color: var(--text-faint); margin-top: 6px; }

.error-page {
    padding-top: 28px;
    padding-bottom: 48px;
    max-width: 36rem;
}
.error-code {
    margin: 0 0 10px;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--brand);
    opacity: 0.28;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.hp-groups {
    margin-top: 6px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    overflow: hidden;
}

.hp-group { border-bottom: 1px solid var(--border); }
.hp-group:last-child { border-bottom: none; }

.hp-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    cursor: pointer;
    background: var(--surface);
    user-select: none;
    transition: background-color .14s;
}
.hp-group-header:hover { background: var(--surface-2); }
.hp-group.open .hp-group-header { background: var(--surface-sunk); }

.hp-group-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.hp-group-copy { min-width: 0; flex: 1; }

.hp-group-num {
    width: 26px; height: 26px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
}

.hp-group-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.hp-group-count { font-size: 0.72rem; color: var(--text-faint); font-weight: 500; }
.hp-group-chevron { color: var(--text-faint); transition: transform .2s; font-size: 0.7rem; flex-shrink: 0; }
.hp-group.open .hp-group-chevron { transform: rotate(180deg); color: var(--brand); }

.hp-group-body { display: none; border-top: 1px solid var(--border); }
.hp-group.open .hp-group-body { display: block; }

.hp-account-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

@media (min-width: 860px) {
    .hp-account-list {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4px 8px;
        padding: 10px;
    }
}

.hp-account {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    align-items: baseline;
    column-gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.hp-account:hover { background: var(--brand-soft); }

.hp-t-code {
    font-weight: 600;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.hp-t-name {
    color: var(--text);
    font-weight: 400;
    min-width: 0;
    width: 100%;
    line-height: 1.45;
}

table.hp-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.82rem; }
table.hp-table td { padding: 8px 18px; border-bottom: 1px solid var(--border); }
table.hp-table tr:last-child td { border-bottom: none; }
table.hp-table tbody tr:nth-child(even) { background: var(--surface-2); }
table.hp-table tr:hover { background: var(--brand-soft); }
table.hp-table td.hp-t-code { font-weight: 600; color: var(--brand); width: 4.25rem; }
table.hp-table td.hp-t-name { color: var(--text); font-weight: 400; }

mark.hp-mark { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 0; padding: 0 2px; }

/* =========================  ERİŞİLEBİLİRLİK  ========================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .faq-a-wrap { transition: none; }
}

@media print {
    header.site-header, .nav-toggle, .icon-btn, footer { display: none; }
    .page-section { display: block !important; }
}



/* =========================================================================
