/* ============ TOKENS ============ */
:root{
  --black: #050402;
  --surface: #0c0a06;
  --surface-2: #14110a;
  --surface-3: #1b160d;
  --line: #26200f;
  --line-soft: #1a160d;

  --gold-1: #FFE9A8;
  --gold-2: #F4D77A;
  --gold-3: #D4AF37;
  --gold-4: #9C7A1F;
  --gold-grad: linear-gradient(135deg, #FFF3CE 0%, #F4D77A 28%, #D4AF37 55%, #B8860B 78%, #8a6212 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(244,215,122,0.16), rgba(212,175,55,0.04));

  --silver-1: #F2F2F5;
  --silver-2: #C7C8CE;
  --silver-3: #8E8E96;
  --silver-grad: linear-gradient(135deg, #F2F2F5 0%, #C7C8CE 35%, #8E8E96 65%, #5b5b62 100%);

  --text-hi: #F4EFE2;
  --text-mid: #C9BD9D;
  --text-low: #7d7460;
  --green: #4ADE80;
  --red: #F2554C;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html, body {
  background: var(--black);
  color: var(--text-hi);
  font-family: var(--font-body);
  height: 100vh; /* Força exatamente a altura da tela */
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Organiza os filhos verticalmente (Banner de impersonate + App) */
  margin: 0;
  padding: 0;
}
body{
  background-image:
    radial-gradient(circle at 15% 0%, rgba(212,175,55,0.07), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(140,110,30,0.05), transparent 50%);
}
::selection{ background: rgba(212,175,55,0.35); }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input{ font-family:inherit; }

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:#2a2414; border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:#3a3018; }

.gold-text{
  background: var(--gold-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.mono{ font-family: var(--font-mono); }

/* ============ APP SHELL ============ */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  flex: 1; /* Ocupa dinamicamente todo o espaço vertical restante */
  min-height: 0; /* Previne quebras de rolagem no flexbox */
  width: 100vw;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: linear-gradient(180deg, #0a0805 0%, #050402 100%);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  
  /* Permite rolar os menus caso a janela seja redimensionada verticalmente */
  overflow-y: auto;
  scrollbar-width: none; /* Oculta a barra de rolagem no Firefox */
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 4px 6px 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.brand-mark{
  width:34px; height:34px;
  position:relative;
  flex-shrink:0;
}
.brand-mark svg{ width:100%; height:100%; }
.brand-name{
  font-family: var(--font-display);
  letter-spacing:0.5px;
  line-height:1;
}
.brand-name .l1{ font-size:13px; color:var(--silver-1); display:block; letter-spacing:1.5px; }
.brand-name .l2{ font-size:19px; display:block; }

.nav-section-label{
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color: var(--text-low);
  padding: 14px 10px 8px;
  font-weight:600;
}
.nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.nav-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-size:13.5px;
  font-weight:500;
  transition: background .15s, color .15s;
  position:relative;
  cursor:pointer;
}
.nav-item svg{ width:17px; height:17px; flex-shrink:0; opacity:0.85; }
.nav-item:hover{ background: var(--surface-2); color: var(--text-hi); }
.nav-item.active{
  background: linear-gradient(90deg, rgba(212,175,55,0.16), rgba(212,175,55,0.02));
  color: var(--gold-2);
}
.nav-item.active svg{ opacity:1; }
.nav-item.active::before{
  content:'';
  position:absolute; left:-16px; top:8px; bottom:8px; width:3px;
  background: var(--gold-grad);
  border-radius: 0 4px 4px 0;
}

.sidebar-bottom{
  margin-top:auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.balance-card{
  background: var(--surface-2);
  border:1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  margin-bottom:10px;
}
.balance-card .bc-label{ font-size:10.5px; color:var(--text-low); letter-spacing:0.5px; text-transform:uppercase; margin-bottom:4px;}
.balance-card .bc-value{ font-family:var(--font-mono); font-size:18px; font-weight:600; }
.balance-card .bc-value.gold{ color: var(--gold-2); }

.user-row{
  display:flex; align-items:center; gap:10px;
  padding: 8px 6px;
}
.user-avatar{
  width:30px; height:30px; border-radius:50%;
  background: var(--gold-grad);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:13px; color:#1a1306;
  flex-shrink:0;
}
.user-meta{ font-size:12.5px; line-height:1.3; overflow:hidden; }
.user-meta .un{ color:var(--text-hi); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-meta .up{ color:var(--text-low); font-size:11px; }

/* ---------- MAIN ---------- */
.main{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-width:0;
}
.topbar{
  height:60px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8,6,3,0.6);
}
.gold-ticker{
  display:flex;
  align-items:center;
  gap:18px;
  font-family: var(--font-mono);
  font-size:12.5px;
  overflow:hidden;
}
.ticker-item{ display:flex; align-items:center; gap:6px; white-space:nowrap; color:var(--text-mid); }
.ticker-item .tk-label{ color:var(--text-low); }
.ticker-item .tk-up{ color:var(--green); }
.ticker-item .tk-down{ color:var(--red); }
.topbar-right{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: border-color .15s, color .15s;
}
.icon-btn:hover{ border-color: var(--gold-4); color: var(--gold-2); }
.icon-btn svg{ width:16px; height:16px; }

.view-scroll{
  flex:1;
  overflow-y:auto;
  padding: 26px 30px 60px;
}
.view{ display:none; animation: fadeIn .25s ease; }
.view.active{ display:block; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.page-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:22px;
}
.page-head h1{
  font-family: var(--font-display);
  font-size:30px;
  letter-spacing:0.5px;
  color: var(--text-hi);
  line-height:1;
}
.page-head p{
  color: var(--text-low);
  font-size:13px;
  margin-top:6px;
}
.btn{
  display:inline-flex; align-items:center; gap:7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size:13px;
  font-weight:600;
  transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn svg{ width:14px; height:14px; }
.btn-gold{
  background: var(--gold-grad);
  color: #1a1306;
  box-shadow: 0 4px 18px rgba(212,175,55,0.18);
}
.btn-gold:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.btn-ghost{
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-mid);
}
.btn-ghost:hover{ color:var(--text-hi); border-color:#3a3018; }
.btn-silver{
  background: var(--silver-grad);
  color: #1a1a1d;
}
.btn-danger{
  background: rgba(242,85,76,0.12);
  border: 1px solid rgba(242,85,76,0.3);
  color: #ff8881;
}

/* banners */
.banner{
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.banner.gold-banner{
  background: linear-gradient(90deg, rgba(212,175,55,0.14), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.25);
}
.banner-text strong{ color: var(--gold-2); }
.banner-text .sub{ color:var(--text-low); font-size:12.5px; margin-top:2px; }
.banner.live-banner{
  background: rgba(74,222,128,0.06);
  border:1px solid rgba(74,222,128,0.2);
  font-size:13px; color:var(--text-mid);
}
.dot-live{ width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; margin-right:8px; box-shadow:0 0 8px var(--green); }

/* cards / grid */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }

.stat-label{ font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:var(--text-low); margin-bottom:8px; }
.stat-value{ font-family:var(--font-mono); font-size:26px; font-weight:700; }
.stat-value.gold{ color:var(--gold-2); }
.stat-value.green{ color:var(--green); }
.stat-sub{ font-size:12px; color:var(--text-low); margin-top:6px; }

.profit-card{ padding:24px 24px 8px; margin-bottom:16px; }
.profit-head{ display:flex; justify-content:space-between; align-items:flex-start; }
.profit-value{ font-family:var(--font-mono); font-size:40px; font-weight:700; color:var(--gold-2); display:flex; align-items:baseline; gap:12px; }
.tag-green{ font-size:12px; background:rgba(74,222,128,0.12); color:var(--green); padding:3px 9px; border-radius:6px; font-family:var(--font-mono); }
.timeframe-toggle{ display:flex; gap:4px; background:var(--surface-2); padding:3px; border-radius:8px; }
.timeframe-toggle button{ padding:6px 12px; font-size:12px; border-radius:6px; color:var(--text-low); }
.timeframe-toggle button.active{ background:var(--surface-3); color:var(--gold-2); }
.profit-sub{ color:var(--text-low); font-size:12.5px; margin:6px 0 14px; }
.chart-wrap{ height:200px; }

.section-title{
  display:flex; align-items:center; justify-content:space-between;
  margin: 26px 0 14px;
}
.section-title h2{ font-size:15px; font-weight:700; color:var(--text-hi); display:flex; align-items:center; gap:8px;}
.section-title .view-all{ font-size:12.5px; color:var(--gold-3); }

.strategy-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--surface);
}
.strategy-left{ display:flex; align-items:center; gap:13px; }
.strategy-icon{
  width:38px; height:38px; border-radius:9px;
  background: var(--gold-grad-soft);
  border:1px solid rgba(212,175,55,0.3);
  display:flex; align-items:center; justify-content:center;
}
.strategy-icon svg{ width:18px; height:18px; color:var(--gold-2); }
.strategy-name{ font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px;}
.pill{ font-size:10px; padding:2px 7px; border-radius:5px; font-weight:700; letter-spacing:0.3px; }
.pill-sim{ background:rgba(212,175,55,0.15); color:var(--gold-2); }
.pill-live{ background:rgba(74,222,128,0.15); color:var(--green); }
.strategy-sub{ font-size:12px; color:var(--text-low); margin-top:2px; }
.strategy-right{ text-align:right; }
.strategy-pl{ font-family:var(--font-mono); font-weight:700; color:var(--green); }
.strategy-pl-label{ font-size:11px; color:var(--text-low); }

/* ===== CREATE BOT VIEW ===== */
.steps-row{ display:flex; align-items:center; gap:10px; margin: 22px 0 24px; }
.step-chip{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-low); }
.step-num{ width:22px; height:22px; border-radius:50%; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:11px; font-family:var(--font-mono); }
.step-chip.active{ color:var(--gold-2); }
.step-chip.active .step-num{ background:var(--gold-grad); color:#1a1306; border:none; }
.step-sep{ width:30px; height:1px; background:var(--line); }

.howto-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; margin-bottom:24px; }
.howto-title{ display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:600; margin-bottom:16px; color:var(--text-hi); }
.howto-title svg{ width:16px; height:16px; color:var(--gold-2); }
.howto-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.howto-step .hs-num{ width:24px; height:24px; border-radius:50%; background:var(--gold-grad); color:#1a1306; font-family:var(--font-mono); font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.howto-step .hs-title{ font-size:13px; font-weight:600; margin-bottom:4px; }
.howto-step .hs-sub{ font-size:11.5px; color:var(--text-low); line-height:1.5; }
.howto-foot{ display:flex; gap:18px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line-soft); font-size:11.5px; color:var(--text-low); }
.howto-foot span{ display:flex; align-items:center; gap:6px; }

.strategy-pick-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pick-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:20px; cursor:pointer; transition:border-color .15s, background .15s;
  position:relative;
}
.pick-card:hover{ border-color:#3a3018; }
.pick-card.selected{ border-color: var(--gold-3); background: var(--gold-grad-soft); }
.pick-card .rec-badge{ position:absolute; top:16px; right:16px; font-size:10px; background:rgba(74,222,128,0.15); color:var(--green); padding:3px 8px; border-radius:5px; font-weight:700; }
.pick-icon{ width:40px; height:40px; border-radius:10px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.pick-icon svg{ width:19px; height:19px; color:var(--gold-2); }
.pick-card h3{ font-size:15.5px; margin-bottom:6px; }
.pick-card p{ font-size:12.5px; color:var(--text-low); line-height:1.55; }

.describe-row{
  margin-top:16px; padding:16px 18px; border:1px dashed var(--line); border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:space-between; color:var(--text-mid); font-size:13.5px;
}
.describe-row svg{ width:16px; height:16px; color:var(--gold-2); margin-right:8px; vertical-align:-3px; }
.lock-tag{ font-size:10.5px; color:var(--text-low); border:1px solid var(--line); padding:2px 7px; border-radius:5px; display:inline-flex; align-items:center; gap:4px;}

/* ===== MARKETPLACE ===== */
.market-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px; }
.market-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px; display:flex; flex-direction:column; gap:10px; }
.market-card .mc-tags{ display:flex; gap:6px; }
.tag-official{ font-size:10px; background:rgba(212,175,55,0.15); color:var(--gold-2); padding:2px 7px; border-radius:5px; font-weight:700; }
.tag-type{ font-size:10px; background:var(--surface-3); color:var(--text-mid); padding:2px 7px; border-radius:5px; }
.market-card h4{ font-size:14.5px; }
.market-card .mc-desc{ font-size:12px; color:var(--text-low); line-height:1.55; flex:1; }
.market-card .mc-foot{ display:flex; justify-content:space-between; align-items:center; font-size:11.5px; color:var(--text-low); padding-top:8px; border-top:1px solid var(--line-soft); }
.market-card .mc-perf{ color:var(--green); font-family:var(--font-mono); }

/* ===== TRADE VIEW ===== */
.trade-layout{ display:grid; grid-template-columns: 230px 1fr 230px; gap:0; height:calc(100vh - 60px - 52px); margin: -26px -30px -60px; }
.trade-col{ border-right:1px solid var(--line-soft); overflow-y:auto; padding:18px; }
.trade-col:last-child{ border-right:none; }
.trade-search{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:9px 12px; font-size:12.5px; color:var(--text-mid); width:100%; margin-bottom:14px; }
.market-list-item{ padding:11px 10px; border-radius:var(--r-sm); cursor:pointer; margin-bottom:3px; }
.market-list-item:hover{ background:var(--surface-2); }
.market-list-item.active{ background:var(--gold-grad-soft); border:1px solid rgba(212,175,55,0.3); }
.market-list-item .mli-name{ font-size:13px; font-weight:600; margin-bottom:3px; }
.market-list-item .mli-sub{ font-size:11px; color:var(--text-low); }
.trade-center-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:18px; }
.trade-center-head h2{ font-size:18px; }
.trade-center-head .sub{ font-size:12px; color:var(--text-low); margin-top:3px; }
.price-big{ font-family:var(--font-mono); font-size:28px; color:var(--gold-2); font-weight:700; }
.gold-chart-wrap{ height:280px; margin-bottom:20px; }
.order-rail{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px;}
.dir-toggle{ display:flex; gap:8px; }
.dir-btn{ flex:1; padding:12px; text-align:center; border-radius:var(--r-sm); font-weight:700; font-size:13px; border:1px solid var(--line); }
.dir-btn.buy{ color:var(--green); }
.dir-btn.buy.active{ background:rgba(74,222,128,0.12); border-color:rgba(74,222,128,0.4); }
.dir-btn.sell{ color:var(--red); }
.dir-btn.sell.active{ background:rgba(242,85,76,0.12); border-color:rgba(242,85,76,0.4); }
.amount-input-wrap{ position:relative; }
.amount-input-wrap input{ width:100%; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px 14px; font-family:var(--font-mono); font-size:15px; color:var(--text-hi); }
.amount-input-wrap span{ position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--text-low); font-size:12px; }
.position-row{ padding:12px; border:1px solid var(--line); border-radius:var(--r-sm); margin-bottom:8px; font-size:12.5px; }

/* ===== CREDITS ===== */
.billing-toggle{ display:flex; justify-content:center; align-items:center; gap:14px; margin: 6px 0 24px; }
.switch{ width:46px; height:24px; background:var(--surface-2); border:1px solid var(--line); border-radius:20px; position:relative; cursor:pointer; }
.switch::after{ content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:var(--gold-grad); transition:left .15s; }
.switch.on::after{ left:24px; }
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.price-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; position:relative; }
.price-card.popular{ border-color:var(--gold-3); box-shadow:0 0 0 1px rgba(212,175,55,0.2), 0 12px 40px rgba(212,175,55,0.08); }
.popular-tag{ position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--gold-grad); color:#1a1306; font-size:10.5px; font-weight:700; padding:4px 14px; border-radius:20px; letter-spacing:0.5px; }
.price-card .pc-icon{ width:38px; height:38px; border-radius:10px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.price-card .pc-icon svg{ width:18px; height:18px; color:var(--gold-2); }
.price-card h3{ font-size:17px; margin-bottom:4px; }
.price-card .pc-price{ font-family:var(--font-mono); font-size:30px; font-weight:700; color:var(--gold-2); }
.price-card .pc-price span{ font-size:13px; color:var(--text-low); font-weight:400; }
.price-card .pc-cred{ font-size:12px; color:var(--text-low); margin:6px 0 16px; }
.pc-list{ list-style:none; display:flex; flex-direction:column; gap:9px; margin-bottom:20px; }
.pc-list li{ font-size:12.5px; color:var(--text-mid); display:flex; align-items:center; gap:8px; }
.pc-list li svg{ width:13px; height:13px; color:var(--gold-3); flex-shrink:0; }
.daily-credits-card{ margin-top:22px; display:flex; justify-content:space-between; align-items:center; }
.streak-row{ display:flex; gap:8px; margin-top:12px; }
.streak-day{ text-align:center; }
.streak-amt{ width:46px; padding:8px 0; border-radius:8px; background:var(--surface-2); border:1px solid var(--line); font-family:var(--font-mono); font-size:11.5px; color:var(--text-mid); }
.streak-day.today .streak-amt{ background:var(--gold-grad-soft); border-color:var(--gold-3); color:var(--gold-2); }
.streak-label{ font-size:9.5px; color:var(--text-low); margin-top:4px; }

/* ===== SETTINGS ===== */
.settings-card{ margin-bottom:16px; }
.settings-card h3{ display:flex; align-items:center; gap:9px; font-size:15px; margin-bottom:16px; }
.settings-card h3 svg{ width:16px; height:16px; color:var(--gold-2); }
.field-row{ display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line-soft); }
.field-row:last-child{ border-bottom:none; }
.field-label{ font-size:13px; color:var(--text-mid); }
.field-value{ font-family:var(--font-mono); font-size:13px; color:var(--text-hi); }
.plan-row{ display:flex; justify-content:space-between; align-items:center; padding:14px 16px; background:var(--gold-grad-soft); border:1px solid rgba(212,175,55,0.3); border-radius:var(--r-md); margin-bottom:14px; }

/* ===== MODAL / BOT LAUNCHED ===== */
.modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.7); backdrop-filter:blur(3px);
  display:none; align-items:center; justify-content:center; z-index:100;
}
.modal-overlay.show{ display:flex; }
.modal-box{
  width:400px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:32px 28px; text-align:center;
}
.modal-check{
  width:64px; height:64px; border-radius:50%; margin:0 auto 18px;
  background: radial-gradient(circle, rgba(74,222,128,0.18), transparent 70%);
  border:1px solid rgba(74,222,128,0.4);
  display:flex; align-items:center; justify-content:center;
}
.modal-check svg{ width:28px; height:28px; color:var(--green); }
.modal-box h2{ font-family:var(--font-display); font-size:22px; margin-bottom:6px; }
.modal-box .ms{ color:var(--text-low); font-size:13px; margin-bottom:22px; }
.modal-box .ms strong{ color:var(--gold-2); }
.modal-bot-card{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-md); padding:18px; margin-bottom:20px; }
.modal-bot-card .mbc-icon{ width:42px; height:42px; border-radius:10px; background:var(--gold-grad-soft); border:1px solid rgba(212,175,55,0.3); display:flex; align-items:center; justify-content:center; margin:0 auto 10px; }
.modal-bot-card .mbc-icon svg{ width:20px; height:20px; color:var(--gold-2); }

/* responsive-ish minimum */
@media (max-width:1100px){
  .grid-3, .howto-grid, .market-grid, .pricing-grid{ grid-template-columns:repeat(2,1fr); }
  .trade-layout{ grid-template-columns: 1fr; }
  .trade-col:first-child, .trade-col:last-child{ display:none; }
}


/* ============ AJUSTES DE RESPONSIVIDADE MOBILE ============ */
@media (max-width: 768px) {
  /* Altera o grid geral para uma coluna única */
  .app {
    grid-template-columns: 1fr !important;
  }

  /* Transforma a sidebar em menu flutuante (Off-Canvas) */
  .sidebar {
    position: fixed;
    top: 0;
    left: -248px; /* Oculta para a esquerda */
    width: 248px;
    height: 100vh;
    z-index: 100005; /* Fica acima de tudo */
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.8);
    display: flex !important;
  }
  
  /* Classe ativa que desliza a sidebar para dentro da tela */
  .sidebar.open {
    left: 0 !important;
  }

  /* Fundo escurecido atrás do menu lateral */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 100004;
  }
  .sidebar-overlay.show {
    display: block;
  }

  /* Oculta os tickers de cotação para economizar espaço no celular */
  .gold-ticker {
    display: none !important;
  }

  /* Ajusta os espaçamentos da barra de ferramentas superior */
  .topbar {
    padding: 0 16px !important;
    justify-content: space-between;
  }

  /* Exibe o botão hambúrguer de menu (oculto no desktop) */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-mid);
    cursor: pointer;
  }

  /* Reduz os paddings laterais do conteúdo no mobile */
  .view-scroll {
    padding: 16px 16px 80px !important;
  }

  /* Torna a barra de Impersonate compacta e responsiva */
  .impersonate-navbar {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }
  .impersonate-navbar div {
    gap: 8px !important;
    flex-direction: column !important; /* Empilha o texto e o botão */
  }
  .impersonate-navbar a {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }
}

/* Oculta o botão de menu mobile por padrão no desktop */
.mobile-menu-btn {
  display: none;
}
/* ============ ESTILOS GERAIS PARA FORMULÁRIOS (PREDICT X) ============ */

/* Container de cada grupo de campo (label + input) */
.input-group-predict {
    margin-bottom: 20px !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
}

/* Rótulos (Labels) dourados dos campos */
.form-label-gold {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--text-low) !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: left !important;
}

/* Campos de entrada (inputs) escuros e premium */
.input-predict {
    width: 100% !important;
    background-color: var(--surface-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-sm) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--text-hi) !important;
    font-family: var(--font-body) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
    display: block !important;
    margin-top: 6px !important;
}

/* Efeito de foco quando o usuário clica no campo */
.input-predict:focus {
    outline: none !important;
    border-color: var(--gold-3) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2) !important;
    background-color: var(--surface-3) !important;
}

/* Ajuste fino para os cards de formulários centralizados */
.card-form-center {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-lg) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* ============ AJUSTE DE GRADES UNIFICADAS NO MOBILE ============ */
@media (max-width: 768px) {
  /* Força a exibição de apenas 1 coluna empilhada para todos os tipos de grids */
  .pricing-grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .market-grid,
  .howto-grid,
  .strategy-pick-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Ajuste de margem interna dos cards de planos no mobile */
  .price-card {
    padding: 20px !important;
  }
}


/* ============ TABELAS RESPONSIVAS EM CARTÕES NO MOBILE ============ */
@media (max-width: 768px) {
  /* Desativa o comportamento de tabela do navegador */
  .table-predict, 
  .table-predict thead, 
  .table-predict tbody, 
  .table-predict th, 
  .table-predict td, 
  .table-predict tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Esconde o cabeçalho original no mobile */
  .table-predict thead {
    display: none !important;
  }
  
  /* Transforma cada linha em um card com borda inferior */
  .table-predict tr {
    border-bottom: 1px solid var(--line) !important;
    padding: 16px 0 !important;
  }
  .table-predict tr:last-child {
    border-bottom: none !important;
  }
  
  /* Faz cada célula se comportar como uma linha flexível */
  .table-predict td {
    border: none !important;
    padding: 8px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: right !important;
  }
  
  /* Puxa dinamicamente o rótulo traduzido do atributo HTML 'data-label' */
  .table-predict td::before {
    content: attr(data-label);
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--text-low) !important;
    font-weight: 700 !important;
    text-align: left !important;
  }
  
  .table-predict td.text-center {
    text-align: right !important;
  }
}

/* ============ ESPAÇAMENTO PREMIUM GLOBAL PARA CARDS ============ */

/* Sobrescreve as bordas e preenche o card */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Espaçamento interno do Cabeçalho */
.card-header {
  padding: 20px 24px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line-soft) !important;
  display: flex;
  align-items: center;
}

/* Espaçamento interno do Corpo do Card */
.card-body {
  padding: 24px !important;
}

/* Espaçamento interno do Rodapé do Card */
.card-footer {
  padding: 16px 24px !important;
  background: rgba(0,0,0,0.15) !important;
  border-top: 1px solid var(--line-soft) !important;
}

/* Redução de espaçamentos para telas de Celular (Mobile) */
@media (max-width: 768px) {
  .card-header {
    padding: 16px 18px !important; /* Respiro lateral de 18px no cabeçalho */
  }
  .card-body {
    padding: 18px !important; /* Respiro lateral de 18px no corpo */
  }
  .card-footer {
    padding: 12px 18px !important; /* Respiro lateral de 18px no rodapé */
  }
}

/* ============ AJUSTE DE CABEÇALHOS FINANCEIROS (PREDICT X) ============ */

/* Sobrescreve o flexbox horizontal do cabeçalho de card padrão */
.saque-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 24px !important;
  border-bottom: 1px solid var(--line-soft) !important;
}

/* Container das regras de saque */
.saque-rules-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  width: 100% !important;
}

/* Cada regra individual */
.saque-rule-item {
  flex: 1 !important;
  min-width: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Transição de comportamento no Mobile (Celular) */
@media (max-width: 768px) {
  .saque-rules-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .saque-rule-item {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    border-bottom: 1px solid var(--line-soft) !important;
    padding-bottom: 8px !important;
  }
  
  .saque-rule-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  /* Faz o input de saque e o botão de submit empilharem verticalmente no celular */
  .saque-form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .saque-form-row button {
    width: 100% !important;
    height: 48px !important;
  }
}


/* ============ AJUSTE DE CABEÇALHO DE CARTEIRAS (PREDICT X) ============ */

/* Classe base para o cabeçalho das carteiras */
.bancos-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Transição de comportamento no Mobile (Celular) */
@media (max-width: 768px) {
  .bancos-header {
    flex-direction: column !important; /* Empilha verticalmente o título e o botão */
    align-items: flex-start !important;
    gap: 14px !important;
  }
  
  /* Faz o botão ocupar toda a largura da linha de forma limpa */
  .bancos-header a {
    width: 100% !important;
    justify-content: center !important;
    height: 40px !important;
  }
}

/* ============ CONFIGURAÇÃO DE GRADES ESPECIAIS (5 COLUNAS) ============ */
.grid-5 {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

/* Regra responsiva para celulares (Mobile) */
@media (max-width: 991px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr) !important; /* Em tablets, exibe 3 colunas */
  }
}

@media (max-width: 768px) {
  .grid-5 {
    grid-template-columns: 1fr !important; /* Em celulares, empilha tudo em 1 coluna */
    gap: 16px !important;
  }
}

/* ============ PROGRESSO EM BARRA DE OURO METÁLICA (PREDICT X) ============ */

/* Cavidade externa da barra */
.gold-bar-track {
  width: 100%;
  height: 24px;
  background: #080603 !important;
  border: 1px solid #3a3018 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.9) !important;
  margin: 14px 0;
  box-sizing: border-box;
}

/* O preenchimento metálico da barra de ouro */
.gold-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a6212 0%, #B8860B 25%, #D4AF37 50%, #F4D77A 75%, #FFF3CE 100%) !important;
  border-radius: 12px !important;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45) !important;
}

/* Reflexo vidrado na parte superior da barra para efeito de profundidade 3D */
.gold-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%) !important;
  border-radius: 12px 12px 0 0 !important;
}

/* Ponto de fusão/brilho pulse na ponta do progresso da barra */
.gold-bar-sparkle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #ffffff, 0 0 16px #F4D77A !important;
  animation: gold-pulse 1.8s infinite ease-in-out;
}

@keyframes gold-pulse {
  0% { transform: translateY(-50%) scale(0.9); opacity: 0.8; }
  50% { transform: translateY(-50%) scale(1.3); opacity: 1; box-shadow: 0 0 12px #ffffff, 0 0 24px #F4D77A !important; }
  100% { transform: translateY(-50%) scale(0.9); opacity: 0.8; }
}

