/* ==========================================================================
   Paynkolay Cari Ödeme — Stil (marka rengi header'daki --brand ile gelir)
   Mobil öncelikli, tek dosya, bağımlılıksız.
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    color:#1f2328;
    background:#eef1f5;
    background-image:radial-gradient(1200px 500px at 50% -10%, rgba(31,111,235,.10), transparent 60%);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    min-height:100vh;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.pk-wrap{max-width:520px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;min-height:100vh}

/* Üst bar */
.pk-topbar{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 20px}
.pk-brand{display:inline-flex;align-items:center;gap:8px}
.pk-logo{max-height:42px;max-width:190px;width:auto;height:auto;display:block}
.pk-brand-text{font-weight:800;font-size:20px;color:#1f2328}
.pk-secure-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;
    color:#1a7f37;background:#e8f5ec;border:1px solid #b7e0c3;padding:5px 10px;border-radius:999px}

/* Kart */
.pk-main{flex:1}
.pk-card{background:#fff;border:1px solid #e6e8eb;border-radius:16px;
    box-shadow:0 4px 24px rgba(20,30,60,.06);padding:24px}
.pk-card + .pk-card{margin-top:16px}
.pk-title{font-size:20px;font-weight:800;margin:0 0 4px}
.pk-subtitle{color:#6a737d;font-size:14px;margin:0 0 20px}

/* Tutar alanı — büyük ve öne çıkan */
.pk-amount-box{background:linear-gradient(180deg,#f7f9ff,#eef2ff);border:1px solid #dbe4ff;
    border-radius:14px;padding:16px 18px;margin-bottom:20px}
.pk-amount-box label{display:block;font-size:13px;font-weight:600;color:#4a5568;margin-bottom:6px}
.pk-amount-input{position:relative;display:flex;align-items:center}
.pk-amount-input .pk-cur{font-size:28px;font-weight:800;color:#1f2328;margin-right:6px}
.pk-amount-input input{
    border:none;background:transparent;font-size:34px;font-weight:800;color:#1f2328;
    width:100%;outline:none;padding:0;letter-spacing:-.5px}
.pk-amount-input input::placeholder{color:#c2cad6}
.pk-amount-hint{font-size:12px;color:#8a94a6;margin-top:6px}

/* Form alanları */
.pk-field{margin-bottom:14px}
.pk-field label{display:block;font-size:13px;font-weight:600;color:#3a424e;margin-bottom:6px}
.pk-field label .opt{font-weight:400;color:#9aa4b2}
.pk-field input[type=text],.pk-field input[type=email],.pk-field input[type=tel],.pk-field textarea{
    width:100%;padding:12px 14px;border:1.5px solid #d5dbe3;border-radius:10px;font-size:15px;
    color:#1f2328;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s;font-family:inherit}
.pk-field input:focus,.pk-field textarea:focus{border-color:var(--brand);
    box-shadow:0 0 0 3px rgba(31,111,235,.15)}
.pk-field textarea{min-height:64px;resize:vertical}
.pk-field.pk-invalid input,.pk-field.pk-invalid textarea{border-color:#e5484d;box-shadow:0 0 0 3px rgba(229,72,77,.12)}
.pk-error-msg{color:#cf222e;font-size:12.5px;margin-top:5px;display:none}
.pk-field.pk-invalid .pk-error-msg{display:block}
.pk-row{display:flex;gap:12px}
.pk-row .pk-field{flex:1}

/* Onay kutusu */
.pk-consent{display:flex;gap:10px;align-items:flex-start;margin:6px 0 20px;font-size:13px;color:#4a5568}
.pk-consent input{margin-top:3px;width:18px;height:18px;accent-color:var(--brand);flex:none}
.pk-consent a{font-weight:600}

/* Buton */
.pk-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
    background:var(--brand);color:#fff;border:none;border-radius:12px;padding:15px 20px;
    font-size:16px;font-weight:700;cursor:pointer;transition:background .15s,transform .05s;font-family:inherit}
.pk-btn:hover{background:var(--brand-dark)}
.pk-btn:active{transform:translateY(1px)}
.pk-btn:disabled{opacity:.6;cursor:not-allowed}
.pk-btn .pk-spinner{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);
    border-top-color:#fff;border-radius:50%;animation:pk-spin .7s linear infinite;display:none}
.pk-btn.is-loading .pk-spinner{display:inline-block}
.pk-btn.is-loading .pk-btn-text{opacity:.85}
@keyframes pk-spin{to{transform:rotate(360deg)}}

.pk-summary{background:#f6f8fa;border-radius:10px;padding:12px 16px;margin-bottom:16px;
    font-size:13px;color:#57606a;display:flex;justify-content:space-between;align-items:center}
.pk-summary strong{color:#1f2328;font-size:16px}

/* Durum (success / fail) */
.pk-status{text-align:center;padding:12px 0 6px}
.pk-status-icon{width:76px;height:76px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.pk-status-icon svg{width:40px;height:40px;stroke-width:3}
.pk-ok .pk-status-icon{background:#e8f5ec;color:#1a7f37}
.pk-err .pk-status-icon{background:#fdeceb;color:#cf222e}
.pk-status h1{font-size:22px;margin:0 0 6px}
.pk-status p{color:#6a737d;margin:0 auto 20px;max-width:380px}

/* Makbuz tablosu */
.pk-receipt{border:1px solid #e6e8eb;border-radius:12px;overflow:hidden;margin:16px 0}
.pk-receipt table{width:100%;border-collapse:collapse}
.pk-receipt td{padding:11px 16px;font-size:14px;border-bottom:1px solid #eef1f4}
.pk-receipt tr:last-child td{border-bottom:none}
.pk-receipt td:first-child{color:#6a737d;width:45%}
.pk-receipt td:last-child{font-weight:600;text-align:right}
.pk-receipt .pk-amount-cell{color:var(--brand);font-size:18px;font-weight:800}

/* Alt bilgi */
.pk-footer{margin-top:24px;text-align:center;color:#8a94a6;font-size:12.5px}
.pk-trust{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:12px;
    color:#57606a;font-weight:600;font-size:12.5px}
.pk-legal-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.pk-legal-links a{color:#6a737d}
.pk-copy{margin:6px 0}
.pk-card-brands{display:flex;gap:8px;justify-content:center;margin-top:8px}
.pk-card-brands span{background:#fff;border:1px solid #e0e4e8;border-radius:5px;padding:3px 8px;
    font-size:11px;font-weight:700;color:#57606a;letter-spacing:.5px}

/* Hukuki metin sayfaları */
.pk-legal-content{background:#fff;border:1px solid #e6e8eb;border-radius:16px;padding:28px}
.pk-legal-content h1{font-size:22px;margin:0 0 4px}
.pk-legal-content h2{font-size:16px;margin:22px 0 8px}
.pk-legal-content p,.pk-legal-content li{color:#3a424e;font-size:14px}
.pk-note{background:#fff8e6;border:1px solid #ffe8a3;border-radius:10px;padding:12px 16px;
    font-size:13px;color:#7a5c00;margin-bottom:18px}
.pk-back{display:inline-block;margin-top:20px;font-weight:600}

/* Uyarı kutusu (hata listesi) */
.pk-alert{background:#fdeceb;border:1px solid #f5c2c0;border-radius:10px;padding:12px 16px;
    color:#a40e26;font-size:13.5px;margin-bottom:18px}
.pk-alert ul{margin:6px 0 0;padding-left:18px}

@media (max-width:400px){
    .pk-row{flex-direction:column;gap:0}
    .pk-card{padding:20px 16px}
    .pk-amount-input input{font-size:30px}
}
