/* =========================================================
   IXIA BANGLADESH
   Dynamic Secure Payment Portal
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #132238;

    background:
        linear-gradient(
            135deg,
            #eef5ff 0%,
            #f8fbff 42%,
            #f2f8f8 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.background-effects {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}

.glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(5px);

    opacity: .55;

    animation:
        floatingGlow 12s ease-in-out infinite;
}

.glow-one {
    width: 460px;
    height: 460px;

    top: -180px;
    left: -160px;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, .18),
            rgba(37, 99, 235, 0) 70%
        );
}

.glow-two {
    width: 500px;
    height: 500px;

    right: -200px;
    bottom: -190px;

    background:
        radial-gradient(
            circle,
            rgba(16, 185, 129, .15),
            rgba(16, 185, 129, 0) 70%
        );

    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;

    inset: 0;

    opacity: .28;

    background-image:
        linear-gradient(
            rgba(15, 23, 42, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(15, 23, 42, .025) 1px,
            transparent 1px
        );

    background-size: 36px 36px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

@keyframes floatingGlow {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    50% {
        transform:
            translate3d(25px, 18px, 0)
            scale(1.06);
    }

}


/* =========================================================
   PAGE
========================================================= */

.page-wrapper {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 20px;
}


/* =========================================================
   PAYMENT CARD
========================================================= */

.payment-card {
    position: relative;

    width: 100%;
    max-width: 570px;

    padding: 32px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, .94);

    border:
        1px solid rgba(255, 255, 255, .85);

    border-radius: 26px;

    box-shadow:
        0 30px 80px rgba(30, 64, 175, .10),
        0 10px 30px rgba(15, 23, 42, .07);

    backdrop-filter: blur(20px);

    animation:
        cardEntrance .65s
        cubic-bezier(.2, .8, .2, 1)
        both;
}

.payment-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #0ea5e9,
            #10b981,
            #2563eb
        );

    background-size: 200% 100%;

    animation:
        topLine 5s linear infinite;
}

@keyframes cardEntrance {

    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes topLine {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 200% 0;
    }

}


/* =========================================================
   HEADER
========================================================= */

.portal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


/* Common logo.php */

.ixia-global-logo {
    width: 66px;
    height: 66px;

    flex: 0 0 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .9),
            rgba(241, 245, 249, .9)
        );

    box-shadow:
        0 8px 22px rgba(15, 23, 42, .08);

    overflow: hidden;
}

.ixia-logo-image {
    display: block;

    width: 58px;
    height: 58px;

    max-width: 58px;
    max-height: 58px;

    object-fit: contain;
}

.brand-info {
    min-width: 0;
}

.brand-info h1 {
    margin: 0 0 4px;

    color: #10213a;

    font-size: 20px;
    line-height: 1.25;

    letter-spacing: -.3px;
}

.brand-info p {
    margin: 0;

    color: #718096;

    font-size: 12px;
}


/* =========================================================
   LIVE STATUS
========================================================= */

.live-status {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    color: #047857;

    background: #ecfdf5;

    border: 1px solid #d1fae5;

    border-radius: 30px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;
}

.live-dot {
    position: relative;

    width: 7px;
    height: 7px;

    background: #10b981;

    border-radius: 50%;
}

.live-dot::after {
    content: "";

    position: absolute;

    inset: -4px;

    border:
        1px solid rgba(16, 185, 129, .5);

    border-radius: 50%;

    animation:
        livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {

    0% {
        transform: scale(.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }

}


/* =========================================================
   TRUST BAR
========================================================= */

.trust-bar {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    margin: 25px 0 0;

    padding: 10px 14px;

    background: #f8fafc;

    border: 1px solid #eef2f7;

    border-radius: 11px;

    color: #64748b;

    font-size: 10px;
}

.trust-item {
    display: flex;
    align-items: center;

    gap: 6px;
}

.trust-icon {
    color: #10b981;

    font-weight: 900;
}

.shield-icon {
    color: #2563eb;

    font-size: 8px;
}

.trust-divider {
    width: 1px;
    height: 13px;

    background: #dbe3ee;
}


/* =========================================================
   HEADING
========================================================= */

.payment-heading {
    margin-top: 28px;
}

.eyebrow {
    margin-bottom: 7px;

    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.payment-heading h2 {
    margin: 0;

    color: #10213a;

    font-size: 28px;
    line-height: 1.25;

    letter-spacing: -.6px;
}

.payment-heading p {
    margin: 8px 0 0;

    max-width: 430px;

    color: #718096;

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   LIVE SUMMARY
========================================================= */

.live-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 24px 0;

    padding: 17px 18px;

    background:
        linear-gradient(
            135deg,
            #f7faff,
            #f7fcfb
        );

    border: 1px solid #e5edf7;

    border-radius: 16px;
}

.summary-label {
    display: block;

    margin-bottom: 4px;

    color: #718096;

    font-size: 10px;
}

.summary-amount {
    color: #10213a;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -.4px;
}

.summary-amount span {
    margin-right: 3px;

    color: #2563eb;

    font-size: 17px;
}

.summary-status {
    display: flex;
    align-items: center;

    gap: 9px;
}

.summary-status-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #10b981;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        0 5px 14px rgba(16, 185, 129, .18);
}

.summary-status strong {
    display: block;

    color: #334155;

    font-size: 12px;
}

.summary-status small {
    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 9px;
}


/* =========================================================
   ALERT
========================================================= */

.alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 11px;

    font-size: 12px;
    line-height: 1.55;
}

.alert-error {
    color: #991b1b;

    background: #fef2f2;

    border: 1px solid #fecaca;
}

.alert-icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #dc2626;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   FORM
========================================================= */

#paymentForm {
    width: 100%;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label,
.section-label {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 7px;

    color: #334155;

    font-size: 12px;
    font-weight: 700;
}

.form-group label small,
.section-label small {
    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    border: 1px solid #dce5ef;

    border-radius: 12px;

    background: #ffffff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease;
}

.input-wrapper:focus-within {
    border-color: #60a5fa;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .07),
        0 7px 18px rgba(15, 23, 42, .035);

    transform:
        translateY(-1px);
}

.input-icon {
    width: 46px;
    height: 48px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;

    font-size: 14px;
    font-weight: 700;

    border-right: 1px solid #eef2f7;

    transition:
        color .2s ease;
}

.input-wrapper:focus-within
.input-icon {
    color: #2563eb;
}

.taka-icon {
    font-size: 17px;
}

.input-wrapper input {
    width: 100%;
    height: 48px;

    min-width: 0;

    padding: 0 42px 0 13px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #0f172a;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #b0bac8;

    font-weight: 400;
}

.field-check {
    position: absolute;

    right: 13px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #10b981;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 900;

    opacity: 0;

    transform:
        scale(.7);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.input-wrapper.is-valid
.field-check {
    opacity: 1;

    transform:
        scale(1);
}

.currency-label {
    position: absolute;

    right: 13px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* =========================================================
   PAYMENT METHOD
========================================================= */

.section-label {
    margin-top: 23px;
}

.payment-method {
    position: relative;

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #fff7fa,
            #ffffff
        );

    border: 1px solid #f3c1d6;

    border-radius: 14px;

    box-shadow:
        0 7px 20px rgba(226, 19, 110, .045);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.payment-method:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 10px 25px rgba(226, 19, 110, .08);
}

.payment-method::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: #e2136e;
}

.method-left {
    display: flex;
    align-items: center;

    gap: 12px;
}

.bkash-mark {
    width: 55px;
    height: 40px;

    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e2136e,
            #c90d5e
        );

    border-radius: 9px;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 6px 15px rgba(226, 19, 110, .18);
}

.method-info strong {
    display: block;

    color: #334155;

    font-size: 12px;
}

.method-info small {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 9px;
}

.selected-method {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e2136e;

    border-radius: 50%;

    box-shadow:
        0 5px 12px rgba(226, 19, 110, .17);
}

.selected-method span {
    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   PAYMENT BUTTON
========================================================= */

.pay-button {
    position: relative;

    width: 100%;
    height: 54px;

    margin-top: 18px;

    overflow: hidden;

    border: 0;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            110deg,
            #e2136e,
            #d30e65,
            #e2136e
        );

    background-size:
        200% 100%;

    font-family: inherit;

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(226, 19, 110, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.pay-button::after {
    content: "";

    position: absolute;

    top: -50%;
    left: -100%;

    width: 50%;
    height: 200%;

    transform:
        rotate(20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .22),
            transparent
        );

    transition:
        left .6s ease;
}

.pay-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(226, 19, 110, .25);
}

.pay-button:hover::after {
    left: 150%;
}

.pay-button:active {
    transform:
        translateY(0);
}

.pay-button:disabled {
    cursor: not-allowed;

    opacity: .82;

    transform: none;
}

.button-content,
.button-loading {
    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;
}

.button-loading {
    display: none;
}

.button-lock {
    font-size: 12px;
}

.button-arrow {
    margin-left: 3px;

    font-size: 17px;

    transition:
        transform .2s ease;
}

.pay-button:hover
.button-arrow {
    transform:
        translateX(3px);
}

.spinner {
    width: 17px;
    height: 17px;

    border:
        2px solid rgba(255, 255, 255, .35);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}

@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   SECURITY PANEL
========================================================= */

.security-panel {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 20px;

    padding: 13px 14px;

    background: #f8fbff;

    border: 1px solid #e7eef7;

    border-radius: 12px;
}

.security-shield {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eaf2ff;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 900;
}

.security-panel strong {
    display: block;

    margin-bottom: 2px;

    color: #334155;

    font-size: 11px;
}

.security-panel p {
    margin: 0;

    color: #8492a6;

    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   FOOTER
========================================================= */

.portal-footer {
    margin-top: 23px;

    padding-top: 18px;

    border-top: 1px solid #eef2f7;

    text-align: center;
}

.footer-security {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #94a3b8;

    font-size: 9px;
}

.portal-footer p {
    margin: 8px 0 0;

    color: #a7b1c0;

    font-size: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .page-wrapper {
        align-items: flex-start;

        padding: 18px 12px;
    }

    .payment-card {
        padding: 23px 18px;

        border-radius: 21px;
    }

    .portal-header {
        gap: 10px;
    }

    .brand {
        gap: 10px;
    }

    .ixia-global-logo {
        width: 55px;
        height: 55px;

        flex-basis: 55px;

        border-radius: 15px;
    }

    .ixia-logo-image {
        width: 49px;
        height: 49px;

        max-width: 49px;
        max-height: 49px;
    }

    .brand-info h1 {
        font-size: 17px;
    }

    .brand-info p {
        font-size: 10px;
    }

    .live-status {
        padding: 6px 8px;

        font-size: 8px;
    }

    .trust-bar {
        gap: 8px;

        padding: 9px;

        font-size: 8px;
    }

    .trust-divider {
        height: 11px;
    }

    .payment-heading {
        margin-top: 23px;
    }

    .payment-heading h2 {
        font-size: 24px;
    }

    .payment-heading p {
        font-size: 12px;
    }

    .live-summary {
        padding: 14px;

        gap: 10px;
    }

    .summary-amount {
        font-size: 21px;
    }

    .summary-status-icon {
        width: 27px;
        height: 27px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .payment-card {
        padding:
            21px 15px;
    }

    .live-status span:last-child {
        display: none;
    }

    .live-status {
        width: 23px;
        height: 23px;

        padding: 0;

        justify-content: center;
    }

    .trust-bar {
        flex-wrap: wrap;
    }

    .trust-divider {
        display: none;
    }

    .live-summary {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

}