/**
 * Tamirci Pro üyelik sayfaları (/tamirci-pro, /tamirci-pro/odeme|sonuc|makbuz/{id}, /pro-uyelik-sozlesmesi).
 * Marka: koyu #1A1A1A / sarı #FFE800. Dokunma hedefleri ≥ 44px; mobilde alt CTA sekme çubuğunun üstünde.
 */
.tp-page {
    --tp-dark: #1a1a1a;
    --tp-yellow: #ffe800;
    --tp-yellow-soft: #fffbd1;
    --tp-border: #e7e5e4;
    --tp-muted: #6b6b6b;
    --tp-radius: 14px;
}

.tp-body { display: flex; flex-direction: column; gap: 18px; }
.tp-h2 { font-size: 1.05rem; font-weight: 750; margin: 0 0 10px; color: var(--tp-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-muted { color: var(--tp-muted); margin: 0 0 10px; font-size: .92rem; line-height: 1.5; }
.tp-small { font-size: .82rem; }
.tp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; }

/* Düğmeler */
.tp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: 12px; border: 2px solid transparent;
    font-weight: 750; font-size: .98rem; line-height: 1.15; text-decoration: none; cursor: pointer;
    transition: filter 120ms ease, background 120ms ease, transform 100ms ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tp-btn:active { transform: scale(.98); }
.tp-btn:focus-visible { outline: 3px solid var(--tp-dark); outline-offset: 2px; }
.tp-btn--yellow { background: var(--tp-yellow); color: var(--tp-dark); border-color: var(--tp-yellow); }
.tp-btn--yellow:hover { filter: brightness(.96); color: var(--tp-dark); }
.tp-btn--dark { background: var(--tp-dark); color: #fff; border-color: var(--tp-dark); }
.tp-btn--dark:hover { background: #000; color: #fff; }
.tp-btn--ghost { background: #fff; color: var(--tp-dark); border-color: var(--tp-dark); }
.tp-btn--ghost:hover { background: #f5f5f4; color: var(--tp-dark); }
.tp-btn--block { display: flex; width: 100%; }
.tp-btn[disabled], .tp-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.tp-link { color: var(--tp-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.tp-linkbtn { background: none; border: 0; padding: 0; min-height: 44px; color: #b42318; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Rozet */
.tp-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    background: var(--tp-yellow); color: var(--tp-dark); font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.tp-badge--sm { padding: 2px 9px; font-size: .74rem; }

/* Durum kartı */
.tp-hero { background: var(--tp-dark); color: #fff; border-radius: var(--tp-radius); padding: 18px 18px 16px; position: relative; overflow: hidden; }
.tp-hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 0, .22) 0%, rgba(255, 232, 0, 0) 70%); pointer-events: none;
}
.tp-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tp-hero__chip { font-size: .75rem; font-weight: 750; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.tp-hero__chip--warn { background: #fff; color: var(--tp-dark); }
.tp-hero__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.tp-hero__sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: .92rem; line-height: 1.5; }
.tp-hero__note { margin: 8px 0 0; color: rgba(255, 255, 255, .62); font-size: .85rem; }
.tp-hero__actions { margin-top: 14px; position: relative; z-index: 1; }

/* Avantajlar */
.tp-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.tp-benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--tp-border); border-radius: 12px; background: #fff; font-size: .9rem; line-height: 1.45; color: #3f3f3f; }
.tp-benefits li strong { display: block; color: var(--tp-dark); font-size: .95rem; margin-bottom: 2px; }
.tp-benefits__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--tp-yellow); color: var(--tp-dark); display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .tp-benefits { grid-template-columns: repeat(3, 1fr); } }

/* Süre seçimi */
.tp-buy { border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 16px; background: #fff; }
.tp-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
@media (min-width: 992px) { .tp-periods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tp-period {
    position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 92px; margin: 0;
    padding: 12px 12px 10px; border: 2px solid var(--tp-border); border-radius: 12px; background: #fff; cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.tp-period input { position: absolute; opacity: 0; pointer-events: none; }
.tp-period__len { font-weight: 800; font-size: 1.05rem; color: var(--tp-dark); }
.tp-period__total { font-weight: 750; font-size: 1rem; color: var(--tp-dark); font-variant-numeric: tabular-nums; }
.tp-period__unit { font-size: .78rem; color: var(--tp-muted); }
.tp-period.is-selected { border-color: var(--tp-dark); background: var(--tp-yellow-soft); box-shadow: 0 0 0 3px rgba(255, 232, 0, .55); }
.tp-period.is-selected::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 8px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--tp-dark); color: var(--tp-yellow);
    font-size: .7rem; display: flex; align-items: center; justify-content: center;
}
.tp-period:focus-within { outline: 3px solid var(--tp-dark); outline-offset: 2px; }

.tp-summary { margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.tp-summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.tp-summary dt { font-weight: 500; color: var(--tp-muted); }
.tp-summary dd { margin: 0; font-weight: 650; color: var(--tp-dark); text-align: right; font-variant-numeric: tabular-nums; }
.tp-summary__total { padding-top: 8px; border-top: 1px dashed var(--tp-border); }
.tp-summary__total dt { color: var(--tp-dark); font-weight: 750; }
.tp-summary__total dt small { font-weight: 500; color: var(--tp-muted); font-size: .75rem; margin-left: 4px; }
.tp-summary__total dd { font-size: 1.15rem; font-weight: 850; }
.tp-summary--center { max-width: 360px; margin: 14px auto; text-align: left; }

/* Yönet */
.tp-manage { border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 16px; background: #fafaf9; }

/* Geçmiş */
.tp-history { margin-top: 4px; }
.tp-table-wrap { border: 1px solid var(--tp-border); border-radius: 12px; overflow: hidden; background: #fff; }
.tp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tp-table th { background: #fafaf9; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-muted); font-weight: 700; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--tp-border); }
.tp-table td { padding: 10px 12px; border-bottom: 1px solid #f0efed; vertical-align: middle; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table__act { text-align: right; white-space: nowrap; }
@media (max-width: 767.98px) {
    .tp-table thead { display: none; }
    .tp-table, .tp-table tbody, .tp-table tr, .tp-table td { display: block; width: 100%; }
    .tp-table tr { padding: 10px 12px; border-bottom: 1px solid var(--tp-border); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
    .tp-table tr:last-child { border-bottom: 0; }
    .tp-table td { border: 0; padding: 0; text-align: left; }
    .tp-table td[data-label="Tarih"] { font-weight: 700; color: var(--tp-dark); }
    .tp-table td[data-label="Tutar"] { grid-column: 2; grid-row: 1; font-weight: 800; text-align: right; }
    .tp-table td[data-label="Süre"] { color: var(--tp-muted); font-size: .85rem; }
    .tp-table td[data-label="Durum"] { grid-column: 2; grid-row: 2; text-align: right; }
    .tp-table td[data-label="Geçerlilik"] { color: var(--tp-muted); font-size: .85rem; grid-column: 1 / -1; }
    .tp-table td[data-label="Geçerlilik"]::before { content: "Geçerlilik: "; }
    .tp-table__act { grid-column: 1 / -1; text-align: left; }
    .tp-table__act:empty { display: none; }
}
.tp-st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.tp-st--paid { background: #dcfce7; color: #14532d; }
.tp-st--pending { background: #fef9c3; color: #713f12; }
.tp-st--failed, .tp-st--cancelled { background: #fee2e2; color: #7f1d1d; }
.tp-st--refunded { background: #e7e5e4; color: #292524; }

.tp-legal-foot { font-size: .8rem; color: var(--tp-muted); margin: 0; }
.tp-legal-foot a { color: var(--tp-dark); font-weight: 650; }

/* Kapalı durum */
.tp-closed { text-align: center; padding: 28px 16px; border: 1px dashed var(--tp-border); border-radius: var(--tp-radius); background: #fafaf9; }
.tp-closed__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tp-dark); color: var(--tp-yellow); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; }
.tp-closed__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.tp-closed__text { color: var(--tp-muted); margin: 0 auto 14px; max-width: 420px; }

/* Ödeme sayfası */
.tp-pay-section { padding: 8px 0 32px; }
.tp-pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.tp-pay-head h1 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.tp-pay-head__no { font-size: .85rem; color: var(--tp-muted); font-weight: 600; }
.tp-card { background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 16px; margin-bottom: 14px; }
.tp-pay-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 992px) {
    .tp-pay-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
    .tp-pay-summary { position: sticky; top: 96px; }
}
.tp-pay-main > .tp-card:last-child { margin-bottom: 0; }
.tp-pay-summary { margin-bottom: 0; }
.tp-facts { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--tp-border); display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: #3f3f3f; }
.tp-facts i { width: 18px; color: var(--tp-dark); }
.tp-legal-box { max-height: 300px; overflow: auto; border: 1px solid var(--tp-border); border-radius: 10px; padding: 12px 14px; background: #fafaf9; font-size: .86rem; line-height: 1.55; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.tp-legal-box:focus-visible { outline: 3px solid var(--tp-dark); }
.tp-legal-box h2 { font-size: .95rem; font-weight: 750; margin: 14px 0 6px; }
.tp-legal-box ul { padding-left: 1.1rem; margin: 0 0 8px; }
.tp-legal-box p { margin: 0 0 8px; }
.tp-parties { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 10px; }
@media (min-width: 576px) { .tp-parties { grid-template-columns: 1fr 1fr; } }
.tp-parties > div { background: #fff; border: 1px solid var(--tp-border); border-radius: 8px; padding: 8px 10px; }
.tp-parties dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-muted); font-weight: 700; margin-bottom: 2px; }
.tp-parties dd { margin: 0; overflow-wrap: anywhere; }
.tp-parties--deal { grid-template-columns: 1fr; }
@media (min-width: 576px) { .tp-parties--deal { grid-template-columns: repeat(3, 1fr); } }
.tp-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--tp-border); border-radius: 12px; cursor: pointer; margin: 6px 0 12px; font-size: .9rem; line-height: 1.45; }
.tp-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--tp-dark); }
.tp-check:has(input:checked) { border-color: var(--tp-dark); background: var(--tp-yellow-soft); }
.tp-check.is-attention { border-color: #b42318; animation: tp-shake 300ms ease; }
@keyframes tp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tp-accepted { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #ecfdf3; color: #14532d; font-size: .88rem; margin-bottom: 14px; }
.tp-accepted a { color: #14532d; font-weight: 700; }
.tp-input { min-height: 48px; font-size: 1rem; }
.tp-pay-page .ts-demo-pos { border-color: var(--tp-border); }
.tp-pay-page .ts-demo-pos__badge { background: var(--tp-yellow-soft); border-color: var(--tp-yellow); color: var(--tp-dark); }
.tp-legal-parties-public { margin-bottom: 18px; }

/* Sonuç */
.tp-result { max-width: 560px; margin: 12px auto 24px; text-align: center; padding: 28px 20px; }
.tp-result__icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 12px; }
.tp-result__icon--ok { background: var(--tp-dark); color: var(--tp-yellow); }
.tp-result__icon--err { background: #fee2e2; color: #b42318; }
.tp-result__icon--wait { background: var(--tp-yellow-soft); color: var(--tp-dark); }
.tp-result__title { font-size: 1.35rem; font-weight: 850; margin: 0 0 8px; }
.tp-result__lead { color: #3f3f3f; margin: 0 auto 6px; max-width: 440px; }
.tp-result__actions { display: flex; flex-direction: column; gap: 10px; margin: 16px auto 12px; max-width: 360px; }

/* Mobil yapışkan alt CTA (sekme çubuğunun üstünde) */
.tp-sticky { display: none; }
@media (max-width: 991.98px) {
    .tp-desktop-only { display: none !important; }
    .tp-sticky {
        display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        padding: 10px 16px; background: #fff; border-top: 1px solid var(--tp-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
    }
    .tp-sticky .tp-btn { flex: 0 0 auto; min-width: 132px; }
    .tp-sticky__sum { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
    .tp-sticky__label { font-size: .75rem; color: var(--tp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tp-sticky__total { font-size: 1.15rem; font-weight: 850; color: var(--tp-dark); font-variant-numeric: tabular-nums; }
    body.tp-page:has(.tp-sticky) .account-page-section,
    body.tp-page:has(.tp-sticky) .tp-pay-section { padding-bottom: 84px; }
}

/* Makbuz */
.tp-receipt-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px auto 12px; max-width: 820px; }
.tp-receipt { background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 22px; max-width: 820px; margin: 0 auto 24px; color: #1f1f1f; }
.tp-receipt__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 3px solid var(--tp-yellow); }
.tp-receipt__brand { margin: 0; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--tp-muted); }
.tp-receipt__title { font-size: 1.5rem; font-weight: 850; margin: 2px 0 4px; }
.tp-receipt__note { margin: 0; font-size: .82rem; color: var(--tp-muted); }
.tp-receipt__meta { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 18px; font-size: .88rem; align-content: start; }
.tp-receipt__meta dt { color: var(--tp-muted); font-weight: 500; }
.tp-receipt__meta dd { margin: 0; font-weight: 700; }
.tp-receipt__parties { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
@media (min-width: 640px) { .tp-receipt__parties { grid-template-columns: 1fr 1fr; } }
.tp-receipt__parties h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tp-muted); font-weight: 750; margin: 0 0 6px; }
.tp-receipt__parties p { margin: 0 0 2px; font-size: .9rem; overflow-wrap: anywhere; }
.tp-receipt__lines { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 14px; }
.tp-receipt__lines th, .tp-receipt__lines td { padding: 10px 8px; border-bottom: 1px solid var(--tp-border); text-align: left; vertical-align: top; }
.tp-receipt__lines thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-muted); }
.tp-receipt__lines tfoot th { text-align: right; font-weight: 650; }
.tp-receipt__lines small { color: var(--tp-muted); }
.tp-receipt__pay { margin: 0 0 14px; display: grid; grid-template-columns: 1fr; gap: 6px; font-size: .88rem; }
.tp-receipt__pay > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.tp-receipt__pay dt { color: var(--tp-muted); font-weight: 500; }
.tp-receipt__pay dd { margin: 0; }
@media (max-width: 575.98px) {
    .tp-receipt { padding: 16px; }
    .tp-receipt__pay > div { grid-template-columns: 1fr; gap: 0; }
    .tp-receipt__lines thead { display: none; }
    .tp-receipt__lines tbody td { display: block; border: 0; padding: 4px 0; }
    .tp-receipt__lines tbody tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--tp-border); }
    .tp-receipt__lines tbody td.tp-num { text-align: left; font-weight: 800; }
    .tp-receipt__lines tfoot tr { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--tp-border); }
    .tp-receipt__lines tfoot th, .tp-receipt__lines tfoot td { padding: 8px 0; border: 0; text-align: left; }
    .tp-receipt__meta { grid-template-columns: repeat(2, auto); }
}
.tp-receipt__foot { border-top: 1px solid var(--tp-border); padding-top: 12px; font-size: .82rem; color: #3f3f3f; }
.tp-receipt__foot p { margin: 0 0 4px; }

@media print {
    .tp-no-print, .header-top, .main-header, .main-footer, .mobile-bottom-nav, .ts-mheader, .breadcrumb-section, .tp-sticky,
    .btntoTop, .mobile-app-promo, .ts-app-promo { display: none !important; }
    body { padding: 0 !important; background: #fff !important; }
    .tp-receipt { border: 0; max-width: none; margin: 0; padding: 0; }
    .tp-receipt__head { border-bottom-color: #000; }
}
