/* =============== Tokens =============== */
:root{
  --green-900:#013220;
  --green-700:#116b2b;
  --green-500:#2da24b;
  --green-200:#bfe5c9;
  --yellow-500:#FFD700;
  --yellow-600:#e6c200;
  --red-500:#e43a2f;
  --bg:#eef1ec;
  --white:#fff;
  --shadow:0 6px 18px rgba(0,0,0,.12);

  --radius-12:12px;
  --radius-18:18px;
  --radius-24:24px;

  --gap-8:8px;
  --gap-12:12px;
  --gap-16:16px;
  --gap-24:24px;
  --gap-32:32px;

  --font-primary:'Montserrat', system-ui, -apple-system, sans-serif;
  --font-display:'Space Grotesk', var(--font-primary);

  --container: 1040px; /* max content width desktop */
}

/* =============== Base =============== */
*{ box-sizing:border-box; }
html,body{ height: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--green-900);
  font-family: var(--font-primary);
}

.container{
  max-width: var(--container);
  margin-inline:auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

body.dash {
    padding-bottom: 90px; /* altura média da bottom nav */
}
@media (min-width: 480px) {
    body.dash {
        padding-bottom: 100px;
    }
}

/* =============== Topbar =============== */
.topbar{
  position: sticky; top:0; z-index:20;
  background: var(--green-900);
  color: var(--white);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--gap-16);
  padding: 10px clamp(16px, 3vw, 32px);
}

.brand img{ height: 40px; display:block; } /* menor no mobile */


.nav-link{
  color: #ffffff;
  text-decoration:none;
  font-weight:600;
}

.btn{
  border:0; cursor:pointer; border-radius: 999px;
  padding: 10px 18px; font-weight:700;
  font-family: var(--font-primary);
}
.btn--ghost{
  background: transparent; color: var(--white);
  outline:1px solid rgba(255,255,255,.6);
}
.btn--solid{
  background: var(--yellow-500); color: var(--green-900);
}
.btn--chip{
  background: var(--green-500); color: var(--white);
  padding: 8px 14px; font-size: 14px;
}
.btn--cta{
  background: var(--yellow-500); color: var(--green-900);
}
.btn--cta:hover{ background: var(--yellow-600); }
.btn--tag{
  background: var(--green-700); color: var(--white);
  padding: 8px 14px; border-radius: 12px; font-weight:700;
}
.btn--store{
  background: var(--white); color: var(--green-900);
  padding: 10px 16px; border-radius: 12px; font-weight:700;
}
.btn.wide{ width:100%; }


/* Força a herança da fonte primária em todos os botões e labels */
button,
.bn-label,
.bn-item,
.btn {
  font-family: var(--font-primary) !important;
}

/* desktop maior (opcional) */
@media (min-width: 1200px){
  .brand img{ height: 60px; }
}

/* =============== Layout principal =============== */
.dash{
  display:grid;
  grid-template-areas:
    "topbar"
    "content"
    "footer";
  grid-template-rows: auto 1fr auto;
}

.content{ grid-area: content; display:grid; gap: var(--gap-12); padding-block: 50px; }

/* =============== Blocos =============== */
.card{
  background: var(--white);
  border-radius: var(--radius-18);
  box-shadow: var(--shadow);
}

.hero img{
  width:100%; height:auto; display:block;
  border-radius: var(--radius-18);
}

.live-quote{
  display:grid; grid-template-columns: 1fr; gap: var(--gap-12);
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  background: var(--green-500); color:var(--white);
  padding: 10px 16px; border-radius: 999px; font-weight:700;
  width: max-content;
}
.pill--right{
  background: transparent; color: var(--green-900);
  font-weight:700; padding:0; border-radius:0; width:auto;
}


.grid-two{
  display:grid; gap: var(--gap-24);
}
.card--highlight{
  background: var(--red-500);
  color: var(--white);
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: var(--radius-18);
  position: relative;           /* permite posicionar filhos */
  overflow: hidden;             /* esconde a imagem fora do raio */
}

.card--highlight.has-media .card-bg{
  position: absolute;
  inset: 0;                     /* top/right/bottom/left = 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;            /* cobre todo o card */
  object-position: center;      /* centraliza conteúdo */
  filter: none;                 /* ajuste se quiser aplicar blur/escurecer */
}

.card--highlight.has-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.0) 35%,
    rgba(0,0,0,0.45) 100%
  );
}

.card--highlight .card-cta{
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 14px;
  padding-inline: 18px;
}

.card--highlight .card-cta{
  z-index: 1;
}

.faq{ padding: 16px; }
.faq-head{
  display:inline-flex; align-items:center; gap:10px;
  background: var(--green-700); color:#fff;
  padding: 10px 16px; border-radius: 12px; font-weight:700;
  margin-bottom: 12px;
}
.faq-item{
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  margin: 10px 0; overflow:hidden;
}
.faq-item > summary{
  list-style:none; cursor:pointer; padding:14px 16px; font-weight:700;
  position:relative;
}
.faq-item > summary::marker{ display:none; }
.faq-item[open] > summary{ background:#f0f5f0; }
.faq-body{ padding: 14px 16px; color:#3d3d3d; }

/* CTA linha abaixo do FAQ/cassino */
.cta-row{ display:flex; justify-content:flex-end; }
.cta-row .btn{ border-radius: 14px; }

/* =============== Footer =============== */
.footer{
  grid-area: footer; background: var(--green-900); color: var(--white);
  padding-block: 36px; margin-top: 24px; 
}
.footer-grid{
  display:grid; gap: var(--gap-24);
}
.brand-foot h4{
  margin:0 0 8px 0; font-family: var(--font-display); 
}
.muted{ opacity:.85; margin:0; }
.footer-links{
  list-style:none; padding:0 0 60px 0; margin:0; display:grid; gap: 8px;
}
.footer-links a{ color: #d2f0db; text-decoration:none; }

.store-link {
  text-decoration: none;      /* remove underline azul */
  border: none;
  outline: none;
}

.store-link:focus,
.store-link:active {
  outline: none;
}

/* =============== Breakpoints =============== */
/* >= 768 (tablet) */
@media (min-width: 768px){
  .hamburger{ display:none; }
  .odds{
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two{
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr 1fr;
    align-items:start;
  }
}

/* >= 1200 (desktop / 1920 container center) */
@media (min-width: 1200px){
  .odds{
    grid-template-columns: repeat(4, 1fr);
  }
  .live-quote{
    grid-template-columns: 1fr 1fr;
    align-items:center;
  }
}

/* =============== Modais =============== */
.modal{
  display:none; position:fixed; inset:0;
  background: rgba(0,0,0,.6);
  z-index:1000;
  justify-content:center; align-items:center;
}
.modal.is-open{ display:flex; }

.modal-content{
  background: var(--green-900);
  color:#fff;
  width:min(380px, 92vw);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position:relative;
  animation: fadeIn .25s ease;
}
.modal-content--blue{ background:#004b8d; }

.closeBtn{
  position:absolute; top:10px; right:14px;
  width:36px; height:36px; border-radius:50%;
  border:0; background:transparent; color:#fff; font-size:24px; cursor:pointer;
}
.login-box .icon-lock{ font-size:40px; color: var(--yellow-500); }
.modal h2{ margin: 6px 0 2px 0; color: var(--yellow-500); font-family: var(--font-display); }
.modal .subtitle{ color:#cdd8cf; margin:0 0 12px 0; }

.modal form{ display:grid; gap: 10px; margin-top: 10px; }
.modal input{
  padding: 12px 14px; border:0; border-radius: 999px; outline: none;
}
.register-text{ color:#d7e6db; margin-top: 10px; }
.register-text a{ color: var(--yellow-500); text-decoration:none; font-weight:700; }

/* === Paleta e tipografia (MODAL) === */
:root{
  --deep-green:#0f3a1f;
  --accent-green:#2da24b;
  --brand-yellow:#FFD700;
  --text-muted:#cfd6cf;
  --panel-radius:28px;
  --shadow-xl:0 18px 40px rgba(0,0,0,.35);
}

/* === Overlay do modal === */
.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.65);
  z-index:1000;
  display:none; align-items:center; justify-content:center;
}
.modal.is-open{ display:flex; }

/* === Painel do modal === */
.modal-panel{
  width:min(440px, 92vw);
  background: var(--deep-green);
  color:#fff;
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-xl);
  padding: 34px 28px 22px;
  position:relative;
  outline:2px solid var(--accent-green);
}

/* botão X */
.closeBtn{
  position:absolute; top:10px; right:12px;
  width:36px; height:36px; border-radius:50%;
  background: transparent; color:#fff; border:0;
  font-size:24px; cursor:pointer;
}

/* topo com círculo amarelo e ícone */
.modal-hero{
  display:grid; place-items:center; margin-top:4px; margin-bottom:14px;
}
.modal-hero svg{
  width:64px; height:64px; padding:14px; border-radius:999px;
  background: var(--brand-yellow); fill: var(--deep-green);
}

/* títulos */
.modal-title{
  margin: 6px 0 2px;
  font-family: var(--font-display);
  color: var(--brand-yellow);
  font-size: clamp(22px, 2.2vw, 28px);
  text-align:center;
  font-weight: 700;
}
.modal-subtitle{
  text-align:center; color: var(--text-muted);
  margin: 0 0 12px;
}

/* formulário */
.modal-form{ display:grid; gap: 12px; margin-top: 8px; }
.modal-form label{ font-size: 13px; color:#e9efe9; font-weight:600; }
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"]{
  background:#fff; color:#1b1b1b;
  border:0; border-radius:999px;
  padding: 12px 16px; font-size: 15px; outline:none;
  box-shadow: 0 2px 0 rgba(0,0,0,.05) inset;
}
.modal-form input::placeholder{ color:#a8a8a8; }

/* checkbox */
.chk{ display:flex; align-items:flex-start; gap:10px; font-size:14px; color:#e9efe9; }
.chk a{ color: var(--brand-yellow); text-decoration:none; font-weight:700; }

/* botão principal */
.btn--primary{
  background: var(--brand-yellow); color: var(--deep-green);
  font-weight: 800; border-radius: 16px; padding: 12px 16px;
}
.btn--primary:hover{ filter: brightness(.95); }
.btn--wide{ width:100%; }
.btn--icon{ display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.btn-ico{ font-size:18px; }

/* separador e troca */
.modal-sep{ margin: 16px 0 10px; border:0; border-top:1px solid rgba(255,255,255,.2); }
.modal-switch{ text-align:center; color:#e9efe9; }
.modal-switch a{ color: var(--brand-yellow); font-weight:800; text-decoration:none; }


/* ===== COTAÇÕES (slider) ===== */
.cotacoes{ margin-top: 20px; }
.cotacoes-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:#eeffef; padding:10px 12px; border-radius:10px;
}
.cotacoes-title{
  font-family: var(--font-display);
  font-weight:800; color:#0f3a1f; letter-spacing:.2px; margin:0;
}
.btn-seeall{
  background:#004d04; color:#fff; text-decoration:none;
  font-weight:900; padding:8px 14px; border-radius:8px;
  display:inline-flex; align-items:center; gap:8px;
}
.btn-seeall:hover{ filter:brightness(.95); }

/* shell */
.cot-slider{
  position: relative;
  margin-top: 10px;
  overflow: hidden;
}
.cot-slider .viewport{
  width: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
}
.cot-slider .viewport::-webkit-scrollbar{ display: none; }

.cot-slider .track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  padding: 8px 2px;
}

/* card (MOBILE BASE) */
.cot-card{
  scroll-snap-align: center; scroll-snap-stop: always;
  background:#fff; border-radius:14px;
  padding:30px;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  min-height:124px; position:relative;
}
.cot-name{
  color:#0f3a1f; font-weight:600; font-size:1.2rem; text-align:center; line-height:0.6;
}
.cot-price{
  color:#0f3a1f; font-weight:900; font-size:2rem; text-align:center;
}
.cot-cta{
  margin-top:auto;
  background:#FFD700; color:#0f3a1f; font-weight:900;
  border:0; border-radius:100px; padding:10px 44px; cursor:pointer;
  box-shadow: 0 8px 10px rgba(0,0,0,.12);
}
.cot-cta:hover{ filter:brightness(.95); }

/* breakpoints do slider */
@media (min-width:700px){
  .cot-slider .track{ grid-auto-columns: 50%; }
  .cot-card{ padding:24px; min-height:160px; }
  .cot-name{ font-size:1.4rem; }
  .cot-price{ font-size:1.3rem; }
}
@media (min-width:1024px){
  .cot-slider .track{ grid-auto-columns: 25%; }
  .cot-card{ padding:28px; min-height:180px; }
  .cot-name{ font-size:1.25rem; }
  .cot-price{ font-size:1.4rem; }
}


/* proteção de overflow global */
html, body { width:100%; max-width:100%; overflow-x:hidden; }


/* slider contido */
.cot-slider{ overflow:hidden; }
.cot-slider .viewport{
  width:100%;
  overflow-x:auto; overflow-y:hidden;
  -ms-overflow-style:none; scrollbar-width:none;
}
.cot-slider .viewport::-webkit-scrollbar{ display:none; }
.cot-slider .track{
  display:grid; grid-auto-flow:column; grid-auto-columns:100%;
  gap:14px; padding:8px 2px; max-width:100%;
}
@media (min-width:700px){ .cot-slider .track{ grid-auto-columns:50%; } }
@media (min-width:1024px){ .cot-slider .track{ grid-auto-columns:25%; } }

/* previne itens estourarem em grids/flex */
.topbar, .topbar-inner, .container, .content { max-width:100%; }
.content *, .topbar-inner * { min-width:0; }

.actions{ display:flex; align-items:center; gap:12px; }

/* alternância por estado de autenticação */
body[data-auth="guest"] .auth-user{ display:none; }
body[data-auth="guest"] .auth-guest{ display:flex; gap:12px; }
body[data-auth="user"]  .auth-guest{ display:none; }
body[data-auth="user"]  .auth-user{ display:flex; align-items:center; gap:14px; }

/* sino + badge */
.btn-icon{
  position:relative; border:0; background:transparent; color:#fff;
  width:40px; height:40px; border-radius:999px; display:grid; place-items:center;
  outline:1px solid #ffd000;
}
.badge{
  position:absolute; top:-4px; right:-4px;
  background:#ff4a4a; color:#fff; font-size:11px; font-weight:800;
  min-width:18px; height:18px; border-radius:999px; display:grid; place-items:center;
  padding:0 4px; outline:2px solid var(--green-900);
}

/* botão carteira / saldo */
.btn-wallet{
  display:inline-flex; align-items:center; gap:10px;
  background:transparent; color:#fff; border:0;
  padding:8px 14px; border-radius:12px;
  outline:1px solid #ffd000;
  font-weight:800;
}
.btn-wallet .wallet-amount{ white-space:nowrap; }
.btn-wallet .caret{ opacity:.9; }

/* popover */
.wallet{ position:relative; }

/* posição você já tem: .wallet { position:relative } */
.wallet-popover{
  position:absolute; right:0; top:46px;
  width:min(340px, 92vw);
  background:#0b2c1c; color:#fff; border-radius:14px;
  box-shadow: var(--shadow);
  padding:14px; z-index:50; outline:1px solid rgba(255,255,255,.15);

  /* animação */
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}


/* aberta */
.wallet-popover.is-open{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.wallet-head{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;
}
.wallet-exit{
  background:transparent; color:#ffd700; border:0; font-weight:800; cursor:pointer;
}
.card-line{
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(255,255,255,.06); border-radius:10px; padding:10px 12px; margin-bottom:10px;
}
.wallet-list{ list-style:none; padding:0; margin:8px 0 12px; display:grid; gap:6px; }
.wallet-list li{ display:flex; align-items:center; justify-content:space-between; }
.wallet-link{ display:inline-flex; align-items:center; gap:8px; margin-top:10px; color:#ffd700; font-weight:700; text-decoration:none; }

/* estados de autenticação (consolidado) */
.auth-user{ display:none; }
.auth-guest{ display:none; }

body[data-auth="guest"] .auth-guest{ display:flex; gap:12px; }
body[data-auth="user"]  .auth-user { display:flex; align-items:center; gap:14px; }

/* ================== BOTTOM NAV (mobile-first) ================== */

.bn-item, .bn-fab{
  appearance:none; border:0; background:transparent; color:#fff;
  display:grid; place-items:center; gap:4px; padding:6px 4px;
  text-decoration:none; cursor:pointer;
}
.bn-ico{ font-size:18px; line-height:1; }
.bn-label{ font-size:12px; font-weight:700; }

/* Ícones do bottom nav */
.bn-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.bn-ico img, .bn-ico svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Alinhamento geral */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green-900);
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 50;
}

.bn-item, .bn-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
}


.bn-label {
  font-size: 12px;
  font-weight: 600;
}

/* FAB central destacado */
.bn-fab{
  background: var(--yellow-500); color: var(--green-900);
  border-radius: 16px 16px 16px 16px;
  padding: 8px 10px 10px;
  margin-top: -26px;                /* fica mais alto */
  box-shadow: 0 -4px 14px rgba(0,0,0,.18);
}

/* ================== BOTTOM SHEET (Jogar) ================== */
/* ===== Bottom Sheet — moderno, com animação ===== */
:root{
  /* altura da bottom-nav para o sheet NÃO cobrir o menu */
  --bottom-nav-h: 63px;
}

/* container do sheet */
.sheet{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;                /* fechado */
}

/* abre/fecha via classe */
.sheet.is-open{ display: block; }

/* overlay não cobre a bottom-nav */
.sheet-overlay{
  position: absolute;
  left: 0; right: 0; top: 0;
  bottom: var(--bottom-nav-h);  /* deixa a barra sempre visível */
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .28s ease;
}

/* painel sai de cima da bottom-nav, não por cima */
.sheet-panel{
  position: absolute;
  left: 20px; right: 20px;
  bottom: var(--bottom-nav-h);  /* encosta no topo da bottom-nav */
  background: #ffffff00;
  color: #0f3a1f;
  border-radius: 18px 18px 0px 0;
  box-shadow: 0 -18px 40px rgba(0,0,0,.28);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(16px);  /* pequeno offset (estado fechado) */
  opacity: 0;
  will-change: transform, opacity;
  transition: transform .34s cubic-bezier(.22,.9,.24,1),
              opacity .22s ease;
}

/* estado aberto (aplicado automaticamente pelo JS existente) */
.sheet.is-open .sheet-overlay{ opacity: 1; }
.sheet.is-open .sheet-panel{
  transform: translateY(0);
  opacity: 1;
}

/* handle e título */
.sheet-handle{
  height: 5px; width: 44px;
  background: #d7d7d7; border-radius: 999px;
  margin: 6px auto 10px;
}
.sheet-title{
  margin: 4px 0 10px;
  font-family: var(--font-display);
  color: hsl(0, 0%, 100%);
  font-weight: 800;
}

/* lista + itens com ícone */
.sheet-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sheet-link{
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f2f5f2;
  border-radius: 12px;
  text-decoration: none;
  color: #0f3a1f;
  font-weight: 800;
  outline: 2px solid transparent;
  transition: transform .12s ease, filter .12s ease, outline-color .12s ease;
}
.sheet-link:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
}
.sheet-link:focus-visible{
  outline-color: #2ea84b;
}

/* desktop: pode virar um popover central (opcional) */
@media (min-width: 1024px){
  .sheet-overlay{
    bottom: 0;                   /* no desktop, sem bottom-nav fixa */
  }
  .sheet-panel{
    left: 50%; transform: translate(-50%, 12px);
    width: 520px; bottom: auto; top: 10%;
  }
  .sheet.is-open .sheet-panel{ transform: translate(-50%, 0); }
}


/* ================== SIDEBAR (off-canvas) ================== */
.sidebar{ position:fixed; inset:0; display:none; z-index:1100; }
.sidebar.is-open{ display:block; }
.sidebar-overlay{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.sidebar-panel{
  position:absolute; left:0; top:0; bottom:0; width:min(320px, 90vw);
  background:#072a1c; color:#fff; box-shadow: 8px 0 30px rgba(0,0,0,.25);
  padding: 16px 14px; overflow:auto;
}
.sidebar-head{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;
}
.side-logo{ font-family: var(--font-display); font-weight:800; }
.side-close{
  background:transparent; border:0; color:#fff; font-size:26px; cursor:pointer;
}
.side-list{ list-style:none; padding:6px 0 18px; margin:0; display:grid; gap:6px; }
.side-link{
  display:block; color:#fff; text-decoration:none; padding:10px 12px; border-radius:10px;
  outline:1px solid rgba(255,255,255,.08);
}

/* garante que hidden realmente esconda (evita clique fantasma) */
.sidebar[hidden],
.sheet[hidden] { display: none !important; }

/* overlay sempre clicável por cima do conteúdo da página */
.sidebar { z-index: 1100; }
.sidebar-overlay { z-index: 0; }
.sidebar-panel   { z-index: 1; position: absolute; } /* já está, aqui só fixa a ordem */

.side-link:hover, .side-link.is-active{ background: rgba(255,255,255,.08); }

/* ================== Desktop: esconde bottom-nav, mostra hambúrguer ================== */
.desk-only{ display:none; }  /* escondido por padrão */
@media (min-width: 1024px){
  .bottom-nav{ display:none !important; } /* <— adiciona !important */
  .desk-only{ display:inline-grid; }
  .hamburger{ width:40px; height:34px; background:transparent; border:0; gap:5px; }
  .hamburger span{ display:block; height:3px; background:#fff; border-radius:2px; }
}

/* ===== HERO SLIDER (1 por vez em todas as larguras) ===== */
/* remover padding e sombra do card para o banner ocupar 100% */
.hero.no-pad { padding: 0; background: transparent; box-shadow: none; }

/* container de rolagem */
.hero .viewport{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hero .viewport::-webkit-scrollbar{ display:none; }

/* faixa de slides: 1 por vez (100%) */
.slider-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;                 /* sem espaçamento entre slides */
}

/* slide e imagem “cheia” */
.slide{
  position: relative;
  width: 100%;
  height: clamp(160px, 28vw, 300px);  /* ajuste a altura */
  scroll-snap-align: center;
}
.slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* ocupa todo o espaço sem bordas */
  border-radius: var(--radius-18); /* mantenha ou remova conforme sua arte */
}

/* Dots */
.slider-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
}
.slider-dots .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  cursor: pointer;
}
.slider-dots .dot.is-active{
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset;
}

.hero-slide img{ height: 320px; object-fit: cover; }
@media (min-width: 1200px){ .hero-slide img{ height: 380px; } }

.hero-slide {
  list-style: none;
}
.hero-slide::marker {
  content: none;
}

/* =============== Novos estilos: Hub de opções =============== */
.hub-head{
  display:grid; gap:5px; margin-bottom: 12px;
}
.welcome-pill{
  display:grid; place-items:center;
  gap: 4px;
  width: max-content;
  margin-inline:auto;
  background:#2da24b;
  color:#fff;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-align:center;
}
.welcome-pill small{ opacity:.9; margin-top:-2px; }

.hub-instrucao{
  text-align:center; margin:8px 0 14px 0; color:#3a513f; font-weight:600;
}

/* Grid dos blocos */
.menu-tiles{
  display:grid;
  grid-template-columns: 1fr 1fr;  /* mobile: 2 col */
  gap: 14px;
}

/* Card/tile */
.tile{
  background: #2da24b;
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration:none;
  padding: 16px;
  display:flex; align-items:center; gap: 12px;
  min-height: 94px;
}
.tile:hover{ filter: brightness(.98); }

.tile-ico{
  width:56px; height:56px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
  flex-shrink:0;
}
.tile-ico img{ width:36px; height:36px; object-fit:contain; display:block; }

.tile-title{
  font-weight:800; line-height:1.2; letter-spacing:.2px;
  font-family: var(--font-primary);
}

/* Tiles largos (ocupam as duas colunas no mobile) */
.tile--wide{
  grid-column: 1 / -1;
}

/* Desktop: 4 colunas e proporções mais estáveis */
@media (min-width: 1024px){
  .menu-tiles{ grid-template-columns: repeat(4, 1fr); }

  /* Mantém os largos ocupando a linha inteira também no desktop */
  .tile--wide{ grid-column: 1 / -1; }
}

/* Esconde elementos quando não logado (guest) */
.only-auth { display: none !important; }

/* Esconde elementos de visitante quando logado */
.only-guest { display: initial; }            /* padrão */
body[data-auth="user"] .only-guest { display: none !important; }

/* Quando logado, libera os elementos "only-auth" */
body[data-auth="user"] .only-auth { display: initial !important; }

/* Se precisar manter display flex/grid, pode usar variantes: */
body[data-auth="user"] .only-auth.flex  { display:flex !important; }
body[data-auth="user"] .only-auth.grid  { display:grid !important; }
/* ou aplique inline: <nav class="only-auth flex"> ... */

/* Oculta o sidebar se não estiver logado */
.sidebar.auth-only {
  display: none;
}

/* Mostra apenas quando logado */
body[data-auth="user"] .sidebar.auth-only {
  display: block;
}

/* Hamburger desktop: só mostra se USER + >=1024px  */
.desk-only{ display:none; }
@media (min-width:1024px){
  body[data-auth="user"] .desk-only{ display:inline-grid; }
}

/* --- NÃO abrir sidebar/sheet só por estar logado --- */
/* sidebar deve aparecer só com .is-open */
.sidebar.only-auth { display: none !important; }
.sidebar.only-auth.is-open { display: block !important; }

/* sheet idem: fica invisível até ganhar .is-open */
.sheet { display: none !important; }
.sheet.is-open { display: block !important; }

/* Sidebar e Sheet NÃO devem abrir só por estar logado */
body[data-auth="user"] aside.sidebar.only-auth { display: none !important; }
body[data-auth="user"] aside.sidebar.only-auth.is-open { display: block !important; }

body[data-auth="user"] .sheet { display: none !important; }
body[data-auth="user"] .sheet.is-open { display: block !important; }

/* ===== BOTTOM NAV — REGRA ÚNICA E FINAL ===== */

/* 0) Nunca mostrar por padrão (mata qualquer regra anterior) */
nav.bottom-nav {
  display: none !important;
}

/* 1) Mostrar SOMENTE quando logado (data-auth="user") E em telas < 1024px */
@media (max-width: 1023px) {
  body[data-auth="user"] nav.bottom-nav {
    display: flex !important; /* sua barra usa flex */
  }
}

/* 2) Esconder SEMPRE no desktop, mesmo se logado (reforço) */
@media (min-width: 1024px) {
  nav.bottom-nav {
    display: none !important;
  }
}

/* 3) Se houver a regra genérica que libera .only-auth quando logado,
      garantimos PRIORIDADE para a bottom-nav continuar oculta no desktop */
@media (min-width: 1024px) {
  body[data-auth="user"] nav.bottom-nav.only-auth {
    display: none !important;
  }
}

/* Padrão: nav escondida */
.nav { display: none !important; }

/* Mobile/Tablet (≤1023px): SEMPRE escondida, mesmo logado */
@media (max-width: 1023px){
  .nav { display: none !important; }
}

/* Desktop (≥1024px): mostrar APENAS se logado */
@media (min-width: 1024px){
  body[data-auth="user"] .nav { 
    display: flex !important; 
    gap: var(--gap-16);
  }
  body[data-auth="guest"] .nav { 
    display: none !important; 
  }
}

/* Top-nav (links): escondida por padrão */
.nav { display: none !important; }

/* Top-nav: só aparece em DESKTOP (≥1024px) e apenas logado */
@media (min-width: 1024px){
  body[data-auth="user"] .nav { 
    display: flex !important;
    gap: var(--gap-24);
  }
  body[data-auth="guest"] .nav { 
    display: none !important;
  }
}

/* Top-nav: sempre oculta em mobile/tablet (≤1023px) */
@media (max-width: 1023px){
  .nav { display: none !important; }
}

/* ===== HAMBURGER (deskHamburger) ===== */

/* 1) Oculto por padrão */
#deskHamburger {
  display: none !important;
}

/* 2) Mostra SOMENTE quando logado E em telas ≥1024px */
@media (min-width: 1024px) {
  body[data-auth="user"] #deskHamburger {
    display: inline-grid !important;
  }
}

/* 3) Garante que não apareça nunca em telas menores */
@media (max-width: 1023px) {
  #deskHamburger {
    display: none !important;
  }
}

/* ===== Topbar (logado): sino + carteira/saldo ===== */

/* espaçamento entre os itens à direita */
.topbar .actions { gap: 10px; }

/* botão do sino */
.btn-icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #FFD700;            /* borda amarela consistente */
  background: rgba(255,255,255,.04);    /* leve fundo p/ destacar no hover */
  color: #fff;
  outline: none;                        /* removemos outline antigo */
}
.btn-icon:hover{
  background: rgba(255,255,255,.08);
}
.btn-icon:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* badge do sino (0, 1, 2...) */
.badge{
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: #ff4a4a;
  color: #fff;
  box-shadow: 0 0 0 2px var(--green-900);  /* anel para destacar no topo verde */
}

/* botão da carteira / saldo */
.btn-wallet{
  height: 44px;                         /* mesma altura do sino */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #FFD700;            /* borda igual ao sino */
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 800;
  outline: none;                        /* em vez de outline usamos border */
}
.btn-wallet:hover{
  background: rgba(255,255,255,.08);
}
.btn-wallet:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn-icon img,
.btn-icon svg,
.btn-wallet img,
.btn-wallet svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.wallet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #ffd700;
  font-weight: 700;
  text-decoration: none;
}

.wallet-link img.wallet-icon {
  width: 18px;  /* mesmo tamanho dos outros ícones */
  height: 18px;
  object-fit: contain;
}


/* microajustes de conteúdo interno do saldo */
.btn-wallet .ico-user{ font-size: 18px; line-height: 1; }
.btn-wallet .wallet-amount{ color: #fff; white-space: nowrap; }
.btn-wallet .caret{ margin-left: 4px; font-size: 12px; opacity: .9; }

/* popover alinhado à nova altura do botão */
.wallet-popover{ top: 50px; } /* 44px do botão + 6px de folga */

.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loader-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.loader-logo {
  width: 110px;
  height: auto;
  margin-bottom: 18px;
  filter: brightness(1.1);
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--yellow-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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


/* ===== Tiles rápidos ===== */
.tiles-quick{
  display: grid;
  grid-template-columns: 1fr 1fr;       /* 2 col no mobile */
  gap: 12px;
}

.tile--quick{
  background: #1c7b2e;                 /* verde vivo para ação */
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  transition: transform .12s ease, outline-color .12s ease, filter .12s ease;
}

.tile--quick:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.tile--quick:focus-visible{
  outline-color: #2ea84b;               /* anel de foco acessível */
}

/* Ícone dentro dos botões da tela de acesso rápido */
.tile--quick .tile-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;

  /* REMOVE o quadrado mais claro */
  background: transparent;
  box-shadow: none;
}

/* Título */
.tile--quick .tile-title{
  font-weight: 800; line-height: 1.15;
  font-family: var(--font-primary);
}

/* Larga (ocupa as duas colunas no mobile; mantém “cheia” no desktop) */
.tile--wide{ grid-column: 1 / -1; }

/* Respeita a bottom-nav no mobile */
@media (max-width: 1023px){
  .content{ padding-bottom: 72px; }
}

/* ===== Estética cápsula (como no print) ===== */

/* cada item tem um "backplate" oval por trás */
.sheet-item{
  position: relative;
  isolation: isolate;               /* garante z-index do filho acima do ::before */
}
.sheet-item::before{
  content:"";
  position:absolute;
  z-index:0;
  left: 6px;
  right: 6px;
  top: 6px;
  bottom: 6px;
  background: #185d2d;              /* verde de fundo (orelhas laterais) */
  border-radius: 999px;             /* formato cápsula */
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* cápsula da frente */
.sheet-link{
  position: relative;
  z-index:1;
  display: grid;
  grid-template-columns: 44px 1fr;  /* ícone + texto */
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1f6f33;              /* verde principal */
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 10px rgba(0,0,0,.12) inset;
  transition: transform .12s ease, filter .12s ease, box-shadow .2s ease;
}
.sheet-link:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.sheet-link:active{
  transform: translateY(0);
  filter: brightness(.98);
}
.sheet-link:focus-visible{
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

/* ícone amarelo (sem quadrado de fundo) */
.sheet-ico{
  width: 44px;
  height: 44px;
  border-radius: 12px;              /* arredondado (fica “invisível”) */
  display: grid;
  place-items: center;
  background: transparent;          /* remove o quadrado mais claro */
}
.sheet-ico img{
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0)); /* limpa artefatos */
}


/* espaçamento geral da lista (um pouco maior) */
.sheet-list{
  display: grid;
  gap: 12px;                         /* distancia entre cápsulas */
}

/* ===== Sheet mais alto e com transição suave ===== */
:root{
  --sheet-maxh: 82vh;        /* quão alto o painel pode subir */
  --sheet-radius: 18px;
}

/* estado fechado (fora da tela) */
.sheet-panel{
  max-height: var(--sheet-maxh);
  margin: 0 auto;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  /* começa lá embaixo e sobe */
  transform: translateY(96%);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* quando abre */
.sheet.is-open .sheet-panel{
  transform: translateY(0);
}

/* handle mais visível e alinhado */
.sheet-handle{
  width: 54px;
  height: 6px;
  background: rgba(0,0,0,.15);
  margin: 8px auto 12px;
  border-radius: 999px;
}

/* animação dos itens quando o sheet abre */
@keyframes sheetAccordionIn{
  0%   { opacity: 0; transform: translateY(8px) scaleY(.96); }
  100% { opacity: 1; transform: translateY(0)   scaleY(1);   }
}

/* aplica ao abrir, com atraso em cascata */
.sheet.is-open .sheet-item{
  opacity: 0;                /* estado inicial antes da animação */
  animation: sheetAccordionIn .32s ease forwards;
}

/* atrasos progressivos (ajuste se tiver mais itens) */
.sheet.is-open .sheet-item:nth-child(1){ animation-delay: .05s; }
.sheet.is-open .sheet-item:nth-child(2){ animation-delay: .10s; }
.sheet.is-open .sheet-item:nth-child(3){ animation-delay: .15s; }
.sheet.is-open .sheet-item:nth-child(4){ animation-delay: .20s; }
.sheet.is-open .sheet-item:nth-child(5){ animation-delay: .25s; }

/* título do sheet */
.sheet-title{
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  margin: 2px 0 10px;
}

/* texto dos links */
.sheet-text{
  font-size: clamp(25px, 6vw, 18px);
  font-weight: 800;
  letter-spacing: .2px;
}

/* se quiser aumentar o “clique”, suba o padding */
.sheet-link{
  padding: 16px 20px;
}

.sheet-item::before{
  box-shadow: 0 12px 20px rgba(0,0,0,.18);
}
.sheet-link{
  box-shadow: 0 5px 12px rgba(0,0,0,.10) inset;
}

/* Stepper simples (herda sua paleta) */
.stepper { display:grid; place-items:center; margin: 8px 0 6px; }
.stepper-list { list-style:none; display:flex; gap:12px; padding:0; margin:0; }
.step { width:28px; height:28px; border-radius:999px; display:grid; place-items:center;
  background:#e8efe9; color:#2a4a38; font-weight:800; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.step.is-current { background: var(--yellow-500); color: var(--green-900); }

/* Estado selecionado de uma modalidade */
.btn-mod.is-selected {
  outline: 2px solid #FFD700;
  filter: brightness(1.02);
}

/* Barra do “Próximo” fixa no fundo da página */
.next-bar{
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, rgba(238,241,236,0) 0%, var(--bg) 32%, var(--bg) 100%);
  padding: 10px 0 14px;
  margin-top: 8px;
  z-index: 5;
}

.modalidades-grid {
  display: grid;
  grid-template-columns: 1fr; /* uma coluna */
  gap: 7px;
  margin-top: 20px;
}

.modalidade-btn {
  background: var(--green-700);
  color: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-family: var(--font-primary);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.modalidade-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.modalidade-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.modal-subtitle1{
  text-align:center;
  font-weight: 700;
  color: #2a4a38;
  margin: 0 0 12px;
}

.modal-row { display:flex; justify-content:flex-end; margin: 8px 0 14px; }
.modal-link { font-size: 14px; text-decoration: underline; cursor: pointer; }
.modal-success { margin-top: 12px; font-size: 14px; opacity: .95; }

.modal-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;

  color: var(--green-200, #b7d6c2); /* ajuste para sua paleta */
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

.modal-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.wa-fab{
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;
}

.wa-icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: #0b1a14;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);

  transform: translateZ(0);
  transition: transform .15s ease, filter .2s ease;
}

.wa-fab:hover .wa-icon{ transform: translateY(-2px); }
.wa-fab:active .wa-icon{ transform: translateY(0); }

.wa-bubble{
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(10,18,15,0.92);
  color: #eaf2ee;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;

  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);

  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease;
}

.wa-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* “setinha” do balão */
.wa-bubble::after{
  content:"";
  position:absolute;
  right: -6px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: rgba(10,18,15,0.92);
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transform: rotate(-45deg);
}

.wa-fab.is-bubble-open .wa-bubble{
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 420px){
  .wa-bubble{ max-width: 120px; font-size: 12.5px; }
}

.bm-pixcopy {
  margin: 14px 0 10px;
  text-align: left;
}

.bm-pixcopy__label {
  display: block;
  font-size: .82rem;
  color: #7a8b7d;
  margin: 0 0 6px;
}

.bm-pixcopy__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bm-pixcopy__input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 0 12px;
  font-size: .9rem;
  background: #f6f7f8;
  color: #1b1f23;
}

.bm-pixcopy__btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #1b1f23;
  font-weight: 600;
  cursor: pointer;
}

.bm-pixcopy__btn:active {
  transform: translateY(1px);
}

.bm-pixcopy__msg {
  margin-top: 8px;
  font-size: .82rem;
  color: #00a889;
  opacity: 0;
  transform: translateY(-4px);
  transition: .18s ease;
}

.bm-pixcopy__msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

