/* Ücretsiz pazaryeri komisyon hesaplama — /komisyon-hesaplama/{pazaryeri} */

.kh-page {
    --kh-ink: #0f1b2d;
    --kh-muted: #5b6474;
    --kh-soft: #8a93a3;
    --kh-line: #e8ebf0;
    --kh-bg: #f8f9fb;
    --kh-card: #ffffff;
    --kh-mp: #f27a1a;
    --kh-green: #2f9e5b;
    --kh-green-soft: #edf8f1;
    --kh-red: #dc3545;
    --kh-red-soft: #fdf1f1;
    --kh-radius: 18px;
    background: var(--kh-bg);
    color: var(--kh-ink);
    padding-bottom: 80px;
}

.kh-page h1, .kh-page h2, .kh-page h3 { color: var(--kh-ink); letter-spacing: -0.02em; }
.kh-page p { color: var(--kh-muted); }

.kh-page[data-marketplace="trendyol"] { --kh-mp: #f27a1a; }
.kh-page[data-marketplace="hepsiburada"] { --kh-mp: #ff6000; }
.kh-page[data-marketplace="amazon"] { --kh-mp: #e88a00; }
.kh-page[data-marketplace="n11"] { --kh-mp: #7b2fbe; }
.kh-page[data-marketplace="ciceksepeti"] { --kh-mp: #d6336c; }

.kh-narrow { max-width: 960px; margin: 0 auto; }

/* Başlık */
.kh-hero {
    padding: 150px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, #fff7ef 0%, var(--kh-bg) 100%);
}
.kh-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: #fff1e3; color: #c25e00; font-weight: 600; font-size: 14px;
    margin-bottom: 18px;
}
.kh-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; margin-bottom: 14px; }
.kh-mp-name { color: var(--kh-mp); }
.kh-lead { max-width: 640px; margin: 0 auto; font-size: 18px; }

/* Sekmeler */
.kh-tabs { background: #fff; border-top: 1px solid var(--kh-line); border-bottom: 1px solid var(--kh-line); margin-bottom: 36px; }
.kh-tabs-inner { display: flex; gap: 8px; justify-content: center; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.kh-tabs-inner::-webkit-scrollbar { display: none; }
.kh-tab {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--kh-ink);
    transition: background .2s;
}
.kh-tab:hover { background: #f3f4f7; color: var(--kh-ink); }
.kh-tab.is-active { background: var(--kh-mp); color: #fff; }
.kh-tab.is-active .kh-dot { background: #fff !important; }

.kh-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
[data-mp="trendyol"] .kh-dot, .kh-dot[data-c="trendyol"] { background: #f27a1a; }
[data-mp="hepsiburada"] .kh-dot { background: #ff6000; }
[data-mp="amazon"] .kh-dot { background: #ff9900; }
[data-mp="n11"] .kh-dot { background: #7b2fbe; }
[data-mp="ciceksepeti"] .kh-dot { background: #d6336c; }

/* Özet */
.kh-summary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius);
    box-shadow: 0 4px 14px rgba(15, 27, 45, .05);
    padding: 16px 0; margin-bottom: 28px; text-align: center;
    position: sticky; top: 90px; z-index: 5;
}
.kh-summary > div + div { border-left: 1px solid var(--kh-line); }
.kh-summary span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kh-muted); margin-bottom: 4px; }
.kh-summary strong { font-size: 22px; font-weight: 800; }
.kh-summary .is-pos { color: var(--kh-green); }
.kh-summary .is-neg { color: var(--kh-red); }

/* Kartlar */
.kh-card {
    background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: var(--kh-radius);
    box-shadow: 0 4px 14px rgba(15, 27, 45, .04);
    padding: 28px; margin-bottom: 32px;
}
.kh-card-title { font-size: 20px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.kh-card-title i { color: var(--kh-soft); font-size: 17px; }

.kh-field { margin-bottom: 20px; }
.kh-field > label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; color: var(--kh-ink); }
.kh-field > label small { color: var(--kh-soft); font-size: 14px; }
.kh-field[hidden] { display: none; }

.kh-input {
    width: 100%; height: 48px; padding: 0 16px;
    border: 1px solid #dfe3ea; border-radius: 12px; background: #fff;
    font-size: 16px; color: var(--kh-ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.kh-input:focus { border-color: var(--kh-mp); box-shadow: 0 0 0 3px rgba(242, 122, 26, .15); }
select.kh-input { appearance: auto; padding-right: 12px; }
.kh-input-wrap { position: relative; }
.kh-input-wrap .kh-input { padding-left: 34px; }
.kh-input-wrap .kh-prefix, .kh-input-wrap .kh-suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--kh-soft); font-size: 15px; pointer-events: none; }
.kh-input-wrap .kh-prefix { left: 16px; }
.kh-input-wrap .kh-suffix { right: 16px; }
.kh-input-wrap .kh-suffix ~ .kh-input, .kh-input-wrap .kh-input:has(+ .kh-suffix) { padding-left: 16px; padding-right: 36px; }

.kh-range { width: 100%; margin-top: 14px; accent-color: var(--kh-mp); }

.kh-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kh-levels button {
    height: 40px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff;
    font-weight: 600; font-size: 14px; color: var(--kh-ink); transition: all .2s;
}
.kh-levels button:hover { border-color: var(--kh-mp); }
.kh-levels button.is-active { background: var(--kh-mp); border-color: var(--kh-mp); color: #fff; }
.kh-levels .kh-level-wide { grid-column: 1 / -1; }
.kh-levels .kh-level-wide i { font-size: 12px; margin-right: 4px; }

.kh-hint { font-size: 12.5px; color: var(--kh-soft) !important; margin: 6px 0 0; }
.kh-check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin: 4px 0; }
.kh-check input { width: 18px; height: 18px; accent-color: var(--kh-mp); }
.kh-sep { border: 0; border-top: 1px solid var(--kh-line); margin: 22px 0; opacity: 1; }

.kh-alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px; }
.kh-alert[hidden] { display: none; }
.kh-alert i { margin-right: 6px; }
.kh-alert.is-warn { background: #fffbea; border: 1px solid #f7e3a1; color: #9a5b00; }
.kh-alert.is-info { background: #eef5ff; border: 1px solid #d3e4fd; color: #2d5aa6; }

.kh-info { margin-top: 20px; background: #eef5ff; border: 1px solid #d3e4fd; color: #2d4fbf; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6; }
.kh-info i { margin-right: 6px; }

/* Sonuç */
.kh-result { padding: 0; overflow: hidden; }
.kh-result-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; background: #fffaf4; border-bottom: 1px solid var(--kh-line); }
.kh-result-head .kh-card-title { margin: 0; }
.kh-result-head .kh-card-title i { color: var(--kh-mp); }
.kh-share { border: 1px solid #dfe3ea; background: #fff; border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--kh-ink); }
.kh-share:hover { border-color: var(--kh-mp); }
.kh-result-body { padding: 24px 28px 28px; }

.kh-tip { background: #fff4e8; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--kh-ink); margin-bottom: 20px; }
.kh-tip i { color: var(--kh-mp); margin-right: 6px; }
.kh-tip strong { color: var(--kh-mp); }
.kh-tip[hidden] { display: none; }

.kh-targets { border: 1px solid var(--kh-line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.kh-targets-head { background: #fff4e8; padding: 14px 18px; }
.kh-targets-head strong { display: block; font-size: 16px; }
.kh-targets-head span { font-size: 13px; color: var(--kh-muted); }
.kh-empty { text-align: center; padding: 18px; margin: 0; font-size: 15px; }
.kh-target-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kh-target { padding: 14px 16px; text-align: center; }
.kh-target + .kh-target { border-left: 1px solid var(--kh-line); }
.kh-target span { display: block; font-size: 13px; color: var(--kh-muted); }
.kh-target strong { display: block; font-size: 19px; margin: 2px 0; }
.kh-target small { color: var(--kh-green); font-size: 12px; }

.kh-sub { font-size: 17px; font-weight: 700; margin: 0 0 12px; }

.kh-table { border: 1px solid var(--kh-line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.kh-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; }
.kh-row:nth-child(even) { background: #f8f9fb; }
.kh-row span { color: var(--kh-muted); }
.kh-row small { color: var(--kh-soft); font-size: 13px; }
.kh-row.is-head strong { color: var(--kh-ink); }
.kh-row.is-cut strong { color: var(--kh-red); }
.kh-row.is-total { background: var(--kh-red-soft) !important; border-top: 2px solid #f5d0d0; }
.kh-row.is-total span, .kh-row.is-total strong { color: #b02a37; font-weight: 600; }
.kh-row.is-net { background: var(--kh-green-soft) !important; }
.kh-row.is-net span, .kh-row.is-net strong { color: #23704a; font-weight: 600; }
.kh-row.is-loss { background: var(--kh-red-soft) !important; }
.kh-row.is-loss span, .kh-row.is-loss strong { color: #b02a37; font-weight: 600; }

.kh-bar { display: flex; height: 32px; border-radius: 999px; overflow: hidden; background: #eef0f4; }
.kh-bar span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; transition: width .3s; white-space: nowrap; }
.kh-bar-net { background: var(--kh-mp); }
.kh-bar-cut { background: #ec6b6b; }
.kh-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--kh-muted); }
.kh-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.kh-legend .is-net { background: var(--kh-mp); }
.kh-legend .is-cut { background: #ec6b6b; }

/* Karşılaştırma */
.kh-compare { margin-bottom: 32px; }
.kh-muted { font-size: 14px; margin-bottom: 14px; }
.kh-cmp {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--kh-line); border-radius: 12px;
    padding: 13px 18px; margin-bottom: 8px; color: var(--kh-ink); transition: border-color .2s;
}
.kh-cmp:hover { border-color: #c9ced8; color: var(--kh-ink); }
.kh-cmp.is-selected { border: 2px solid var(--kh-mp); background: #fafbfc; }
.kh-cmp-rank { color: var(--kh-soft); font-size: 14px; width: 22px; }
.kh-cmp-name { flex: 1; font-weight: 600; }
.kh-cmp-name em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--kh-mp); background: #fff1e3; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.kh-cmp-rate { color: var(--kh-soft); font-size: 14px; min-width: 50px; text-align: right; }
.kh-cmp strong { min-width: 110px; text-align: right; font-size: 17px; }
.kh-cmp .is-pos { color: var(--kh-green); }
.kh-cmp .is-neg { color: var(--kh-red); }
.kh-footnote { font-size: 12.5px; color: var(--kh-soft) !important; margin-top: 10px; }

.kh-mp-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kh-mp-links a { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--kh-line); border-radius: 12px; padding: 13px 16px; color: var(--kh-ink); font-weight: 500; }
.kh-mp-links a:hover { border-color: #c9ced8; }

/* Çapraz bağlantı */
.kh-crosslink {
    display: flex; align-items: center; gap: 16px;
    background: #f1f5ff; border: 1px solid #dbe5fb; border-radius: var(--kh-radius);
    padding: 20px 24px; margin-bottom: 40px; color: var(--kh-ink);
}
.kh-crosslink:hover { color: var(--kh-ink); border-color: #b9cbf5; }
.kh-crosslink > span:nth-child(2) { flex: 1; }
.kh-crosslink strong { display: block; font-size: 17px; }
.kh-crosslink small { color: var(--kh-muted); font-size: 14px; }
.kh-crosslink-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; color: #3b6fe0; font-size: 20px; flex: none; }
.kh-crosslink > i { color: #3b6fe0; }

/* SSS */
.kh-faq { margin-bottom: 40px; }
.kh-faq h2 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.kh-faq details { background: #fff; border: 1px solid var(--kh-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.kh-faq summary { font-weight: 600; cursor: pointer; }
.kh-faq details p { margin: 10px 0 0; line-height: 1.7; }

/* CTA */
.kh-cta { background: #fff7e8; border: 1px solid #f6e3bf; border-radius: var(--kh-radius); padding: 32px 24px; text-align: center; margin-bottom: 24px; }
.kh-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.kh-cta p { font-size: 15px; margin-bottom: 18px; }
.kh-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #f0a030, #ea7a1e); color: #fff; font-weight: 700; padding: 13px 28px; border-radius: 10px; }
.kh-cta-btn:hover { color: #fff; opacity: .92; }

.kh-disclaimer { text-align: center; font-size: 13px; color: var(--kh-soft) !important; }

/* Mobil */
@media (max-width: 767px) {
    .kh-hero { padding: 120px 0 28px; }
    .kh-lead { font-size: 16px; }
    .kh-tabs-inner { justify-content: flex-start; }
    .kh-summary { top: 70px; padding: 12px 0; }
    .kh-summary strong { font-size: 16px; }
    .kh-summary span { font-size: 10px; }
    .kh-card { padding: 20px 16px; }
    .kh-result-head { padding: 16px; }
    .kh-result-body { padding: 18px 16px 20px; }
    .kh-levels { grid-template-columns: repeat(2, 1fr); }
    .kh-target-grid { grid-template-columns: repeat(2, 1fr); }
    .kh-target:nth-child(3) { border-left: 0; }
    .kh-target:nth-child(n+3) { border-top: 1px solid var(--kh-line); }
    .kh-row { font-size: 14px; padding: 11px 12px; }
    .kh-cmp { padding: 12px 14px; gap: 8px; }
    .kh-cmp strong { min-width: 0; font-size: 15px; }
    .kh-cmp-rate { min-width: 0; }
    .kh-mp-links { grid-template-columns: repeat(2, 1fr); }
}
