/* ==========================================================================
   İşgören Avans Ödeme Portalı - ortak arayüz stilleri
   Metronic 7 (Bootstrap 4) üzerine ek katman. Sınıflar "ip-" ön ekli.
   ========================================================================== */

:root {
    --ip-brand: #2f6190;
    --ip-brand-dark: #1d4063;
    --ip-brand-soft: #eaf1f8;
    --ip-accent: #1bc5bd;
    --ip-accent-soft: #e6f9f8;
    --ip-danger: #f64e60;
    --ip-danger-soft: #fff0f2;
    --ip-warning: #ffa800;
    --ip-warning-soft: #fff6e5;
    --ip-text: #2b3445;
    --ip-muted: #7e8299;
    --ip-border: #e4e8ef;
    --ip-bg: #f3f6f9;
    --ip-radius: 14px;
    --ip-shadow: 0 6px 24px rgba(29, 64, 99, .08);
}

/* ---------- Bekleme göstergesi (mevcut #loader id'si korunur) ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, .55) !important;
}

    #loader::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
        border: 4px solid var(--ip-brand-soft);
        border-top-color: var(--ip-brand);
        border-radius: 50%;
        animation: ip-spin .8s linear infinite;
    }

@keyframes ip-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Ödeme akışı sayfaları (_LayoutOdeme)
   ========================================================================== */
body.ip-page {
    background: var(--ip-bg) !important;
    color: var(--ip-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ip-topbar {
    background: linear-gradient(90deg, var(--ip-brand-dark), var(--ip-brand));
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

    .ip-topbar .ip-topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .ip-topbar img {
        max-height: 44px;
        max-width: 60vw;
    }

    .ip-topbar .ip-user {
        text-align: right;
        font-size: 13px;
        line-height: 1.3;
        opacity: .95;
    }

        .ip-topbar .ip-user small {
            display: block;
            opacity: .75;
        }

.ip-main {
    flex: 1 0 auto;
    padding: 28px 0 80px;
}

.ip-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

    .ip-container.ip-wide {
        max-width: 1100px;
    }

.ip-footer {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--ip-border);
    color: var(--ip-muted);
    font-size: 12px;
    text-align: center;
    padding: 12px 16px;
}

    .ip-footer a {
        color: var(--ip-brand);
    }

/* ---------- Adım göstergesi ---------- */
.ip-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    counter-reset: ip-step;
}

    .ip-steps li {
        flex: 1;
        position: relative;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        color: var(--ip-muted);
    }

        .ip-steps li::before {
            counter-increment: ip-step;
            content: counter(ip-step);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            margin: 0 auto 6px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--ip-border);
            font-weight: 600;
            font-size: 14px;
            position: relative;
            z-index: 1;
            transition: all .2s;
        }

        .ip-steps li::after {
            content: "";
            position: absolute;
            top: 17px;
            left: -50%;
            width: 100%;
            height: 2px;
            background: var(--ip-border);
        }

        .ip-steps li:first-child::after {
            display: none;
        }

        .ip-steps li.done::before {
            content: "\2713";
            background: var(--ip-accent);
            border-color: var(--ip-accent);
            color: #fff;
        }

        .ip-steps li.done::after,
        .ip-steps li.active::after {
            background: var(--ip-accent);
        }

        .ip-steps li.active {
            color: var(--ip-brand-dark);
            font-weight: 600;
        }

            .ip-steps li.active::before {
                background: var(--ip-brand);
                border-color: var(--ip-brand);
                color: #fff;
                box-shadow: 0 0 0 5px var(--ip-brand-soft);
            }

@media (max-width: 575.98px) {
    .ip-steps li span { display: none; }
    .ip-steps li.active span { display: block; }
}

/* ---------- Kart ---------- */
.ip-card {
    background: #fff;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    border: 1px solid var(--ip-border);
    overflow: hidden;
}

.ip-card-head {
    padding: 22px 28px 0;
}

    .ip-card-head h1,
    .ip-card-head h2 {
        font-size: 20px;
        font-weight: 600;
        color: var(--ip-brand-dark);
        margin: 0 0 4px;
    }

    .ip-card-head p {
        color: var(--ip-muted);
        margin: 0;
    }

.ip-card-body {
    padding: 22px 28px;
}

.ip-card-foot {
    padding: 16px 28px;
    background: #fafbfd;
    border-top: 1px solid var(--ip-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .ip-card-head, .ip-card-body, .ip-card-foot { padding-left: 16px; padding-right: 16px; }
    .ip-card-foot { flex-direction: column-reverse; }
    .ip-card-foot .btn { width: 100%; }
}

/* ---------- Tutar vitrini ---------- */
.ip-amount {
    text-align: center;
    padding: 22px 16px;
    border-radius: 12px;
    background: var(--ip-brand-soft);
}

    .ip-amount .ip-amount-label {
        font-size: 13px;
        color: var(--ip-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .ip-amount .ip-amount-value {
        font-size: 38px;
        font-weight: 700;
        color: var(--ip-brand-dark);
        line-height: 1.2;
        font-variant-numeric: tabular-nums;
    }

        .ip-amount .ip-amount-value small {
            font-size: 18px;
            font-weight: 500;
            color: var(--ip-muted);
            margin-left: 4px;
        }

    .ip-amount.ip-success { background: var(--ip-accent-soft); }
    .ip-amount.ip-success .ip-amount-value { color: #0e8f89; }

/* ---------- Tanım listesi (etiket : değer) ---------- */
.ip-dl {
    margin: 0;
}

    .ip-dl > div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 0;
        border-bottom: 1px dashed var(--ip-border);
    }

        .ip-dl > div:last-child {
            border-bottom: 0;
        }

    .ip-dl dt {
        font-weight: 400;
        color: var(--ip-muted);
    }

    .ip-dl dd {
        margin: 0;
        font-weight: 600;
        text-align: right;
        word-break: break-word;
        font-variant-numeric: tabular-nums;
    }

/* ---------- Tutar girişi ---------- */
.ip-amount-input {
    position: relative;
}

    .ip-amount-input input {
        height: 64px;
        font-size: 28px;
        font-weight: 600;
        text-align: right;
        padding-right: 72px;
        border-radius: 12px;
        border: 2px solid var(--ip-border);
        font-variant-numeric: tabular-nums;
    }

        .ip-amount-input input:focus {
            border-color: var(--ip-brand);
            box-shadow: 0 0 0 4px var(--ip-brand-soft);
        }

        .ip-amount-input input.is-invalid {
            border-color: var(--ip-danger);
        }

    .ip-amount-input .ip-currency {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: 600;
        color: var(--ip-muted);
        pointer-events: none;
    }

.ip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ip-chip {
    border: 1px solid var(--ip-border);
    background: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ip-text);
    cursor: pointer;
    transition: all .15s;
}

    .ip-chip:hover,
    .ip-chip.active {
        border-color: var(--ip-brand);
        background: var(--ip-brand-soft);
        color: var(--ip-brand-dark);
    }

/* ---------- Bilgi notları ---------- */
.ip-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--ip-brand-soft);
    color: var(--ip-brand-dark);
    font-size: 13px;
}

    .ip-note i {
        font-size: 18px;
        margin-top: 1px;
        color: inherit;
    }

    .ip-note.ip-warning { background: var(--ip-warning-soft); color: #8a5a00; }
    .ip-note.ip-danger { background: var(--ip-danger-soft); color: #b3243a; }
    .ip-note.ip-success { background: var(--ip-accent-soft); color: #0e7f7a; }

/* ---------- Banka seçimi ---------- */
.ip-bank {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 2px solid var(--ip-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    background: #fff;
}

    .ip-bank:hover {
        border-color: #c3d3e6;
    }

    .ip-bank.selected {
        border-color: var(--ip-brand);
        background: var(--ip-brand-soft);
    }

    .ip-bank img {
        height: 40px;
        width: 120px;
        object-fit: contain;
    }

    .ip-bank .ip-bank-text {
        flex: 1;
    }

        .ip-bank .ip-bank-text strong {
            display: block;
        }

        .ip-bank .ip-bank-text small {
            color: var(--ip-muted);
        }

    .ip-bank .ip-bank-check {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid var(--ip-border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 12px;
    }

    .ip-bank.selected .ip-bank-check {
        background: var(--ip-brand);
        border-color: var(--ip-brand);
    }

/* ---------- Banka iframe'i ---------- */
.ip-frame {
    width: 100%;
    min-height: 680px;
    border: 0;
    display: block;
    background: #fff;
}

/* ---------- Sonuç ikonu ---------- */
.ip-result-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 38px;
    color: #fff;
    background: var(--ip-accent);
    box-shadow: 0 0 0 10px var(--ip-accent-soft);
    animation: ip-pop .35s ease-out;
}

    .ip-result-icon.ip-fail {
        background: var(--ip-danger);
        box-shadow: 0 0 0 10px var(--ip-danger-soft);
    }

@keyframes ip-pop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---------- Özet istatistikler ---------- */
.ip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.ip-stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ip-bg);
}

    .ip-stat .ip-stat-label {
        font-size: 12px;
        color: var(--ip-muted);
    }

    .ip-stat .ip-stat-value {
        font-size: 20px;
        font-weight: 700;
        color: var(--ip-brand-dark);
        font-variant-numeric: tabular-nums;
    }

/* ---------- Tablo ---------- */
.ip-table {
    width: 100%;
    margin: 0;
}

    .ip-table th {
        font-size: 12px;
        font-weight: 600;
        color: var(--ip-muted);
        text-transform: uppercase;
        letter-spacing: .03em;
        border-top: 0 !important;
        border-bottom: 1px solid var(--ip-border) !important;
        background: #fafbfd;
        white-space: nowrap;
    }

    .ip-table td {
        vertical-align: middle !important;
        border-top: 1px solid var(--ip-border) !important;
        font-variant-numeric: tabular-nums;
    }

    .ip-table tbody tr:hover {
        background: #f7fafd;
    }

@media (max-width: 767.98px) {
    .ip-table thead { display: none; }
    .ip-table, .ip-table tbody, .ip-table tr, .ip-table td { display: block; width: 100%; }
    .ip-table tr { border-bottom: 1px solid var(--ip-border); padding: 10px 16px; }
    .ip-table td {
        border: 0 !important;
        padding: 4px 0 !important;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        text-align: right !important;
    }
        .ip-table td::before {
            content: attr(data-label);
            color: var(--ip-muted);
            font-size: 12px;
            text-align: left;
        }
}

.ip-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--ip-muted);
}

    .ip-empty i {
        font-size: 42px;
        color: #c9d3df;
        display: block;
        margin-bottom: 10px;
    }

/* ---------- Butonlar ---------- */
.ip-btn-lg {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}

.btn .ip-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ip-spin .7s linear infinite;
    margin-right: 6px;
    vertical-align: -3px;
}

.btn.is-loading .ip-btn-spinner {
    display: inline-block;
}

.btn.is-loading i {
    display: none;
}

/* ---------- Makbuz modalı ---------- */
.ip-modal .modal-content {
    border-radius: var(--ip-radius);
    overflow: hidden;
    border: 0;
}

.ip-modal .modal-header {
    background: var(--ip-brand-dark);
    color: #fff;
    align-items: center;
}

    .ip-modal .modal-header .modal-title {
        color: #fff;
        font-weight: 600;
    }

    .ip-modal .modal-header .close {
        color: #fff;
        opacity: .9;
        text-shadow: none;
    }

.ip-modal .ip-pdf {
    width: 100%;
    height: 75vh;
    border: 0;
    display: block;
}

/* ==========================================================================
   Layout içindeki sayfalar (Ana sayfa, Avans ekranı)
   ========================================================================== */
.ip-wrap {
    padding: 8px 0 60px;
}

.ip-hero {
    border-radius: var(--ip-radius);
    background: linear-gradient(120deg, var(--ip-brand-dark), var(--ip-brand) 60%, #3f86c6);
    color: #fff;
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ip-shadow);
}

    .ip-hero::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .07);
    }

    .ip-hero h1 {
        color: #fff;
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 4px;
    }

    .ip-hero p {
        margin: 0;
        opacity: .85;
    }

.ip-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ip-tile {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    color: var(--ip-text) !important;
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

    .ip-tile:hover {
        transform: translateY(-2px);
        border-color: #c3d3e6;
        box-shadow: 0 10px 28px rgba(29, 64, 99, .12);
    }

    .ip-tile .ip-tile-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        background: var(--ip-brand-soft);
        color: var(--ip-brand);
    }

        .ip-tile .ip-tile-icon.ip-green { background: var(--ip-accent-soft); color: #0e8f89; }
        .ip-tile .ip-tile-icon.ip-red { background: var(--ip-danger-soft); color: var(--ip-danger); }

    .ip-tile strong {
        display: block;
        font-size: 15px;
        margin-bottom: 2px;
    }

    .ip-tile small {
        color: var(--ip-muted);
    }

.ip-howto {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    counter-reset: ip-how;
}

    .ip-howto li {
        position: relative;
        padding: 14px 14px 14px 52px;
        border-radius: 12px;
        background: var(--ip-bg);
        font-size: 13px;
    }

        .ip-howto li::before {
            counter-increment: ip-how;
            content: counter(ip-how);
            position: absolute;
            left: 14px;
            top: 14px;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--ip-brand);
            color: #fff;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ip-howto li strong {
            display: block;
            color: var(--ip-brand-dark);
        }

.ip-timeline {
    position: relative;
    height: 8px;
    border-radius: 99px;
    background: var(--ip-border);
    overflow: hidden;
}

    .ip-timeline > span {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        border-radius: 99px;
        background: linear-gradient(90deg, var(--ip-accent), #3fd7c5);
        transition: width .6s ease;
    }

.ip-skeleton {
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ip-shimmer 1.2s infinite;
    border-radius: 8px;
    height: 16px;
}

@keyframes ip-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ---------- Login ---------- */
body.ip-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--ip-brand-dark) 0%, var(--ip-brand) 55%, #4a90c9 100%) !important;
    color: var(--ip-text);
}

.ip-login-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.ip-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.ip-login-brand {
    text-align: center;
    padding: 26px 24px 10px;
}

    .ip-login-brand img {
        max-width: 260px;
        width: 100%;
    }

.ip-login-body {
    padding: 10px 30px 26px;
}

    .ip-login-body h1 {
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        color: var(--ip-brand-dark);
        margin: 0 0 4px;
    }

    .ip-login-body .ip-sub {
        text-align: center;
        color: var(--ip-muted);
        font-size: 13px;
        margin-bottom: 22px;
    }

.ip-field {
    margin-bottom: 16px;
}

    .ip-field label {
        font-weight: 500;
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

    .ip-field .ip-input {
        position: relative;
    }

        .ip-field .ip-input > i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ip-muted);
        }

        .ip-field .ip-input input {
            height: 48px;
            padding-left: 42px;
            border-radius: 10px;
            border: 1px solid var(--ip-border);
            background: #fafbfd;
        }

            .ip-field .ip-input input:focus {
                background: #fff;
                border-color: var(--ip-brand);
                box-shadow: 0 0 0 4px var(--ip-brand-soft);
            }

        .ip-field .ip-input .ip-eye {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            color: var(--ip-muted);
            padding: 8px 10px;
            cursor: pointer;
        }

    .ip-field .help-block {
        color: var(--ip-danger);
        font-size: 12px;
        margin-top: 4px;
        display: block;
    }

    .ip-field.has-error .ip-input input {
        border-color: var(--ip-danger);
    }

.ip-caps {
    display: none;
    font-size: 12px;
    color: #8a5a00;
    margin-top: 4px;
}

.ip-login-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--ip-border);
    background: #fafbfd;
}

    .ip-login-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid var(--ip-border);
        color: var(--ip-brand) !important;
        transition: all .15s;
    }

        .ip-login-social a:hover {
            background: var(--ip-brand);
            color: #fff !important;
            border-color: var(--ip-brand);
        }

.ip-login-footer {
    text-align: center;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    padding: 14px 16px;
}

    .ip-login-footer a {
        color: #fff;
    }

/* ---------- Kurum rengi ile birincil buton ---------- */
.ip-page .btn-primary,
.ip-login .btn-primary,
.ip-wrap .btn-primary,
.ip-modal .btn-primary {
    background-color: var(--ip-brand);
    border-color: var(--ip-brand);
    color: #fff;
}

    .ip-page .btn-primary:hover, .ip-page .btn-primary:focus,
    .ip-login .btn-primary:hover, .ip-login .btn-primary:focus,
    .ip-wrap .btn-primary:hover, .ip-wrap .btn-primary:focus,
    .ip-modal .btn-primary:hover, .ip-modal .btn-primary:focus {
        background-color: var(--ip-brand-dark) !important;
        border-color: var(--ip-brand-dark) !important;
        color: #fff !important;
    }

.ip-page .btn-outline-primary,
.ip-wrap .btn-outline-primary,
.ip-modal .btn-outline-primary {
    color: var(--ip-brand);
    border-color: var(--ip-brand);
}

    .ip-page .btn-outline-primary:hover,
    .ip-wrap .btn-outline-primary:hover,
    .ip-modal .btn-outline-primary:hover {
        background-color: var(--ip-brand) !important;
        border-color: var(--ip-brand) !important;
        color: #fff !important;
    }

        .ip-page .btn-outline-primary:hover i,
        .ip-wrap .btn-outline-primary:hover i,
        .ip-page .btn-primary i,
        .ip-login .btn-primary i,
        .ip-wrap .btn-primary i {
            color: #fff !important;
        }

/* Layout içindeki sayfalarda mobil kenar boşluğu */
@media (max-width: 991.98px) {
    .ip-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
