/* ═══════════ 11 · MODAL · ABRIR CHAMADO (global, todas as páginas) ═══════════ */
.chamado-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.6rem, 2.5vw, 1.6rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.chamado-modal.open {
  opacity: 1;
  visibility: visible;
}

.chamado-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, .82);
  backdrop-filter: blur(10px);
}

.chamado-modal-panel {
  position: relative;
  width: min(1080px, 96vw);
  max-height: min(94vh, 1300px);
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  border: 1px solid #2a2a30;
  border-top: 2px solid var(--brand);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .45s cubic-bezier(.19, 1, .22, 1), opacity .35s ease;
}

.chamado-modal.open .chamado-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chamado-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.chamado-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.chamado-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #2a2a30;
  background: transparent;
  color: var(--white-dim);
  cursor: pointer;
  transition: color .3s, border-color .3s, transform .3s;
}

.chamado-modal-close:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: rotate(90deg);
}

.chamado-modal-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--white);
}

.chamado-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 78vh;
  border: none;
}

.chamado-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  color: var(--white-dim);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  gap: 1rem;
  transition: opacity .3s;
}

.chamado-modal-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.chamado-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(254, 80, 0, .2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: chamadoSpin .8s linear infinite;
}

@keyframes chamadoSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── PAINEL SUSPENSO (MODAL DE CASES) ── */
#case-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 7, 8, .98);
  backdrop-filter: blur(14px);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding: clamp(1.25rem, 4vw, 3rem) 1rem;
}

#case-panel.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.case-panel-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.case-panel-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  margin: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.case-panel-header { margin-bottom: 1.25rem; }
#case-title { font-size: clamp(1.4rem, 3.5vw, 2rem) !important; margin: .4rem 0 !important; }
#case-description { color: var(--white-dim); font-size: clamp(.9rem, 1.8vw, 1.05rem); }

#case-body {
  color: var(--white-dim);
  line-height: 1.65;
  font-size: clamp(.9rem, 1.7vw, 1rem);
  margin: 1.25rem 0 2rem;
}
#case-body ul { margin-left: 1.2rem; }
