
/* ══════════════════════════════════
   WIDGET PLACAR (pill draggável)
══════════════════════════════════ */
#ls-widget {
  position: fixed;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  cursor: grab;
  z-index: 950;
  user-select: none;
  touch-action: none;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
#ls-widget.ls-visible {
  opacity: 1;
  transform: scale(1);
}
#ls-widget:active { cursor: grabbing; }

.ls-w-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
  text-align: center;
}
.ls-w-badge-ht  { background: rgba(245,158,11,.18); color: #f59e0b; }
.ls-w-badge-min { background: #22c55e; color: #fff; }

.ls-w-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,.28), 0 1px 4px rgba(0,0,0,.12);
}

.ls-w-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ls-w-score {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: 1px;
  line-height: 1;
}
.ls-w-nav {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.ls-w-nav:hover { color: #111827; }
.ls-w-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 3px 0 1px;
}
.ls-w-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db;
}
.ls-w-dot-on { background: #111827; }
.ls-p-nav {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 16px;
  padding: 0 4px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.ls-p-nav:hover { color: #111827; }
.ls-p-counter { font-size: 10px; color: #6b7280; margin-left: 3px; }
.ls-p-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 0;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════
   ZONA DE DESCARTE
══════════════════════════════════ */
#ls-drop-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 100%);
  transition: opacity .18s ease;
  z-index: 960;
}
#ls-drop-zone.ls-dz-visible { opacity: 1; }

#ls-drop-target {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .15s, border-color .15s, transform .15s;
}
#ls-drop-target.ls-dz-active {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.18);
}

/* ══════════════════════════════════
   PAINEL DE DETALHES (abre no clique)
══════════════════════════════════ */
.live-score-card {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: calc(100% - 32px);
  max-width: 360px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
  z-index: 945; /* abaixo do widget (950) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
  font-size: 13px;
}
.live-score-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Cabeçalho */
.ls-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 14px;
  background: var(--surface2);
}
.ls-comp {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.ls-min {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(157,238,92,.12);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.ls-min.ls-ht { color: #f59e0b; background: rgba(245,158,11,.12); }
.ls-min.ls-ft { color: var(--text-muted); background: rgba(148,163,184,.1); }
.ls-close-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.ls-close-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Placar principal */
.ls-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  gap: 4px;
}
.ls-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ls-flag { display: flex; align-items: center; justify-content: center; height: 36px; }
.ls-team-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 90px;
}
.ls-team-pos {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.4;
}
.ls-score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 18px;
}
.ls-score-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  min-width: 28px;
  text-align: center;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  line-height: 1;
}
.ls-score-sep {
  font-size: 26px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
}

/* Gols marcados */
.ls-events {
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ls-event {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.ls-event-h { justify-content: flex-start; }
.ls-event-a { justify-content: flex-end; }
.ls-event-flag { display: flex; align-items: center; flex-shrink: 0; }
.ls-event-flag img { width: 14px; height: 10px; object-fit: cover; border-radius: 2px; }
.ls-event-icon { font-size: 12px; flex-shrink: 0; }
.ls-event-text { flex-shrink: 0; }
.ls-event-text em { font-style: normal; opacity: .65; font-size: 11px; }
.ls-event-min { font-size: 11px; opacity: .65; flex-shrink: 0; }

/* Toggle "Ativar automaticamente" */
#ls-reopen-btn {
  position: fixed;
  bottom: 72px;
  left: 16px;
  background: var(--surface2);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 20px;
  padding: 7px 14px 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  cursor: pointer;
  z-index: 490;
  box-shadow: 0 2px 16px rgba(239,68,68,.2);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: fadeIn .2s ease, ls-pulse-border 2s ease-in-out infinite;
  user-select: none;
  letter-spacing: .3px;
}
#ls-reopen-btn:hover { background: rgba(239,68,68,.1); }
#ls-reopen-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: ls-dot-blink 1.1s ease-in-out infinite;
}
@keyframes ls-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .25; transform: scale(.7); }
}
@keyframes ls-pulse-border {
  0%, 100% { box-shadow: 0 2px 16px rgba(239,68,68,.2); border-color: rgba(239,68,68,.35); }
  50%       { box-shadow: 0 2px 20px rgba(239,68,68,.45); border-color: rgba(239,68,68,.7); }
}

/* Desktop: painel no canto inferior esquerdo (FAB fica na direita) */
@media (min-width: 769px) {
  .live-score-card {
    bottom: 24px;
    left: 24px;
    transform: translateY(16px);
    max-width: 340px;
  }
  .live-score-card.visible { transform: translateY(0); }
}

/* ══════════════════════════════════
   SKELETON LOADING
══════════════════════════════════ */
@keyframes skShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.sk-bar, .sk-card {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: skShimmer 1.4s infinite linear;
  border-radius: 6px;
}
.sk-bar  { display: block; }
.sk-card { padding: 14px; margin-bottom: 8px; border-radius: var(--radius-sm); }
.sk-card .sk-bar:last-child { margin-bottom: 0; width: 60%; }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.joker-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  transition: background .15s, border-color .15s, color .15s;
}
.joker-btn:hover:not(:disabled) { border-color: rgba(245,197,24,.4); color: var(--gold); }
.joker-btn.active {
  border-color: var(--gold);
  background: rgba(245,197,24,.14);
  color: var(--gold);
}
.joker-btn:disabled { opacity: .4; cursor: not-allowed; }
.joker-btn-sm {
  display: inline-block;
  width: auto;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 10px;
}
.btn {
  display: block; width: 100%;
  background: var(--green);
  color: #0A0E1A;
  border: none;
  border-radius: 25px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  letter-spacing: .3px;
  transition: box-shadow .2s, transform .1s, opacity .15s;
  margin-top: 8px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { box-shadow: 0 0 22px rgba(157,238,92,.4); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.btn-outline {
  display: block; width: 100%;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(157,238,92,.4);
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  letter-spacing: .3px;
  transition: background .15s, border-color .15s;
  margin-top: 8px;
}
.btn-outline:hover { background: rgba(157,238,92,.08); border-color: rgba(157,238,92,.6); }

.btn-ghost {
  display: block; width: 100%;
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
  margin-top: 8px;
}
.btn-ghost:hover { background: var(--surface3); border-color: var(--border2); color: var(--text); }

.btn-gold {
  display: block; width: 100%;
  background: var(--gold);
  color: #0A0E1A;
  border: none;
  border-radius: 25px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: box-shadow .2s, transform .1s;
  margin-top: 8px;
}
.btn-gold:hover  { box-shadow: 0 0 18px rgba(245,197,24,.35); transform: translateY(-1px); }
.btn-gold:active { transform: scale(.98); }

.btn-wa {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  background: #25D366; color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  margin-top: 8px;
}
.btn-wa:hover { background: #1da851; }

.btn-print {
  display: block; width: 100%;
  background: var(--blue-dim); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
  margin-top: 8px;
}
.btn-print:hover { background: var(--blue); }

/* icon buttons */
.btn-icon {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
}
.btn-icon:hover { background: var(--surface3); color: var(--text); }

/* Google sign-in */
.btn-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s;
  margin-top: 8px;
}
.btn-google:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.google-icon {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.2H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.1 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.5-.4-3.8z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16.1 19 13 24 13c3.1 0 5.8 1.1 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.4 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.3 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8H6.3C9.6 35.6 16.3 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.2H42V20H24v8h11.3c-.8 2.3-2.3 4.2-4.3 5.5l6.2 5.2C41.2 35.2 44 30 44 24c0-1.3-.1-2.5-.4-3.8z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   FORMS
══════════════════════════════════ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14px;
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--green-dim); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; line-height: 1.5; }

/* ── SCORE ROW — grid 3 colunas: [time] [placar] [time] ── */
.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.score-row:last-child { border-bottom: none; }
.score-row-live { border-left: 3px solid #22c55e; padding-left: 8px; margin-left: -8px; }

.score-side {
  display: flex; align-items: center; gap: 5px;
  min-width: 0; overflow: hidden;
}
.score-side.right { justify-content: flex-end; }
.score-side-flag { flex-shrink: 0; display: flex; align-items: center; line-height: 1; }
.score-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  min-width: 0;
}

.score-center {
  display: flex; align-items: center; gap: 4px; justify-content: center;
}
.score-sep { color: var(--gold); font-weight: 700; font-size: 13px; }

input.score-num, input.score-num-br, input.score-num-lib {
  width: 52px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 2px;
  font-size: 22px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  transition: border-color .15s, background .15s;
}
input.score-num::-webkit-inner-spin-button,
input.score-num::-webkit-outer-spin-button,
input.score-num-br::-webkit-inner-spin-button,
input.score-num-br::-webkit-outer-spin-button,
input.score-num-lib::-webkit-inner-spin-button,
input.score-num-lib::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input.score-num::placeholder, input.score-num-br::placeholder, input.score-num-lib::placeholder { color: var(--text-dim); font-size: 18px; letter-spacing: 0; }
input.score-num:focus, input.score-num-br:focus, input.score-num-lib:focus { outline: none; border-color: var(--green-dim); background: var(--surface); }
input.score-num:disabled, input.score-num-br:disabled, input.score-num-lib:disabled { opacity: .5; }

/* Setas de incremento/decremento do placar */
.score-stepper { position: relative; display: inline-flex; }
.score-stepper input.score-num,
.score-stepper input.score-num-br,
.score-stepper input.score-num-lib {
  width: 66px;
  padding: 8px 22px 8px 6px;
}
.score-stepper-arrows {
  position: absolute;
  right: 3px; top: 3px; bottom: 3px;
  width: 18px;
  display: flex;
  flex-direction: column;
}
.score-stepper-arrows button {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.score-stepper-arrows button:first-child { border-bottom: 1px solid var(--border); }
.score-stepper-arrows button:active { color: var(--green); }
.score-stepper-arrows button:disabled { opacity: .35; pointer-events: none; }

/* Placar alterado localmente e ainda não salvo */
input.score-num-br.score-input-dirty,
input.score-num-lib.score-input-dirty {
  border-color: var(--red, #ef4444);
  background: rgba(239, 68, 68, .1);
}
.unsaved-note {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--red, #ef4444);
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: center;
}
.unsaved-note.show { display: block; }
.btn.btn-unsaved {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .5);
  animation: btnUnsavedPulse 1.6s ease-in-out infinite;
}
@keyframes btnUnsavedPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, .5); }
  50%      { box-shadow: 0 0 0 4px rgba(239, 68, 68, .25); }
}

/* Backward compat */
.score-name { flex: 1; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.score-name.right { text-align: right; }

/* Mobile compacto */
@media (max-width: 430px) {
  .form-card { padding: 14px 12px; }
  input.score-num, input.score-num-br, input.score-num-lib { width: 46px; font-size: 20px; padding: 7px 2px; }
  .score-stepper input.score-num,
  .score-stepper input.score-num-br,
  .score-stepper input.score-num-lib { width: 58px; padding: 7px 20px 7px 4px; }
  .score-side { gap: 4px; }
  .score-label { font-size: 11px; }
  /* iOS Safari: font-size < 16px causa auto-zoom no foco, deslocando a área de toque dos botões */
  .form-input { font-size: 16px; }
  .auth-card { padding: 24px 18px; }
}

/* Pull to refresh */
#pull-indicator {
  position: fixed;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  padding: 10px 20px;
  border-radius: 0 0 24px 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: top .2s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
#pull-indicator.ptr-visible { top: 0; }

/* Result badge per game */
.result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.result-badge.exact  { background: rgba(34,197,94,.12);  color: #22c55e; }
.result-badge.inter  { background: rgba(75,158,245,.12); color: #4B9EF5; }
.result-badge.result { background: rgba(245,158,11,.12); color: #f59e0b; }
.result-badge.miss   { background: rgba(239,68,68,.10);  color: #ef4444; }

.champ-box {
  background: var(--gold-glow);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.champ-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.msg { text-align: center; font-size: 13px; margin-top: 8px; min-height: 18px; font-weight: 600; }

/* ══════════════════════════════════
   FEED
══════════════════════════════════ */
.feed-compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.feed-compose-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feed-compose textarea {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 13px;
  font-size: 14px;
  resize: none;
  min-height: 80px;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color .15s;
}
.feed-compose textarea:focus { outline: none; border-color: var(--green-dim); }
.feed-compose textarea::placeholder { color: var(--text-muted); }
.feed-compose-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.feed-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.feed-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  color: var(--text-muted);
  background: var(--surface2);
  border-color: var(--border);
}
.feed-tag.active { background: var(--gold-glow); border-color: rgba(245,197,24,.3); color: var(--gold); }
.feed-tag:hover  { border-color: var(--border2); color: var(--text); }

.feed-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.feed-post:hover { border-color: var(--border2); }
.feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feed-post-meta { flex: 1; min-width: 0; }
.feed-post-author { font-size: 14px; font-weight: 600; }
.feed-post-time   { font-size: 11px; color: var(--text-muted); }
.feed-post-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .3px;
}
.tag-palpite   { background: rgba(0,196,114,.1); color: var(--green); border: 1px solid rgba(0,196,114,.2); }
.tag-discussao { background: rgba(59,130,246,.1); color: #93c5fd; border: 1px solid rgba(59,130,246,.2); }
.tag-meme      { background: rgba(245,197,24,.1); color: var(--gold); border: 1px solid rgba(245,197,24,.2); }
.tag-noticia   { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }
.feed-post-body { font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.feed-post-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.feed-reactions {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.feed-reaction {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  cursor: pointer; font-size: 13px; color: var(--text-muted);
  transition: background .15s, border-color .15s, transform .1s;
  line-height: 1;
}
.feed-reaction:hover {
  background: var(--surface3);
  border-color: var(--border2);
  transform: scale(1.08);
}
.feed-reaction.active {
  background: rgba(245,197,24,.12);
  border-color: rgba(245,197,24,.4);
  color: var(--gold);
}
.feed-reaction-emoji { font-size: 16px; line-height: 1; }
.feed-reaction-count { font-size: 11px; font-weight: 600; min-width: 8px; }

.feed-action {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.feed-action:hover { background: var(--surface2); color: var(--red); }
.feed-action svg { width: 14px; height: 14px; }

.feed-loading { text-align: center; padding: 32px; color: var(--text-muted); font-size: 14px; }
.feed-end     { text-align: center; padding: 24px; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); }

/* ══════════════════════════════════
   CHAT
══════════════════════════════════ */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--countdown-h) - 80px);
  min-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-header-title { font-size: 15px; font-weight: 700; }
.chat-header-sub   { font-size: 12px; color: var(--text-muted); }
.chat-online-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-msg {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  max-width: 75%;
  animation: msgIn .15s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.mine .chat-bubble {
  background: var(--green-dim);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.other .chat-bubble {
  background: var(--surface2);
  border-bottom-left-radius: 4px;
}
.chat-bubble {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  word-break: break-word;
}
.chat-sender { font-size: 11px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.chat-time   { font-size: 10px; color: var(--text-muted); flex-shrink: 0; padding-bottom: 4px; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.chat-input:focus { outline: none; border-color: var(--green-dim); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 38px; height: 38px;
  background: var(--green-dim);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--green); }
.chat-send svg { width: 16px; height: 16px; }
.chat-login-banner {
  padding: 16px; text-align: center;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.chat-day-divider {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 12px 0;
}
.chat-day-divider::before, .chat-day-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ══════════════════════════════════
   PROFILE / AUTH
══════════════════════════════════ */
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub   { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--surface2); border-radius: var(--radius-sm); padding: 4px; }
.auth-tab {
  flex: 1; text-align: center;
  padding: 8px; font-size: 13px; font-weight: 600;
  border-radius: 6px; cursor: pointer; color: var(--text-muted);
  transition: all .15s;
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar-wrap {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border2);
}
.profile-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--text-dim);
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 24px; height: 24px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid var(--surface);
}
.profile-avatar-edit svg { width: 12px; height: 12px; color: #fff; }
.profile-name { font-size: 20px; font-weight: 800; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════
   CHAT EMOJI PICKER
══════════════════════════════════ */
.chat-emoji-btn {
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background .15s;
}
.chat-emoji-btn:hover { background: var(--surface3); }

.emoji-picker-wrap {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 100;
  width: 260px;
  animation: slideUp .15s ease;
}
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.emoji-btn {
  font-size: 22px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background .1s;
  text-align: center;
  line-height: 1;
}
.emoji-btn:hover { background: var(--surface2); }
.emoji-section-label {
  font-size: 9px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 2px 3px;
  grid-column: 1 / -1;
}

/* Chat message actions */
.chat-msg-actions {
  display: none;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.chat-msg:hover .chat-msg-actions { display: flex; }
.chat-msg-action-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 7px;
  transition: all .15s;
  display: flex; align-items: center; gap: 3px;
}
.chat-msg-action-btn:hover { background: var(--surface3); color: var(--text); border-color: var(--border2); }
.chat-msg-action-btn.delete:hover { color: var(--red); border-color: rgba(239,68,68,.3); }

/* Chat reactions */
.chat-reactions {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.chat-reaction {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.chat-reaction:hover { background: var(--surface3); border-color: var(--border2); }
.chat-reaction.mine { background: var(--gold-glow); border-color: rgba(245,197,24,.3); }
.chat-reaction-count { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* Pinned message */
.chat-pinned {
  background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.chat-pinned-icon { color: var(--gold); font-size: 14px; flex-shrink: 0; }
.chat-pinned-text { flex: 1; color: var(--text-dim); }
.chat-unpin-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 13px; padding: 2px 4px; border-radius: 4px; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.chat-unpin-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* Chat input wrapper (relative for emoji picker positioning) */
.chat-input-outer {
  position: relative;
}

/* ── Chat message reactions ── */
.chat-rx-pills {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px;
}
.chat-rx-pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2px 7px;
  font-size: 12px; cursor: pointer; color: var(--text-muted);
  transition: background .12s, border-color .12s, transform .1s;
  line-height: 1.4;
}
.chat-rx-pill:hover { background: var(--surface3); border-color: var(--border2); transform: scale(1.08); }
.chat-rx-pill.active { background: rgba(245,197,24,.14); border-color: rgba(245,197,24,.4); color: var(--gold); }

/* Floating reaction picker */
#chat-rx-picker {
  position: fixed;
  z-index: 2000;
  display: flex; gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: popupIn .15s ease;
}
.chat-rx-opt {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1;
  padding: 4px 5px; border-radius: 50%;
  transition: transform .12s, background .12s;
}
.chat-rx-opt:hover { transform: scale(1.3); background: var(--surface3); }

/* ── Inline image previews (chat + feed) ── */
.chat-img-link, .feed-img-link {
  display: block;
  margin-top: 6px;
  line-height: 0;
}
.chat-img-preview {
  max-width: 220px;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.feed-img-preview {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  cursor: zoom-in;
  border: 1px solid var(--border);
  margin-top: 8px;
}

/* ══════════════════════════════════
   CHAT POPUP (floating)
══════════════════════════════════ */
#chat-popup {
  position: fixed;
  z-index: 1050;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 4px 16px rgba(0,0,0,.4);
  /* mobile: full screen */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}
#chat-popup .chat-wrap {
  height: 100%;
  border-radius: 0;
  border: none;
}
.chat-popup-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.chat-popup-close:hover {
  background: var(--surface3);
  color: var(--text);
}
/* desktop: floating window */
@media (min-width: 769px) {
  #chat-popup {
    top: auto;
    left: auto;
    bottom: 80px;
    right: 24px;
    width: 380px;
    height: 560px;
    border-radius: var(--radius);
    animation: popupIn .18s ease;
  }
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════
   PROFILE SETTINGS — toggle & frame
══════════════════════════════════ */
.profile-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  margin-bottom: 8px;
}

/* Toggle switch */
.toggle-switch {
  position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-thumb {
  position: absolute; inset: 0;
  background: var(--border2); border-radius: 24px;
  cursor: pointer; transition: background .2s;
}
.toggle-thumb::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-thumb { background: var(--green-dim); }
.toggle-switch input:checked + .toggle-thumb::before { transform: translateX(20px); }

/* Frame selector grid */
.frame-selector-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px;
}
.frame-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
  min-width: 72px; flex: 1 1 72px; max-width: 96px;
  position: relative;
}
.frame-card:hover:not(.frame-locked) { border-color: var(--border2); background: var(--surface2); }
.frame-card.frame-active { border-color: var(--gold); background: rgba(245,158,11,.07); }
.frame-card.frame-locked { opacity: .45; cursor: not-allowed; }
.frame-card-icon { font-size: 22px; line-height: 1; }
.frame-card-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; line-height: 1.2; }
.frame-lock-badge { position: absolute; top: 3px; right: 4px; font-size: 10px; }
.frame-active-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* Plan cards (Meu Plano) */
.plan-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 4px;
}
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 18px;
}
.plan-card.popular { border-color: var(--gold); }
.plan-card.current { border-color: var(--green); background: rgba(157,238,92,.05); }
.plan-card-badge {
  position: absolute; top: -11px; left: 18px;
  background: var(--gold); color: #0A0E1A;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px;
}
.plan-card-badge.plan-card-badge-current { background: var(--green); left: auto; right: 18px; }
.plan-card-label { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 16px; }
.plan-price-val { font-family: 'Bebas Neue', sans-serif; font-size: 28px; font-weight: 800; color: var(--text); }
.plan-price-suffix { font-size: 12px; color: var(--text-muted); }
.plan-features-list { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.plan-features-list li { font-size: 12px; padding: 5px 0; color: var(--text-muted); }
.plan-features-list li.plan-feature-ok { color: var(--text); }
.plan-features-list li.plan-feature-no { color: var(--text-dim); opacity: .6; }

/* ══════════════════════════════════
   PROFILE FRAME CLASSES (nav/mobile icon)
══════════════════════════════════ */
.profile-frame-gold    { border-radius:50%; box-shadow: 0 0 0 2.5px #fbbf24, 0 0 8px 2px rgba(251,191,36,.4); }
.profile-frame-green   { border-radius:50%; box-shadow: 0 0 0 2.5px #22c55e, 0 0 8px 2px rgba(34,197,94,.4); }
.profile-frame-fire    { border-radius:50%; box-shadow: 0 0 0 2.5px #f97316, 0 0 8px 2px rgba(249,115,22,.4); }
.profile-frame-diamond { border-radius:50%; box-shadow: 0 0 0 2.5px #67e8f9, 0 0 8px 2px rgba(103,232,249,.4); }
.profile-frame-crown   { border-radius:50%; box-shadow: 0 0 0 2.5px #fbbf24, 0 0 8px 2px rgba(251,191,36,.4); }
.profile-frame-admin   { border-radius:50%; box-shadow: 0 0 0 2.5px #a855f7, 0 0 8px 2px rgba(168,85,247,.4); }

/* ══════════════════════════════════
   CHAT POPUP — TAB BAR
══════════════════════════════════ */
.chat-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  position: relative;
}
.chat-tab-btn:hover { color: var(--text); }
.chat-tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.dm-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  background: var(--red, #ef4444);
  color: #fff;
  border-radius: 8px;
  line-height: 1;
}

/* ══════════════════════════════════
   DIRECT MESSAGES — INBOX
══════════════════════════════════ */
.dm-inbox {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.dm-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.dm-conv-item:hover { background: var(--surface2); }
.dm-conv-info {
  flex: 1;
  min-width: 0;
}
.dm-conv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-conv-name.unread { color: var(--text); }
.dm-conv-last {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.dm-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.dm-conv-time {
  font-size: 11px;
  color: var(--text-muted);
}
.dm-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  background: var(--green);
  color: #0A0E1A;
  border-radius: 9px;
}
.dm-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 10px 14px 4px;
}
.dm-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 12px;
}
.dm-participant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 6px 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  min-width: 52px;
  transition: background .12s, border-color .12s;
}
.dm-participant-btn:hover { background: var(--surface2); border-color: var(--border2); }
.dm-participant-name {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ══════════════════════════════════
   DIRECT MESSAGES — CONVERSATION
══════════════════════════════════ */
.dm-conv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.dm-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: background .12s, color .12s;
}
.dm-back-btn:hover { background: var(--surface3); color: var(--text); }
.dm-conv-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BRACKET (Chaveamento) ─────────────────── */
.bk-fifa-source {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bk-fifa-source a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.bk-fifa-source a:hover { text-decoration: underline; }

.bk-phase-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px 14px;
  padding: 0 16px 4px;
}
.bk-phase-tabs::-webkit-scrollbar { display: none; }
.bk-ptab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.bk-ptab:hover { color: var(--text); border-color: var(--text-muted); }
.bk-ptab.active { background: var(--surface3); color: var(--text); border-color: transparent; }

.bk-phase-view { animation: bkFade .22s ease; }
@keyframes bkFade { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:scale(1); } }

.bk-scroll {
  overflow-x: auto;
  overflow-y: visible;
  margin: 0 -16px;
  padding-left: 16px;
  padding-bottom: 8px;
}

.bk-full {
  position: relative;
  height: 1280px;
  width: 1012px;
  min-width: 1012px;
  animation: bkFade .22s ease;
}

.bk-col-hdr {
  position: absolute;
  top: -24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  white-space: nowrap;
  width: 180px;
  text-align: center;
}

.bk-card {
  position: absolute;
  width: 180px;
  height: 64px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 8px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.bk-card:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bk-card-il { position: relative; width: 100%; height: 72px; }
.bk-card.bk-bra { border-left: 3px solid #22c55e; }
.bk-card.bk-final-card { border-color: var(--gold); }
.bk-card.bk-tbd { opacity: .75; }

/* Path highlight */
.bk-card.bk-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(234,179,8,.35);
  z-index: 2;
}
.bk-card.bk-path {
  border-color: rgba(234,179,8,.55);
  box-shadow: 0 0 0 1px rgba(234,179,8,.3);
  z-index: 1;
}
.bk-card.bk-dim {
  opacity: .22;
  filter: grayscale(.6);
  pointer-events: none;
}
.bk-path-hint {
  position: sticky;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  width: max-content;
  margin: 4px auto 0;
  opacity: 0;
  transition: opacity .2s;
}
.bk-path-hint.visible { opacity: 1; }

.bk-num {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1;
}

.bk-tr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  line-height: 1.2;
}
.bk-tr.bk-win { color: #fff; font-weight: 700; }
.bk-tr.bk-lose { opacity: .38; }

.bk-fl { flex-shrink: 0; font-size: 14px; line-height: 1; }
.bk-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bk-score { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--gold); margin-left: 2px; }
.bk-score-win { color: #fff; border-bottom: 2px solid var(--green); padding-bottom: 1px; }

.bk-fim { font-size: 9px; font-weight: 700; color: var(--text-muted); text-align: center; margin-bottom: 3px; letter-spacing: .4px; text-transform: uppercase; }

.bk-sep { height: 1px; background: var(--border); opacity: .5; margin: 0 -2px; flex-shrink: 0; }

.bk-dt {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}

.bk-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}
