/* Leponye Dijital — ödeme sayfası
   Marka: mavi→yeşil gradyan (sitedeki hero ile aynı), lacivert metin, Montserrat + Open Sans */

:root {
    --mavi: #1F8EFA;
    --yesil: #04C884;
    --lacivert: #232D41;
    --soluk: #66728A;
    --zemin: #F6F9FC;
    --kenar: #DCE3EC;
    --alan: #FFFFFF;
    --hata: #D14343;
    --hata-zemin: #FDEEEE;
    --gradyan: linear-gradient(135deg, var(--mavi) 0%, #12A9C9 55%, var(--yesil) 100%);
    --baslik: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --govde: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--govde);
    font-size: 15px;
    line-height: 1.55;
    color: var(--lacivert);
    background: var(--zemin);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
.tel { font-weight: 600; color: var(--lacivert); }

/* ------------------------------------------------------------ */
/*  İki panelli düzen                                            */
/* ------------------------------------------------------------ */

.odeme {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    align-items: stretch;
    max-width: 1000px;
    margin: 48px auto;
    background: var(--alan);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(35, 45, 65, 0.28), 0 2px 6px rgba(35, 45, 65, 0.06);
}

/* Sol: marka paneli */
.marka {
    position: relative;
    color: #fff;
    background: var(--gradyan);
    overflow: hidden;
}

/* Sitedeki hero'daki gibi yarı saydam çapraz şeritler */
.marka::before,
.marka::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    transform: rotate(-38deg);
    pointer-events: none;
}
.marka::before { width: 120%; height: 120px; right: -55%; bottom: 18%; }
.marka::after  { width: 90%;  height: 60px;  right: -40%; bottom: 6%; background: rgba(255, 255, 255, 0.07); }

.marka-ic {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
    padding: 40px 36px;
}

.logo { display: block; width: 190px; max-width: 100%; height: auto; }
.logo-yazi { font-family: var(--baslik); font-weight: 700; font-size: 1.4rem; }

.marka-baslik h1 {
    margin: 0 0 6px;
    font-family: var(--baslik);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.marka-baslik p { margin: 0; opacity: 0.88; font-size: 0.93rem; max-width: 30ch; }

.ozet {
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ozet div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.ozet dt { opacity: 0.85; font-size: 0.9rem; }
.ozet dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ozet .ozet-toplam { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.ozet .ozet-toplam dt { opacity: 1; font-weight: 600; }
.ozet .ozet-toplam dd { font-family: var(--baslik); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }

.guvence { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.guvence li { display: flex; align-items: center; gap: 10px; }
.guvence svg { flex: 0 0 20px; width: 20px; height: 20px; fill: #fff; opacity: 0.95; }

.destek { margin: auto 0 0; font-size: 0.85rem; opacity: 0.9; }
.destek a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

/* Sağ: form */
.form-alani { padding: 40px 44px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--kenar); }

legend {
    float: left;          /* başlığı fieldset kenarlığının dışına çıkarır */
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
    font-family: var(--baslik);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--lacivert);
}

legend + * { clear: both; }

.alan { margin-bottom: 16px; }
.alan > label,
.etiket {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--lacivert);
}
.istege { font-weight: 400; color: var(--soluk); margin-left: 4px; }
.alan small { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--soluk); }

input[type=text],
input[type=tel],
input[type=password] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--lacivert);
    background: #fff;
    border: 1.5px solid var(--kenar);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #A3AEC0; }
input:hover { border-color: #C3CDDA; }
input:focus {
    outline: none;
    border-color: var(--mavi);
    box-shadow: 0 0 0 4px rgba(31, 142, 250, 0.15);
}
input.hatali { border-color: var(--hata); box-shadow: 0 0 0 4px rgba(209, 67, 67, 0.12); }

.satir { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Tutar alanı */
.tutar-kutu { position: relative; }
.tutar-kutu input {
    height: 60px;
    padding-right: 44px;
    font-family: var(--baslik);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.tutar-kutu span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--baslik);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--soluk);
}

/* Kart numarası + kart tipi */
.kart-no-kutu { position: relative; }
.kart-no-kutu input { padding-right: 112px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.kart-tipi {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 9px;
    border-radius: 6px;
    font-family: var(--baslik);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--lacivert);
    background: var(--zemin);
    border: 1px solid var(--kenar);
    opacity: 0;
    transition: opacity .15s ease;
}
.kart-tipi.gorunur { opacity: 1; }

/* Taksit seçenekleri */
.taksitler { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 10px; }
.taksit {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1.5px solid var(--kenar);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.taksit input { position: absolute; opacity: 0; pointer-events: none; }
.taksit-ad { font-weight: 600; font-size: 0.92rem; }
.taksit-tutar { font-size: 0.82rem; color: var(--soluk); font-variant-numeric: tabular-nums; }
.taksit-tutar { white-space: nowrap; }
@media (hover: hover) { .taksit:hover { border-color: #C3CDDA; } }
.taksit:has(input:checked) { border-color: var(--mavi); background: #F0F7FF; box-shadow: inset 0 0 0 1px var(--mavi); }
.taksit:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(31, 142, 250, 0.2); }
.taksit:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.taksit-not { margin-top: 8px !important; }

/* Uyarılar */
.uyari {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--hata-zemin);
    color: #A12F2F;
    font-size: 0.92rem;
}
.uyari svg { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--hata); margin-top: 1px; }

.form-hata { margin: 18px 0 0; color: var(--hata); font-size: 0.9rem; font-weight: 600; }

/* Ödeme butonu */
.ode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    margin-top: 26px;
    font-family: var(--baslik);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--gradyan);
    background-size: 160% 100%;
    background-position: 0 0;
    cursor: pointer;
    transition: background-position .3s ease, transform .1s ease, box-shadow .2s ease;
    box-shadow: 0 10px 24px -10px rgba(31, 142, 250, 0.7);
}
.ode svg { width: 18px; height: 18px; fill: #fff; }
.ode:hover { background-position: 100% 0; }
.ode:active { transform: translateY(1px); }
.ode:focus-visible { outline: 3px solid rgba(31, 142, 250, 0.4); outline-offset: 3px; }
.ode:disabled { cursor: progress; filter: saturate(0.6); }
.ode.isleniyor svg { display: none; }
.ode.isleniyor::before {
    content: "";
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: don .8s linear infinite;
}

.alt-not { margin: 12px 0 0; text-align: center; font-size: 0.8rem; color: var(--soluk); }

.tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kapali h2 { font-family: var(--baslik); margin: 0 0 8px; }
.kapali p { color: var(--soluk); margin: 0; }

@keyframes don { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ */
/*  Tek kartlı sayfalar (yönlendirme, sonuç)                     */
/* ------------------------------------------------------------ */

.tek {
    max-width: 480px;
    margin: 56px auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(35, 45, 65, 0.28), 0 2px 6px rgba(35, 45, 65, 0.06);
}
.tek-ust { padding: 26px 32px; background: var(--gradyan); }
.tek-ust .logo { width: 160px; }
.tek-ic { padding: 32px; text-align: center; }
.tek-ic h1 { margin: 0 0 8px; font-family: var(--baslik); font-size: 1.4rem; font-weight: 700; }
.tek-ic > p { margin: 0 auto 22px; color: var(--soluk); max-width: 36ch; }

.yukleniyor {
    width: 44px; height: 44px; margin: 4px auto 18px;
    border: 4px solid #E3ECF7; border-top-color: var(--mavi);
    border-radius: 50%;
    animation: don .9s linear infinite;
}

.durum-ikon {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%;
}
.durum-ikon svg { width: 32px; height: 32px; }
.durum-basarili .durum-ikon { background: #E6F9F1; fill: #039467; }
.durum-hata .durum-ikon     { background: var(--hata-zemin); fill: var(--hata); }
.durum-belirsiz .durum-ikon,
.durum-yok .durum-ikon      { background: #FFF5E5; fill: #B66A00; }

.dekont {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--zemin);
    text-align: left;
    font-size: 0.92rem;
}
.dekont dt { color: var(--soluk); }
.dekont dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }

.tek .ode { margin-top: 0; text-decoration: none; }
.ikincil {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font: inherit;
    font-weight: 600;
    color: var(--lacivert);
    background: transparent;
    border: 1.5px solid var(--kenar);
    border-radius: 12px;
    cursor: pointer;
}
.ikincil:hover { background: var(--zemin); }

/* ------------------------------------------------------------ */
/*  Mobil                                                        */
/* ------------------------------------------------------------ */

@media (max-width: 860px) {
    .odeme {
        grid-template-columns: 1fr;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .marka-ic { padding: 24px 20px 26px; gap: 18px; }
    .logo { width: 150px; }
    .marka-baslik h1 { font-size: 1.3rem; }
    .marka-baslik p { max-width: none; }
    .ozet { padding: 12px 16px; }
    .ozet div:not(.ozet-toplam) { display: none; }
    .ozet .ozet-toplam { margin: 0; padding: 0; border: 0; }
    .ozet .ozet-toplam dd { font-size: 1.4rem; }
    .guvence, .destek { display: none; }
    .form-alani { padding: 26px 20px 36px; }
    .tek { margin: 0; border-radius: 0; min-height: 100vh; box-shadow: none; }
}

@media (max-width: 420px) {
    .satir { grid-template-columns: 1fr; }
    .satir-dar { grid-template-columns: 1fr 1fr; }
    .satir-dar small { display: none; }
    .taksitler { grid-template-columns: 1fr; gap: 8px; }
    .taksit { flex-direction: row; justify-content: space-between; align-items: center; padding: 13px 14px; }
}

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

@media print {
    body { background: #fff; }
    .tek { box-shadow: none; margin: 0 auto; }
    .tek .ode, .ikincil { display: none; }
}
