/* =====================================================
   ACCOUNT PAGE
   ===================================================== */

/* ── Page background — uniform deep-space dark ── */
#accountPage {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,30,60,.7) 0%, #020414 55%);
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: calc(var(--bottom-h) + 10px);
}
#accountPage::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════
   GUEST STATE — Same design as Agent locked (Cyan HUD)
   ═══════════════════════════════════════════════════ */
.acct-guest {
  min-height: calc(100vh - var(--bottom-h, 62px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: transparent;
}
.acct-guest-wrap {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.acct-guest-title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(200,240,255,.85);
  margin: 20px 0 6px;
  text-shadow: 0 0 14px rgba(0,200,255,.22);
  line-height: 1.55;
}
.acct-guest-sub {
  font-size: 11px;
  color: rgba(0,200,255,.35);
  margin-bottom: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Account Guest Button — Cyan Glow Pulse (matches agent-login-btn) ── */
.acct-guest-btn {
  position: relative;
  background: linear-gradient(135deg, #0048e8, #00aaff, #0060ff);
  border: none;
  border-radius: 14px;
  padding: 13px 44px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(0,200,255,.5),
    0 0 14px rgba(0,170,255,.65),
    0 0 32px rgba(0,80,255,.4),
    0 5px 22px rgba(0,40,220,.55);
  animation: btnCyanBreath 2.4s ease-in-out infinite;
  transition: transform .12s;
}
.acct-guest-btn:active { transform: scale(.96) !important; }
.acct-guest-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: btnShimmerPass 2.8s ease-in-out infinite;
  pointer-events: none;
}
.acct-guest-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, rgba(0,220,255,.5), rgba(200,0,255,.3), rgba(0,100,255,.5), rgba(0,220,255,.5));
  z-index: -1;
  animation: btnAuraRotate 3.5s linear infinite;
  filter: blur(7px);
}
.btn-aura {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(0,150,255,.32) 0%, transparent 70%);
  animation: btnAuraPulse 2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

/* Shared keyframes */
@keyframes btnCyanBreath {
  0%,100% {
    box-shadow: 0 0 0 1.5px rgba(0,200,255,.5), 0 0 14px rgba(0,170,255,.65), 0 0 32px rgba(0,80,255,.4), 0 5px 22px rgba(0,40,220,.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(0,230,255,.8), 0 0 26px rgba(0,210,255,.95), 0 0 50px rgba(0,100,255,.55), 0 7px 34px rgba(0,40,220,.7);
    transform: scale(1.028);
  }
}
@keyframes btnShimmerPass {
  0%     { transform: translateX(-120%); }
  55%,100% { transform: translateX(220%); }
}
@keyframes btnAuraRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes btnAuraPulse {
  0%   { opacity: .45; transform: scale(.92); }
  100% { opacity: 1;   transform: scale(1.08); }
}

/* ── Logged-in body ────────────────────────────────── */
.acct-body { display: flex; flex-direction: column; }

/* ── Profile header ────────────────────────────────── */
.acct-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg,#14102e,#0d0a22);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.acct-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.acct-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
}
.acct-avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 1.5px solid rgba(245,197,24,.4);
  animation: acctAvatarGlow 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes acctAvatarGlow {
  0%,100% { border-color: rgba(245,197,24,.4); box-shadow: 0 0 6px rgba(245,197,24,.15); }
  50%      { border-color: rgba(245,197,24,.7); box-shadow: 0 0 14px rgba(245,197,24,.3); }
}
.acct-hdr-info { flex: 1; min-width: 0; }
.acct-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.acct-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-id-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.acct-idlbl {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  font-weight: 600;
}
.acct-id {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.acct-mm-flag { font-size: 13px; margin-left: 2px; }
.acct-hdr-bal {
  font-size: 13px;
  font-weight: 900;
  color: #f5c518;
  font-variant-numeric: tabular-nums;
}
.acct-ico-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  padding: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .15s;
}
.acct-ico-btn:active { color: rgba(245,197,24,.8); }
.acct-bal-ref { color: rgba(245,197,24,.5); }
.acct-bal-ref:active { color: #f5c518; }

/* ── Action row ────────────────────────────────────── */
.acct-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 16px 8px;
}
.acct-act-btn {
  background: #14102e;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: all .15s;
}
.acct-act-btn:active { transform: scale(.97); }
.acct-act-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acct-act-dep .acct-act-ico {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.18);
}
.pay-act-img {
  width: 36px; height: 36px;
  object-fit: cover; border-radius: 8px;
  display: none;
}
.pay-act-svg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* ── VIP Banner — Cyberpunk Neon ───────────────────── */
.acct-vip-wrap { padding: 8px 16px 12px; }

.acct-vip {
  background: linear-gradient(135deg,#060215 0%,#0d0430 55%,#040118 100%);
  border: 1px solid rgba(0,245,255,.3);
  border-radius: 14px;
  padding: 13px 12px 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(0,245,255,.1),
    0 0 45px rgba(200,0,255,.06),
    inset 0 0 28px rgba(0,245,255,.04);
  animation: vipBorderPulse 3s ease-in-out infinite;
}
@keyframes vipBorderPulse {
  0%,100% { box-shadow: 0 0 22px rgba(0,245,255,.10), 0 0 45px rgba(200,0,255,.06), inset 0 0 28px rgba(0,245,255,.04); border-color: rgba(0,245,255,.30); }
  50%      { box-shadow: 0 0 32px rgba(0,245,255,.22), 0 0 55px rgba(200,0,255,.12), inset 0 0 36px rgba(0,245,255,.08); border-color: rgba(0,245,255,.55); }
}

/* Grid overlay */
.acct-vip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.025) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

/* Horizontal scan line */
.vip-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg,transparent 0%,rgba(0,245,255,.7) 40%,rgba(200,0,255,.5) 60%,transparent 100%);
  animation: vipScan 4s linear infinite;
  pointer-events: none;
  z-index: 2;
  top: 0;
}
@keyframes vipScan {
  0%   { top: -2px; opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: .6; }
  100% { top: 100%; opacity: 0; }
}

/* Tech corner brackets */
.vip-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: rgba(0,245,255,.65);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.vip-tl { top: 5px;    left: 5px;   border-width: 2px 0 0 2px; }
.vip-tr { top: 5px;    right: 5px;  border-width: 2px 2px 0 0; }
.vip-bl { bottom: 5px; left: 5px;   border-width: 0 0 2px 2px; }
.vip-br { bottom: 5px; right: 5px;  border-width: 0 2px 2px 0; }

/* Badge column */
.vip-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  z-index: 1;
}
.vip-badge-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(0,245,255,.55);
  background: rgba(0,245,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vipBadgePulse 2.4s ease-in-out infinite;
}
@keyframes vipBadgePulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,245,255,.25), inset 0 0 6px rgba(0,245,255,.08); border-color: rgba(0,245,255,.55); }
  50%      { box-shadow: 0 0 22px rgba(0,245,255,.55), inset 0 0 14px rgba(0,245,255,.18); border-color: rgba(0,245,255,.9); }
}
.vip-badge-inner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00c8ff,#00f5b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #000;
}
.vip-v-label {
  font-size: 14px;
  font-weight: 900;
  color: #00f5ff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0,245,255,.7);
}

/* Data column */
.vip-data-col { flex: 1; min-width: 0; z-index: 1; }

.vip-promo-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,245,255,.65);
  margin-bottom: 7px;
}
.vip-promo-ico {
  color: #c800ff;
  font-size: 12px;
  text-shadow: 0 0 8px rgba(200,0,255,.8);
}
.vip-promo-val {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,245,255,.55);
  margin-left: 2px;
}

.vip-prog-wrap { margin-bottom: 5px; }
.vip-prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.vip-prog-label {
  font-size: 8.5px;
  font-weight: 800;
  color: rgba(0,245,255,.65);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.vip-tov-label { color: rgba(200,0,255,.75); }
.vip-prog-cur {
  font-size: 8.5px;
  color: rgba(255,255,255,.38);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vip-bar-track {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2px;
}
.vip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#00a8d8,#00f5ff);
  border-radius: 999px;
  transition: width .9s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 7px rgba(0,245,255,.65);
  min-width: 2px;
}
.vip-tov-fill {
  background: linear-gradient(90deg,#8000cc,#c800ff);
  box-shadow: 0 0 7px rgba(200,0,255,.65);
}
.vip-prog-need {
  font-size: 8.5px;
  color: rgba(255,255,255,.32);
  display: block;
}
.vip-prog-need strong { color: rgba(0,245,255,.75); }
.vip-chevron { flex-shrink: 0; z-index: 1; margin-left: 2px; }

/* ── Menu cards ────────────────────────────────────── */
.acct-menu-card {
  margin: 0 0 8px;
  background: #12102a;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.acct-mitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background .15s;
  min-height: 52px;
}
.acct-mitem:active { background: rgba(255,255,255,.04); }
.acct-mico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acct-mtext {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.acct-mlabel {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.acct-mhint {
  font-size: 10px;
  color: rgba(255,255,255,.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-mval {
  font-size: 11px;
  color: rgba(245,197,24,.7);
  font-weight: 600;
  margin-right: 4px;
  white-space: nowrap;
  margin-left: auto;
}
.acct-mchev { flex-shrink: 0; color: rgba(255,255,255,.2); }
.acct-divider {
  height: 1px;
  background: rgba(255,255,255,.04);
  margin-left: 62px;
}
.acct-logout-item .acct-mlabel,
.acct-logout-label { color: #ef4444 !important; }

/* ── Transaction History Bottom Sheet ─────────────────────── */
.tx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.tx-backdrop.open { opacity: 1; pointer-events: all; }

.tx-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #080220;
  border-top: 1px solid rgba(0,245,255,.25);
  border-radius: 20px 20px 0 0;
  z-index: 201;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 40px rgba(0,245,255,.08), 0 -1px 0 rgba(0,245,255,.15);
}
.tx-sheet.open { transform: translateY(0); }

.tx-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.14);
  border-radius: 99px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.tx-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
  flex-shrink: 0;
}
.tx-title { flex: 1; font-size: 15px; font-weight: 900; color: #fff; }
.tx-rt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .3s;
}
.tx-rt-dot.active {
  background: #00f5ff;
  box-shadow: 0 0 8px #00f5ff;
  animation: txRtBlink 1.5s ease-in-out infinite;
}
@keyframes txRtBlink { 0%,100%{opacity:1} 50%{opacity:.3} }
.tx-close {
  background: none; border: none;
  color: rgba(255,255,255,.45);
  padding: 4px; display: flex; align-items: center;
  cursor: pointer; border-radius: 6px;
}
.tx-close:active { color: #fff; }

.tx-admin-filter { padding: 0 14px 6px; flex-shrink: 0; }
.tx-user-input {
  width: 100%; box-sizing: border-box;
  background: rgba(0,245,255,.05);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  padding: 8px 12px;
  font-family: inherit;
  outline: none;
}
.tx-user-input::placeholder { color: rgba(255,255,255,.3); }

.tx-tabs {
  display: flex;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.tx-tab {
  background: none; border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.38);
  cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.tx-tab.active { color: #00f5ff; border-bottom-color: #00f5ff; }

.tx-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px calc(var(--bottom-h, 58px) + 14px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,255,.2) transparent;
}
.tx-list-wrap::-webkit-scrollbar { width: 3px; }
.tx-list-wrap::-webkit-scrollbar-thumb { background: rgba(0,245,255,.2); border-radius: 99px; }

.tx-spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(0,245,255,.15);
  border-top-color: #00f5ff;
  border-radius: 50%;
  animation: txSpin .75s linear infinite;
  margin: 28px auto;
}
@keyframes txSpin { to { transform: rotate(360deg); } }

.tx-empty {
  text-align: center;
  padding: 36px 16px;
  color: rgba(255,255,255,.28);
  font-size: 13px;
}

/* Transaction list items */
.txi {
  background: #0d0328;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.txi.txi-dep { border-left: 3px solid rgba(0,245,255,.45); }
.txi.txi-wd  { border-left: 3px solid rgba(200,0,255,.45); }
.txi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.txi-type { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); }
.txi-amt  { font-size: 13px; font-weight: 900; color: #fff; }
.txi-dep .txi-amt { color: #00f5ff; }
.txi-wd  .txi-amt { color: #c800ff; }
.txi-sub {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.txi-meth { font-size: 9.5px; color: rgba(255,255,255,.38); }
.txi-date { font-size: 9.5px; color: rgba(255,255,255,.28); }
.txs {
  font-size: 10px; font-weight: 700;
  border-radius: 20px; padding: 2px 9px;
  display: inline-block;
}
.txs-pend { background: rgba(245,197,24,.12); color: #f5c518; }
.txs-ok   { background: rgba(34,197,94,.12);  color: #22c55e; }
.txs-rej  { background: rgba(239,68,68,.12);  color: #ef4444; }
