/* Fiyatlandırma sayfası (PricingPage; AppLayout / Duralux, index.html yükler).
   Kaynak: themes/checkout/css/style.css "11) FİYATLANDIRMA" + responsive bölümleri; checkout dosyası değiştirilmedi.
   Tüm kurallar .checkout-pricing altında: Duralux .card / .btn / .table kurallarıyla çakışmaz.
   Renkler Duralux değişkenlerinden (--bs-primary); dark mode Duralux'un html.app-skin-dark sınıfıyla.
   Aylık / yıllık geçişi JS'siz: gizli radio (.sr-radio) + label, fiyatlar çapraz geçişle (.fx) değişir. */

.checkout-pricing {
    --cp-accent: var(--bs-primary);
    --cp-accent-dark: #8f1a1a;
    --cp-accent-shadow: rgba(178, 34, 34, .35);
    --cp-surface: #fff;
    --cp-ink: #283c50;
    --cp-ink-soft: #6b7280;
    --cp-muted: #9ca3af;
    --cp-line: #e5e7eb;
    --cp-success: #16a34a;
    --cp-toggle-bg: #e8eaee;
    --cp-zebra: #fafafa;
    --cp-band: #fdf3f3;
    --cp-band-head: #f9e9e9;
    --cp-row-hover: #fcf0f0;
    --cp-row-hover-band: #f9e0e0;
    --cp-shadow-lift: 0 16px 36px rgba(17, 24, 39, .12);
    --cp-header-h: 80px; /* Duralux header yüksekliği (tablo başlığı bunun altına yapışır) */
    padding-bottom: 72px;
}

/* Dark mode: Duralux kart zemini #0f172a, çizgi #1b2436 */
html.app-skin-dark .checkout-pricing {
    --cp-surface: #0f172a;
    --cp-ink: #e5e7eb;
    --cp-ink-soft: #b1b4c0;
    --cp-muted: #94a3b8;
    --cp-line: #1b2436;
    --cp-success: #4ade80;
    --cp-toggle-bg: #1c2438;
    --cp-zebra: rgba(255, 255, 255, .02);
    --cp-band: rgba(178, 34, 34, .10);
    --cp-band-head: rgba(178, 34, 34, .18);
    --cp-row-hover: rgba(255, 255, 255, .04);
    --cp-row-hover-band: rgba(178, 34, 34, .20);
    --cp-shadow-lift: 0 16px 36px rgba(0, 0, 0, .35);
}

/* Sayfa genişliği (checkout .wrap ile aynı: 1100px, ortalı) */
.checkout-pricing .wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Erişilebilirlik: gizli radio */
.checkout-pricing .sr-radio { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }

/* Hero */
.checkout-pricing .hero { position: relative; text-align: center; padding: clamp(40px, 7vh, 72px) 16px 0; }
.checkout-pricing .hero::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 240px; background: radial-gradient(560px 190px at 50% 0%, rgba(178, 34, 34, .07), transparent 70%); pointer-events: none; }
.checkout-pricing .hero > * { position: relative; }
.checkout-pricing .hero h1 { margin: 12px 0 0; font-size: clamp(27px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--cp-ink); }
.checkout-pricing .hero-sub { max-width: 600px; margin: 14px auto 0; font-size: 16px; color: var(--cp-ink-soft); }

/* Faturalandırma anahtarı (gizli radio + label) */
.checkout-pricing .billing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; padding: 0 16px; }
.checkout-pricing .billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--cp-toggle-bg); border: 1px solid var(--cp-line); border-radius: 999px; }
.checkout-pricing .billing-toggle label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 18px; border-radius: 999px; background: var(--cp-surface); color: var(--cp-ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.checkout-pricing #billing-monthly:checked ~ .billing label[for="billing-monthly"],
.checkout-pricing #billing-yearly:checked ~ .billing label[for="billing-yearly"] { background: var(--cp-accent); color: #fff; box-shadow: 0 4px 12px var(--cp-accent-shadow); }
.checkout-pricing #billing-monthly:focus-visible ~ .billing label[for="billing-monthly"],
.checkout-pricing #billing-yearly:focus-visible ~ .billing label[for="billing-yearly"] { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
.checkout-pricing .badge-save { background: var(--cp-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; transition: background-color .2s, color .2s; }
.checkout-pricing #billing-yearly:checked ~ .billing label[for="billing-yearly"] .badge-save { background: #fff; color: var(--cp-accent); }

/* Fiyat çapraz geçişi (crossfade) */
/* Görünmeyen fiyat yer kaplamaz: tutar ve "/ay" bitişik ve ortalı kalır (üst üste bindirme genişliği en uzun fiyata göre açıyordu) */
.checkout-pricing .fx { display: inline-block; vertical-align: baseline; }
.checkout-pricing .fx > span { display: none; white-space: nowrap; }
.checkout-pricing .fx .v-m { display: inline; animation: cp-price-in .3s ease; }
.checkout-pricing #billing-yearly:checked ~ .wrap .fx .v-m { display: none; }
.checkout-pricing #billing-yearly:checked ~ .wrap .fx .v-y { display: inline; animation: cp-price-in .3s ease; }
@keyframes cp-price-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .checkout-pricing .fx > span { animation: none !important; } }

/* Yıllıkta "2 ay bedava" + tasarruf tutarı: belirgin, teşvik edici rozet */
.checkout-pricing .save-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: rgba(22, 163, 74, .12); color: var(--cp-success); font-size: 13px; font-weight: 700; }
.checkout-pricing .save-amount { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--cp-success); }
.checkout-pricing .only-y { display: none; }
.checkout-pricing #billing-yearly:checked ~ .billing .only-m,
.checkout-pricing #billing-yearly:checked ~ .wrap .only-m { display: none; }
.checkout-pricing #billing-yearly:checked ~ .billing .only-y,
.checkout-pricing #billing-yearly:checked ~ .wrap .only-y { display: inline; }
.checkout-pricing #billing-yearly:checked ~ .wrap .bill-note .only-y { color: var(--cp-success); }

/* Plan kartları (Duralux .card üzerine) */
.checkout-pricing .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; margin-top: 44px; }
.checkout-pricing .plan { position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 28px; border: 1px solid var(--cp-line); border-radius: 16px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.checkout-pricing .plan h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--cp-ink); }
.checkout-pricing .plan-desc { margin: 6px 0 0; min-height: 42px; font-size: 14px; color: var(--cp-ink-soft); }
.checkout-pricing .price { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin: 16px 0 0; }
.checkout-pricing .amount { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--cp-ink); }
.checkout-pricing .per { font-size: 14px; font-weight: 600; color: var(--cp-muted); }
.checkout-pricing .bill-note { margin: 4px 0 0; min-height: 19px; text-align: center; font-size: 12.5px; color: var(--cp-muted); }
.checkout-pricing .plan .btn { margin-top: auto; }
.checkout-pricing .plan .bill-note { margin-bottom: 20px; }
.checkout-pricing .pop-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: var(--cp-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 16px var(--cp-accent-shadow); }
.checkout-pricing .plan--popular { border: 2px solid var(--cp-accent); box-shadow: 0 18px 44px -14px rgba(178, 34, 34, .30); }

/* Karşılaştırma tablosu */
.checkout-pricing .compare { margin: 64px 0 0; padding: clamp(24px, 4vw, 36px); border-radius: 16px; }
.checkout-pricing .compare table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; }
.checkout-pricing .compare thead th { position: sticky; top: var(--cp-header-h); z-index: 5; background: var(--cp-surface); padding: 14px 16px; font-size: 13px; font-weight: 700; color: var(--cp-ink); text-align: center; white-space: nowrap; border-bottom: 1px solid var(--cp-line); box-shadow: 0 6px 12px -8px rgba(17, 24, 39, .10); }
.checkout-pricing .compare thead th:first-child { left: 0; z-index: 7; text-align: left; }
.checkout-pricing .compare thead th:nth-child(3) { background: var(--cp-band-head); color: var(--cp-accent); }
.checkout-pricing .compare tbody th,
.checkout-pricing .compare tbody td { padding: 12px 16px; font-size: 14px; text-align: center; border-bottom: 1px solid var(--cp-line); background: var(--cell, var(--cp-surface)); color: var(--cp-ink-soft); transition: background-color .15s; }
.checkout-pricing .compare tbody th { position: sticky; left: 0; z-index: 3; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--cp-ink); box-shadow: inset -1px 0 0 var(--cp-line); }
.checkout-pricing .compare tbody tr:last-child :is(td, th) { border-bottom: 0; }
/* Zebra → sütun bandı → hover: öncelik kural sırasıyla yönetilir */
.checkout-pricing .compare tbody tr:nth-child(even) :is(td, th) { --cell: var(--cp-zebra); }
.checkout-pricing .compare tbody :is(td, th):nth-child(3) { --cell: var(--cp-band); }
.checkout-pricing .compare tbody tr:hover :is(td, th) { --cell: var(--cp-row-hover); }
.checkout-pricing .compare tbody tr:hover :is(td, th):nth-child(3) { --cell: var(--cp-row-hover-band); }
.checkout-pricing .compare .num { font-weight: 600; color: var(--cp-ink); }
.checkout-pricing .compare .c-yes::before { content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: middle; border-radius: 7px; background-color: rgba(22, 163, 74, .10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 12px; }
.checkout-pricing .compare .c-no::before { content: "—"; color: var(--cp-muted); font-weight: 700; vertical-align: middle; }

/* Responsive */
@media (hover: hover) {
    .checkout-pricing .plan:hover { transform: translateY(-6px); box-shadow: var(--cp-shadow-lift); }
    .checkout-pricing #billing-monthly:checked ~ .billing label[for="billing-monthly"]:hover,
    .checkout-pricing #billing-yearly:checked ~ .billing label[for="billing-yearly"]:hover { background: var(--cp-accent-dark); }
}
@media (min-width: 900px) {
    .checkout-pricing .plan--popular { transform: translateY(-16px); }
}
@media (min-width: 900px) and (hover: hover) {
    .checkout-pricing .plan--popular:hover { transform: translateY(-22px); box-shadow: 0 24px 52px -14px rgba(178, 34, 34, .34); }
}
@media (max-width: 899.98px) {
    .checkout-pricing .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; gap: 34px; }
}
@media (max-width: 639.98px) {
    .checkout-pricing { padding-bottom: 56px; }
    .checkout-pricing .hero-sub { font-size: 15px; }
    .checkout-pricing .billing-toggle label { padding: 8px 14px; font-size: 13px; }
    .checkout-pricing .plan { padding: 26px 20px; }
    .checkout-pricing .amount { font-size: 34px; }
    .checkout-pricing .plan-desc { min-height: 0; }
    .checkout-pricing .compare thead th { padding: 12px; }
    .checkout-pricing .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .checkout-pricing .compare tbody th,
    .checkout-pricing .compare tbody td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .checkout-pricing *,
    .checkout-pricing *::before,
    .checkout-pricing *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
