/* ============================================================
   auth.css — Estilos do Sistema de Autenticação
   PokeAlliance Shop

   Design: Gamer Premium / Dark UI
   Paleta principal: Azul (#3a8cff, #1a5fcc) + Dourado (#ffd166)
   Fontes: Cinzel (títulos) + Rajdhani (body) + Space Mono (mono)
   ============================================================ */

/* ── Botão de Login no Header ────────────────────────────────────────────── */
.auth-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(58,140,255,0.15) 0%, rgba(26,95,204,0.1) 100%);
  border: 1px solid rgba(58,140,255,0.35);
  border-radius: 8px;
  color: #a8c8ff;
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.auth-login-btn:hover {
  background: linear-gradient(135deg, rgba(58,140,255,0.25) 0%, rgba(26,95,204,0.2) 100%);
  border-color: rgba(58,140,255,0.6);
  color: #fff;
  box-shadow: 0 0 16px rgba(58,140,255,0.25);
  transform: translateY(-1px);
}
.auth-login-btn:active { transform: translateY(0); }

/* ── Widget de usuário logado no Header ─────────────────────────────────── */
.auth-user-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 201; /* acima do header (z-index:200) para garantir que o dropdown flutue corretamente */
}

.auth-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3d7a 0%, #0d1e3d 100%);
  border: 1.5px solid rgba(58,140,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.auth-avatar:hover { border-color: rgba(58,140,255,0.85); }
.auth-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.auth-avatar-initials {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 12px;
  font-weight: 700;
  color: #3a8cff;
  letter-spacing: 0.5px;
}

.auth-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  background: #2ed573;
  border-radius: 50%;
  border: 1.5px solid #040810;
  box-shadow: 0 0 6px rgba(46,213,115,0.6);
}

.auth-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auth-nickname {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.auth-server-tag {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

.auth-menu-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-radius: 4px;
}
.auth-menu-btn:hover { color: #fff; }

/* ── Dropdown do usuário ──────────────────────────────────────────────────── */
.auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(145deg, #0d1e3d 0%, #040810 100%);
  border: 1px solid rgba(58,140,255,0.2);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(58,140,255,0.05) inset;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.auth-dropdown-header {
  padding: 8px 10px 10px;
}
.auth-dropdown-nick {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.auth-dropdown-email {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-dropdown-divider {
  height: 1px;
  background: rgba(58,140,255,0.1);
  margin: 6px 0;
}

.auth-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.auth-dropdown-item:hover {
  background: rgba(58,140,255,0.1);
  color: #fff;
}
.auth-dropdown-item--danger { color: rgba(255,71,87,0.7); }
.auth-dropdown-item--danger:hover {
  background: rgba(255,71,87,0.1);
  color: #ff4757;
}

/* ── Overlay e Modal base ─────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2,6,20,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-overlay.open { opacity: 1; }

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #0d1e3d 0%, #07101f 70%, #040810 100%);
  border: 1px solid rgba(58,140,255,0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(58,140,255,0.05) inset,
    0 0 40px rgba(58,140,255,0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(58,140,255,0.2) transparent;
}
.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}
.auth-modal--sm { max-width: 360px; }
.auth-modal--account { max-width: 460px; }

/* Animação de shake para erros */
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}
.auth-modal.shake { animation: auth-shake 0.45s ease; }

/* ── Cabeçalho do Modal ───────────────────────────────────────────────────── */
.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(58,140,255,0.1);
  position: sticky;
  top: 0;
  background: linear-gradient(145deg, #0d1e3d, #07101f);
  z-index: 1;
}

.auth-modal-emblem {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.auth-modal-emblem svg { width: 100%; height: 100%; }

.auth-modal-title-wrap { flex: 1; }
.auth-modal-site-name {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,209,102,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.auth-modal-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.auth-modal-close {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.auth-modal-close:hover {
  background: rgba(255,71,87,0.12);
  border-color: rgba(255,71,87,0.25);
  color: #ff4757;
}

/* ── Corpo do Modal e Telas ───────────────────────────────────────────────── */
.auth-modal-body { padding: 0; }

.auth-screen {
  display: none;
  padding: 22px;
}
.auth-screen.active { display: block; }

/* Animação de entrada das telas */
@keyframes auth-slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.auth-screen.active { animation: auth-slide-in 0.2s ease; }

/* ── Tela: Server Check ───────────────────────────────────────────────────── */
.auth-server-check {
  text-align: center;
  padding: 10px 0;
}
.auth-server-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(58,140,255,0.4));
  animation: auth-float 3s ease-in-out infinite;
}
@keyframes auth-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.auth-server-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.auth-server-desc {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
}
.auth-server-desc strong { color: #ffd166; }
.auth-server-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Tela: Bloqueio ───────────────────────────────────────────────────────── */
.auth-blocked {
  text-align: center;
  padding: 10px 0;
}
.auth-blocked-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.auth-blocked-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 16px;
  font-weight: 700;
  color: #ff4757;
  margin-bottom: 12px;
}
.auth-blocked-msg {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: rgba(255,71,87,0.06);
  border: 1px solid rgba(255,71,87,0.15);
  border-radius: 10px;
}
.auth-blocked-msg strong { color: #ff4757; }
.auth-blocked-sub {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

/* ── Campos de Formulário ─────────────────────────────────────────────────── */
.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 40px 12px 38px;
  color: #fff;
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: rgba(255,255,255,0.2); }
.auth-input:focus {
  border-color: rgba(58,140,255,0.5);
  background: rgba(58,140,255,0.05);
  box-shadow: 0 0 0 3px rgba(58,140,255,0.1);
}
.auth-input.error {
  border-color: rgba(255,71,87,0.5);
  background: rgba(255,71,87,0.04);
  box-shadow: 0 0 0 3px rgba(255,71,87,0.08);
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-radius: 4px;
}
.auth-eye-btn:hover { color: rgba(255,255,255,0.6); }

.auth-field-error {
  display: none;
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 5px;
  padding-left: 2px;
}

.auth-form-error {
  display: none;
  background: rgba(255,71,87,0.08);
  border: 1px solid rgba(255,71,87,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 13px;
  color: #ff6b6b;
  margin-bottom: 14px;
}

/* ── Verificação de disponibilidade do Nick ───────────────────────────────── */
.auth-nick-availability {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 0.2s;
}
.auth-nick-availability.checking { color: rgba(255,255,255,0.3); }
.auth-nick-availability.available { color: #2ed573; }
.auth-nick-availability.taken     { color: #ff4757; }

/* ── Indicador de força da senha ──────────────────────────────────────────── */
.auth-pass-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.auth-pass-strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.auth-pass-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.auth-pass-strength-label {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 10px;
  white-space: nowrap;
  transition: color 0.3s;
}

/* ── Botão de Submit ─────────────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a8cff 0%, #1a5fcc 100%);
  color: #fff;
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(58,140,255,0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  overflow: hidden;
}
.auth-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%);
}
.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,140,255,0.5);
}
.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(58,140,255,0.25);
}
.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-submit-text { transition: opacity 0.15s; }
.auth-submit-spinner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes auth-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.auth-spin { animation: auth-spin 0.8s linear infinite; }

/* ── Link de troca Login/Cadastro ─────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.auth-switch-link {
  background: none;
  border: none;
  color: #3a8cff;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  padding: 0;
  margin-left: 4px;
  transition: color 0.2s;
}
.auth-switch-link:hover { color: #60aaff; text-decoration: underline; }

/* ── Botões gerais (server check, etc) ────────────────────────────────────── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.auth-btn--yes {
  background: linear-gradient(135deg, #3a8cff 0%, #1a5fcc 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58,140,255,0.3);
}
.auth-btn--yes:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(58,140,255,0.45); }

.auth-btn--no {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}
.auth-btn--no:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

.auth-btn--secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
}
.auth-btn--secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

.auth-btn--danger {
  background: rgba(255,71,87,0.12);
  border: 1px solid rgba(255,71,87,0.25);
  color: #ff4757;
}
.auth-btn--danger:hover { background: rgba(255,71,87,0.2); border-color: rgba(255,71,87,0.4); }

/* ── Tela: Sucesso ────────────────────────────────────────────────────────── */
.auth-success {
  text-align: center;
  padding: 20px 0;
}
.auth-success-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.auth-success-icon svg { animation: auth-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes auth-success-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.auth-success-title {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.auth-success-msg {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── Modal: Minha Conta ───────────────────────────────────────────────────── */
.auth-account-body { padding: 20px 22px 24px; }

.auth-account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(58,140,255,0.05);
  border: 1px solid rgba(58,140,255,0.12);
  border-radius: 12px;
  margin-bottom: 18px;
}

.auth-account-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3d7a 0%, #0d1e3d 100%);
  border: 2px solid rgba(58,140,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-account-avatar span:first-child {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 20px;
  font-weight: 700;
  color: #3a8cff;
}

.auth-account-info { flex: 1; min-width: 0; }
.auth-account-nick {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.auth-account-email {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.auth-account-stat {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
.auth-account-stat-label {
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.auth-account-stat-val {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.auth-account-section {
  margin-bottom: 14px;
}
.auth-account-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title, 'Cinzel', serif);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.auth-account-empty {
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: 8px;
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

.auth-logout-full-btn {
  width: 100%;
  margin-top: 18px;
}

/* ── Modal: Confirmar Logout ─────────────────────────────────────────────── */
.auth-logout-body { padding: 20px 22px 24px; }
.auth-logout-msg {
  font-family: var(--font-body, 'Rajdhani', sans-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}
.auth-logout-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Responsivo Mobile ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-overlay { padding: 12px; align-items: flex-end; }
  .auth-modal {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    max-height: 88vh;
  }
  .auth-overlay.open .auth-modal { transform: translateY(0); }

  .auth-modal--sm {
    border-radius: 18px 18px 0 0;
    align-self: flex-end;
  }

  .auth-user-info { display: none; }

  .auth-account-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .auth-screen { padding: 16px; }
  .auth-modal-header { padding: 16px 18px 14px; }
}

/* ── Posicionamento do slot de auth no header-grid ─────────────────────── */
/* O header-grid original tem: emblem | seller-info | cart-trigger
   Inserimos o auth-header-slot entre seller-info e cart, sem quebrar o layout */
#auth-header-slot {
  display: flex;
  align-items: center;
  margin-right: 4px; /* pequeno espaço antes do carrinho */
  flex-shrink: 0;
}

/* Garante que o header-grid acomode o novo elemento */
.header-grid {
  /* O grid/flex existente no site já se ajusta a novos filhos flex */
  gap: 10px;
}

@media (max-width: 480px) {
  #auth-header-slot { margin-right: 0; }
  .auth-login-btn span { display: none; } /* no mobile: mostra só o ícone */
  .auth-login-btn { padding: 8px 10px; gap: 0; }
}
