/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  /* Paleta — inspirada no Pump.fun, tratada com sobriedade */
  --bg:            #0A0B0D;   /* fundo geral, preto neutro */
  --bg-sidebar:    #0D0F11;   /* sidebar levemente distinta */
  --surface:       #131519;   /* cards / painéis */
  --surface-2:     #17191D;   /* elementos elevados dentro de cards */
  --border:        #212429;
  --border-soft:   #1A1C20;

  --text-primary:  #EDEEF0;
  --text-secondary:#9298A2;
  --text-muted:    #5C616B;

  --accent:        #00FF88;   /* verde Pump.fun */
  --accent-dim:    #00C86B;
  --accent-soft:   rgba(0, 255, 136, 0.10);
  --accent-border: rgba(0, 255, 136, 0.28);

  --danger:        #FF5A6E;
  --danger-soft:   rgba(255, 90, 110, 0.10);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body{
  height: 100%;
}

body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Números financeiros sempre alinhados (tabular) — detalhe de painel real */
.num, .price, .stat-value, td.num-cell{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; }
input{ font-family: inherit; }

::selection{ background: var(--accent-soft); color: var(--accent); }

/* Foco visível — acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   2. LAYOUT GERAL — Sidebar + Conteúdo
   ============================================================ */
.app{
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  width: 248px;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
}

.sidebar.is-open{ transform: translateX(0); }

.sidebar__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.brand__mark{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06120C;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.brand__text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand__name{ font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.brand__tag{ font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.sidebar__nav{
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__link svg{ width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }

.nav__link:hover{
  background: var(--surface);
  color: var(--text-primary);
}

.nav__link.is-active{
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 9px 11px;
}

.nav__link.is-active svg{ opacity: 1; }

.sidebar__footer{
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border-soft);
}

.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.dot-live{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.4; }
}

/* Overlay para fechar sidebar no mobile */
.sidebar-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
}
.sidebar-overlay.is-visible{ display: block; }

/* ---------- Conteúdo principal ---------- */
.main{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__left{ display: flex; align-items: center; gap: 12px; min-width: 0; }

.hamburger{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  flex-shrink: 0;
}
.hamburger svg{ width: 18px; height: 18px; }

.topbar__title{
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__subtitle{
  font-size: 12px;
  color: var(--text-muted);
  display: none;
}

.btn-connect{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: #06120C;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-connect:hover{ background: var(--accent-dim); }
.btn-connect:active{ transform: scale(0.97); }
.btn-connect svg{ width: 15px; height: 15px; }

.content{
  padding: 22px 20px 60px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* Painéis de abas */
.panel{ display: none; animation: fadein 0.2s var(--ease); }
.panel.is-active{ display: block; }

@keyframes fadein{
  from{ opacity: 0; transform: translateY(4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.panel__header{
  margin-bottom: 20px;
}
.panel__header h1{
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel__header p{
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   3. COMPONENTES COMPARTILHADOS
   ============================================================ */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

/* ---- Grid de estatísticas (Dashboard) ---- */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card{ position: relative; overflow: hidden; }

.stat-label{
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.stat-delta{
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-delta.positive{ color: var(--accent); }
.stat-delta.negative{ color: var(--danger); }

/* ---- Painel de performance ---- */
.performance{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 860px){
  .performance{ grid-template-columns: 2fr 1fr; }
}

.performance__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.performance__head h2{ font-size: 14px; font-weight: 600; }
.performance__head span{ font-size: 12px; color: var(--text-muted); }

.range-toggle{
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.range-toggle button{
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.range-toggle button.is-active{
  background: var(--accent);
  color: #06120C;
}

.sparkline-wrap{ width: 100%; height: 180px; }
.sparkline-wrap svg{ width: 100%; height: 100%; display: block; }

.summary-list{ display: flex; flex-direction: column; gap: 14px; }
.summary-row{ display: flex; align-items: center; justify-content: space-between; }
.summary-row__label{ font-size: 12.5px; color: var(--text-secondary); }
.summary-row__value{ font-size: 13.5px; font-weight: 600; }

.divider{ height: 1px; background: var(--border-soft); margin: 2px 0; }

/* ---- Trades recentes ---- */
.trade-list{ display: flex; flex-direction: column; }
.trade-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.trade-row:last-child{ border-bottom: none; }

.trade-row__left{ display: flex; align-items: center; gap: 10px; min-width: 0; }

.token-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.trade-meta{ min-width: 0; }
.trade-meta__name{ font-size: 13.5px; font-weight: 600; }
.trade-meta__time{ font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

.tag{
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tag--buy{ background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.tag--sell{ background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,90,110,0.28); }

.trade-row__right{ text-align: right; flex-shrink: 0; }
.trade-row__amount{ font-size: 13.5px; font-weight: 600; }
.trade-row__usd{ font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ============================================================
   4. DEPOSIT
   ============================================================ */
.deposit-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px){
  .deposit-grid{ grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.balance-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.balance-row__label{ font-size: 12px; color: var(--text-secondary); }
.balance-row__value{ font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.balance-row__value span{ font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }

.field-label{
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.amount-field{
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s var(--ease);
}
.amount-field:focus-within{ border-color: var(--accent-border); }

.amount-field input{
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  padding: 10px 0;
}
.amount-field input:focus{ outline: none; }
.amount-field input::placeholder{ color: var(--text-muted); font-weight: 500; }

.currency-badge{
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.currency-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.quick-amounts{
  display: flex;
  gap: 8px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}
.chip{
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover{ border-color: var(--accent-border); color: var(--accent); }

.btn-primary{
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #06120C;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-primary:hover{ background: var(--accent-dim); }
.btn-primary:active{ transform: scale(0.99); }

.instructions{ display: flex; flex-direction: column; gap: 14px; }
.instructions__title{ font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }

.instruction-step{ display: flex; gap: 12px; align-items: flex-start; }
.instruction-step__index{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.instruction-step p{ font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.instruction-step strong{ color: var(--text-primary); font-weight: 600; }

.notice{
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}
.notice svg{ width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* ============================================================
   5. TOKENS (tempo real)
   ============================================================ */
.tokens-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.live-indicator{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
}

.search-mini{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.search-mini svg{ width: 14px; height: 14px; }

/* Tabela — desktop */
.token-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.token-table thead th{
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.token-table th.align-right, .token-table td.align-right{ text-align: right; }

.token-table tbody tr{
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s var(--ease);
}
.token-table tbody tr:last-child{ border-bottom: none; }
.token-table tbody tr:hover{ background: var(--surface-2); }

.token-table td{ padding: 13px 16px; font-size: 13px; vertical-align: middle; }

.token-name-cell{ display: flex; align-items: center; gap: 10px; }
.token-name-cell .token-avatar{ width: 28px; height: 28px; font-size: 10px; }
.token-name-main{ font-weight: 600; font-size: 13.5px; }
.token-name-sub{ font-size: 11px; color: var(--text-muted); }

.change-badge{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 12.5px;
}
.change-badge.positive{ color: var(--accent); }
.change-badge.negative{ color: var(--danger); }

.row-actions{ display: flex; gap: 6px; justify-content: flex-end; }

.btn-mini{
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: filter 0.15s var(--ease);
}
.btn-mini:hover{ filter: brightness(1.15); }
.btn-mini--buy{ background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.btn-mini--sell{ background: var(--danger-soft); color: var(--danger); border-color: rgba(255,90,110,0.28); }

/* Cards — mobile (tabela vira cards) */
.token-cards{ display: none; flex-direction: column; gap: 10px; }

.token-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.token-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.token-card__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.token-card__field span{ display: block; font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }
.token-card__field strong{ font-size: 13px; font-weight: 600; }
.token-card__actions{ display: flex; gap: 8px; }
.token-card__actions .btn-mini{ flex: 1; text-align: center; padding: 9px; }

/* ============================================================
   6. REFERRAL
   ============================================================ */
.referral-link-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.referral-link-row{
  display: flex;
  gap: 8px;
}
.referral-link-row input{
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text-secondary);
  font-size: 12.5px;
}
.referral-link-row input:focus{ outline: none; border-color: var(--accent-border); color: var(--text-primary); }

.btn-copy{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: var(--accent);
  color: #06120C;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s var(--ease);
}
.btn-copy:hover{ background: var(--accent-dim); }
.btn-copy svg{ width: 14px; height: 14px; }
.btn-copy.is-copied{ background: var(--surface-2); color: var(--accent); border: 1px solid var(--accent-border); }

.referral-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.referral-table-wrap{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.referral-table-wrap .token-table{ border: none; border-radius: 0; }

.status-badge{
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-badge--active{ background: var(--accent-soft); color: var(--accent); }
.status-badge--pending{ background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ============================================================
   7. RESPONSIVO — Desktop (sidebar fixa)
   ============================================================ */
@media (min-width: 960px){
  .sidebar{
    position: fixed;
    transform: none;
  }
  .sidebar-overlay{ display: none !important; }
  .main{ margin-left: 248px; }
  .hamburger{ display: none; }
  .topbar{ padding: 16px 32px; }
  .content{ padding: 26px 32px 70px; }
  .topbar__subtitle{ display: block; }

  .token-table{ display: table; }
  .token-cards{ display: none; }
}

@media (max-width: 959px){
  .token-table{ display: none; }
  .token-cards{ display: flex; }
}

@media (max-width: 480px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-value{ font-size: 20px; }
  .referral-stats{ grid-template-columns: repeat(2, 1fr); }
}

/* Reduzir movimento para quem preferir */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   8. COMPONENTES ADICIONAIS — Staking real (dados on-chain)
   ============================================================ */
.g2{ display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:16px; }
.g3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (min-width:760px){ .g2{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .g3{ grid-template-columns:1fr; } }

.card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.card-title{ font-size:14px; font-weight:600; }

.info-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--border-soft); font-size:13px; }
.info-row:last-child{ border-bottom:none; }
.info-row .k{ color:var(--text-secondary); }
.info-row .v{ font-weight:600; font-variant-numeric:tabular-nums; }
.info-row .v.g, .info-row .v.a{ color:var(--accent); }

.field{ margin-bottom:16px; }
.field:last-child{ margin-bottom:0; }
.label{ display:block; font-size:12px; font-weight:500; color:var(--text-secondary); margin-bottom:8px; }
.input-plain{ flex:1; min-width:0; background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:10px 12px; color:var(--text-primary); font-size:13px; transition:border-color .15s var(--ease); }
.input-plain:focus{ outline:none; border-color:var(--accent-border); }
.input-plain[readonly]{ color:var(--text-muted); }
.hint{ font-size:11px; color:var(--text-muted); margin-top:6px; line-height:1.5; }

.badge{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.badge-green{ background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent-border); }
.badge-red{ background:var(--danger-soft); color:var(--danger); border:1px solid rgba(255,90,110,0.28); }
.badge-yellow{ background:rgba(255,202,40,0.12); color:#ffca28; border:1px solid rgba(255,202,40,0.28); }

.btn-outline{ background:transparent; border:1px solid var(--border); color:var(--text-primary); padding:10px 14px; border-radius:8px; font-size:12.5px; font-weight:600; transition:border-color .15s var(--ease), color .15s var(--ease); white-space:nowrap; }
.btn-outline:hover{ border-color:var(--accent-border); color:var(--accent); }
.btn-sm{ padding:8px 12px; font-size:12px; }
.btn-green{ background:var(--accent); color:#06120C; border:none; padding:10px 14px; border-radius:8px; font-size:12.5px; font-weight:600; white-space:nowrap; }
.btn-green:hover{ background:var(--accent-dim); }
.btn-danger{ background:var(--danger-soft); color:var(--danger); border:1px solid rgba(255,90,110,0.28); padding:10px 14px; border-radius:8px; font-size:12.5px; font-weight:600; white-space:nowrap; }
.btn-danger:hover{ filter:brightness(1.2); }
.btn-primary:disabled, .btn-outline:disabled, .btn-green:disabled, .btn-danger:disabled{ opacity:.5; cursor:not-allowed; }

.empty{ text-align:center; padding:36px 16px; color:var(--text-muted); }
.empty-ico{ font-size:24px; margin-bottom:10px; }
.empty-title{ font-size:13.5px; font-weight:600; color:var(--text-secondary); margin-bottom:4px; }
.empty-sub{ font-size:12px; }
.spin{ display:inline-block; animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

#toast{ position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--surface); border:1px solid var(--border); color:var(--text-primary); padding:12px 18px; border-radius:10px; font-size:13px; font-weight:500; opacity:0; pointer-events:none; transition:all .25s var(--ease); z-index:999; max-width:90vw; box-shadow:0 8px 30px rgba(0,0,0,.4); }
#toast.show{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
#toast.show.s{ border-color:var(--accent-border); color:var(--accent); }
#toast.show.e{ border-color:rgba(255,90,110,0.4); color:var(--danger); }
#toast.show.i{ border-color:var(--border); }

.ref-link-box{ font-family:monospace; font-size:12px; color:var(--text-secondary); background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:11px 13px; margin-bottom:12px; cursor:pointer; word-break:break-all; transition:border-color .15s var(--ease); }
.ref-link-box:hover{ border-color:var(--accent-border); }

.steps{ display:flex; flex-direction:column; gap:16px; }
.step-num{ font-size:10.5px; font-weight:700; letter-spacing:.06em; color:var(--accent); text-transform:uppercase; margin-bottom:4px; }
.step-title{ font-size:13.5px; font-weight:600; margin-bottom:4px; }
.step-desc{ font-size:12.5px; color:var(--text-secondary); line-height:1.55; }

.locked-note{ opacity:.75; }
.text-muted{ color:var(--text-muted); }
.wallet-required{ text-align:center; padding:40px 20px; color:var(--text-muted); }
.wallet-required svg{ width:32px; height:32px; margin-bottom:12px; color:var(--text-muted); }
.wallet-required .wr-title{ font-size:14px; font-weight:600; color:var(--text-secondary); margin-bottom:6px; }
.wallet-required .wr-sub{ font-size:12.5px; }

.btn-connect.is-connected{ background:var(--surface-2); color:var(--accent); border:1px solid var(--accent-border); }
.btn-connect:disabled{ opacity:.6; cursor:wait; }


.admin-lock{ display:flex; gap:8px; }
.admin-lock .input-plain{ width:100%; }
