/* =============================================
   auth.css — Modal de Autenticação
   CryptoMinds Pro IA | Dark Crypto Premium Design
   ============================================= */

/* ─── Overlay ─────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal Box ───────────────────────────────────────────── */
.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-overlay.active .auth-modal {
  transform: scale(1) translateY(0);
}

/* ─── Close Button ────────────────────────────────────────── */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 249, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8f9ff;
}

/* ─── Logo no Modal ───────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--shadow-color-main);
}

.auth-logo-text {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.auth-logo-pro {
  color: var(--btc-orange);
}

.auth-logo-ia {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Tabs ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(248, 249, 255, 0.45);
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(238, 183, 20, 0.12);
  color: var(--btc-orange);
  border: 1px solid var(--border-hover);
}

.auth-tab:not(.active):hover {
  color: rgba(248, 249, 255, 0.75);
}

/* ─── Formulário ──────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 249, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
}

.auth-field input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #f8f9ff;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--border-hover);
  background: rgba(238, 183, 20, 0.04);
  box-shadow: 0 0 0 3px rgba(238, 183, 20, 0.08);
}

.auth-field input::placeholder {
  color: rgba(248, 249, 255, 0.25);
}

.auth-field input.error {
  border-color: rgba(239, 68, 68, 0.5);
}

/* ─── Botão Principal ─────────────────────────────────────── */
.auth-btn-primary {
  padding: 13px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 24px var(--shadow-color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px var(--shadow-color-main);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-primary .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Divisor Social ──────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(248, 249, 255, 0.25);
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Botões Sociais ──────────────────────────────────────── */
.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8f9ff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.auth-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Mensagem de Erro / Sucesso ──────────────────────────── */
.auth-message {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  display: none;
}

.auth-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.auth-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

/* ─── Footer do Modal ─────────────────────────────────────── */
.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: rgba(248, 249, 255, 0.3);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
}

.auth-footer a {
  color: var(--btc-orange);
  text-decoration: none;
  opacity: 0.7;
}

.auth-footer a:hover {
  opacity: 1;
}

/* ─── Navbar: Estado Logado ───────────────────────────────── */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-avatar:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 12px var(--shadow-color-main);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(248, 249, 255, 0.8);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.7);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #ef4444;
}

/* ─── Verificação de email ────────────────────────────────── */
.auth-verify-box {
  text-align: center;
  padding: 8px 0;
}

.auth-verify-box .verify-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.auth-verify-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #f8f9ff;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.auth-verify-box p {
  font-size: 13px;
  color: rgba(248, 249, 255, 0.55);
  line-height: 1.6;
  font-family: 'Outfit', sans-serif;
}

.auth-verify-box strong {
  color: var(--btc-orange);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-modal {
    padding: 28px 20px;
  }

  .auth-social-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Modal de Boas-vindas BingX
   ══════════════════════════════════════════════════════════ */

/* ─── Overlay ─────────────────────────────────────────────── */
.bingx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 6000;
  /* Acima do modal de auth (5000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bingx-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal Box ───────────────────────────────────────────── */
.bingx-modal {
  background: var(--bg-card);
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 24px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(247, 147, 26, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(247, 147, 26, 0.06);
  text-align: center;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bingx-overlay.active .bingx-modal {
  transform: scale(1) translateY(0);
}

/* ─── Botão Fechar ────────────────────────────────────────── */
.bingx-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 249, 255, 0.45);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.bingx-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8f9ff;
}

/* ─── Ícone de celebração ─────────────────────────────────── */
.bingx-celebration {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
  animation: bingx-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes bingx-bounce {
  from {
    transform: scale(0.4) rotate(-15deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ─── Título e Subtítulo ──────────────────────────────────── */
.bingx-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8f9ff;
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

.bingx-subtitle {
  font-size: 14px;
  color: rgba(248, 249, 255, 0.55);
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.bingx-subtitle strong {
  color: var(--btc-orange);
  font-weight: 700;
}

/* ─── Divisor ─────────────────────────────────────────────── */
.bingx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.3), transparent);
  margin: 24px 0;
}

/* ─── Badge "Convite Especial" ────────────────────────────── */
.bingx-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(247, 147, 26, 0.12);
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--btc-orange);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Marca BingX ─────────────────────────────────────────── */
.bingx-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bingx-brand-icon {
  font-size: 28px;
  color: var(--btc-orange);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.5));
}

.bingx-brand-name {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #f7931a 0%, #ffcc44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ─── Texto do convite ────────────────────────────────────── */
.bingx-invite-text {
  font-size: 13px;
  color: rgba(248, 249, 255, 0.55);
  line-height: 1.7;
  margin: 0 0 24px;
  font-family: 'Outfit', sans-serif;
}

.bingx-invite-text strong {
  color: rgba(248, 249, 255, 0.85);
  font-weight: 700;
}

/* ─── Botão principal (Inscrever) ─────────────────────────── */
.bingx-btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 28px var(--shadow-color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bingx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow-color-main);
}

.bingx-btn-primary:active {
  transform: translateY(0);
}

/* ─── Botão secundário (Já sou inscrito) ──────────────────── */
.bingx-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: rgba(248, 249, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.bingx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 249, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .bingx-modal {
    padding: 32px 20px 24px;
  }

  .bingx-title {
    font-size: 18px;
  }
}
/* ═══════════════════════════════════════════════════════════
   Modal Bloqueio Free Plan — Conexão Telegram Obrigatória
   z-index 7000 → acima de tudo, incluindo BingX (6000)
   NÃO tem botão de fechar. Só sai clicando no CTA.
   ══════════════════════════════════════════════════════════ */

.freeplan-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.freeplan-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.freeplan-modal {
  background: var(--bg-card);
  border: 1px solid rgba(247, 147, 26, 0.30);
  border-radius: 24px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(247, 147, 26, 0.10),
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(247, 147, 26, 0.08);
  text-align: center;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.freeplan-overlay.active .freeplan-modal {
  transform: scale(1) translateY(0);
}

/* Ícone grande */
.freeplan-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  animation: freeplan-pulse 2s ease-in-out infinite;
}

@keyframes freeplan-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* Badge de status */
.freeplan-badge {
  display: inline-block;
  background: rgba(247, 147, 26, 0.15);
  border: 1px solid rgba(247, 147, 26, 0.35);
  color: #f7931a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* Título */
.freeplan-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary, #f8f9ff);
  margin: 0 0 12px;
  line-height: 1.3;
}

/* Corpo de texto */
.freeplan-body {
  font-size: 14px;
  color: rgba(248, 249, 255, 0.65);
  line-height: 1.7;
  margin: 0 0 28px;
}

.freeplan-body strong {
  color: #f7931a;
  font-weight: 700;
}

/* Divisor */
.freeplan-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 0 24px;
}

/* Destaque do que o Trial dá */
.freeplan-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
  text-align: left;
}

.freeplan-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(248, 249, 255, 0.75);
}

.freeplan-perk-icon {
  width: 28px;
  height: 28px;
  background: rgba(247, 147, 26, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Botão CTA */
.freeplan-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f7931a 0%, #e07b0a 100%);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.35);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

.freeplan-btn:hover {
  background: linear-gradient(135deg, #ffaa33 0%, #f7931a 100%);
  box-shadow: 0 10px 32px rgba(247, 147, 26, 0.5);
  transform: translateY(-1px);
}

.freeplan-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.3);
}

/* Nota de rodapé */
.freeplan-footnote {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(248, 249, 255, 0.35);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
  .freeplan-modal {
    padding: 36px 24px 28px;
  }

  .freeplan-title {
    font-size: 19px;
  }

  .freeplan-icon {
    font-size: 44px;
  }
}

/* ─── Toggle de Senha (ícone de olho) ───────────────────── */
.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.auth-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted, #888);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.auth-toggle-pw:hover {
  color: var(--btc-orange, #f7931a);
}

.auth-toggle-pw svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ─── Delete Account Item (Danger) ──────────────────────── */
.dropdown-item.di-delete-account {
  color: #f87171 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.dropdown-item.di-delete-account svg {
  color: #f87171;
  flex-shrink: 0;
}

.dropdown-item.di-delete-account:hover {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fca5a5 !important;
}
