/* ═══════════════════════════════════════════════
   E-FUTEBOL.NET — CHAT LOCKED (deferred verification) MODAL
   Shown when a new/unverified account tries to send a chat
   message. Same structural skeleton as the secar_ally / dry_balance
   family, brand-orange accent (onboarding/welcome, not punitive).
   ═══════════════════════════════════════════════ */

#chat-locked-modal-container:empty { display: none; }

body.chat-locked-modal-open { overflow: hidden; }

/* ── Overlay & backdrop ── */

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

.chat-locked-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: chat-locked-fade 0.25s ease;
}

@keyframes chat-locked-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Card ── */

.chat-locked-card {
  --cl-accent: #E8621A;
  --cl-accent-deep: #C44E0E;
  --cl-accent-soft: rgba(232, 98, 26, 0.1);
  --cl-accent-glow: rgba(232, 98, 26, 0.28);

  position: relative;
  z-index: 9302;
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.1);
  animation: chat-locked-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chat-locked-in {
  0%   { transform: scale(0.86) translateY(22px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Close ── */

.chat-locked-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-locked-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111827;
}

/* ── Identity zone ── */

.chat-locked-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 1.5rem;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cl-accent-soft) 0%, transparent 60%),
    #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.chat-locked-identity::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cl-accent);
  border-radius: 0 0 3px 3px;
}

.chat-locked-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cl-accent) 0%, var(--cl-accent-deep) 100%);
  color: #ffffff;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px var(--cl-accent-glow);
}

/* Pulsing ring to signal "waiting on you" */
.chat-locked-icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cl-accent);
  opacity: 0;
  animation: chat-locked-pulse 2.2s ease-out infinite;
}

@keyframes chat-locked-pulse {
  0%   { transform: scale(0.86); opacity: 0.55; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.chat-locked-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--cl-accent-deep);
  margin-bottom: 0.5rem;
}

.chat-locked-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}

.chat-locked-title-accent {
  color: var(--cl-accent);
}

.chat-locked-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  max-width: 330px;
}

/* ── Action zone ── */

.chat-locked-action {
  padding: 1.4rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-locked-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.82rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.chat-locked-btn--primary {
  background: var(--cl-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--cl-accent-glow);
}

.chat-locked-btn--primary:hover {
  background: var(--cl-accent-deep);
}

.chat-locked-btn--primary:active {
  transform: scale(0.985);
}

.chat-locked-btn-icon {
  flex-shrink: 0;
}

.chat-locked-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-locked-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
}

/* ── Dark theme ── */

[data-theme="dark"] .chat-locked-card {
  background: #18211C;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5);
  --cl-accent: #F47B35;
  --cl-accent-deep: #E8621A;
  --cl-accent-soft: rgba(244, 123, 53, 0.14);
  --cl-accent-glow: rgba(244, 123, 53, 0.3);
}

[data-theme="dark"] .chat-locked-identity {
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cl-accent-soft) 0%, transparent 60%),
    #18211C;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-locked-eyebrow {
  color: var(--cl-accent);
}

[data-theme="dark"] .chat-locked-title {
  color: #F3F6F4;
}

[data-theme="dark"] .chat-locked-desc {
  color: #aebcb2;
}

[data-theme="dark"] .chat-locked-close {
  background: rgba(255, 255, 255, 0.06);
  color: #9aada0;
}

[data-theme="dark"] .chat-locked-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F3F6F4;
}

[data-theme="dark"] .chat-locked-btn--ghost {
  color: #aebcb2;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .chat-locked-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #F3F6F4;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .chat-locked-card,
  .chat-locked-backdrop,
  .chat-locked-icon-ring {
    animation: none;
  }
}
