/* ===== Deposit / Withdraw theme (matches home page) ===== */
body.fund-page {
    background: linear-gradient(160deg, #0a2687 0%, #1546c4 55%, #2a6af0 100%) fixed !important;
    font-family: "Outfit", sans-serif;
    color: #1b1b1f !important;
    min-height: 100vh;
    overflow-x: hidden;
}

body.fund-page button,
body.fund-page input,
body.fund-page select,
body.fund-page .btn {
    font-family: "Outfit", sans-serif !important;
}

body.fund-page .page-header {
    display: none !important;
}

.fp-head {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 20px 30px;
    color: #fff;
}

.fp-head a {
    color: #fff !important;
    font-size: 24px;
    line-height: 1;
    text-decoration: none !important;
}

.fp-head h4 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.fp-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-radius: 40px 40px 0 0;
    min-height: calc(100vh - 90px);
    padding: 20px 20px 40px;
    box-shadow: 0 -8px 24px rgba(5, 20, 80, .25);
}

.fp-wrap {
    max-width: 480px;
    margin: 0 auto;
}

/* user + balance card */
.fp-user {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(120% 90% at 50% 0%, #ffd768 0%, #f2bc34 55%, #e2a414 100%);
    box-shadow: 0 10px 22px rgba(226, 164, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
    text-align: center;
    padding-bottom: 28px;
}

.fp-user::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.fp-user .who {
    position: relative;
    padding: 16px 12px 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(120, 70, 0, .45);
}

.fp-user .who b {
    display: block;
    font-size: 19px;
    font-weight: 600;
}

.fp-user .who span {
    display: block;
    font-size: 19px;
    letter-spacing: .5px;
}

.fp-user .bal {
    position: relative;
    background: linear-gradient(180deg, #2e2e33 0%, #1d1d21 55%, #141417 100%);
    color: #fff;
    padding: 14px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.fp-user .bal small {
    display: block;
    font-size: 18px;
}

.fp-user .bal b {
    display: block;
    font-size: 20px;
    font-weight: 500;
}

/* amount input */
.fp-amount {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 8px;
}

.fp-amount .rs {
    font-size: 40px;
    line-height: 1;
    font-weight: 400;
    color: #1b1b1f;
}

.fp-amount input {
    width: 130px;
    border: 0 !important;
    border-bottom: 3px dashed #1b1b1f !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    font-size: 28px;
    font-weight: 500;
    color: #1b1b1f !important;
    padding: 0 4px 2px;
    caret-color: #f2bc34;
    text-align: left;
    -moz-appearance: textfield;
}

.fp-amount input::-webkit-outer-spin-button,
.fp-amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fp-hint {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 22px;
}

/* quick amounts */
.fp-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.fp-quick .quick-amount-btn {
    position: relative;
    overflow: hidden;
    height: 50px;
    border-radius: 14px !important;
    border: 1.5px solid #cbd9f3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%) !important;
    color: #1b1b1f !important;
    font-size: 18px;
    font-weight: 500;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 3px 8px rgba(21, 70, 196, .08) !important;
    transform: none !important;
    transition: border-color .2s ease, background .2s ease;
}

.fp-quick .quick-amount-btn:hover {
    border-color: #1546c4 !important;
    color: #1546c4 !important;
}

.fp-quick .quick-amount-btn.active {
    border-color: #f2bc34 !important;
    background: radial-gradient(circle at 50% 20%, #ffe08a 0%, #f5c43c 60%, #e6a815 100%) !important;
    color: #10225a !important;
    font-weight: 600;
}

/* section cards (payment type / method) */
.fp-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
    border: 1.5px solid #cbd9f3;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(21, 70, 196, .08);
}

.fp-card .fp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #10225a;
    margin-bottom: 10px;
}

.fp-card .form-control {
    height: 48px;
    border-radius: 12px !important;
    border: 1.5px solid #d6deed !important;
    background: #fff !important;
    color: #1b1b1f !important;
    font-size: 16px;
    box-shadow: none !important;
}

.fp-card .form-control:focus {
    border-color: #1546c4 !important;
}

.fp-card .payment-type-option {
    margin-bottom: 10px;
}

.fp-card .payment-type-option:last-child {
    margin-bottom: 0;
}

.fp-card .payment-method-label {
    background: #fff !important;
    border: 1.5px solid #d6deed !important;
    border-radius: 14px !important;
    padding: 12px !important;
    color: #1b1b1f !important;
    transform: none !important;
    box-shadow: none !important;
}

.fp-card .payment-radio:checked + .payment-method-label {
    border-color: #1546c4 !important;
    background: #eef3ff !important;
    box-shadow: 0 0 0 3px rgba(21, 70, 196, .15) !important;
}

.fp-card .payment-check {
    color: #1546c4 !important;
}

/* submit */
.fp-submit {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 54px;
    border: 0 !important;
    border-radius: 30px !important;
    background: linear-gradient(180deg, #1650c9 0%, #0a3fae 55%, #08349a 100%) !important;
    color: #fff !important;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: .2px;
    box-shadow: 0 8px 18px rgba(10, 63, 174, .4), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.fp-submit::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .03));
    pointer-events: none;
}

.fp-submit:disabled {
    opacity: .6;
}

.fp-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

.fp-user + .fp-alert {
    margin-top: 22px;
}

.fp-alert.warn {
    background: #fff7e0;
    border: 1.5px solid #f2bc34;
    color: #7a5200;
}

.fp-alert.err {
    background: #fdecec;
    border: 1.5px solid #e03131;
    color: #a51d1d;
}

@media (max-width: 380px) {
    .fp-head h4 {
        font-size: 22px;
    }

    .fp-amount .rs {
        font-size: 34px;
    }

    .fp-amount input {
        font-size: 24px;
    }
}
