:root {
    --ink: #18233f;
    --muted: #75809a;
    --line: #e9edf5;
    --blue: #5368e8;
    --blue-deep: #3d4fc8;
    --teal: #2bb9a6;
    --page: #f5f7fb;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

.portal-container { max-width: 1180px; }
.navbar { position: relative; z-index: 2; }
.navbar-brand { color: var(--ink); }
.navbar-brand:hover { color: var(--ink); }

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(145deg, #6178f2, #4353d2);
    box-shadow: 0 9px 24px rgba(70, 86, 207, .25);
}

.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-title { font-size: .92rem; font-weight: 700; letter-spacing: .12em; }
.brand-subtitle { color: #9aa3b7; font-size: .63rem; letter-spacing: .035em; }

.secure-pill, .update-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7c879e;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(224, 229, 239, .9);
    border-radius: 99px;
    padding: 9px 14px;
    font-size: .75rem;
    backdrop-filter: blur(8px);
}

.secure-dot { width: 8px; height: 8px; border-radius: 50%; background: #31bfa7; box-shadow: 0 0 0 4px rgba(49, 191, 167, .12); }
.guide-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; color: #fff; background: linear-gradient(135deg,#ef4d5f,#cf263f); border: 1px solid rgba(179,30,53,.18); border-radius: 14px; box-shadow: 0 10px 25px rgba(205,38,63,.2); text-decoration: none; transition: transform .18s ease,box-shadow .18s ease; }
.guide-pill:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(205,38,63,.28); }
.guide-play { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #d62d45; background: #fff; border-radius: 50%; font-size: .7rem; padding-left: 2px; }
.guide-pill strong,.guide-pill small { display: block; }
.guide-pill strong { font-size: .74rem; font-weight: 600; }
.guide-pill small { margin-top: 2px; color: rgba(255,255,255,.78); font-size: .56rem; }
.btc-only-notice { display: flex; align-items: center; gap: 15px; margin: 8px 0 20px; padding: 16px 20px; color: #674915; background: linear-gradient(135deg,#fff9e8,#fff3cc); border: 1px solid #f3dda0; border-radius: 16px; box-shadow: 0 10px 28px rgba(126,91,24,.06); }
.btc-only-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: #fff; background: #f2a323; border-radius: 12px; font-size: 1.25rem; font-weight: 700; }
.btc-only-notice strong { display: block; margin-bottom: 3px; font-size: .84rem; }
.btc-only-notice p { margin: 0; color: #8a6b31; font-size: .71rem; line-height: 1.55; }
.page-glow { position: fixed; z-index: -1; width: 500px; height: 500px; border-radius: 50%; filter: blur(15px); opacity: .5; }
.page-glow-one { right: -220px; top: -230px; background: radial-gradient(circle, #e4e8ff 0, transparent 68%); }
.page-glow-two { left: -300px; bottom: -280px; background: radial-gradient(circle, #e5f8f4 0, transparent 68%); }

.hero-section { padding: 68px 0 36px; }
.eyebrow { color: #697590; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 2px; margin: 0 9px 3px 0; background: var(--blue); }
.hero-section h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 600; letter-spacing: -.045em; }
.hero-section h1 span { color: var(--blue); }
.hero-copy { color: var(--muted); font-size: .95rem; font-weight: 300; }

.summary-grid { margin-top: 20px; margin-bottom: 24px; }
.summary-card {
    display: flex;
    min-height: 128px;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(230, 234, 243, .9);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(38, 51, 89, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}
.summary-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(38, 51, 89, .09); }
.summary-icon { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 16px; }
.summary-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.summary-card p { margin: 0 0 5px; color: var(--muted); font-size: .77rem; }
.summary-card strong { font-size: 1.65rem; font-weight: 600; letter-spacing: -.025em; }
.summary-card small { color: var(--muted); font-size: .75rem; }
.card-users .summary-icon { color: var(--blue); background: #edf0ff; }
.card-active .summary-icon { color: var(--teal); background: #e8f9f5; }
.card-total { color: #fff; border-color: transparent; background: linear-gradient(135deg, #566ce9, #4456ce); box-shadow: 0 15px 35px rgba(68, 86, 206, .2); }
.card-total p, .card-total small { color: rgba(255,255,255,.72); }
.card-total .summary-icon { color: #fff; background: rgba(255,255,255,.14); }

.pending-panel { margin-bottom: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 42px rgba(38,51,89,.06); }
.pending-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 30px 18px; border-bottom: 1px solid var(--line); }
.pending-heading h2 { margin: 0 0 5px; font-size: 1.05rem; font-weight: 600; }
.pending-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: .7rem; }
.pending-lock { flex: 0 0 auto; padding: 7px 11px; color: #a06b16; background: #fff4dc; border-radius: 99px; font-size: .67rem; font-weight: 500; }
.duplicate-warning { display: flex; align-items: center; gap: 9px 18px; padding: 13px 30px; color: #815a17; background: #fffaed; border-bottom: 1px solid #f6e9c7; font-size: .7rem; }
.duplicate-warning strong { white-space: nowrap; }
.transaction-table { min-width: 970px; }
.transaction-table thead th { padding: 13px 20px; color: #929db2; background: #fbfcfe; border-bottom-color: var(--line); font-size: .62rem; font-weight: 600; letter-spacing: .05em; }
.transaction-table tbody td { padding: 15px 20px; color: #5f6b83; border-color: #eff2f7; font-size: .71rem; }
.transaction-table td > small { display: block; margin-top: 4px; color: #99a2b5; font-size: .61rem; }
.transaction-table td > strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.transaction-address { display: block; max-width: 180px; padding: 0; overflow: hidden; color: #5266d1; background: transparent; border: 0; font-family: monospace; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.transaction-address:hover { color: var(--blue-deep); text-decoration: underline; }
.transaction-address small { display: block; margin-top: 3px; color: #9aa3b5; font-family: "Prompt",sans-serif; font-size: .57rem; text-decoration: none; }
.transaction-status { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: .62rem; font-weight: 500; white-space: nowrap; }
.transaction-status.waiting { color: #a06b16; background: #fff4dc; }
.transaction-status.detected { color: #147f6e; background: #e8f8f4; }
.transaction-status.approved { color: #5363c8; background: #eef1ff; }
.transaction-status.failed { color: #b44f61; background: #fff0f2; }
.form-check-input:disabled { opacity: .38; cursor: not-allowed; }

.account-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 42px rgba(38, 51, 89, .06); }
.panel-heading { padding: 27px 30px 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 1.12rem; font-weight: 600; }
.search-box { display: flex; width: 240px; align-items: center; gap: 9px; padding: 10px 14px; background: #f7f8fc; border: 1px solid #edf0f6; border-radius: 11px; }
.search-box:focus-within { border-color: #aeb9f5; box-shadow: 0 0 0 3px rgba(83, 104, 232, .08); }
.search-box svg { width: 18px; flex: 0 0 auto; fill: none; stroke: #96a0b5; stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-family: inherit; font-size: .78rem; }
.search-box input::placeholder { color: #a5adbd; }

.account-table { min-width: 1250px; }
.account-table .select-column { width: 58px; padding-right: 0; }
.form-check-input { width: 1.05rem; height: 1.05rem; border-color: #cbd2e2; cursor: pointer; box-shadow: none !important; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.account-table thead th { padding: 14px 30px; color: #9aa3b5; background: #fbfcfe; border-bottom: 1px solid var(--line); font-size: .64rem; font-weight: 600; letter-spacing: .08em; }
.account-table tbody td { padding: 17px 30px; color: #606b82; border-color: #f0f2f7; font-size: .79rem; }
.account-table tbody tr { transition: background .15s ease; }
.account-table tbody tr:hover { background: #fafbff; }
.username-cell { display: flex; align-items: center; gap: 13px; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #5266dd; background: #eef1ff; border-radius: 11px; font-size: .7rem; font-weight: 600; }
.username-cell strong { display: block; color: var(--ink); font-size: .82rem; font-weight: 600; }
.username-cell small { display: block; margin-top: 2px; color: #a2aabc; font-size: .62rem; }
.user-select-head,.username-simple { display: inline-flex; align-items: center; gap: 10px; }
.username-simple strong { color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.member-type { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: .65rem; white-space: nowrap; }
.member-type.root { color: #5266d1; background: #eef1ff; }
.member-type.helper { color: #7b6a4c; background: #fff7e9; }
.reset-password-button { padding: 7px 10px; color: #5266d1; background: #eef1ff; border: 1px solid #dfe4ff; border-radius: 8px; font-family: inherit; font-size: .65rem; white-space: nowrap; }
.reset-password-button:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; font-size: .67rem; font-weight: 500; }
.status i { width: 6px; height: 6px; border-radius: 50%; }
.status-active { color: #15927e; background: #e9f8f4; }
.status-active i { background: #25b69d; }
.status-inactive { color: #a26e41; background: #fff4e8; }
.status-inactive i { background: #e09b55; }
.status-expired { color: #bc4e62; background: #fff0f2; }
.status-expired i { background: #da6578; }
.days-left { color: #55627b; font-weight: 500; }
.days-warning { color: #c47c2d; }
.days-expired { color: #c65063; }
.packet-badge { display: inline-flex; padding: 5px 10px; color: #5666c7; background: #f0f2ff; border-radius: 8px; font-size: .68rem; font-weight: 500; white-space: nowrap; }
.price-cell { color: var(--ink) !important; font-weight: 600; }
.panel-footer { padding: 18px 30px; color: #929bae; background: #fcfdff; font-size: .67rem; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; }
.privacy-note svg { width: 14px; fill: none; stroke: #8894aa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-search { padding: 35px; color: var(--muted); text-align: center; font-size: .85rem; }

.payment-section { margin-top: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 42px rgba(38, 51, 89, .06); }
.payment-header { padding: 27px 30px 22px; border-bottom: 1px solid var(--line); }
.payment-header h2 { color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.payment-header > p:last-child { color: var(--muted); font-size: .76rem; }
.payment-guide { padding: 30px; border-right: 1px solid var(--line); }
.important-note { display: flex; gap: 15px; padding: 18px; color: #674915; background: linear-gradient(135deg, #fff9e9, #fff5d8); border: 1px solid #f8e7ad; border-radius: 15px; }
.note-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: #fff; background: #f2a929; border-radius: 12px; font-size: 1.25rem; font-weight: 600; }
.important-note strong { display: block; margin-bottom: 5px; font-size: .83rem; font-weight: 600; }
.important-note p { margin: 0; color: #8b6c34; font-size: .74rem; line-height: 1.75; }
.selected-block { margin-top: 24px; }
.selected-title { display: flex; justify-content: space-between; margin-bottom: 12px; color: #7a859b; font-size: .73rem; }
.selected-title strong { color: var(--blue); font-weight: 500; }
.selected-users { display: flex; flex-wrap: wrap; gap: 8px; min-height: 31px; }
.user-chip { padding: 6px 11px; color: #5363c8; background: #f0f2ff; border: 1px solid #e0e4ff; border-radius: 99px; font-size: .68rem; font-weight: 500; }
.amount-summary { margin-top: 24px; padding-top: 18px; border-top: 1px dashed #dce1eb; }
.amount-summary > div { display: flex; justify-content: space-between; padding: 7px 0; color: #7b859a; font-size: .76rem; }
.amount-summary > div strong { color: var(--ink); font-weight: 500; }
.amount-summary .grand-total { align-items: center; margin-top: 8px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 600; }
.amount-summary .grand-total strong { color: var(--blue); font-size: 1.5rem; font-weight: 600; }
.amount-summary .btc-total-row { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 3px; padding: 15px 0 5px; color: #66728a; }
.btc-total-row strong { color: #f09c22 !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; font-weight: 700 !important; }
.btc-copy-value { display: flex; align-items: center; gap: 9px; }
.btc-copy-value button { padding: 5px 9px; color: #5368e8; background: #eef1ff; border: 0; border-radius: 7px; font-family: inherit; font-size: .62rem; }
.btc-copy-value button:disabled { opacity: .45; }
.btc-total-row small { grid-column: 1 / -1; margin-top: 4px; color: #9aa3b5; font-size: .61rem; text-align: right; }
.qr-column { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: #fafbff; }
.qr-label { color: #8a94a8; font-size: .65rem; font-weight: 600; letter-spacing: .13em; }
.qr-label span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #f3aa2f; border-radius: 50%; }
.qr-frame { margin: 17px 0 12px; padding: 13px; background: #fff; border: 1px solid #e5e9f1; border-radius: 15px; box-shadow: 0 10px 28px rgba(38, 51, 89, .08); }
.qr-frame img, .qr-frame canvas { display: block; width: 170px !important; height: 170px !important; }
.scan-label { margin-bottom: 13px; color: #69758d; font-size: .72rem; }
.network-badge { display: flex; width: 100%; max-width: 365px; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 9px 13px; color: #828ca0; background: #fff; border: 1px solid #e4e8f0; border-radius: 10px; font-size: .68rem; }
.network-badge strong { color: #f29d20; font-size: .72rem; letter-spacing: .08em; }
.address-box { display: flex; width: 100%; max-width: 365px; align-items: center; gap: 8px; padding: 9px 9px 9px 13px; background: #fff; border: 1px solid #e4e8f0; border-radius: 10px; }
.address-box > span { min-width: 0; overflow: hidden; color: #707b91; font-family: monospace; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.address-box button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 6px 9px; color: var(--blue); background: #eef1ff; border: 0; border-radius: 7px; font-family: inherit; font-size: .65rem; }
.address-box button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.address-missing { padding: 20px; color: #ad5867; background: #fff0f2; border-radius: 12px; font-size: .76rem; text-align: center; }
.upload-section { padding: 28px 30px 30px; border-top: 1px solid var(--line); }
.upload-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.step-number { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--blue); border-radius: 9px; font-size: .75rem; font-weight: 600; }
.upload-heading h3 { margin: 0 0 3px; color: var(--ink); font-size: .88rem; font-weight: 600; }
.upload-heading p { margin: 0; color: #97a0b3; font-size: .66rem; }
.upload-box { display: flex; min-height: 125px; align-items: center; justify-content: center; gap: 15px; padding: 20px; overflow: hidden; background: #fafbfe; border: 1.5px dashed #cbd3e3; border-radius: 15px; cursor: pointer; transition: .2s ease; }
.upload-box:hover, .upload-box.dragging { background: #f4f6ff; border-color: #8796ef; }
.upload-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue); background: #edf0ff; border-radius: 12px; }
.upload-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-copy strong, .upload-copy small { display: block; }
.upload-copy strong { color: #4f5c75; font-size: .76rem; font-weight: 500; }
.upload-copy small { margin-top: 4px; color: #9ca5b7; font-size: .64rem; }
#slipPreview { display: none; max-width: 210px; max-height: 150px; object-fit: contain; border-radius: 10px; }
.upload-box.has-preview .upload-icon, .upload-box.has-preview .upload-copy { display: none; }
.upload-box.has-preview #slipPreview { display: block; }
.file-feedback { min-height: 20px; padding-top: 7px; color: #1d9b86; font-size: .68rem; }
.file-feedback.error { color: #c65063; }
.save-payment-button { display: flex; width: 100%; max-width: 360px; min-height: 48px; align-items: center; justify-content: center; margin: 13px auto 0; padding: 12px 22px; color: #fff; background: linear-gradient(135deg, #586de8, #4355ca); border: 0; border-radius: 12px; box-shadow: 0 10px 24px rgba(68, 86, 206, .2); font-family: inherit; font-size: .8rem; font-weight: 500; }
.save-payment-button:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.save-payment-button:not(:disabled):hover { transform: translateY(-1px); }
.button-loading { display: none; }
.save-payment-button.loading .button-label { display: none; }
.save-payment-button.loading .button-loading { display: inline; }
.submit-feedback { margin-top: 13px; color: #788398; font-size: .74rem; line-height: 1.7; text-align: center; }
.submit-feedback.success { padding: 13px; color: #147f6e; background: #eaf8f5; border-radius: 10px; }
.submit-feedback.error { color: #c65063; }
.password-modal { border: 0; border-radius: 18px; box-shadow: 0 25px 70px rgba(27,39,72,.2); }
.password-modal .modal-header,.password-modal .modal-body,.password-modal .modal-footer { padding: 20px 24px; border-color: var(--line); }
.password-modal .modal-header small { color: var(--blue); font-size: .6rem; font-weight: 600; letter-spacing: .13em; }
.password-modal .modal-title { margin-top: 5px; font-size: 1.05rem; font-weight: 600; }
.password-modal .modal-title span { color: var(--blue); }
.password-modal label { display: block; margin-bottom: 8px; color: #69758d; font-size: .72rem; font-weight: 500; }
.reset-password-feedback { min-height: 20px; margin: 8px 0 0; font-size: .68rem; }
.reset-password-feedback.error { color: #c65063; }
.reset-password-feedback.success { color: #168573; }
.pending-qr-modal { border: 0; border-radius: 20px; box-shadow: 0 25px 70px rgba(27,39,72,.2); }
.pending-qr-modal .modal-header { padding: 20px 24px; border-color: var(--line); }
.pending-qr-modal .modal-header small { color: #ef9d22; font-size: .6rem; font-weight: 600; letter-spacing: .14em; }
.pending-qr-modal .modal-title { margin-top: 4px; font-size: 1.03rem; font-weight: 600; }
.pending-qr-modal .modal-body { padding: 22px 24px 25px; }
.one-time-qr-warning { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 14px 16px; color: #a9273f; background: #fff0f2; border: 1px solid #f2b9c3; border-radius: 13px; box-shadow: 0 8px 22px rgba(181,53,75,.08); }
.one-time-qr-warning strong { font-size: .78rem; }
.one-time-qr-warning span { color: #b04c5e; font-size: .67rem; line-height: 1.6; }
.pending-qr-frame { display: grid; width: 234px; min-height: 234px; margin: 0 auto 18px; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(37,49,83,.08); }
.pending-qr-detail { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; color: var(--muted); border-bottom: 1px solid #eef1f6; font-size: .7rem; }
.pending-qr-detail strong { color: var(--ink); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.pending-btc-copy { display: flex; align-items: center; gap: 8px; }
.pending-btc-copy button { padding: 5px 8px; color: #fff; background: #d94f66; border: 0; border-radius: 7px; font-family: inherit; font-size: .59rem; }
.pending-address-full { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 11px; background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; }
.pending-address-full code { min-width: 0; overflow-wrap: anywhere; color: #536078; font-size: .67rem; }
.pending-address-full button { flex: 0 0 auto; padding: 6px 9px; color: var(--blue); background: #e9edff; border: 0; border-radius: 7px; font-family: inherit; font-size: .62rem; }
.pending-order-reference { display: block; margin-top: 10px; color: #9aa3b5; font-size: .6rem; text-align: center; }
.payment-loading-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; pointer-events: none; background: rgba(19,29,52,.52); opacity: 0; backdrop-filter: blur(6px); transition: opacity .2s ease; }
.payment-loading-overlay.show { pointer-events: auto; opacity: 1; }
.payment-loading-card { display: flex; width: min(100%,370px); align-items: center; flex-direction: column; padding: 34px 25px; background: #fff; border-radius: 20px; box-shadow: 0 25px 70px rgba(16,25,48,.25); text-align: center; }
.payment-loading-card strong { margin-top: 18px; font-size: .92rem; }
.payment-loading-card small { margin-top: 7px; color: var(--muted); font-size: .68rem; }
.payment-spinner { width: 48px; height: 48px; border: 4px solid #e5e9fb; border-top-color: var(--blue); border-radius: 50%; animation: payment-spin .8s linear infinite; }
.payment-spinner.success { border: 0; background: #24ad94; animation: none; }
.payment-spinner.success::after { content: '✓'; display: grid; height: 48px; place-items: center; color: #fff; font-size: 1.4rem; }
@keyframes payment-spin { to { transform: rotate(360deg); } }

.state-card { max-width: 560px; margin-top: 100px; padding: 48px 34px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(38, 51, 89, .08); }
.state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 24px; place-items: center; color: var(--blue); background: #edf0ff; border-radius: 18px; font-size: 1.4rem; font-weight: 600; }
.btn-primary { background: var(--blue); border-color: var(--blue); border-radius: 10px; font-size: .85rem; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.site-footer { padding: 24px; color: #a1a9ba; font-size: .65rem; }

@media (max-width: 767.98px) {
    .secure-pill { display: none; }
    .navbar .portal-container { gap: 14px; flex-wrap: wrap; }
    .guide-pill { width: 100%; justify-content: center; }
    .hero-section { padding-top: 40px; }
    .summary-card { min-height: 105px; }
    .panel-heading { padding: 22px 20px; }
    .search-box { width: 100%; }
    .account-table thead th, .account-table tbody td { padding-left: 20px; padding-right: 20px; }
    .panel-footer { padding: 16px 20px; }
    .payment-header, .payment-guide, .upload-section { padding-left: 20px; padding-right: 20px; }
    .payment-guide { border-right: 0; border-bottom: 1px solid var(--line); }
    .important-note { align-items: flex-start; }
    .amount-summary .grand-total strong { font-size: 1.25rem; }
    .qr-column { padding: 28px 20px; }
    .upload-box { min-height: 115px; }
    .state-card { margin-top: 55px; }
    .btc-only-notice { align-items: flex-start; padding: 14px 16px; }
    .pending-heading { align-items: flex-start; flex-direction: column; padding: 21px 20px 17px; }
    .duplicate-warning { align-items: flex-start; flex-direction: column; padding: 13px 20px; }
    .account-panel .table-responsive, .pending-panel .table-responsive { overflow: visible; }
    .account-table, .transaction-table { display: block; min-width: 0; padding: 10px; }
    .account-table thead, .transaction-table thead { display: none; }
    .account-table tbody, .transaction-table tbody { display: grid; gap: 10px; }
    .account-table tbody tr, .transaction-table tbody tr { display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
    .account-table tbody td, .transaction-table tbody td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border-bottom: 1px solid #f0f2f7; text-align: right; }
    .account-table tbody td:last-child, .transaction-table tbody td:last-child { border-bottom: 0; }
    .account-table tbody td::before, .transaction-table tbody td::before { content: attr(data-label); flex: 0 0 39%; color: #9aa3b5; font-size: .62rem; font-weight: 600; text-align: left; }
    .account-table tbody td > *, .transaction-table tbody td > * { max-width: 61%; }
    .username-simple { justify-content: flex-end; }
    .transaction-address { max-width: 58vw; }
    .transaction-table td > small { margin: 0; }
}
