/* Histórico pessoal: somente registros reais, preservando o histórico geral. */
.hist.personal #personalLog{min-height:115px}
.vx-history-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vx-history-more,.vx-history-page{border:1px solid rgba(255,36,55,.35);border-radius:4px;padding:9px 13px;background:rgba(25,21,21,.94);color:#fdebec;cursor:pointer;font:inherit}
.vx-history-more:hover,.vx-history-page:not(:disabled):hover{border-color:#f25462;background:#1e1314}
.vx-history-page:disabled{opacity:.35;cursor:not-allowed}
.vx-history-backdrop{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(13,10,10,.72);backdrop-filter:blur(5px)}
.vx-history-modal{width:min(610px,100%);max-height:min(82vh,800px);display:flex;flex-direction:column;background:#110a0b;border:1px solid rgba(247,53,70,.38);border-radius:4px;box-shadow:0 20px 75px #000b;color:#fdebec;overflow:hidden}
.vx-history-top{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #542428}
.vx-history-top strong{letter-spacing:.08em;font-size:13px}
.vx-history-close{border:0;background:transparent;color:#fcdcdf;font-size:24px;cursor:pointer}
.vx-history-list{padding:12px 18px;overflow:auto;min-height:150px}
.vx-history-row{display:flex;gap:12px;align-items:center;padding:13px 4px;border-bottom:1px solid #45191d}
.vx-history-orb{width:31px;height:31px;border-radius:50%;flex:none;display:grid;place-items:center;background:radial-gradient(circle at 32% 25%,#fabec3,var(--orb,#cd0f20) 52%,#190f10);box-shadow:0 0 14px var(--orb,#cd0f20);color:#130c0d;font-size:11px;font-weight:900}
.vx-history-info{flex:1;min-width:0}.vx-history-info b{font-size:13px;display:block}.vx-history-info small{font-size:11px;color:#c8a1a5;display:block;margin-top:4px}.vx-history-date{color:#c8a1a5;font-size:11px;white-space:nowrap}
.vx-history-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px;border-top:1px solid #542428}
.vx-history-pagination{display:flex;gap:8px;align-items:center}.vx-history-page{padding:7px 10px}
@media(max-width:600px){.vx-history-modal{max-height:86dvh}.vx-history-top{padding:14px}.vx-history-list{padding:8px 12px}.vx-history-footer{flex-wrap:wrap}.vx-history-date{font-size:10px}.vx-history-actions{width:100%;justify-content:flex-end}}

/* Bolinha animada do robô no histórico pessoal, sem sigla VX. */
.vx-history-robot{position:relative;animation:vxHistoryFloat 2.4s ease-in-out infinite;box-shadow:0 0 12px var(--orb,#cd0f20),inset -4px -5px 8px #211516;}
.vx-history-robot-eyes{display:flex;gap:5px;transform:translateY(1px)}
.vx-history-robot-eyes i{width:4px;height:6px;border-radius:50%;background:#170e0f;animation:vxHistoryBlink 5s infinite}
@keyframes vxHistoryFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes vxHistoryBlink{0%,93%,97%,100%{transform:scaleY(1)}95%{transform:scaleY(.12)}}
@media(prefers-reduced-motion:reduce){.vx-history-robot,.vx-history-robot-eyes i{animation:none}}

/* Mesmo robô animado utilizado no painel VXBOOT, sem letras VX. */
.vx-history-avatar{width:38px;height:38px;flex:none;display:flex;align-items:center;justify-content:center;overflow:visible}
.vx-history-avatar .bot.vx-boot{width:26px;height:26px;margin:0;flex:none}
.vx-history-avatar .bot.vx-boot .eyes u{width:3px;height:6px}

/* Equal action styling for both history buttons. */
.hist.personal .hist-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hist.personal .vx-history-more{background:linear-gradient(135deg,#fcdbde,#ef283a 55%,#bb0e1e);color:#0f090a;border:0;border-radius:4px;padding:8px 14px;font-weight:800;font-size:11px;box-shadow:0 0 12px #ef283a55}
@media(max-width:600px){.hist.personal .hist-head-actions{gap:6px}.hist.personal .vx-history-more{padding:7px 10px;font-size:10px}}

/* Etapa 3.9 — quatro categorias do histórico pessoal, layout responsivo. */
.hist.personal{border-color:rgba(255,36,55,.65)!important;box-shadow:0 0 20px rgba(255,36,55,.14),inset 0 0 16px rgba(255,36,55,.06)!important}
.vx-history-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 0;margin:5px 0 8px;width:100%}
.vx-history-tab{min-width:0;min-height:34px;border:1px solid rgba(255,36,55,.4);border-radius:4px;background:rgba(26,21,21,.92);color:#fac2c7;font:700 10px var(--sans,system-ui);padding:6px 5px;cursor:pointer;text-align:center;transition:background .2s,box-shadow .2s,border-color .2s}
.vx-history-tab.active{background:linear-gradient(135deg,#fcdbde,#ef283a 55%,#bb0e1e);color:#0f090a;border-color:#f57883;box-shadow:0 0 14px rgba(255,36,55,.55)}
.vx-history-tab:hover:not(.active){border-color:#ef283a;box-shadow:0 0 10px rgba(255,36,55,.3)}
.vx-history-modal{box-shadow:0 20px 75px #000b,0 0 26px rgba(255,36,55,.25);border-color:#ef283a90}
.vx-history-modal-tabs{padding:12px 15px 4px;margin:0}
.vx-history-page{border-radius:4px;background:linear-gradient(135deg,#fcdbde,#ef283a 55%,#bb0e1e);color:#0f090a;border:0;font-weight:800;min-height:34px;padding:8px 13px;box-shadow:0 0 12px rgba(255,36,55,.25)}
.vx-history-page:disabled{opacity:.35;box-shadow:none}
.vx-history-page:not(:disabled):hover{background:#f7929b;color:#0f090a}
@media(max-width:600px){.vx-history-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.vx-history-tab{font-size:10px;min-height:35px}.vx-history-modal-tabs{padding:10px 12px 4px}.vx-history-footer{align-items:center;justify-content:center;text-align:center}.vx-history-pagination{width:100%;justify-content:space-between;gap:6px}.vx-history-page{min-width:85px}.vx-history-date{white-space:normal;text-align:right;max-width:92px}}
@media(max-width:370px){.vx-history-tab{font-size:9px}.vx-history-page{min-width:74px;padding:7px 9px}}

/* Compact mobile tabs and history card, matching the deposit card proportions. */
.hist.personal{min-height:0!important}.hist.personal #personalLog{min-height:72px;max-height:250px;overflow-y:auto}.hist.personal .vx-history-row{padding:9px 3px;gap:8px}.hist.personal .vx-history-info b{font-size:11px}.hist.personal .vx-history-info small{font-size:10px}.hist.personal .vx-history-avatar{width:32px;height:32px}.hist.personal .vx-history-date{font-size:10px}
@media(max-width:600px){.hist.personal{padding:11px!important}.hist.personal .vx-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:4px 0;padding:4px 0}.hist.personal .vx-history-tab{min-height:32px;font-size:10px;padding:6px 4px;line-height:1.2}.hist.personal .hist-head-actions{display:flex;gap:5px;align-items:center}.hist.personal .hist-head-actions button{font-size:9px!important;padding:7px 9px!important;white-space:nowrap}.hist.personal #personalLog{min-height:60px;max-height:195px}.hist.personal .vx-history-row{padding:8px 2px}.vx-history-modal .vx-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.vx-history-modal .vx-history-tab{min-height:32px}}

/* Etapa 5.1 — modal e paginação legíveis em celulares. */
.vx-history-modal{box-sizing:border-box;min-width:0}
.vx-history-footer{min-width:0}
.vx-history-pagination{min-width:0;flex-wrap:wrap}
.vx-history-pages{font-size:11px;color:#e9a9af;white-space:nowrap;text-align:center}
@media(max-width:600px){
 .vx-history-backdrop{padding:10px;align-items:center}
 .vx-history-modal{width:100%;max-width:100%;max-height:calc(100dvh - 20px);border-radius:4px}
 .vx-history-top{padding:12px 14px}
 .vx-history-list{padding:6px 11px;min-height:80px;min-width:0}
 .vx-history-footer{display:flex;flex-direction:column;gap:9px;padding:11px 12px}
 .vx-history-footer>small{font-size:10px}
 .vx-history-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;width:100%}
 .vx-history-page{box-sizing:border-box;min-width:0!important;width:100%;min-height:38px;padding:9px 6px;border-radius:4px;font-size:11px;line-height:1.1;white-space:nowrap}
 .vx-history-pages{font-size:10px;white-space:nowrap}
 .vx-history-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .vx-history-tab{width:100%;min-width:0;overflow-wrap:anywhere}
 .vx-history-row{min-width:0;gap:8px}
 .vx-history-info{overflow-wrap:anywhere}
 .vx-history-date{flex:0 0 auto;max-width:90px;font-size:10px;white-space:normal;text-align:right}
}
@media(max-width:350px){.vx-history-page{font-size:10px;padding:8px 3px}.vx-history-pages{font-size:9px}.vx-history-pagination{gap:4px}}

/* Etapa 5.2: barra de rolagem fina e azul, sem paginação visível. */
.vx-history-list{scrollbar-width:thin;scrollbar-color:#ee1a2d rgba(34,28,28,.55);overscroll-behavior:contain}
.vx-history-list::-webkit-scrollbar{width:5px}
.vx-history-list::-webkit-scrollbar-track{background:rgba(34,28,28,.45);border-radius:4px}
.vx-history-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#f6828d,#cb0f20);border-radius:4px;box-shadow:0 0 8px rgba(255,36,55,.4)}
.vx-history-list::-webkit-scrollbar-thumb:hover{background:#f9a9b1}
.vx-history-footer{padding:10px 16px;gap:10px}
.vx-history-scroll-status{font-size:10px;color:#e1838b;text-align:right}
@media(max-width:600px){.vx-history-footer{flex-direction:row;justify-content:space-between;align-items:center;padding:9px 12px}.vx-history-scroll-status{font-size:9px}}

/* Etapa 5.3 — trilho discreto, sem barra cinza grossa; rolagem contínua. */
.vx-history-modal .vx-history-list,.hist.personal #personalLog{scrollbar-width:thin!important;scrollbar-color:#ef3041 transparent!important;scrollbar-gutter:stable;}
.vx-history-modal .vx-history-list::-webkit-scrollbar,.hist.personal #personalLog::-webkit-scrollbar{width:4px!important;height:4px!important}
.vx-history-modal .vx-history-list::-webkit-scrollbar-track,.hist.personal #personalLog::-webkit-scrollbar-track{background:transparent!important;border:0!important}
.vx-history-modal .vx-history-list::-webkit-scrollbar-thumb,.hist.personal #personalLog::-webkit-scrollbar-thumb{background:#ef3142!important;border-radius:4px!important;border:0!important;box-shadow:0 0 5px #ef293b66!important}
.vx-history-modal .vx-history-list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
.vx-history-modal{height:min(82dvh,760px)}
.vx-history-modal .vx-history-footer{flex:none}
.hist.personal #personalLog{overflow-x:hidden}
@media(max-width:600px){.vx-history-modal{height:min(88dvh,760px)}.vx-history-modal .vx-history-list{min-height:0}}
