/* MisyonKredi Sepet & Ödeme Stilleri */
.mk-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#mk-cart-badge {
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: -8px; right: -8px;
    line-height: 20px;
    text-align: center;
}
.mk-sepet-btn {
    display: inline-block;
    background: #1a56db;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s;
    text-decoration: none !important;
    margin-top: 8px;
}
.mk-sepet-btn:hover { background: #1341b0; color: #fff !important; }

/* SEPET SAYFASI */
.mk-cart-wrap { max-width: 900px; margin: 40px auto; padding: 0 16px; }
.mk-cart-box, .mk-summary-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.mk-cart-box h2, .mk-summary-box h2 {
    font-size: 1.2rem;
    color: #0d1b3e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.mk-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}
.mk-cart-row:last-child { border-bottom: none; }
.mk-cart-info { flex: 1; min-width: 160px; }
.mk-qty {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid #dee2e6; border-radius: 6px; padding: 4px 10px;
}
.mk-qty button {
    background: none; border: none; font-size: 1.1rem;
    cursor: pointer; color: #1a56db; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
}
.mk-qty span { font-weight: 700; min-width: 20px; text-align: center; }
.mk-row-total { font-weight: 700; min-width: 90px; text-align: right; }
.mk-btn-remove {
    background: #e53935; color: #fff; border: none;
    border-radius: 5px; padding: 6px 14px; cursor: pointer;
    font-size: 0.82rem; font-family: inherit;
}
.mk-btn-remove:hover { background: #c62828; }
.mk-empty { text-align: center; padding: 40px 0; color: #6c757d; }
.mk-sum-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #e9ecef; font-size: 0.95rem;
}
.mk-sum-total {
    font-weight: 700; font-size: 1.1rem; color: #1a56db;
    border-bottom: none; margin-top: 8px;
}
.mk-back-link { color: #6c757d; font-size: 0.88rem; }

/* ÖDEME FORMU */
.mk-checkout-wrap { max-width: 1000px; margin: 40px auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.mk-form-box {
    background: #fff; border: 1px solid #dee2e6;
    border-radius: 10px; padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mk-form-box h2 { font-size: 1.2rem; color: #0d1b3e; margin-bottom: 20px; }
.mk-fieldset {
    border: 1px solid #dee2e6; border-radius: 8px;
    padding: 18px; margin-bottom: 18px;
}
.mk-fieldset legend { font-weight: 700; color: #1a56db; padding: 0 8px; font-size: 0.93rem; }
.mk-form-group { margin-bottom: 14px; }
.mk-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #343a40; }
.mk-form-group input, .mk-form-group select, .mk-form-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #dee2e6;
    border-radius: 6px; font-size: 0.92rem; font-family: inherit;
    background: #f8f9fa; transition: border 0.2s;
    box-sizing: border-box;
}
.mk-form-group input:focus, .mk-form-group select:focus {
    border-color: #1a56db; outline: none; background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-checkbox { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.mk-checkbox input[type=checkbox] { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: #1a56db; }
.mk-checkbox label { font-size: 0.87rem; line-height: 1.5; cursor: pointer; }
.mk-checkout-mini {
    background: #fff; border: 1px solid #dee2e6;
    border-radius: 10px; padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mk-checkout-mini h3 { font-size: 1rem; color: #0d1b3e; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; }

/* MODAL */
.mk-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 99999;
    align-items: center; justify-content: center; padding: 20px;
}
.mk-modal.active { display: flex; }
.mk-modal-box {
    background: #fff; border-radius: 10px; padding: 28px;
    max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.mk-modal-box h3 { color: #0d1b3e; margin-bottom: 14px; font-size: 1.05rem; }
.mk-modal-box p { font-size: 0.88rem; line-height: 1.7; color: #444; }

/* TOAST */
.mk-toast {
    position: fixed; bottom: 28px; right: 28px;
    background: #0d1b3e; color: #fff;
    padding: 13px 22px; border-radius: 8px;
    font-size: 0.88rem; border-left: 4px solid #0f9d58;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    z-index: 99999; opacity: 0; transform: translateY(60px);
    transition: all 0.3s ease; pointer-events: none;
}
.mk-toast.mk-toast-show { opacity: 1; transform: translateY(0); }

/* SONUÇ SAYFALARI */
.mk-result { max-width: 500px; margin: 60px auto; text-align: center; padding: 0 16px; }
.mk-result-box {
    background: #fff; border-radius: 10px; padding: 44px 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}
.mk-result-icon { font-size: 3rem; margin-bottom: 16px; }
.mk-result-box h2 { margin-bottom: 10px; }
.mk-result-box p { color: #6c757d; margin-bottom: 14px; line-height: 1.6; }
.mk-order-no {
    background: #f8f9fa; border: 1px dashed #dee2e6;
    border-radius: 6px; padding: 12px 20px;
    font-size: 1.1rem; font-weight: 700; color: #0d1b3e;
    display: inline-block; margin: 14px 0;
}
.mk-ssl { font-size: 0.78rem; color: #6c757d; margin-top: 10px; }

/* KART GÖRSELİ */
.mk-card-visual {
    background: linear-gradient(135deg, #1a56db 0%, #0d1b3e 100%);
    border-radius: 14px;
    padding: 24px 22px 20px;
    color: #fff;
    position: relative;
    min-height: 160px;
    box-shadow: 0 8px 24px rgba(26,86,219,0.35);
    margin-bottom: 4px;
    overflow: hidden;
}
.mk-card-visual::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -60px; right: -60px;
}
.mk-card-chip {
    width: 40px; height: 30px;
    background: linear-gradient(135deg, #f0c040, #c8960c);
    border-radius: 6px;
    margin-bottom: 24px;
}
.mk-card-number-display {
    font-size: 1.3rem;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    color: #fff;
}
.mk-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.mk-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3px;
}
.mk-card-holder-display, .mk-card-exp-display {
    font-size: 0.88rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* TAKSİT SEÇENEĞİ */
.mk-taksit-wrap { margin-top: 14px; }
.mk-taksit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.mk-taksit-item {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    color: #343a40;
}
.mk-taksit-item input[type=radio] { display: none; }
.mk-taksit-item:hover { border-color: #1a56db; color: #1a56db; }
.mk-taksit-item.active { border-color: #1a56db; background: #eef3ff; color: #1a56db; }

@media (max-width: 768px) {
    .mk-checkout-wrap { grid-template-columns: 1fr; }
    .mk-form-row { grid-template-columns: 1fr; }
    .mk-cart-row { flex-direction: column; align-items: flex-start; }
}
