/* ======================================================
   BORA PRO PALPITE — DASHBOARD (BETTING MODERNO - B)
   CSS COMPLETO (DROP-IN / COMPATÍVEL COM SUAS VIEWS)
   - Não renomeia classes existentes
   - Ajustes finos: botões iguais + input date correto
====================================================== */

/* ======================================================
   [01] BASE / VARIÁVEIS
====================================================== */
:root{
  --bg0:#050814;
  --bg1:#070b18;

  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.08);

  --text:#e8edf6;
  --muted:#9aa7bd;

  --gold:#f5c542;
  --gold2:#ffb703;

  --ok:#22c55e;
  --danger:#ef4444;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(245,197,66,.12), transparent 60%),
    radial-gradient(900px 520px at 82% 22%, rgba(34,197,94,.10), transparent 62%),
    radial-gradient(1200px 700px at 50% 18%, rgba(120,140,255,.10), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* ======================================================
   [02] TOPBAR FIXA
====================================================== */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  background: rgba(5,8,20,.78);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  z-index:1000;
}

.brand{
  font-weight:950;
  letter-spacing:.3px;
  color:var(--gold);
}

/* ======================================================
   [03] USER MENU / AVATAR / DROPDOWN
====================================================== */
.user-menu{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

.user-menu:hover{
  border-color: rgba(245,197,66,.22);
  background: rgba(255,255,255,.03);
}

.avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.35);
  color:var(--gold);
  font-weight:900;
  border:1px solid rgba(245,197,66,.28);
  overflow:hidden;
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.user-name{
  font-size:13px;
  font-weight:850;
  color:#fff;
  max-width:140px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.user-caret{ color:#cbd5e1; font-size:12px; }

.dropdown{
  position:absolute;
  top:56px;
  right:0;
  width:220px;
  background: rgba(7,10,24,.98);
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  padding:8px;
  display:none;
  box-shadow: var(--shadow);
}
.dropdown.open{ display:block; }

.dropdown a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#e8edf6;
  font-size:14px;
  font-weight:750;
}
.dropdown a:hover{ background: rgba(255,255,255,.06); }

.dropdown .sair{ color:#fecaca; }
.dropdown .sair:hover{ background: rgba(239,68,68,.12); }

/* ======================================================
   [04] PAGE / CONTAINER
====================================================== */
.page{ padding-top:86px; padding-bottom:50px; }

.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

/* ======================================================
   [05] LINKS
====================================================== */
.link-brand{
  color: rgba(245,197,66,.95);
  text-decoration:none;
  font-weight:850;
  font-size:12px;
}
.link-brand:hover{ color:#fff; }

/* ======================================================
   [06] CARD BASE
====================================================== */
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:900;
  font-size:14px;
  color:#f9fafb;
  margin-bottom:12px;
}

.card-sub{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* ======================================================
   [07] GRID (DASHBOARD/EXTRATO)
====================================================== */
.grid-top{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:16px;
  margin-bottom:16px;
}

.grid-main{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:16px;
}

.grid-right{
  display:grid;
  grid-template-rows:auto auto;
  gap:16px;
}

/* ======================================================
   [08] WALLET / SALDO
====================================================== */
.wallet{
  background:
    radial-gradient(600px 240px at 20% 40%, rgba(255,183,3,.22), transparent 60%),
    linear-gradient(135deg, rgba(255,183,3,.26), rgba(255,183,3,.10));
  border: 1px solid rgba(255,183,3,.22);
}

.wallet small{
  display:block;
  font-size:11px;
  font-weight:950;
  letter-spacing:.8px;
  color: rgba(255,255,255,.78);
}

.wallet .saldo{
  font-size:38px;
  font-weight:1000;
  margin-top:10px;
  color:#fff;
}

/* ======================================================
   [09] BOTÕES (PADRÃO) — COMPAT COM SEU HTML
   ✅ Ajuste 1: botões com o MESMO TAMANHO
====================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  height:46px;              /* <- padroniza altura */
  min-width:160px;          /* <- padroniza largura mínima */
  padding:0 18px;

  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);

  color:#e8edf6;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.btn:active{ transform: scale(.98); }

/* compat: seu HTML usa .btn.primary */
.btn.primary,
.btn.btn-primary,
.btn-primary{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#0b0f14;
  border:none;
  box-shadow: 0 14px 35px rgba(255,183,3,.20);
}
.btn.primary:hover,
.btn-primary:hover{ filter: brightness(1.05); }

/* estado disabled (compat) */
.btn.disabled,
.btn-disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}

/* ======================================================
   [10] AÇÕES (CARD ACTIONS)
   ✅ Ajuste 1: força os botões a preencherem o card e ficarem iguais
====================================================== */
.actions .btn{
  width:100%;
  min-width:0;              /* evita estourar em telas menores */
}

.actions .hint{
  margin-top:10px;
  font-size:12px;
  color: rgba(245,197,66,.95);
}

/* ======================================================
   [11] BOTÃO VER BOLÕES (compat)
====================================================== */
.btn-boloes{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  margin-top:14px;
  height:46px;
  padding:0 16px;

  border-radius:14px;
  border:1px solid rgba(245,197,66,.28);

  background: rgba(255,255,255,.03);
  color: rgba(245,197,66,.95);

  font-size:13px;
  font-weight:950;
  text-decoration:none;

  transition: all .2s ease;
}

.btn-boloes:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(245,197,66,.45);
  color:#fff;
  transform: translateY(-1px);
}

/* ======================================================
   [12] TABLE / EXTRATO
====================================================== */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}

.table th{
  background: rgba(255,255,255,.05);
  padding:11px 12px;
  font-size:12px;
  font-weight:950;
  color:#e8edf6;
}

.table td{
  padding:11px 12px;
  font-size:13px;
  color:#f3f4f6;
  border-top:1px solid rgba(255,255,255,.06);
}

.table td.muted{ color:#cbd5e1; }

.val.plus{ color:var(--ok); font-weight:950; }
.val.minus{ color:var(--danger); font-weight:950; }

/* ======================================================
   [13] RANKING / BADGES
====================================================== */
.rank{ text-align:center; }

.rank .pts{
  font-size:34px;
  font-weight:1000;
  color: var(--gold);
  margin: 10px 0;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
}

.badge.pending{
  background: rgba(255,183,3,.12);
  color: rgba(255,231,171,.95);
  border: 1px solid rgba(255,183,3,.25);
}

.badge.ok{
  background: rgba(34,197,94,.12);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,.25);
}

/* ======================================================
   [14] LISTAS (MEUS BOLÕES)
====================================================== */
.list{
  list-style:none;
  margin:0;
  padding:0;
}

.list li{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}

.status.ativo{ color:var(--ok); font-weight:950 }
.status.finalizado{ color:var(--muted); font-weight:750 }

/* ======================================================
   [15] FILTRO (EXTRATO) — COMPAT + BONITO
   ✅ Ajuste 2: inputs type="date" legíveis e alinhados
====================================================== */
.filter-form{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:12px;
  align-items:end;
}

.filter-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.filter-group label{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

/* input padrão */
.filter-group input,
.card input[type="date"],
.card input[type="text"],
.card input[type="email"],
.card input[type="password"],
.card input[type="url"]{
  height:46px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:#e8edf6;
  padding:0 14px;
  font-size:14px;
}

/* foco */
.filter-group input:focus,
.card input[type="date"]:focus,
.card input:focus{
  outline:none;
  border-color: rgba(255,183,3,.55);
  box-shadow: 0 0 0 2px rgba(255,183,3,.12);
  background: rgba(255,255,255,.06);
}

/* placeholder */
.filter-group input::placeholder{ color: var(--muted); }

/* ======================================================
   [16] PERFIL — FORMULÁRIOS
====================================================== */
.profile-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.profile-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.profile-group label{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.profile-group input{
  height:46px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  padding:0 14px;
  font-size:14px;
}

.readonly{
  opacity:.9;
  cursor:not-allowed;
  background: rgba(255,255,255,.02) !important;
  color: var(--muted) !important;
}

/* selo conta verificada */
.perfil-wrap{ position:relative; }

.badge-verified{
  position:absolute;
  top:14px;
  right:16px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #bbf7d0;
}

/* checks (email/telefone/cpf/pix) */
.field-row{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.field-row input{ flex:1; padding-right:42px; }

.check-ok{
  position:absolute;
  right:14px;
  top:50%;
  transform: translateY(-50%);
  width:22px;
  height:22px;
  border-radius:999px;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.35);
  color:#22c55e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  pointer-events:none;
}

.actions-bar{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}

/* ======================================================
   [17] TROCAR SENHA
====================================================== */
.password-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.password-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

/* compat: seus botões do perfil */
.btn-save, .btn-password{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:46px;
  padding:0 18px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:950;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#0b0f14;
  box-shadow: 0 14px 35px rgba(255,183,3,.20);
}
.btn-save:hover, .btn-password:hover{ filter:brightness(1.05); transform: translateY(-1px); }
.btn-save:active, .btn-password:active{ transform: scale(.98); }

/* ======================================================
   [18] TOAST / POPUP
====================================================== */
.toast{
  position: fixed;
  bottom: 22px;
  right: 22px;
  min-width: 300px;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: 16px;
  display:flex;
  align-items:flex-start;
  gap: 12px;
  font-weight:900;
  font-size: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: all .25s ease;
  z-index: 9999;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
}
.toast.show{ opacity: 1; transform: translateY(0); }

.toast-success{
  background: rgba(34,197,94,.14);
  color: #dcfce7;
  border-color: rgba(34,197,94,.25);
}
.toast-error{
  background: rgba(239,68,68,.14);
  color: #fee2e2;
  border-color: rgba(239,68,68,.25);
}
.toast-icon{ font-size: 18px; margin-top:1px; }
.btn-action {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg,#facc15,#f59e0b);
  color: #000;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250,204,21,.35);
}


/* ======================================================
   [19] RESPONSIVO
====================================================== */
@media (max-width: 980px){
  .grid-top{ grid-template-columns:1fr; }
  .grid-main{ grid-template-columns:1fr; }
  .grid-right{ grid-template-rows:auto; }

  .user-name{ max-width:90px; }

  .profile-grid{ grid-template-columns:1fr; }
  .password-grid{ grid-template-columns:1fr; }

  .password-actions, .actions-bar{ justify-content:stretch; }

  /* botões 100% no mobile */
  .btn, .btn-save, .btn-password, .btn-boloes{ width:100%; }
}

/* filtro em mobile */
@media (max-width: 900px){
  .filter-form{ grid-template-columns: 1fr; }
}
