.wlogin {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: radial-gradient(circle at 50% 18%, #2a0f33 0%, #0f1114 70%);
}
.wlogin[hidden] { display: none; }
body.logged-out .top, body.logged-out .pages, body.logged-out .side { visibility: hidden; }
.wcard {
  width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 28px 24px;
  background: var(--panel); border: 1px solid rgba(212, 0, 245, .45); border-radius: 18px;
  box-shadow: 0 0 60px rgba(212, 0, 245, .16);
}
.wcard .wlogo { width: 72px; height: 72px; border-radius: 16px; justify-self: center; }
.wcard h1 { margin: 0; text-align: center; font: 400 30px "Alfa Slab One", "Space Grotesk", serif; letter-spacing: .02em; color: #f0c8f0; }
.wcard p { margin: 0; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.wcard label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.wcard input {
  font: 16px Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
}
.wcard input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.wcard button {
  font: 600 16px Inter, system-ui, sans-serif; padding: 13px; border-radius: 10px; border: 0;
  background: linear-gradient(180deg, #c51fe6, #8a00a8); border: 1px solid #d400f5; color: #fff; cursor: pointer;
}
.wcard button:disabled { opacity: .6; cursor: default; }
.wcard .wmsg { min-height: 20px; color: #ff8a80; }
.wcard .wsmall { font-size: 12px; color: var(--muted); }
.wacct { display: inline-flex; align-items: center; gap: 8px; }
.wacct span { font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .top .actions { flex-wrap: wrap; }
  .wacct { width: 100%; justify-content: space-between; }
  .wacct span { max-width: 60vw; }
}

@media (max-width: 720px) {
  .side { display: none !important; }
  #tbl { min-width: 0 !important; }
  #tbl thead { display: none; }
  #tbl, #tbl tbody { display: block; }
  #rows tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 12px 12px 14px;
    grid-template-areas: "dt tag" "ev ev" "w ps" "rw rps" "inv lucro" "note del";
    border-radius: 12px; margin-bottom: 10px; background: var(--row-a); border-left: 4px solid transparent;
  }
  #rows tr td { display: block; padding: 0; border: 0 !important; background: none !important; min-width: 0; max-width: none; }
  #rows tr.dbl { border-left-color: var(--ok); }
  #rows tr.gv { border-left-color: var(--gv); }
  #rows tr.loss { border-left-color: var(--neg); }
  #rows tr.win { border-left-color: var(--pos); }
  #rows tr.pending { border-left-color: var(--pend); background: rgba(255, 79, 163, .10); }
  #rows td:nth-child(1) { grid-area: dt; font-size: 12px; color: var(--muted); }
  #rows td:nth-child(2) { grid-area: ev; }
  #rows td:nth-child(3) { grid-area: w; }
  #rows td:nth-child(4) { grid-area: ps; }
  #rows td:nth-child(5) { grid-area: inv; text-align: left; font-size: 13px; }
  #rows td:nth-child(6) { grid-area: rw; }
  #rows td:nth-child(7) { grid-area: rps; }
  #rows td:nth-child(8) { grid-area: tag; text-align: right; }
  #rows td:nth-child(9) { grid-area: lucro; text-align: right; }
  #rows td:nth-child(10) { display: none; }
  #rows td:nth-child(11) { grid-area: note; }
  #rows td:nth-child(12) { grid-area: del; text-align: right; }
  #rows td:nth-child(3)::before, #rows td:nth-child(4)::before, #rows td:nth-child(5)::before,
  #rows td:nth-child(6)::before, #rows td:nth-child(7)::before {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
  }
  #rows td:nth-child(3)::before { content: "1win"; }
  #rows td:nth-child(4)::before { content: "PS3838"; }
  #rows td:nth-child(5)::before { content: "Investido"; }
  #rows td:nth-child(6)::before { content: "Resultado 1win"; }
  #rows td:nth-child(7)::before { content: "Resultado PS3838"; }
  #rows .leg .nums { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  #rows .leg .nums input { width: 76px; font-size: 16px; }
  #rows td select { width: 100%; max-width: none; font-size: 16px; padding: 8px; }
  #rows td input.note { width: 100%; font-size: 16px; }
  #rows .pen { opacity: 1; }
}
.wcard button.wghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
