/* ===== Xoro user dashboard — premium brand theme ===== */
:root {
  --bg: #07070a; --bg2: #0b0b10;
  --panel: rgba(255,255,255,.045); --panel-solid: #101017; --panel2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.17);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,.09);
  --text: #f2f2f6; --muted: #9a9aa6; --dim: #6b6b76;
  --brand: #814bf6; --brand2: #6d38e0; --brand-lt: #b18cff;
  --grad: linear-gradient(135deg, #9a6ef0, #814bf6 55%, #6d38e0);
  --ok: #46d19e; --amber: #eab35a; --red: #ff5c6c; --blue: #6da8ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.udash {
  font-family: 'DM Sans','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  background: var(--bg); color: var(--text); display: flex; min-height: 100vh;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
body.udash::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* The homepage's signature aurora gradient, dimmed behind the UI */
  background:
    linear-gradient(180deg, rgba(7,7,10,.80) 0%, rgba(7,7,10,.94) 46%, rgba(7,7,10,1) 78%),
    url('../images/BG-Gradient.jpg') top center / cover no-repeat,
    radial-gradient(52% 42% at 100% 100%, rgba(109,56,224,.14), transparent 62%),
    var(--bg);
}
a { text-decoration: none; color: inherit; }

/* ---------- Sidebar ---------- */
.usb {
  width: 256px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: var(--glass-hi);
  display: flex; flex-direction: column;
}
.usb::-webkit-scrollbar { width: 6px; } .usb::-webkit-scrollbar-thumb { background: #26262f; border-radius: 3px; }
.usb-brand { padding: 24px 24px 20px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.usb-brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.usb-user { display: flex; align-items: center; gap: 12px; padding: 15px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usb-user .av {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 6px 18px rgba(129,75,246,.45), inset 0 1px 1px rgba(255,255,255,.35);
}
.usb-user .who { font-size: 14px; font-weight: 700; }
.usb-user .mail { font-size: 11.5px; color: var(--dim); margin-top: 1px; }
.usb-nav { padding: 14px 14px 24px; flex: 1; }
.usb-sec { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); padding: 15px 12px 7px; font-weight: 600; }
.usb-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-radius: 99px;
  color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 3px;
  transition: background .16s, color .16s, box-shadow .16s;
}
.usb-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.usb-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.usb-nav a.active {
  background: linear-gradient(90deg, rgba(129,75,246,.20), rgba(129,75,246,.05));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(129,75,246,.35);
  position: relative;
}
.usb-nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(129,75,246,.8);
}
.usb-nav a.active svg { opacity: 1; color: var(--brand-lt); }
.usb-nav a.danger { color: var(--red); }
.usb-foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.usb-foot a, .usb-foot button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 13px; border-radius: 11px;
  color: var(--muted); font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: background .16s, color .16s;
}
.usb-foot a:hover, .usb-foot button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.usb-foot .lo { color: var(--red); }
.usb-foot svg { width: 18px; height: 18px; opacity: .85; }

/* ---------- Announcement ticker (sticky, premium glass) ---------- */
.announce-bar {
  position: sticky; top: var(--utop-h, 68px); z-index: 19;
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 20px; overflow: hidden;
  background: linear-gradient(90deg, rgba(129,75,246,.16), rgba(177,140,255,.07) 40%, rgba(129,75,246,.14));
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(177,140,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(129,75,246,.12);
}
.announce-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-lt), transparent);
  opacity: .8;
}
.announce-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 99px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(129,75,246,.45), inset 0 1px 1px rgba(255,255,255,.35);
  animation: annChipPulse 3s ease-in-out infinite;
}
.announce-chip svg { width: 14px; height: 14px; }
@keyframes annChipPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(129,75,246,.45), inset 0 1px 1px rgba(255,255,255,.35); }
  50%      { box-shadow: 0 6px 26px rgba(129,75,246,.75), inset 0 1px 1px rgba(255,255,255,.35); }
}
.announce-track {
  flex: 1; overflow: hidden; min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.announce-run {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: annScroll var(--ann-dur, 22s) linear infinite;
}
.announce-run span {
  padding-right: 90px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  background: linear-gradient(90deg, #fff, #d8c6ff 60%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.announce-bar:hover .announce-run { animation-play-state: paused; }
@keyframes annScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .announce-bar { height: 42px; padding: 0 12px; gap: 10px; }
  .announce-chip { padding: 5px 10px; font-size: 10.5px; }
}

/* ---------- Main ---------- */
.umain { flex: 1; min-width: 0; }
.utop {
  display: flex; align-items: center; justify-content: space-between; padding: 22px 38px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
.utop h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ubody { padding: 32px 38px 70px; max-width: 1240px; }
.uhi { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.uhi h2 { font-family: 'Lato','DM Sans',sans-serif; font-size: 34px; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff 30%, #d8c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uhi p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ---------- Stat cards ---------- */
.ustats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.ustat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.45); -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: var(--glass-hi), 0 8px 30px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s, box-shadow .22s;
}
.ustat::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177,140,255,.7), transparent); opacity: 0; transition: opacity .25s; }
.ustat:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.ustat:hover::before { opacity: 1; }
.ustat.glow {
  border-color: rgba(177,140,255,.45);
  /* Balance card wears the homepage aurora artwork */
  background:
    linear-gradient(115deg, rgba(9,7,16,.42) 0%, rgba(9,7,16,.86) 72%),
    url('../images/BG-Gradient.jpg') center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(129,75,246,.28);
}
.ustat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.ustat .ic svg { width: 21px; height: 21px; }
.ic.g { background: rgba(129,75,246,.16); color: var(--brand-lt); }
.ic.b { background: rgba(109,168,255,.14); color: var(--blue); }
.ic.p { background: rgba(160,110,240,.16); color: #c3a0ff; }
.ic.a { background: rgba(234,179,90,.14); color: var(--amber); }
.ustat .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ustat .val { font-family: 'Lato','DM Sans',sans-serif; font-size: 28px; font-weight: 900; margin-top: 5px; letter-spacing: -.02em; }
.ustat.glow .val { background: linear-gradient(90deg, #fff, #cbb2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ustat .arrow { position: absolute; top: 22px; right: 22px; color: var(--dim); }

/* ---------- Panels ---------- */
.upanels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-bottom: 22px; }
.upanel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.45); -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: var(--glass-hi), 0 8px 30px rgba(0,0,0,.25); }
.upanel h3 { font-size: 16px; font-weight: 700; padding: 22px 24px; border-bottom: 1px solid var(--line); letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; }
.upanel h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 10px rgba(129,75,246,.9); flex-shrink: 0; }
.upanel .inner { padding: 24px; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.qa {
  background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--glass-hi);
  padding: 22px 12px; text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.qa:hover { transform: translateY(-4px); border-color: rgba(129,75,246,.42); background: rgba(129,75,246,.06); box-shadow: 0 14px 30px rgba(0,0,0,.32); }
.qa .qic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin: 0 auto 11px; }
.qa .qic svg { width: 21px; height: 21px; }
.qa .qlbl { font-size: 13px; color: var(--text); font-weight: 500; }

.empty-slot { display: grid; place-items: center; min-height: 210px; color: var(--muted); text-align: center; gap: 12px; }
.empty-slot svg { width: 44px; height: 44px; opacity: .4; }
.activity-empty { display: grid; place-items: center; min-height: 150px; text-align: center; gap: 8px; padding: 20px; }
.activity-empty .ae-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(129,75,246,.1); color: var(--brand-lt); margin-bottom: 4px; }
.activity-empty .ae-ic svg { width: 22px; height: 22px; }
.activity-empty .ae-title { color: var(--text); font-weight: 600; font-size: 15px; }
.activity-empty .ae-sub { color: var(--dim); font-size: 13px; }
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tx-row:first-child { padding-top: 4px; }
.tx-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.tx-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tx-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.tx-ic svg { width: 17px; height: 17px; }
.tx-ic.in { background: rgba(70,209,158,.12); color: var(--ok); }
.tx-ic.out { background: rgba(255,92,108,.1); color: var(--red); }
.tx-desc { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { color: var(--dim); font-size: 12px; margin-top: 2px; }
.tx-amt { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.tx-amt.pos { color: var(--ok); }
.tx-amt.neg { color: var(--red); }

/* ---------- Buttons + forms ---------- */
.ubtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 99px; border: 0;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; letter-spacing: -.01em;
  background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(129,75,246,.34);
  transition: filter .2s, transform .1s, box-shadow .2s;
}
.ubtn:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(129,75,246,.44); }
.ubtn:active { transform: translateY(1px); }
.ubtn.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line2); color: var(--text); box-shadow: none; }
.ubtn.ghost:hover { background: rgba(255,255,255,.08); filter: none; }
.ubtn.wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 26px rgba(37,211,102,.36); }
.ubtn.tg { background: linear-gradient(135deg, #37bbfe, #2478bd); box-shadow: 0 10px 26px rgba(55,187,254,.36); }
.ubtn.danger { background: rgba(255,92,108,.1); color: #ff8a95; border: 1px solid rgba(255,92,108,.4); box-shadow: none; }

.ucard { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 22px;
  backdrop-filter: blur(22px) saturate(1.45); -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: var(--glass-hi), 0 8px 30px rgba(0,0,0,.25); }
.ucard h3 { font-size: 17px; margin-bottom: 18px; font-weight: 700; letter-spacing: -.01em; }
label.ul { display: block; font-size: 13px; color: var(--muted); margin: 15px 0 7px; font-weight: 500; }
.uin {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line2);
  background: rgba(255,255,255,.05); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .16s, box-shadow .16s;
}
.uin:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(129,75,246,.16); }
select.uin { appearance: none; }
/* Dropdown lists: dark panel instead of the browser's white default */
select.uin option { background-color: #101017; color: #e8e8ec; padding: 10px; }
select.uin optgroup { background-color: #101017; color: #9a9aa6; }
.uflash { background: rgba(70,209,158,.1); border: 1px solid rgba(70,209,158,.4); color: #7fe3bd; border-radius: 12px; padding: 13px 17px; margin-bottom: 20px; font-size: 14px; }
.uerr { background: rgba(255,92,108,.09); border: 1px solid rgba(255,92,108,.38); color: #ff9aa5; border-radius: 12px; padding: 13px 17px; margin-bottom: 20px; font-size: 14px; }

.utable { width: 100%; border-collapse: collapse; font-size: 14px; }
.utable th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 13px; border-bottom: 1px solid var(--line); font-weight: 600; }
.utable td { padding: 14px 13px; border-bottom: 1px solid var(--line); }
.utable tr:last-child td { border-bottom: 0; }
.ubadge { font-size: 12px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); font-weight: 500; }
.ubadge.ok { color: var(--ok); border-color: rgba(70,209,158,.4); background: rgba(70,209,158,.08); }
.ubadge.pending { color: var(--amber); border-color: rgba(234,179,90,.4); background: rgba(234,179,90,.08); }
.ubadge.rejected { color: var(--red); border-color: rgba(255,92,108,.4); background: rgba(255,92,108,.08); }

/* ---------- Password show/hide toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap .uin { padding-right: 52px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 9px;
  font-size: 17px; line-height: 1; opacity: .55; transition: opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.pw-eye:hover { opacity: .9; background: rgba(255,255,255,.06); }
.pw-eye.on { opacity: 1; }
.pw-hint { color: var(--dim); font-size: 12px; margin-top: 6px; line-height: 1.5; }

/* ---------- Profile: personal theme picker ---------- */
.uth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.uth { display: block; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.03); transition: border-color .18s, transform .15s; position: relative; }
.uth:hover { transform: translateY(-2px); }
.uth.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(129,75,246,.2); }
.uth input { position: absolute; opacity: 0; }
.uth-prev { display: block; height: 56px; }
.uth-name { display: block; padding: 8px 10px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); }
.uth.sel .uth-name { color: var(--text); }

/* ---------- Deposit: crypto address cards ---------- */
.dep-step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; margin-right: 8px;
  box-shadow: 0 6px 16px rgba(129,75,246,.4), inset 0 1px 1px rgba(255,255,255,.35); vertical-align: -4px;
}
.dep-sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 16px; line-height: 1.6; }
.dep-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.dep-addr-card {
  background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--glass-hi); display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.dep-addr-card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--cc, var(--brand)), transparent 72%);
  opacity: .16; pointer-events: none;
}
.dep-addr-card.selectable { cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.dep-addr-card.selectable:hover { transform: translateY(-3px); border-color: var(--line2); }
.dep-addr-card.active {
  border-color: var(--cc, var(--brand)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc, var(--brand)) 45%, transparent), var(--glass-hi), 0 14px 34px rgba(0,0,0,.3);
}
.dep-selected-tag { display: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--ok); margin-top: -2px; }
.dep-addr-card.active .dep-selected-tag { display: block; }
.dep-addr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dep-coin-wrap { display: inline-flex; align-items: center; gap: 10px; }
.coin-ic {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cc, #814bf6) 88%, #fff), color-mix(in srgb, var(--cc, #814bf6) 78%, #000));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cc, #814bf6) 45%, transparent), inset 0 1px 1px rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.25);
  border: 1px solid color-mix(in srgb, var(--cc, #814bf6) 60%, #fff);
}
.dep-coin { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }

/* Glowing network name pill — tinted to the card's coin colour */
.net-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 99px; flex-shrink: 0;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in srgb, var(--cc, #b18cff) 30%, #fff);
  background: color-mix(in srgb, var(--cc, #814bf6) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc, #814bf6) 55%, transparent);
  animation: netGlow 2.4s ease-in-out infinite;
}
.net-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--cc, #b18cff);
  box-shadow: 0 0 8px var(--cc, #b18cff), 0 0 3px var(--cc, #b18cff);
  animation: netDot 2.4s ease-in-out infinite;
}
@keyframes netGlow {
  0%, 100% { box-shadow: 0 0 8px color-mix(in srgb, var(--cc, #814bf6) 40%, transparent), inset 0 0 6px color-mix(in srgb, var(--cc, #814bf6) 18%, transparent); }
  50%      { box-shadow: 0 0 18px color-mix(in srgb, var(--cc, #814bf6) 75%, transparent), inset 0 0 10px color-mix(in srgb, var(--cc, #814bf6) 30%, transparent); }
}
@keyframes netDot { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.dep-addr-card.active .net-pill { animation-duration: 1.2s; }
.dep-quick { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dep-quick-btn {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255,255,255,.04);
  color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.dep-quick-btn:hover { color: var(--text); border-color: var(--brand); }
.dep-quick-btn.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(129,75,246,.35); }
.dep-addr-box {
  position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font-family: 'Consolas','Menlo','Courier New',monospace; font-size: 13.5px; line-height: 1.6;
  color: var(--brand-lt); background: rgba(0,0,0,.3); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 14px 26px;
  word-break: break-all; overflow-wrap: anywhere;
  transition: border-color .15s, background .15s;
}
.dep-addr-box:active { background: rgba(255,255,255,.06); }
.dep-addr-box.copied { border-color: rgba(70,209,158,.6); background: rgba(70,209,158,.07); }
.dep-addr-text { user-select: all; -webkit-user-select: all; }
.dep-tap-hint {
  position: absolute; right: 10px; bottom: 6px;
  font-family: 'DM Sans','Inter',sans-serif; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); pointer-events: none;
}
.dep-addr-box.copied .dep-tap-hint { color: #7fe3bd; font-weight: 700; }
.dep-addr-card.active { border-color: rgba(129,75,246,.55); box-shadow: 0 0 0 2px rgba(129,75,246,.22), var(--glass-hi); }
.dep-memo { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dep-memo b { color: var(--text); }
.dep-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line2);
  background: rgba(255,255,255,.05); color: var(--text); font-weight: 700; font-size: 15px;
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s;
}
.dep-copy:active { background: rgba(255,255,255,.1); }
.dep-copy svg { width: 16px; height: 16px; }
.dep-copy:hover { background: rgba(255,255,255,.09); border-color: var(--brand); }
.dep-copy.copied { border-color: rgba(70,209,158,.6); color: #7fe3bd; background: rgba(70,209,158,.08); }
.dep-copy.mini { width: auto; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.dep-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .dep-form-grid { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Modal ---------- */
.umodal { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.umodal.open { display: flex; }
.umodal-inner {
  background: rgba(20,20,28,.68); border: 1px solid rgba(129,75,246,.34); border-radius: 20px;
  backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
  max-width: 480px; width: 100%; padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(129,75,246,.14);
}
.umodal-inner h3 { font-size: 21px; margin-bottom: 6px; font-weight: 800; letter-spacing: -.02em; }
.umodal-inner .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.umodal-inner .req { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 17px; color: #d3d3da; font-size: 14px; line-height: 1.75; margin-bottom: 20px; white-space: pre-wrap; }

/* ---------- Card activation: glowing running-text ticker ---------- */
.act-ticker {
  overflow: hidden; border-radius: 12px; margin-bottom: 16px; padding: 11px 0;
  background: linear-gradient(90deg, rgba(129,75,246,.14), rgba(177,140,255,.05) 45%, rgba(129,75,246,.14));
  border: 1px solid rgba(177,140,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 22px rgba(129,75,246,.22);
  animation: actTickerGlow 2.4s ease-in-out infinite;
}
.act-ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.act-ticker-run { display: inline-flex; white-space: nowrap; will-change: transform; animation: actTickerScroll 18s linear infinite; }
.act-ticker-run span {
  padding-right: 70px; font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: #efe9ff;
  text-shadow: 0 0 10px rgba(177,140,255,.9), 0 0 20px rgba(129,75,246,.65);
  animation: actTextPulse 2s ease-in-out infinite;
}
.act-ticker:hover .act-ticker-run { animation-play-state: paused; }
@keyframes actTickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes actTickerGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(129,75,246,.2); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 34px rgba(129,75,246,.5); }
}
@keyframes actTextPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(177,140,255,.7), 0 0 16px rgba(129,75,246,.5); }
  50%      { text-shadow: 0 0 14px rgba(177,140,255,1), 0 0 28px rgba(129,75,246,.85); }
}

/* ---------- Auth pages ---------- */
.uauth { min-height: 100vh; display: grid; place-items: center; padding: 34px 20px; position: relative; overflow: hidden; }
.uauth::before, .uauth::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(130px); opacity: .4; z-index: 0; }
.uauth::before { background: var(--brand); top: -160px; left: -130px; }
.uauth::after { background: var(--brand2); bottom: -180px; right: -130px; }
.uauth { background:
  linear-gradient(180deg, rgba(7,7,10,.72), rgba(7,7,10,.94)),
  url('../images/BG-Gradient.jpg') center / cover no-repeat, var(--bg); }
.uauth-box .brand { font-family: 'Lato','DM Sans',sans-serif; }
.uauth-box {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: rgba(255,255,255,.055); border: 1px solid var(--line2); border-radius: 24px; padding: 44px;
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.55);
}
.uauth-box .brand { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -.03em; }
.uauth-box .brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uauth-box .tag { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.uauth-box .swap { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.uauth-box .swap a { color: var(--brand-lt); font-weight: 600; }
.uauth-box .ubtn { width: 100%; justify-content: center; margin-top: 24px; }

/* ---------- Impersonation banner ---------- */
.imp-banner {
  background: linear-gradient(90deg, rgba(234,179,90,.16), rgba(234,179,90,.06));
  border-bottom: 1px solid rgba(234,179,90,.4); color: #f3cf8a;
  padding: 11px 38px; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.imp-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Cards showcase inside dashboard ---------- */
.dash-showcase { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 0; }

@media (max-width: 1050px) { .ustats { grid-template-columns: repeat(2, 1fr); } .upanels { grid-template-columns: 1fr; } }
.usb-toggle { display: none; }
@media (max-width: 760px) {
  body.udash { flex-direction: column; }
  .usb { width: 100%; height: auto; position: static; }
  /* Collapsible mobile menu: only the brand bar shows until toggled open */
  .usb-brand { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
  .usb-toggle { display: block; background: var(--panel2); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: 6px 13px; font-size: 19px; line-height: 1.3; cursor: pointer; }
  .usb .usb-user, .usb .usb-nav, .usb .usb-foot { display: none; }
  .usb.open .usb-user { display: flex; }
  /* Open menu = clean vertical list: every link on its own full-width row */
  .usb.open .usb-nav { display: block; padding: 6px 14px 14px; }
  .usb.open .usb-nav a { width: 100%; margin: 2px 0; padding: 12px 14px; }
  .usb.open .usb-sec { padding-top: 14px; }
  .usb.open .usb-foot { display: block; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .ustats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ubody, .utop { padding-left: 16px; padding-right: 16px; }
  .ubody { padding-top: 22px; }
  .uhi h2 { font-size: 26px; }
  .ustat { padding: 16px; }
  .ustat .val { font-size: 22px; }
  .ucard { padding: 18px; border-radius: 16px; }
  .upanel .inner { padding: 16px; }
  .upanel h3, .ucard h3 { font-size: 15px; }
  /* Tables: never break the page — scroll sideways inside their card */
  .utable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .utable thead, .utable tbody, .utable tr { display: table; width: 100%; table-layout: auto; }
  .utable th, .utable td { padding: 11px 10px; font-size: 13px; }
  /* Buttons and forms: comfortable tap targets */
  .ubtn { padding: 12px 20px; }
  .uin { font-size: 16px; } /* prevents iOS auto-zoom on focus */
  .umodal-inner { max-height: 88vh; overflow-y: auto; padding: 22px; }
  .uhi { gap: 12px; margin-bottom: 20px; }
  .qa { padding: 16px 8px; }
  .qa .qic { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .ustats { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Premium finishing touches ---------- */
.umain::-webkit-scrollbar, body.udash::-webkit-scrollbar { width: 10px; }
body.udash::-webkit-scrollbar-thumb { background: #232330; border-radius: 6px; border: 2px solid var(--bg); }
body.udash::-webkit-scrollbar-thumb:hover { background: #33334a; }
.utable tr { transition: background .15s; }
.utable tbody tr:hover td, .utable tr:hover td { background: rgba(129,75,246,.04); }
.qa .qic { transition: transform .18s; }
.qa:hover .qic { transform: scale(1.08); }
.empty-slot .ubtn { box-shadow: 0 10px 30px rgba(129,75,246,.4); }

/* ---------- Balance card currency switcher ---------- */
.cur-card { position: relative; }
.cur-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cur-form { margin: 0; }
.cur-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 9px; border-radius: 99px;
  background: linear-gradient(135deg, rgba(129,75,246,.28), rgba(129,75,246,.12));
  border: 1px solid rgba(177,140,255,.45);
  box-shadow: 0 0 14px rgba(129,75,246,.45), inset 0 1px 0 rgba(255,255,255,.12);
  animation: curGlow 2.6s ease-in-out infinite; }
.cur-pill svg { width: 13px; height: 13px; color: #cdb6ff; flex-shrink: 0; }
.cur-sel { appearance: none; -webkit-appearance: none; border: 0; outline: 0; cursor: pointer;
  background-color: transparent; color: #e8e0ff; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  padding-right: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'><path d='M1 1l3 3 3-3' fill='none' stroke='%23cdb6ff' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right center; }
/* Mobile browsers style options from the OS — force dark so it's never white-on-white. */
.cur-sel option { background-color: #15161d; color: #f4f5fa; }
.cur-go { border: 0; border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 800; cursor: pointer;
  background: linear-gradient(135deg, #9a6ef0, #6d38e0); color: #fff; }
.cur-sub { margin-top: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }
@keyframes curGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(129,75,246,.35), inset 0 1px 0 rgba(255,255,255,.12); }
  50%      { box-shadow: 0 0 20px rgba(129,75,246,.65), inset 0 1px 0 rgba(255,255,255,.12); }
}
@media (max-width: 480px) {
  .cur-top { flex-wrap: wrap; }
}

/* ---------- My Cards: activated state (replaces the Activation button) ---------- */
.activated-chip { display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: #4ade80; background: rgba(74,222,128,.10); border: 1px solid rgba(74,222,128,.35);
  box-shadow: 0 0 16px rgba(74,222,128,.18), inset 0 1px 0 rgba(255,255,255,.06);
  cursor: default; user-select: none; }
