/* SinkoWallet App CSS - v3 Dark Binance Theme */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0B0E11;
  --bg-sec: #1E2329;
  --card: #1E2329;
  --t1: #EAECEF;
  --t2: #B7BDC6;
  --t3: #848E9C;
  --t4: #5E6673;
  --divider: rgba(255, 255, 255, 0.06);
  --accent: #FCD535;
  --accent-dark: #D4B12E;
  --blue: #FCD535;
  --blue-dark: #D4B12E;
  --green: #0ECB81;
  --red: #F6465D;
  --orange: #F0B90B;
  --r: 10px;
  --r2: 14px;
  --botnav: 72px;
  --sky: rgba(252, 213, 53, 0.1);
  --green-a: rgba(14, 203, 129, 0.12);
  --red-a: rgba(246, 70, 93, 0.12);
  --blue-a: rgba(252, 213, 53, 0.08);
  --modal-bg: #1E2329;
  --input-bg: #2B3139;
}

html {
  height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  padding-bottom: var(--botnav);
  transition: background 0.25s, color 0.25s;
}

/* ── BOTTOM NAV ── */
.botnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  height: var(--botnav);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--divider);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--t4);
  font-size: 10px;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}

.bn-item svg {
  width: 22px;
  height: 22px;
}

.bn-item.active {
  color: var(--accent);
}

.bn-item.active svg {
  stroke: var(--accent);
}

.avatar {
  width: 32px;
  height: 32px;
  background: var(--sky);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  background: var(--bg-sec);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--t3);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.icon-btn:active {
  background: var(--divider);
  transform: scale(0.95);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── PAGE LAYOUT ── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

.card {
  background: var(--bg-sec);
  border-radius: var(--r2);
  padding: 16px;
  margin-bottom: 14px;
}

/* ── PAGE TOP (replaces headers) ── */
.page-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
  max-width: 480px;
  margin: 0 auto;
}

.page-top-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
  flex: 1;
}

/* ── SECTION HEADER ── */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
}

.sec-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--t1);
}

.sec-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* ── HERO ── */
.dash-hero {
  background: linear-gradient(145deg, #2B3139, #1E2329);
  border-radius: var(--r2);
  padding: 22px 18px;
  color: #fff;
  margin-bottom: -22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid var(--divider);
}

.dash-hero::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  background: rgba(252, 213, 53, 0.05);
  border-radius: 50%;
}

.dash-hero::after {
  content: '';
  position: absolute;
  left: -15px;
  bottom: -15px;
  width: 70px;
  height: 70px;
  background: rgba(252, 213, 53, 0.03);
  border-radius: 50%;
}

.h-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.h-total {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--t1);
}

.h-total .sym {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.75;
}

.h-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
}

.ref-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.ref-btn:active {
  background: rgba(255, 255, 255, 0.16);
}

.ref-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--t2);
}

.ref-btn.spin svg {
  animation: spin .7s linear infinite;
}

/* ── ACTIONS ── */
.act-row {
  display: flex;
  gap: 10px;
  background: var(--bg-sec);
  padding: 40px 16px 14px;
  border-radius: var(--r2);
  margin-top: 0;
  position: relative;
  z-index: 0;
}

.a-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 0;
  border-radius: var(--r);
  transition: all 0.15s;
  -webkit-user-select: none;
}

.a-btn:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.97);
}

.a-ico {
  width: 44px;
  height: 44px;
  background: var(--sky);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a-ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.a-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  font-family: 'Nunito', sans-serif;
}

/* ── NETWORK TABS ── */
.net-tabs {
  display: flex;
  background: var(--bg-sec);
  padding: 3px;
  border-radius: var(--r);
  margin-bottom: 12px;
  border: 1px solid var(--divider);
}

.nt {
  flex: 1;
  padding: 9px;
  text-align: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--t3);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nt.active {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nt.bsc.active {
  color: #F0B90B;
}

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ── BALANCES ── */
.bal-box {
  background: var(--bg-sec);
  border-radius: var(--r2);
  padding: 4px 0;
  margin-bottom: 12px;
  border: 1px solid var(--divider);
  overflow: hidden;
}

.bc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}

.bc-row:last-child {
  border-bottom: none;
}

.bc-l {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Token icons */
.bc-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.bc-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bc-ico.usdc {
  background: #2775CA;
}

.bc-ico.usdt {
  background: #26A17B;
}

.bc-ico.pol {
  background: #7B3FE4;
}

.bc-ico.matic {
  background: #8247E5;
}

.bc-ico.bnb {
  background: #F0B90B;
}

.bc-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--t1);
}

.bc-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
}

.bc-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--t1);
  text-align: right;
}

/* ── TRANSACTIONS LIST ── */
.tx-list {
  background: var(--bg-sec);
  border-radius: var(--r2);
  overflow: hidden;
  padding: 4px 0;
  border: 1px solid var(--divider);
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-user-select: none;
  border-bottom: 1px solid var(--divider);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-item:active {
  background: rgba(255, 255, 255, 0.04);
}

.tx-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-ico.in {
  background: var(--green-a);
}

.tx-ico.out {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--divider);
}

.tx-ico svg {
  width: 18px;
  height: 18px;
}

.tx-ico.in svg {
  stroke: var(--green);
}

.tx-ico.out svg {
  stroke: var(--t2);
}

.tx-mid {
  flex: 1;
  min-width: 0;
}

.tx-ttl {
  font-size: 13px;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 2px;
}

.tx-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-r {
  text-align: right;
  flex-shrink: 0;
}

.tx-amt {
  font-size: 14px;
  font-weight: 800;
}

.tx-amt.in {
  color: var(--green);
}

.tx-amt.out {
  color: var(--t1);
}

.tx-dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--t4);
  margin-top: 2px;
}

.empty {
  padding: 34px 20px;
  text-align: center;
}

.empty svg {
  width: 34px;
  height: 34px;
  stroke: var(--t4);
  margin-bottom: 10px;
}

.empty h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--t2);
  margin-bottom: 5px;
}

.empty p {
  font-size: 12px;
  color: var(--t3);
  font-weight: 600;
}

/* ── FORMS ── */
.fg {
  margin-bottom: 16px;
}

.fg label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
}

.inp {
  width: 100%;
  padding: 13px 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--divider);
  border-radius: var(--r);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
}

.inp::placeholder {
  color: var(--t4);
}

.inp:focus {
  background: #2B3139;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.1);
}

.amt-display {
  background: var(--input-bg);
  border: 1.5px solid var(--divider);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: all 0.2s;
}

.amt-display:focus-within {
  background: #2B3139;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.1);
}

.amt-display input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--t1);
  width: 100%;
}

.amt-display input::placeholder {
  color: var(--t4);
}

.tok-lbl {
  font-size: 15px;
  font-weight: 800;
  color: var(--t3);
}

/* ── TOK SELECTOR ── */
.tok-sel {
  display: flex;
  gap: 8px;
}

.tok-opt {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--divider);
  border-radius: var(--r);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--t3);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s;
}

.tok-opt.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--sky);
}

/* ── INNER PAGE TOP (replaces inner-page-hdr) ── */
.inner-page-hdr {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.inner-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
}

.back-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-sec);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--t1);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.back-btn:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
}

.back-btn svg {
  width: 17px;
  height: 17px;
}

/* ── LIVE DOT ── */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse 2s infinite;
  display: inline-block;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

/* ── FORM GROUP ── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
}

/* ── BUTTONS ── */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--r);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-appearance: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #0B0E11;
  box-shadow: 0 3px 12px rgba(252, 213, 53, 0.2);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-sec);
  color: var(--t1);
  border: 1.5px solid var(--divider);
}

.btn-danger {
  background: var(--red-a);
  color: var(--red);
}

/* ── ALERTS ── */
.alert {
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
  font-family: 'Nunito', sans-serif;
}

.alert svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.alert-error {
  background: var(--red-a);
  color: var(--red);
}

.alert-success {
  background: var(--green-a);
  color: var(--green);
}

.alert-warn {
  background: rgba(240, 185, 11, 0.1);
  color: #F0B90B;
}

.alert-info {
  background: var(--sky);
  color: var(--accent);
}

/* ── MODAL (bottom sheet) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--modal-bg);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.1, 0.8, 0.2, 1);
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  border-top: 1px solid var(--divider);
}

.overlay.open .modal {
  transform: translateY(0);
}

.m-handle {
  width: 36px;
  height: 4px;
  background: var(--t4);
  border-radius: 2px;
  margin: 10px auto;
}

.m-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px;
}

.m-ttl {
  font-size: 16px;
  font-weight: 800;
  color: var(--t1);
}

.m-cls {
  width: 28px;
  height: 28px;
  background: var(--bg-sec);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--t2);
  font-size: 14px;
  font-weight: 800;
}

.m-cls:active {
  background: rgba(255, 255, 255, 0.08);
}

.m-body {
  padding: 0 20px 20px;
}

.m-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.m-ico.in {
  background: var(--green-a);
}

.m-ico.out {
  background: rgba(255, 255, 255, 0.04);
}

.m-ico svg {
  width: 28px;
  height: 28px;
}

.m-ico.in svg {
  stroke: var(--green);
}

.m-ico.out svg {
  stroke: var(--t1);
}

.m-amt {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.m-amt.in {
  color: var(--green);
}

.m-amt.out {
  color: var(--t1);
}

.m-date {
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 18px;
  font-weight: 600;
}

.m-rows {
  background: var(--bg);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--divider);
}

.m-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}

.m-row:last-child {
  border-bottom: none;
}

.m-rl {
  font-size: 12px;
  color: var(--t3);
  font-weight: 700;
  white-space: nowrap;
}

.m-rv {
  font-size: 12px;
  color: var(--t1);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.m-rv.mono {
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.m-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-btn {
  padding: 12px;
  border-radius: var(--r);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.m-btn.pri {
  background: var(--accent);
  color: #0B0E11;
}

.m-btn.pri:active {
  background: var(--accent-dark);
  transform: scale(0.96);
}

.m-btn.sec {
  background: var(--bg-sec);
  color: var(--t1);
  border: 1.5px solid var(--divider);
}

/* ── RECEIPT / FACTURA ── */
.receipt-card {
  background: var(--card);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--divider);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.receipt-top {
  background: linear-gradient(135deg, #2B3139, #1E2329);
  padding: 26px 22px;
  text-align: center;
  color: var(--t1);
  position: relative;
  border-bottom: 1px solid var(--divider);
}

.receipt-badge {
  width: 58px;
  height: 58px;
  background: rgba(252, 213, 53, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.receipt-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.receipt-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.receipt-amount {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--t1);
}

.receipt-token {
  font-size: 14px;
  font-weight: 700;
  color: var(--t3);
  margin-top: 3px;
}

.receipt-divider {
  height: 16px;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.receipt-divider::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -5px;
  right: -5px;
  height: 30px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 15px, transparent 15px, transparent 25px);
  clip-path: polygon(0 0, 5% 50%, 10% 0, 15% 50%, 20% 0, 25% 50%, 30% 0, 35% 50%, 40% 0, 45% 50%, 50% 0, 55% 50%, 60% 0, 65% 50%, 70% 0, 75% 50%, 80% 0, 85% 50%, 90% 0, 95% 50%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.3;
}

.receipt-body {
  padding: 16px 20px;
}

.receipt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--divider);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-label {
  font-size: 11px;
  color: var(--t3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.receipt-value {
  font-size: 13px;
  color: var(--t1);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.receipt-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.receipt-footer {
  padding: 12px 20px;
  text-align: center;
  background: var(--bg);
  border-top: 1px dashed var(--divider);
}

.receipt-footer span {
  font-size: 11px;
  color: var(--t3);
  font-weight: 600;
}

/* ── CONFIRM MODAL ── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.confirm-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.confirm-modal {
  background: var(--modal-bg);
  border-radius: var(--r2);
  width: 100%;
  max-width: 340px;
  transform: scale(0.9) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--divider);
}

.confirm-overlay.open .confirm-modal {
  transform: scale(1) translateY(0);
}

.confirm-header {
  padding: 22px 22px 14px;
  text-align: center;
}

.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.confirm-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
}

.confirm-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 5px;
}

.confirm-subtitle {
  font-size: 13px;
  color: var(--t3);
  font-weight: 600;
  line-height: 1.4;
}

.confirm-amount-big {
  text-align: center;
  padding: 4px 0 14px;
  font-size: 26px;
  font-weight: 900;
  color: var(--t1);
  letter-spacing: -0.5px;
}

.confirm-details {
  background: var(--bg);
  margin: 0 16px 14px;
  border-radius: var(--r);
  padding: 2px 0;
  border: 1px solid var(--divider);
}

.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--divider);
}

.confirm-detail-row:last-child {
  border-bottom: none;
}

.confirm-dl {
  font-size: 11px;
  color: var(--t3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.confirm-dv {
  font-size: 12px;
  color: var(--t1);
  font-weight: 800;
  text-align: right;
  word-break: break-all;
  max-width: 200px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 18px;
}

.confirm-cancel {
  padding: 13px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1.5px solid var(--divider);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--t2);
  cursor: pointer;
  transition: all 0.15s;
}

.confirm-ok {
  padding: 13px;
  border-radius: var(--r);
  background: var(--accent);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0B0E11;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 10px rgba(252, 213, 53, 0.2);
}

.confirm-cancel:active {
  transform: scale(0.97);
}

.confirm-ok:active {
  background: var(--accent-dark);
  transform: scale(0.97);
}

/* ── SPINNER ── */
.sp {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(11, 14, 17, 0.4);
  border-top-color: #0B0E11;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--botnav) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--t1);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  z-index: 999;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── PROFILE ── */
.prof-avatar {
  width: 70px;
  height: 70px;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 auto 12px;
}

.prof-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--t1);
  text-align: center;
  margin-bottom: 3px;
}

.prof-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  text-align: center;
  margin-bottom: 18px;
}

.menu-list {
  background: var(--bg-sec);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--divider);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: var(--t1);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: rgba(255, 255, 255, 0.04);
}

.menu-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-ico svg {
  width: 17px;
  height: 17px;
}

.menu-ico.blue {
  background: var(--sky);
}

.menu-ico.blue svg {
  stroke: var(--accent);
}

.menu-ico.green {
  background: var(--green-a);
}

.menu-ico.green svg {
  stroke: var(--green);
}

.menu-ico.orange {
  background: rgba(240, 185, 11, 0.1);
}

.menu-ico.orange svg {
  stroke: var(--orange);
}

.menu-ico.red {
  background: var(--red-a);
}

.menu-ico.red svg {
  stroke: var(--red);
}

.menu-ico.purple {
  background: rgba(123, 63, 228, 0.12);
}

.menu-ico.purple svg {
  stroke: #7B3FE4;
}

.menu-txt {
  flex: 1;
}

.menu-ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}

.menu-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  margin-top: 1px;
}

.menu-arrow {
  color: var(--t4);
  flex-shrink: 0;
}

.menu-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── KEY / ADDR BOXES ── */
.sec-box {
  background: var(--bg-sec);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 12px;
}

.sec-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 10px;
}

.sec-list {
  list-style: none;
}

.sec-list li {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  padding: 7px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.sec-list li:last-child {
  border-bottom: none;
}

.sec-list li svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.key-box {
  background: #2B3139;
  border-radius: var(--r);
  padding: 14px;
  margin: 12px 0;
}

.key-box code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--t1);
  word-break: break-all;
  line-height: 1.8;
  display: block;
}

.addr-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sky);
  border-radius: var(--r);
  padding: 11px 13px;
  margin-bottom: 14px;
}

.addr-l {
  flex: 1;
  min-width: 0;
}

.addr-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.addr-val {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--t2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-btn {
  background: var(--accent);
  color: #0B0E11;
  border: none;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.cp-btn:active {
  transform: scale(0.95);
}

/* ── OTP INPUT ── */
.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}

.otp-digit {
  width: 44px;
  height: 52px;
  border: 1.5px solid var(--divider);
  border-radius: var(--r);
  background: var(--input-bg);
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--t1);
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
}

.otp-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.1);
  background: #2B3139;
}

/* ── HELP SECTION ── */
.help-card {
  background: var(--bg-sec);
  border-radius: var(--r2);
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--divider);
}

.help-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-card h3 svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.help-card p,
.help-card li {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 6px;
}

.help-card strong {
  color: var(--t1);
}

/* ── NEW HELP SECTION STYLES ── */
.help-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.help-section:last-child {
  border-bottom: none;
}

.help-icon {
  width: 48px;
  height: 48px;
  background: var(--sky);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.help-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.usdc-bg {
  background: rgba(39, 117, 202, 0.1);
}

.usdc-bg svg {
  stroke: #2775ca;
}

.usdt-bg {
  background: rgba(38, 161, 123, 0.1);
}

.usdt-bg svg {
  stroke: #26a17b;
}

.help-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 12px;
}

.help-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.help-detail {
  background: var(--bg-sec);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--divider);
}

.help-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.help-detail-row span:first-child {
  color: var(--t3);
}

.help-detail-row span:last-child {
  color: var(--t1);
  text-align: right;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-step {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  color: #0B0E11;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-step strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
  display: block;
  margin-bottom: 4px;
}

.help-step p {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.5;
}

/* ── PAYMENT LINK ── */
.pay-card {
  background: var(--bg-sec);
  border-radius: var(--r2);
  padding: 24px;
  margin-bottom: 14px;
  border: 1px solid var(--divider);
  text-align: center;
}

.pay-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--t1);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.pay-token {
  font-size: 14px;
  font-weight: 700;
  color: var(--t3);
  margin-bottom: 16px;
}

.pay-status {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.pay-status.pending {
  background: rgba(240, 185, 11, 0.1);
  color: #F0B90B;
}

.pay-status.confirmed {
  background: var(--green-a);
  color: var(--green);
}

.pay-status.expired {
  background: var(--red-a);
  color: var(--red);
}

.pay-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-sec);
  border-radius: var(--r);
  border: 1px solid var(--divider);
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.pay-link-item:active {
  background: rgba(255, 255, 255, 0.04);
}

/* ── QR DARK ── */
.qr-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.qr-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  display: inline-block;
}

@media(min-width: 480px) {
  .page {
    padding: 0 20px 24px;
  }
}