/* ═══════════════════════════════════════════════════════════════════════════
   GP Trader — Pop-up Overlay System
   Temas: torneio | lancamento | brand | urgente | elegante
   ═══════════════════════════════════════════════════════════════════════════ */

#gp-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#gp-popup-overlay.visible { opacity: 1; pointer-events: auto; }

.gp-popup-card {
  position: relative; width: 100%; max-width: 480px;
  border-radius: 20px; overflow: hidden;
  transform: scale(0.85) translateY(16px); opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
#gp-popup-overlay.visible .gp-popup-card {
  transform: scale(1) translateY(0); opacity: 1;
}

.gp-popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.35); border: none;
  color: rgba(255, 255, 255, 0.75); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all 0.15s; line-height: 1;
  font-family: inherit;
}
.gp-popup-close:hover { background: rgba(0, 0, 0, 0.55); color: #fff; transform: scale(1.1); }

/* ── Structure ── */
.gp-popup-header { padding: 28px 28px 22px; }
.gp-popup-body   { padding: 18px 28px 28px; }

.gp-popup-emoji    { font-size: 42px; margin-bottom: 12px; display: block; line-height: 1; }
.gp-popup-title    { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.18; margin-bottom: 4px; letter-spacing: -0.5px; }
.gp-popup-subtitle { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 6px; line-height: 1.5; }
.gp-popup-text     { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.72; }

.gp-popup-buttons  { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }

.gp-popup-btn {
  display: block; padding: 13px 20px;
  border-radius: 10px; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: all 0.15s; font-family: inherit;
  letter-spacing: 0.01em;
}
.gp-popup-btn.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.38);
  font-size: 13px; font-weight: 500; padding: 8px 20px;
}
.gp-popup-btn.btn-ghost:hover { color: rgba(255,255,255,0.65); }
.gp-popup-btn.btn-secondary {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.gp-popup-btn.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ════════════════════════════════════════════════════════════
   TEMA: Torneio (Gold / Âmbar)
   ════════════════════════════════════════════════════════════ */
.gp-popup-card.theme-torneio {
  background: #0e0900;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 100px rgba(245, 158, 11, 0.12),
              0 32px 80px rgba(0, 0, 0, 0.85);
}
.theme-torneio .gp-popup-header {
  background: linear-gradient(160deg, rgba(245,158,11,0.2) 0%, rgba(180,83,9,0.08) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}
.theme-torneio .gp-popup-title { color: #fde68a; }
.theme-torneio .gp-popup-btn.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000; box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}
.theme-torneio .gp-popup-btn.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   TEMA: Lançamento (Purple → Blue)
   ════════════════════════════════════════════════════════════ */
.gp-popup-card.theme-lancamento {
  background: #07031a;
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 100px rgba(139, 92, 246, 0.12),
              0 32px 80px rgba(0, 0, 0, 0.85);
}
.theme-lancamento .gp-popup-header {
  background: linear-gradient(160deg, rgba(139,92,246,0.2) 0%, rgba(59,130,246,0.08) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.theme-lancamento .gp-popup-title { color: #c4b5fd; }
.theme-lancamento .gp-popup-btn.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #fff; box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
}
.theme-lancamento .gp-popup-btn.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   TEMA: Brand (Green — cores GP Trader)
   ════════════════════════════════════════════════════════════ */
.gp-popup-card.theme-brand {
  background: #030d07;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 100px rgba(34, 197, 94, 0.1),
              0 32px 80px rgba(0, 0, 0, 0.85);
}
.theme-brand .gp-popup-header {
  background: linear-gradient(160deg, rgba(34,197,94,0.18) 0%, rgba(16,83,43,0.06) 100%);
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}
.theme-brand .gp-popup-title { color: #86efac; }
.theme-brand .gp-popup-btn.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #000; box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4);
}
.theme-brand .gp-popup-btn.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   TEMA: Urgente (Red → Orange)
   ════════════════════════════════════════════════════════════ */
.gp-popup-card.theme-urgente {
  background: #0f0000;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 100px rgba(239, 68, 68, 0.12),
              0 32px 80px rgba(0, 0, 0, 0.85);
}
.theme-urgente .gp-popup-header {
  background: linear-gradient(160deg, rgba(239,68,68,0.2) 0%, rgba(234,88,12,0.08) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.12);
}
.theme-urgente .gp-popup-title { color: #fca5a5; }
.theme-urgente .gp-popup-btn.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
  color: #fff; box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}
.theme-urgente .gp-popup-btn.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   TEMA: Elegante (Dark Minimal)
   ════════════════════════════════════════════════════════════ */
.gp-popup-card.theme-elegante {
  background: linear-gradient(160deg, #0d1829 0%, #080f1d 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5),
              0 32px 80px rgba(0, 0, 0, 0.85);
}
.theme-elegante .gp-popup-header {
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}
.theme-elegante .gp-popup-title { color: #e2e8f0; }
.theme-elegante .gp-popup-btn.btn-primary {
  background: rgba(226, 232, 240, 0.09);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.18);
}
.theme-elegante .gp-popup-btn.btn-primary:hover {
  background: rgba(226, 232, 240, 0.16); transform: translateY(-1px);
}

/* ── Mobile popup ── */
@media (max-width: 520px) {
  .gp-popup-card { border-radius: 16px; }
  .gp-popup-header { padding: 22px 20px 16px; }
  .gp-popup-body   { padding: 14px 20px 22px; }
  .gp-popup-title  { font-size: 20px; }
}


/* ════════════════════════════════════════════════════════════
   FLOATING PILL — acesso rápido após popup dispensado
   Aparece no canto inferior direito e persiste nas páginas
   seguintes da sessão, até o usuário dispensar com o ×.
   ════════════════════════════════════════════════════════════ */

.gp-popup-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px 10px 14px;
  border-radius: 40px;
  background: rgba(6, 12, 24, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  max-width: 260px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  /* entrada: desliza da direita */
  transform: translateX(calc(100% + 36px));
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.32s ease,
    filter    0.15s ease,
    box-shadow 0.2s ease;
}
.gp-popup-pill.visible {
  transform: translateX(0);
  opacity: 1;
}
.gp-popup-pill:hover {
  filter: brightness(1.14);
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Conteúdo */
.gpp-emoji {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.gpp-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  letter-spacing: 0.01em;
}
.gpp-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  font-family: inherit;
  margin-left: 2px;
}
.gpp-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.1);
}

/* Cores por tema */
.gp-popup-pill.theme-torneio {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 20px rgba(245,158,11,0.08);
}
.gp-popup-pill.theme-torneio .gpp-label { color: #fde68a; }

.gp-popup-pill.theme-lancamento {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 20px rgba(139,92,246,0.08);
}
.gp-popup-pill.theme-lancamento .gpp-label { color: #c4b5fd; }

.gp-popup-pill.theme-brand {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 20px rgba(34,197,94,0.08);
}
.gp-popup-pill.theme-brand .gpp-label { color: #86efac; }

.gp-popup-pill.theme-urgente {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.65), 0 0 20px rgba(239,68,68,0.08);
}
.gp-popup-pill.theme-urgente .gpp-label { color: #fca5a5; }

.gp-popup-pill.theme-elegante {
  border-color: rgba(148, 163, 184, 0.28);
}
.gp-popup-pill.theme-elegante .gpp-label { color: #e2e8f0; }

/* Mobile */
@media (max-width: 520px) {
  .gp-popup-pill { bottom: 16px; right: 16px; max-width: 210px; }
  .gpp-label { font-size: 12px; }
}
