/* Ayhavuz Tahsilat - Ana Stil Dosyası */

:root {
    --brand: #ff725e;
    --brand-dark: #ff3a2b;
    --brand-soft: #fff1ef;
    --ink: #1f2430;
    --ink-soft: #6b7280;
    --line: #e8eaee;
    --bg: #f5f6f8;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(31, 36, 48, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Blinker', sans-serif;
    background: var(--bg);
    color: var(--ink);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .logo img {
    height: 40px;
}

.header .menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s;
}

.header .menu a:hover {
    color: var(--brand);
}

.header .right-menu .dropdown-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-header .logo img {
    height: 35px;
}

.mobile-header .menu-icon {
    font-size: 28px;
}

/* Page */
.page {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Title */
.title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

/* Tutar Input */
.p-rel {
    position: relative;
}

.tl {
    position: absolute;
    right: 15px;
    top: 38px;
    font-weight: 700;
    color: #666;
}

.mw-300 {
    max-width: 300px;
}

.mw-600 {
    max-width: 600px;
}

/* Login Form */
.login-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(255, 114, 94, 0.15);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

/* Buttons */
.btn-primary {
    background: var(--brand);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(255, 114, 94, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    box-shadow: 0 8px 20px rgba(255, 58, 43, 0.32);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: #d8b0aa;
    box-shadow: none;
}

/* Soft Card */
.soft-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Payment Method Footer */
.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 0;
    background: #fff;
    margin-top: 40px;
}

.payment-method img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-method img:hover {
    opacity: 1;
}

/* Copyright */
.c_right {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.85rem;
}

.c_right img {
    height: 20px;
    margin-top: 5px;
}

/* Contact */
.contact {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.contact h3 {
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info .label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.contact-info .value {
    color: #333;
    font-size: 1rem;
}

/* Content (for static pages) */
.content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    line-height: 1.7;
}

.content h6 {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #222;
}

.content p {
    color: #555;
    margin-bottom: 10px;
}

/* Status Page */
.status {
    padding: 60px 20px;
}

.stTitle h2 {
    font-weight: 700;
}

/* Tags */
.tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.tag.success {
    background: #d4edda;
    color: #155724;
}

.tag.unsuccess {
    background: #f8d7da;
    color: #721c24;
}

.tag.pending {
    background: #fff3cd;
    color: #856404;
}

/* Taksit */
.taksit {
    padding: 0;
}

.tax-info {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tax-info:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Ödeme Sayfası
   ========================================================================== */

.pay-head {
    text-align: center;
    margin-bottom: 32px;
}

.pay-head h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.pay-head p {
    color: var(--ink-soft);
    margin: 0;
}

.pay-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.pay-card + .pay-card {
    margin-top: 20px;
}

.pay-card .step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

.pay-card .step i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: .82rem;
    font-weight: 800;
    font-style: normal;
    flex: 0 0 26px;
}

/* --- Tutar alanı --- */
.amount-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fcfcfd;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.amount-field.is-focused {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.amount-field .cur {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink-soft);
    pointer-events: none;
}

.amount-field.is-filled .cur {
    color: var(--ink);
}

.amount-field input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.amount-field input:focus {
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
}

.amount-field input::placeholder {
    color: #c9ccd4;
    font-weight: 600;
}

.amount-clear {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eceef2;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.amount-field.is-filled .amount-clear {
    display: flex;
}

.amount-clear:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.amount-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.amount-quick button {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.amount-quick button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* --- Taksit seçenekleri --- */
.inst-list {
    display: grid;
    gap: 12px;
}

.inst-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.inst-option label {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.inst-option label:hover {
    border-color: #d9dce2;
    background: #fcfcfd;
}

.inst-option input:checked + label {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 4px 14px rgba(255, 114, 94, .16);
}

.inst-option input:focus-visible + label {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.inst-option .dot {
    width: 20px;
    height: 20px;
    border: 2px solid #cfd3da;
    border-radius: 50%;
    flex: 0 0 20px;
    position: relative;
    transition: border-color .18s;
}

.inst-option input:checked + label .dot {
    border-color: var(--brand);
}

.inst-option input:checked + label .dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
}

.inst-option .inst-name {
    font-weight: 600;
    line-height: 1.25;
}

.inst-option .inst-sub {
    display: block;
    font-size: .82rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.inst-option .inst-total {
    margin-left: auto;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.inst-option .inst-total small {
    display: block;
    font-weight: 400;
    font-size: .78rem;
    color: var(--ink-soft);
}

/* --- Kart görseli --- */
.card-visual {
    position: relative;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(135deg, #2b3040 0%, #434a61 100%);
    box-shadow: 0 10px 26px rgba(31, 36, 48, .22);
}

.card-visual .cv-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e6c574, #b8933f);
    margin-bottom: 22px;
}

.card-visual .cv-number {
    font-size: 1.3rem;
    letter-spacing: 2.5px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 18px;
    min-height: 1.6em;
}

.card-visual .cv-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.card-visual .cv-label {
    display: block;
    font-size: .64rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: 3px;
}

.card-visual .cv-value {
    font-size: .95rem;
    text-transform: uppercase;
    min-height: 1.2em;
    word-break: break-word;
}

/* Marka rozeti PNG değil, yazıyla çizilir; her ekran çözünürlüğünde net görünür. */
.card-visual .cv-brand {
    position: absolute;
    top: 20px;
    right: 22px;
    padding: 5px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s, transform .25s;
}

.card-visual .cv-brand.on {
    opacity: 1;
    transform: none;
}

/* --- Güvenlik rozetleri --- */
.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--ink-soft);
}

.secure-note svg {
    flex: 0 0 auto;
    color: #16a34a;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 26px;
    color: var(--ink-soft);
    font-size: .85rem;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Panel */
.panel_page {
    min-height: 80vh;
    padding-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .page {
        padding: 20px 0;
    }

    .login-form {
        padding: 20px;
    }

    .mw-600 {
        max-width: 100%;
    }

    .pay-head h1 {
        font-size: 1.45rem;
    }

    .pay-card {
        padding: 18px;
    }

    .amount-field input {
        font-size: 1.4rem;
    }

    .inst-option label {
        padding: 13px 14px;
        gap: 10px;
    }

    .card-visual .cv-number {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .trust-row {
        gap: 14px;
        font-size: .78rem;
    }
}

/* Offcanvas Menu */
.offcanvas-body ul {
    list-style: none;
    padding: 0;
}

.offcanvas-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-body ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.offcanvas-body ul li a:hover {
    color: var(--brand);
}

/* Description */
.desc {
    color: #666;
    margin-bottom: 20px;
}

/* Animations */
.pt-25 {
    padding-top: 25px;
}

/* Exit Button */
.cks-btn {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

.cks-btn:hover {
    color: #b02a37;
}
