/* ========= BASE ========= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
html,body{
  height:100%;
}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#f1f5f9;
  color:#0f172a;
}

/* ========= TOPO ========= */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:#0f172a;
  color:#e5e7eb;
  box-shadow:0 4px 12px rgba(15,23,42,.6);
}
.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
}
.logo{
  display:flex;
  align-items:baseline;
  gap:4px;
  font-weight:700;
  letter-spacing:.04em;
}
.logo-main{
  font-size:20px;
}
.logo-dot{
  font-size:14px;
  color:#38bdf8;
}
.menu a{
  color:#e5e7eb;
  text-decoration:none;
  margin-left:16px;
  font-size:14px;
  opacity:.85;
}
.menu a:hover{
  opacity:1;
}

/* ========= LAYOUT GERAL ========= */
.page{
  max-width:1200px;
  margin:24px auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 260px;
  grid-gap:20px;
}

/* SIDE BANNERS */
.sidebar-left,
.sidebar-right{
  display:flex;
}
.ad-card{
  border-radius:16px;
  border:1px dashed rgba(148,163,184,.7);
  background:#f8fafc;
  padding:16px;
  text-align:center;
  color:#64748b;
  width:100%;
}
.ad-label{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#0f172a;
}

/* ========= CONTEÚDO CENTRAL ========= */
.content{
  min-width:0;
}
.hero h1{
  font-size:26px;
  margin-bottom:6px;
  color:#0f172a;
}
.hero p{
  font-size:14px;
  color:#64748b;
  max-width:640px;
}

/* CARD PRINCIPAL */
.card-main{
  margin-top:16px;
  margin-bottom:18px;
  padding:20px 18px;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  border:1px solid rgba(148,163,184,.35);
}
.card-main h2{
  font-size:18px;
  margin-bottom:12px;
}

/* CAMPO DO E-MAIL */
.email-box{
  display:flex;
  align-items:stretch;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #cbd5f5;
  background:#f8fafc;
}
#emailField{
  flex:1;
  border:none;
  padding:10px 12px;
  font-size:14px;
  color:#0f172a;
  background:transparent;
}
#emailField::placeholder{
  color:#9ca3af;
}
.btn-icon{
  border:none;
  background:#0f172a;
  color:#f9fafb;
  width:44px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.btn-icon:disabled{
  opacity:.4;
  cursor:not-allowed;
}

/* TOKEN */
.token-box{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  font-size:13px;
  color:#1e293b;
}
.token-label{
  font-weight:600;
  margin-bottom:4px;
}
.token-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}
#tokenText{
  font-family:monospace;
  font-size:13px;
}

/* BOTÕES GENÉRICOS */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-xs,
.btn-full{
  border-radius:999px;
  border:1px solid transparent;
  padding:9px 16px;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:.18s ease;
}
.btn-primary{
  background:#2563eb;
  border-color:#2563eb;
  color:#f9fafb;
}
.btn-primary:hover{
  background:#1d4ed8;
}
.btn-secondary{
  background:#e5e7eb;
  border-color:#e5e7eb;
  color:#111827;
}
.btn-secondary:hover{
  background:#d1d5db;
}
.btn-outline{
  background:transparent;
  border-color:#94a3b8;
  color:#0f172a;
}
.btn-outline:hover{
  border-color:#0f172a;
}
.btn-xs{
  padding:4px 10px;
  font-size:12px;
}
.btn-full{
  width:100%;
}

/* AÇÕES */
.actions{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* STATUS */
.status{
  margin-top:10px;
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
}
.status-info{
  background:#eff6ff;
  color:#1d4ed8;
}
.status-success{
  background:#ecfdf5;
  color:#15803d;
}
.status-error{
  background:#fef2f2;
  color:#b91c1c;
}

/* ========= CAIXA DE ENTRADA ========= */
.inbox-wrapper{
  margin-top:8px;
  padding:16px 18px;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  border:1px solid rgba(148,163,184,.35);
}
.inbox-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.inbox-header h3{
  font-size:16px;
}
.inbox-layout{
  display:flex;
  min-height:220px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  background:#f8fafc;
}

/* LISTA DE MENSAGENS */
.inbox-list{
  width:38%;
  max-width:280px;
  border-right:1px solid #e2e8f0;
  background:#f9fafb;
  overflow-y:auto;
}
.inbox-empty{
  padding:18px;
  font-size:13px;
  color:#64748b;
}
.inbox-item{
  padding:8px 10px;
  border-bottom:1px solid #e5e7eb;
  cursor:pointer;
  background:#f9fafb;
}
.inbox-item:hover{
  background:#e5e7eb;
}
.inbox-item-active{
  background:#dbeafe;
}
.inbox-item-from{
  font-size:12px;
  color:#0f172a;
  font-weight:600;
  margin-bottom:2px;
}
.inbox-item-subject{
  font-size:12px;
  color:#4b5563;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.inbox-item-date{
  font-size:11px;
  color:#9ca3af;
  margin-top:2px;
}

/* VISUALIZAÇÃO */
.inbox-view{
  flex:1;
  padding:12px 14px;
  overflow-y:auto;
  background:#ffffff;
}
.inbox-view-placeholder{
  font-size:13px;
  color:#94a3b8;
  padding:16px;
}
.inbox-view-header{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  font-size:12px;
  color:#4b5563;
  margin-bottom:8px;
}
.inbox-view-subject{
  font-size:15px;
  margin-bottom:8px;
  color:#0f172a;
}
.inbox-view-body{
  font-size:13px;
  line-height:1.5;
  color:#111827;
}

/* ========= SEÇÕES TEXTO ========= */
.info,
.faq{
  margin-top:22px;
  padding:16px 18px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid rgba(148,163,184,.25);
}
.info h3,
.faq h3{
  margin-bottom:10px;
  font-size:16px;
}
.info ol{
  margin-left:18px;
  font-size:13px;
  color:#4b5563;
}
.info ol li{
  margin-bottom:6px;
}
.faq p{
  font-size:13px;
  color:#4b5563;
  margin-bottom:10px;
}

/* ========= MODAL ========= */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:50;
}
.modal-backdrop.is-open{
  display:flex;
}
.modal{
  width:100%;
  max-width:420px;
  background:#ffffff;
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow:0 20px 48px rgba(15,23,42,.45);
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.modal-header h2{
  font-size:18px;
}
.modal-close{
  border:none;
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.modal-body p{
  font-size:13px;
  color:#4b5563;
  margin-bottom:10px;
}
.modal-body label{
  display:block;
  font-size:13px;
  margin-bottom:8px;
}
.modal-body input[type="text"]{
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid #cbd5e1;
  font-size:13px;
}
.modal-body input[type="text"]:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 1px rgba(37,99,235,.4);
}
.recover-result{
  margin-top:10px;
  font-size:13px;
  border-radius:10px;
  padding:8px 10px;
}
.rr-ok{
  background:#ecfdf5;
  color:#15803d;
}
.rr-error{
  background:#fef2f2;
  color:#b91c1c;
}
.rr-header div{
  margin-bottom:3px;
}

/* ========= RESPONSIVO ========= */
@media (max-width: 960px){
  .page{
    grid-template-columns: minmax(0,1fr);
  }
  .sidebar-left,
  .sidebar-right{
    order:3;
  }
}

@media (max-width: 720px){
  .card-main,
  .inbox-wrapper,
  .info,
  .faq{
    padding:14px 12px;
  }
  .inbox-layout{
    flex-direction:column;
  }
  .inbox-list{
    width:100%;
    max-width:none;
    max-height:180px;
  }
  .inbox-view{
    min-height:180px;
  }
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .menu a{
    margin-left:0;
    margin-right:12px;
  }
}

/* ===== BANNER TOPO + SLIDE ===== */
.top-ads{
  background: linear-gradient(to right,#0f172a,#020617);
  padding: 8px 16px 4px;
  box-shadow: 0 10px 30px rgba(15,23,42,.35);
}
.top-ads-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 16px;
  align-items: center;
}
.top-ads-slider{
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  background: rgba(15,23,42,.9);
  font-size: 13px;
  color: #e5e7eb;
}
.top-ads-slide{
  padding: 6px 14px;
  animation: topSlide 15s linear infinite;
  white-space: nowrap;
}
@keyframes topSlide{
  0%,30%   { transform: translateY(0%); }
  33%,63%  { transform: translateY(-100%); }
  66%,96%  { transform: translateY(-200%); }
  100%     { transform: translateY(0%); }
}
.top-ads-banner{
  min-height: 60px;
}

/* Ajuste responsivo do topo */
@media (max-width: 900px){
  .top-ads-inner{
    grid-template-columns: 1fr;
  }
}

/* Opcional: garantir que os cards de anúncio ocupem bem o espaço */
.sidebar-left .ad-card,
.sidebar-right .ad-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
}
.sidebar-left .ad-card ins,
.sidebar-right .ad-card ins{
  width:100%;
}
/* ===========================
   SLIDE DE ANÚNCIOS
=========================== */

.slide-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 20px auto;
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.slide-container {
  display: flex;
  transition: transform .5s ease;
}

.slide-item {
  flex: 0 0 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 18px;
  background: linear-gradient(to right,#dbeafe,#e0f2fe);
  color: #0f172a;
  font-weight: 600;
  border-radius: 10px;
  margin: 0 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

/* Bolinhas */
.slide-dots {
  text-align: center;
  margin-top: 8px;
}
.slide-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 4px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
}
.slide-dots .active {
  background: #0284c7;
}

/* Botões (setas) */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 7px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 22px;
  transition: background .3s;
}
.slide-btn:hover {
  background: rgba(0,0,0,0.6);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* MOBILE */
@media (max-width: 600px){
  .slide-item {
    font-size: 15px;
    margin: 0 3px;
  }
  .slide-btn {
    font-size: 18px;
    padding: 5px 8px;
  }
}
