/* ═══════════════════════════════════════════════
   E-FUTEBOL.NET — WELLNESS PAGE
   ═══════════════════════════════════════════════ */

.wellness-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  align-items: start;
}

/* ── HEADER ── */

.wellness-header {
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.4rem;
}

.wellness-header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.wellness-header-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── LEFT ── */

.wellness-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* ── MAIN CARD ── */

.wellness-main-card {
  padding: 1.4rem;
}

.wellness-main-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}

.wellness-action-area {
  border-top: 1px dashed var(--border);
  padding-top: 1.2rem;
}

.wellness-action-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* ── BUTTONS ── */

.wellness-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.wellness-btn-primary {
  background: var(--green-primary);
  color: #fff;
}

.wellness-btn-primary:hover {
  background: var(--green-mid);
}

.wellness-btn-primary:active {
  transform: scale(0.97);
}

/* ── OTP FORM ── */

.wellness-otp-form {
  margin: 0;
}

.wellness-otp-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wellness-otp-input {
  width: 160px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.wellness-otp-input:focus {
  border-color: var(--green-primary);
}

.wellness-resend {
  margin-top: 0.75rem;
}

.wellness-resend-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s ease;
}

.wellness-resend-link:hover {
  color: var(--text-secondary);
}

.wellness-support-card {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wellness-support-card:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.4);
}

.wellness-support-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wellness-support-text {
  flex: 1;
}

.wellness-support-arrow {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── FLASH ── */

.wellness-flash {
  font-size: 0.78rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.wellness-flash-error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-warning);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.wellness-flash-success {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  border: 1px solid rgba(45, 106, 79, 0.15);
}

/* ── SIDEBAR ── */

.wellness-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

/* ── DRIED TEAM ── */

.wellness-dried-team {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0;
}

.wellness-dried-team-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.wellness-dried-team-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wellness-dried-team-quip {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ── DIAGNOSIS ── */

.wellness-diagnosis-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0.2rem 0 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   WELLNESS MODAL (overlay, disparado pelo game bar)
   ═══════════════════════════════════════════════ */

#wellness-modal-container:empty { display: none; }

/* ── Overlay & backdrop ── */

.wellness-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.wellness-modal-overlay.wellness-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.wellness-modal-overlay.wellness-modal-out {
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

/* ── Card ── */

.wellness-modal-card {
  --wm-accent: #f59e0b;
  --wm-accent-soft: rgba(245, 158, 11, 0.1);
  --wm-accent-glow: rgba(245, 158, 11, 0.25);

  position: relative;
  z-index: 9202;
  background: #ffffff;
  border-radius: 20px;
  max-width: 420px;
  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);
  transform: scale(0.86) translateY(20px);
  opacity: 0;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.28s ease;
}

.wellness-modal-card--sleep {
  --wm-accent: #6366f1;
  --wm-accent-soft: rgba(99, 102, 241, 0.08);
  --wm-accent-glow: rgba(99, 102, 241, 0.22);
}

.wellness-modal-card.wellness-modal-card-in {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.wellness-modal-card.wellness-modal-card-out {
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* ── Identity zone ── */

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

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

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

.wellness-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;
}

.wellness-modal-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
  max-width: 300px;
}

.wellness-modal-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wm-accent);
  background: #ffffff;
  border: 1px solid var(--wm-accent-glow);
  letter-spacing: 0.01em;
}

/* ── Action zone ── */

.wellness-modal-action {
  padding: 1.5rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wellness-modal-flash {
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.wellness-modal-flash--error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.wellness-modal-flash--success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.wellness-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.wellness-modal-turnstile {
  margin: 0 auto;
}

.wellness-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.78rem 1.5rem;
  background: var(--wm-accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.wellness-modal-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wellness-modal-btn:active {
  transform: scale(0.98);
}

.wellness-modal-btn--verify {
  width: auto;
  flex-shrink: 0;
  padding: 0.78rem 1.2rem;
  background: var(--wm-accent);
}

.wellness-modal-channel-hint {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

.wellness-modal-otp-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.wellness-modal-otp-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 0.6rem 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wellness-modal-otp-input:focus {
  border-color: var(--wm-accent);
  box-shadow: 0 0 0 3px var(--wm-accent-glow);
  background: #ffffff;
}

.wellness-modal-resend {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: center;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--wm-accent);
  background: transparent;
  color: var(--wm-accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

/* Depleting fill — scaleX driven by --wm-resend-progress (1 → 0) */
.wellness-modal-resend::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wm-accent-soft);
  transform-origin: left center;
  transform: scaleX(var(--wm-resend-progress, 0));
  pointer-events: none;
  z-index: 0;
}

.wellness-modal-resend span {
  position: relative;
  z-index: 1;
}

.wellness-modal-resend:hover:not(:disabled) {
  background: var(--wm-accent);
  color: #ffffff;
}

.wellness-modal-resend:hover:not(:disabled)::before {
  display: none;
}

.wellness-modal-resend:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.wellness-modal-resend:disabled::before {
  background: #f3f4f6;
}

[data-theme="dark"] .wellness-modal-resend:disabled {
  border-color: #374151;
  color: #6b7280;
}

[data-theme="dark"] .wellness-modal-resend:disabled::before {
  background: rgba(255, 255, 255, 0.04);
}

.wellness-modal-otp-expiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #9ca3af;
  margin: 0;
}

/* ── Support link ── */

.wellness-modal-support-row {
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.wellness-modal-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #25D366;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
  width: 100%;
}

.wellness-modal-support-link:hover {
  opacity: 0.8;
}

/* ── Dark mode ── */

[data-theme="dark"] .wellness-modal-card {
  background: #17202e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .wellness-modal-identity {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

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

[data-theme="dark"] .wellness-modal-desc {
  color: #9ca3af;
}

[data-theme="dark"] .wellness-modal-time-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--wm-accent-glow);
}

[data-theme="dark"] .wellness-modal-otp-input {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .wellness-modal-otp-input:focus {
  background: #1f2937;
  border-color: var(--wm-accent);
}

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

[data-theme="dark"] .wellness-modal-resend {
  color: #6b7280;
}

[data-theme="dark"] .wellness-modal-resend:hover {
  color: #9ca3af;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .wellness-page {
    grid-template-columns: 1fr;
  }

  .wellness-sidebar {
    position: static;
  }

  .wellness-otp-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wellness-otp-input {
    width: 100%;
  }
}
