/* GOTA Wallet · solo lo propio de la app; el resto es ui.css. */
.gb {
  --ui-primary: #007600;
  --ui-focus: #007600;
  --ui-ring: rgba(0, 118, 0, .22);
  --gb-green-dark: #004d12;
  --gb-tabbar-h: 60px;
  margin: 0;
  min-height: 100vh;
  background: #f3f5f3;
  color: var(--ui-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }
.gb *, .gb *::before, .gb *::after { box-sizing: border-box; }
.gb-num { font-variant-numeric: tabular-nums; }

/* Marca */
.gb-brand { display: flex; align-items: center; gap: 10px; }
.gb-brand strong { display: block; font-size: 18px; line-height: 1.2; }
.gb-brand small { display: block; color: var(--ui-muted); font-size: 12.5px; }
.gb-logo { width: 40px; height: 40px; border-radius: var(--ui-radius); display: grid; place-items: center; background: linear-gradient(135deg, #007600, var(--gb-green-dark)); color: #fff; font-size: 22px; flex: none; }
.gb-brand--sm .gb-logo { width: 34px; height: 34px; font-size: 19px; }
.gb-brand--sm strong { font-size: 16px; }

/* Acceso */
.gb-auth { display: grid; place-items: center; padding: 20px; background: #f3f5f3 url('bg.svg') no-repeat left top; }
.gb-auth-box { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); display: flex; flex-direction: column; gap: 16px; }
.gb-auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.gb-auth-links a { color: #007600; text-decoration: none; font-weight: 550; }

/* Marco de la app */
.gb-app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--gb-tabbar-h) + var(--ss-sab, 0px) + 16px); }
.gb-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: rgba(243, 245, 243, .92); backdrop-filter: blur(8px); }
.gb-main { padding: 4px 14px 0; }
.gb-h { font-size: 20px; margin: 6px 2px 12px; }
.gb-install { margin: 0 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; border-radius: var(--ui-radius); background: #e3f0e3; color: var(--gb-green-dark); font-size: 13.5px; }

/* Carteras */
.gb-wallets { display: flex; flex-direction: column; gap: 8px; }
.gb-wallet { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.gb-wallet:first-of-type { background: linear-gradient(120deg, #007600, var(--gb-green-dark)); color: #fff; }
.gb-wallet:first-of-type small, .gb-wallet:first-of-type .ui-muted { color: rgba(255, 255, 255, .75); }
.gb-wallet-cur { display: flex; align-items: center; gap: 8px; font-weight: 650; min-width: 84px; }
.gb-wallet-bal { flex: 1; display: flex; flex-direction: column; align-items: flex-end; }
.gb-wallet-bal small { font-size: 11.5px; color: var(--ui-muted); }
.gb-wallet-bal strong { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.gb-coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: #007600; }
.gb-coin[data-c="USDT"] { background: #26a17b; }
.gb-coin[data-c="DITE"] { background: #6b4fbb; }
.gb-wallet:first-of-type .gb-coin { background: rgba(255, 255, 255, .2); }

/* Acciones rápidas */
.gb-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.gb-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: 12px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 550; color: var(--ui-text); cursor: pointer; }
.gb-actions i { font-size: 24px; color: #007600; }

.gb-links, .gb-card-list { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.gb-links .ui-list-item { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.gb-logout { margin: 6px 0 20px; }

/* Cambio */
.gb-swap-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.gb-swap-flip { margin-bottom: 2px; }
.gb-quote { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--ui-radius); background: var(--ui-surface); font-size: 13.5px; }
.gb-quote > div { display: flex; justify-content: space-between; gap: 10px; }
.gb-quote > div > span:first-child { color: var(--ui-muted); }
.gb-quote > div > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.gb-quote .ui-alert { display: block; }

/* Órdenes y movimientos */
.gb-order { align-items: center; }
.gb-order-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gb-order-title { display: flex; align-items: center; gap: 8px; }
.gb-order-sub { font-size: 12.5px; color: var(--ui-text); }
.gb-order .ui-progress { height: 4px; margin: 2px 0; }
.gb-tx .ui-list-side b { white-space: nowrap; color: var(--ui-text); font-size: 14px; }
.gb-in, .gb-tx .ui-list-side b.gb-in { color: var(--ui-ok-text); }

/* Barra inferior */
.gb-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--ui-border); padding-bottom: var(--ss-sab, 0px); }
.gb-tabbar button { position: relative; flex: 1; max-width: 130px; height: var(--gb-tabbar-h); border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 11.5px; color: var(--ui-muted); cursor: pointer; }
.gb-tabbar button i { font-size: 23px; }
.gb-tabbar button.is-active { color: #007600; font-weight: 600; }
.gb-tabbar em { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #007600; color: #fff; font-style: normal; font-size: 10.5px; line-height: 16px; }

.gb-spin { animation: gb-spin 1s linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }

.gb .ui-sheet { max-width: 520px; }
.gb .ui-input { font-size: 16px; }
