/* ==========================================================================
   Lwei.ao — Estilos partilhados (landing, conta, carteira)
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: rgba(15, 23, 42, 0.04);
  --surface-strong: rgba(15, 23, 42, 0.07);
  --border: rgba(15, 23, 42, 0.09);
  --text: #0f172a;
  --text-dim: #475569;
  --gold: #d97706;
  --gold-strong: #b45309;
  --red: #dc2626;
  --emerald: #059669;
  --cyan: #0284c7;
  --danger: #ef4444;
  --radius: 16px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glows decorativos */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.glow-gold { width: 560px; height: 560px; background: var(--gold); top: -180px; right: -120px; }
.glow-red  { width: 480px; height: 480px; background: var(--red); bottom: -160px; left: -140px; }

.page { position: relative; z-index: 1; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ==== Navegação ==== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #d98324);
  display: flex; align-items: center; justify-content: center;
  color: #1a1205; font-size: 1.2rem;
  box-shadow: 0 4px 24px rgba(245, 184, 61, 0.35);
}
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { color: var(--gold); }
.brand-sub { display: block; font-size: 0.7rem; color: var(--text-dim); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ==== Botões ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e09a2b);
  color: #201503;
  box-shadow: 0 6px 28px rgba(245, 184, 61, 0.35);
}
.btn-gold:hover { box-shadow: 0 8px 36px rgba(245, 184, 61, 0.5); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-strong); }

.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ==== Hero ==== */
.hero { padding: 5.5rem 0 4rem; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245, 184, 61, 0.1);
  border: 1px solid rgba(245, 184, 61, 0.3);
  color: var(--gold-strong);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold-strong), #ff9d5c);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  max-width: 640px; margin: 0 auto 2.5rem;
  color: var(--text-dim); font-size: 1.15rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Estatísticas em direto */
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 4rem auto 0;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(12px);
}
.stat-tile .val { font-size: 1.7rem; font-weight: 700; color: var(--gold-strong); }
.stat-tile .lbl { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; }

/* ==== Secções ==== */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-head p { color: var(--text-dim); font-weight: 300; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(245, 184, 61, 0.35); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.1rem;
  background: rgba(245, 184, 61, 0.12); color: var(--gold-strong);
}
.feature-icon.c-emerald { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }
.feature-icon.c-cyan { background: rgba(56, 189, 248, 0.12); color: var(--cyan); }
.feature-icon.c-red { background: rgba(217, 72, 72, 0.14); color: #ff8f8f; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; font-weight: 300; }

/* Tokenomics */
.tokenomics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.tok-item {
  background: linear-gradient(160deg, rgba(245,184,61,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(245, 184, 61, 0.2);
  border-radius: var(--radius);
  padding: 1.6rem; text-align: center;
}
.tok-item .big { font-size: 1.9rem; font-weight: 800; color: var(--gold-strong); }
.tok-item .small { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.3rem; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d98324); color: #201503;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; font-weight: 300; }

/* CTA final */
.cta-panel {
  background: linear-gradient(140deg, rgba(245,184,61,0.14), rgba(217,72,72,0.08));
  border: 1px solid rgba(245, 184, 61, 0.25);
  border-radius: 24px;
  padding: 3.5rem 2rem; text-align: center;
}
.cta-panel h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.8rem; }
.cta-panel p { color: var(--text-dim); margin-bottom: 2rem; }

/* Rodapé */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0; margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 0.9rem;
}
.footer a { color: var(--text-dim); text-decoration: none; margin-left: 1.25rem; }
.footer a:hover { color: var(--gold); }

/* ==========================================================================
   Autenticação (conta.html)
   ========================================================================== */
.auth-wrap {
  min-height: calc(100vh - 90px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; text-align: center; }
.auth-card .sub { color: var(--text-dim); font-size: 0.92rem; text-align: center; margin-bottom: 1.75rem; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  background: var(--surface); border-radius: 12px; padding: 0.35rem;
  margin-bottom: 1.75rem;
}
.tab-btn {
  border: none; background: transparent; color: var(--text-dim);
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.65rem; border-radius: 9px; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { background: linear-gradient(135deg, var(--gold), #e09a2b); color: #201503; }

.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 0.45rem; font-weight: 500;
}
.form-group input {
  width: 100%;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; }

.form-msg {
  display: none;
  border-radius: 10px; padding: 0.75rem 1rem;
  font-size: 0.88rem; margin-bottom: 1.15rem;
}
.form-msg.error { display: block; background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }
.form-msg.success { display: block; background: rgba(52, 211, 153, 0.12); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.3); }

/* ==========================================================================
   Carteira (carteira.html)
   ========================================================================== */
.wallet-shell { max-width: 980px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }

.wallet-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem;
}
.wallet-user { color: var(--text-dim); font-size: 0.95rem; }
.wallet-user strong { color: var(--text); }

.balance-hero {
  background: linear-gradient(140deg, rgba(245,184,61,0.16), rgba(255,255,255,0.03));
  border: 1px solid rgba(245, 184, 61, 0.28);
  border-radius: 22px;
  padding: 2.2rem;
  margin-bottom: 1.5rem;
}
.balance-hero .lbl { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.balance-hero .amount { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; color: var(--gold-strong); line-height: 1.2; }
.balance-hero .amount small { font-size: 1.4rem; color: var(--text-dim); font-weight: 500; }
.balance-hero .pending { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.4rem; }

.addr-row {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.7rem 1rem; margin-top: 1.4rem;
}
.addr-row code {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.85rem; color: var(--text-dim);
}
.icon-btn {
  border: none; background: var(--surface); color: var(--text-dim);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-strong); color: var(--gold); }

.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .wallet-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
}
.panel h2 {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.panel h2 i { color: var(--gold); }

/* Histórico */
.history-list { list-style: none; max-height: 420px; overflow-y: auto; }
.hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hist-item:last-child { border-bottom: none; }
.hist-ico {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.hist-ico.in { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }
.hist-ico.out { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.hist-ico.mine { background: rgba(245, 184, 61, 0.12); color: var(--gold-strong); }
.hist-main { flex: 1; min-width: 0; }
.hist-main .t1 { font-size: 0.92rem; font-weight: 500; }
.hist-main .t2 { font-size: 0.78rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-amt { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.hist-amt.pos { color: var(--emerald); }
.hist-amt.neg { color: var(--danger); }
.hist-status { font-size: 0.72rem; color: var(--text-dim); text-align: right; }

.empty-note { color: var(--text-dim); text-align: center; padding: 2rem 0; font-size: 0.92rem; }

/* Modal (exportar chave) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 480px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem;
}
.modal h3 { margin-bottom: 1rem; }
.modal .key-box {
  background: rgba(15, 23, 42, 0.02); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem; font-size: 0.8rem;
  word-break: break-all; margin: 1rem 0; color: var(--gold-strong);
  font-family: monospace;
}
.modal .warn { color: var(--danger); font-size: 0.85rem; margin-bottom: 1rem; }

.hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1.5rem;
  font-size: 0.92rem; z-index: 100;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  transition: opacity 0.3s;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* Dropdown de Casos de Uso (PoC) */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-soft);
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 1000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.25rem;
  padding: 0.6rem 0;
}
.dropdown-content a {
  color: var(--text) !important;
  padding: 0.7rem 1.2rem !important;
  text-decoration: none;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-align: left;
  transition: all 0.2s;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.dropdown-content a:hover {
  background-color: var(--surface) !important;
  color: var(--cyan) !important;
}
.dropdown:hover .dropdown-content {
  display: block;
}

