/* ════════════════════════════════════════════════════════════════════════
   Modal de troca de clube (/configuracoes → Central de transferências).
   Overlay no padrão dos modais do arena (tinvite/wc-pause), acento laranja
   no picker e cor do clube (--club-transfer-team) no estado de boas-vindas.
   ════════════════════════════════════════════════════════════════════════ */

.club-transfer-overlay {
  position: fixed; inset: 0; z-index: 9400;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.club-transfer-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.club-transfer-card {
  position: relative; z-index: 9402;
  width: 100%; max-width: 460px; padding: 1.9rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 20px; border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
  background: var(--bg-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: club-transfer-in 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.club-transfer-card--welcome {
  border-color: color-mix(in srgb, var(--club-transfer-team, var(--accent)) 42%, transparent);
  background:
    radial-gradient(95% 70% at 50% 0%, color-mix(in srgb, var(--club-transfer-team, var(--accent)) 14%, transparent) 0%, transparent 60%),
    var(--bg-surface);
}
@keyframes club-transfer-in {
  0%   { transform: scale(0.88) translateY(18px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .club-transfer-card { animation: none; }
}

.club-transfer-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  color: var(--text-secondary); background: transparent; border: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.club-transfer-close:hover {
  background: color-mix(in srgb, var(--text-secondary) 14%, transparent);
  color: var(--text-primary);
}

.club-transfer-eyebrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.55rem;
}
.club-transfer-eyebrow--welcome { color: var(--club-transfer-team, var(--accent)); }

.club-transfer-title {
  font-size: 1.28rem; font-weight: 800; line-height: 1.25;
  color: var(--text-primary); margin: 0 0 0.5rem;
}
.club-transfer-title strong { color: var(--club-transfer-team, var(--accent)); }

.club-transfer-desc {
  font-size: 0.87rem; line-height: 1.55; color: var(--text-secondary);
  margin: 0 0 1.1rem; max-width: 36ch;
}

.club-transfer-error {
  width: 100%; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem;
  border-radius: 10px; font-size: 0.82rem; line-height: 1.45; text-align: left;
  color: #b91c1c;
  background: color-mix(in srgb, #ef4444 12%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 32%, transparent);
}
:root[data-theme="dark"] .club-transfer-error { color: #fca5a5; }

.club-transfer-form { width: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.club-transfer-form .settings-team-selector { width: 100%; text-align: left; }

.club-transfer-hint {
  display: block; width: 100%; margin-top: 0.65rem; text-align: left;
  font-size: 0.76rem; line-height: 1.5; color: var(--text-secondary);
}
.club-transfer-hint a { color: var(--accent); }

.club-transfer-buttons {
  width: 100%; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.2rem;
}
.club-transfer-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.72rem 1rem; border-radius: 12px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none;
  border: none; transition: filter 0.15s ease, background 0.15s ease;
}
.club-transfer-btn--primary { background: var(--accent); color: #fff; }
.club-transfer-btn--primary:hover { filter: brightness(1.08); }
.club-transfer-btn--whatsapp { background: #25D366; color: #fff; }
.club-transfer-btn--whatsapp:hover { filter: brightness(1.06); }
.club-transfer-btn--ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
}
.club-transfer-btn--ghost:hover { color: var(--text-primary); }

.club-transfer-crest { margin-bottom: 0.8rem; }
.club-transfer-crest-badge { display: block; }

/* Botão que abre o modal a partir do card "Meu clube" em /configuracoes */
.settings-club-transfer-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; margin-top: 0.35rem; border-radius: 10px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--accent);
  transition: filter 0.15s ease;
}
.settings-club-transfer-btn:hover { filter: brightness(1.08); }
