/* =============================================================
   Top-up & Payout – merged single-page component styles
   Mockup: web2_topup_payout_mockup.html
   Relies on tokens.css var(--c-*).
   ============================================================= */

/* -- MAIN GRID (mockup: 1.1fr .9fr) -- */
.alx-tp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .alx-tp-grid { grid-template-columns: 1fr; } }

/* -- HERO CARD overrides -- */
.alx-bal-hero .val { font-size: 38px; }
.alx-bal-hero .val small { font-size: 20px; }

/* -- CARD WRAPPER -- */
.alx-tp-card {
    background: var(--c-card); border: 1px solid var(--c-line);
    border-radius: 14px; box-shadow: var(--shadow);
    padding: 20px 22px; margin-top: 16px;
}

/* -- SEGMENTED CONTROL (Topup / Payout toggle) -- */
.alx-tp-seg {
    display: inline-flex; width: 100%;
    background: var(--c-chip); border-radius: 50px;
    padding: 4px; gap: 4px; margin-bottom: 18px;
}
.alx-tp-seg button {
    flex: 1; font-weight: 700; border: 0; background: none;
    color: var(--c-muted); min-height: 44px; border-radius: 50px;
    cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
    transition: background .15s, color .15s;
    touch-action: manipulation; font-size: 14px;
}
.alx-tp-seg button svg { width: 17px; height: 17px; }
.alx-tp-seg button.active { background: var(--c-blue); color: #fff; }

/* -- PANE VISIBILITY -- */
.alx-tp-pane { /* visible by default */ }
.alx-tp-hidden { display: none !important; }

/* -- FORM TITLE -- */
.alx-tp-title {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px;
    display: flex; align-items: center; gap: 9px; margin-bottom: 4px;
    color: var(--c-text);
}
.alx-tp-title .bar { width: 22px; height: 4px; background: var(--c-green); border-radius: 3px; flex-shrink: 0; }
.alx-tp-hint { color: var(--c-muted); font-size: 13.5px; margin-bottom: 16px; }

/* -- LARGE AMOUNT INPUT -- */
.alx-amount-wrap { position: relative; display: flex; align-items: center; margin-bottom: 4px; }
.alx-amount-cur {
    position: absolute; left: 16px;
    font-weight: 700; color: var(--c-muted);
    font-family: 'Poppins', sans-serif; font-size: 18px;
    pointer-events: none; z-index: 1;
    line-height: 1;
}
.alx-amount-input,
.alx-amount-wrap input {
    width: 100%; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 26px;
    padding: 14px 14px 14px 58px;
    border: 2px solid var(--c-line); border-radius: 10px;
    background: var(--c-bg); color: var(--c-text);
    min-height: 44px; transition: border-color .15s, background .15s;
    font-feature-settings: "tnum" 1;
}
.alx-amount-input:focus,
.alx-amount-wrap input:focus {
    border-color: var(--c-blue); background: var(--c-card);
    outline: none; box-shadow: 0 0 0 3px rgba(28,88,142,.15);
}
/* hide number-input spinners */
.alx-amount-wrap input::-webkit-inner-spin-button,
.alx-amount-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.alx-amount-wrap input[type=number] { -moz-appearance: textfield; }

/* -- AMOUNT LABEL -- */
.alx-tp-label {
    display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px;
    color: var(--c-text);
}

/* -- BANK DESTINATION (payout) -- */
.alx-bank-dest {
    display: flex; align-items: center; gap: 12px;
    background: var(--c-card-2); border: 1px solid var(--c-line);
    border-radius: 10px; padding: 12px 14px;
    margin-top: 16px; margin-bottom: 16px;
}
.alx-bank-dest .ic {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--c-card); display: grid; place-items: center;
    color: var(--c-blue); flex-shrink: 0;
}
.alx-bank-dest .ic svg { width: 20px; height: 20px; }
.alx-bank-dest .t { font-weight: 700; font-size: 14px; }
.alx-bank-dest .m { color: var(--c-muted); font-size: 13px; margin-top: 1px; }

/* -- SUMMARY LINES -- */
.alx-tp-sum {
    display: flex; justify-content: space-between;
    font-size: 14px; color: var(--c-muted);
    padding: 9px 2px; border-top: 1px dashed var(--c-line);
}
.alx-tp-sum .v { font-feature-settings: "tnum" 1; }
.alx-tp-sum.total {
    color: var(--c-text); font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid var(--c-line);
}

/* -- CTA BUTTON (works for <button> and <input type=submit>) -- */
.alx-tp-cta {
    width: 100%; margin-top: 8px; font-size: 15px;
    font-weight: 700; border-radius: 50px; padding: 0 20px;
    min-height: 48px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--c-green); color: var(--c-btn-text);
    transition: filter .15s;
    text-align: center; -webkit-appearance: none; appearance: none;
    font-family: inherit; line-height: 48px;
}
.alx-tp-cta:hover { filter: brightness(.95); }

/* -- SECURE LINE -- */
.alx-tp-secure {
    display: flex; align-items: center; justify-content: center;
    gap: 7px; color: var(--c-muted); font-size: 12.5px; margin-top: 12px;
}
.alx-tp-secure svg { width: 14px; height: 14px; color: var(--c-success-text); }

/* -- LIST HEADER -- */
.alx-tp-list-head {
    display: flex; align-items: center; gap: 10px;
    margin: 24px 0 14px; flex-wrap: wrap;
}
.alx-tp-list-head h3 {
    font-size: 16px; font-weight: 700; font-family: 'Poppins', sans-serif;
    display: flex; align-items: center; gap: 8px; flex: 1;
}
.alx-tp-list-head h3 .bar { width: 20px; height: 4px; background: var(--c-green); border-radius: 3px; }

/* -- FILTER SEGMENT -- */
.alx-tp-filter {
    display: inline-flex; background: var(--c-chip);
    border-radius: 50px; padding: 3px; gap: 2px;
}
.alx-tp-filter button {
    font-weight: 600; font-size: 12.5px; border: none; background: none;
    color: var(--c-muted); padding: 7px 13px; min-height: 36px;
    border-radius: 50px; cursor: pointer; transition: background .15s, color .15s;
}
.alx-tp-filter button.active {
    background: var(--c-card); color: var(--c-blue);
    box-shadow: var(--shadow);
}

/* -- CANCEL / PAY LINKS -- */
.alx-cancel-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: var(--c-danger-text);
    background: var(--c-neg-bg); border: none; border-radius: 8px;
    padding: 4px 10px; cursor: pointer; text-decoration: none;
    transition: filter .15s; margin-top: 4px;
}
.alx-cancel-link:hover { filter: brightness(.95); }
.alx-pay-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: var(--c-blue);
    background: var(--c-active); border: none; border-radius: 8px;
    padding: 4px 10px; cursor: pointer; text-decoration: none;
}

/* -- "In transfer" small text -- */
.alx-txn-transfer { font-size: 12px; color: var(--c-muted); }

/* -- NOT VERIFIED BANNER -- */
.alx-tp-warn {
    display: flex; gap: 12px;
    background: var(--c-warn-bg); border-left: 4px solid var(--c-orange);
    border-radius: 9px; padding: 13px 16px;
    color: var(--c-text); font-size: 14px; margin-bottom: 12px;
    align-items: flex-start;
}
.alx-tp-warn svg { width: 18px; height: 18px; color: var(--c-orange); flex-shrink: 0; margin-top: 1px; }

/* -- EMPTY STATE (JS filter) -- */
.alx-tp-empty {
    display: none; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; padding: 30px 20px;
    background: var(--c-card); border: 1px dashed var(--c-line);
    border-radius: var(--r-card); color: var(--c-muted);
}
.alx-tp-empty svg { width: 38px; height: 38px; color: var(--c-blue); opacity: .7; }
.alx-tp-empty .t { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--c-text); }

/* -- PAYMENT PAGE (moneyDetails + manualPayBlock) -- */
.alx-pay-notice {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--c-warn-bg); border-left: 4px solid var(--c-orange);
    border-radius: 9px; padding: 13px 16px;
    color: var(--c-text); font-size: 14px; margin-bottom: 16px;
}
.alx-pay-notice svg { width: 18px; height: 18px; color: var(--c-orange); flex-shrink: 0; margin-top: 1px; }

.alx-pay-summary {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 560px) { .alx-pay-summary { grid-template-columns: 1fr; } }
.alx-pay-kpi {
    background: var(--c-card); border: 1px solid var(--c-line);
    border-radius: var(--r-card); padding: 16px 18px;
    box-shadow: var(--shadow);
}
.alx-pay-kpi .k { font-size: 12.5px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.alx-pay-kpi .v { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; margin-top: 4px; }

.alx-pay-breakdown {
    background: var(--c-card); border: 1px solid var(--c-line);
    border-radius: var(--r-card); padding: 14px 18px;
    box-shadow: var(--shadow); margin-bottom: 18px;
}

.alx-pay-bank-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 560px) { .alx-pay-bank-grid { grid-template-columns: 1fr; } }
.alx-pay-bank-field {
    background: var(--c-card-2); border: 1px solid var(--c-line);
    border-radius: 10px; padding: 12px 14px;
}
.alx-pay-bank-field .k { font-size: 11px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.alx-pay-bank-field .v { font-weight: 700; font-size: 15px; margin-top: 2px; }

.alx-pay-actions {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin: 22px 0;
}

.alx-pay-voucher { margin: 16px 0; }
.alx-pay-voucher-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.alx-pay-voucher-row .alx-amount-input { flex: 1; font-size: 16px; padding: 10px 14px; min-width: 200px; }
.alx-pay-voucher-row .alx-tp-cta { width: auto; min-width: 140px; }

.alx-pay-ref-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 560px) { .alx-pay-ref-grid { grid-template-columns: 1fr; } }
.alx-pay-ref-field { min-width: 0; }

.alx-pay-textarea {
    width: 100%; min-height: 80px; padding: 10px 14px;
    border: 2px solid var(--c-line); border-radius: 10px;
    background: var(--c-bg); color: var(--c-text);
    font-family: inherit; font-size: 14px; resize: vertical;
}
.alx-pay-textarea:focus { border-color: var(--c-blue); outline: none; box-shadow: 0 0 0 3px rgba(28,88,142,.15); }

.alx-pay-dropzone {
    min-height: 80px; border: 2px dashed var(--c-line);
    border-radius: 10px; padding: 16px; text-align: center;
    color: var(--c-muted); font-weight: 600; cursor: pointer;
}
.alx-pay-dropzone:hover { border-color: var(--c-blue); background: var(--c-chip); }

.alx-pay-thumb { width: 120px; border-radius: 8px; margin: 6px 6px 6px 0; }

/* -- DANGER CTA (account closing) -- */
.alx-close-cta {
    width: 100%; margin-top: 16px; font-size: 15px;
    font-weight: 700; border-radius: 50px; padding: 0 20px;
    min-height: 48px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--c-danger); color: #fff;
    transition: filter .15s;
    text-align: center; -webkit-appearance: none; appearance: none;
    font-family: inherit; line-height: 48px;
}
.alx-close-cta:hover { filter: brightness(.9); }
