/* ═══════════════════════════════════════════════
   E-FUTEBOL.NET — IP CONFLICT MODAL
   ═══════════════════════════════════════════════ */

#ip-conflict-modal-container:empty { display: none; }

body.ip-conflict-modal-open { overflow: hidden; }

/* ── Overlay & backdrop ── */

.ip-conflict-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ip-conflict-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Card ── */

.ip-conflict-modal-card {
  --ipc-accent: #ef4444;
  --ipc-accent-soft: rgba(239, 68, 68, 0.1);
  --ipc-accent-glow: rgba(239, 68, 68, 0.25);

  position: relative;
  z-index: 9302;
  background: #ffffff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  animation: ip-conflict-modal-in 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ip-conflict-modal-in {
  0%   { transform: scale(0.86) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Identity zone ── */

.ip-conflict-modal-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem 1.5rem;
  background: var(--ipc-accent-soft);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.ip-conflict-modal-identity::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ipc-accent);
  border-radius: 0 0 3px 3px;
}

.ip-conflict-modal-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ipc-accent);
  color: #ffffff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px var(--ipc-accent-glow);
}

.ip-conflict-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}

.ip-conflict-modal-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
  max-width: 360px;
}

/* ── Action zone ── */

.ip-conflict-modal-action {
  padding: 1.5rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ip-conflict-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ip-conflict-modal-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.6;
}

.ip-conflict-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.ip-conflict-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.78rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ip-conflict-modal-btn--primary {
  background: var(--ipc-accent);
  color: #ffffff;
}

.ip-conflict-modal-btn--primary:hover {
  background: #dc2626;
}

.ip-conflict-modal-btn--primary:active {
  transform: scale(0.98);
}

.ip-conflict-modal-btn--ghost {
  background: transparent;
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ip-conflict-modal-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.ip-conflict-modal-support-row {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.ip-conflict-modal-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: #6b7280;
  text-decoration: none;
}

.ip-conflict-modal-support-link:hover {
  color: var(--ipc-accent);
}

/* ── Dark theme ── */

[data-theme="dark"] .ip-conflict-modal-card {
  background: #111827;
}

[data-theme="dark"] .ip-conflict-modal-identity {
  background: rgba(239, 68, 68, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .ip-conflict-modal-title {
  color: #f9fafb;
}

[data-theme="dark"] .ip-conflict-modal-desc {
  color: #d1d5db;
}

[data-theme="dark"] .ip-conflict-modal-body p {
  color: #d1d5db;
}

[data-theme="dark"] .ip-conflict-modal-btn--ghost {
  color: #d1d5db;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .ip-conflict-modal-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ip-conflict-modal-support-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ip-conflict-modal-support-link {
  color: #9ca3af;
}
