/**
 * Rodapé + modal de suporte (RPG)
 */

/* ===== Footer ===== */
.mek-footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 3rem auto 2rem !important;
  padding: 1.75rem 1.25rem 1.5rem !important;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.4) !important;
  border-top: 1px solid rgba(201, 162, 39, 0.4) !important;
  background: rgba(14, 12, 16, 0.72) !important;
  background-image: linear-gradient(180deg, rgba(36, 28, 18, 0.85) 0%, rgba(12, 10, 14, 0.95) 100%) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-family: var(--mek-font, Outfit, sans-serif);
}

/* Esconde rodapé na tela de login */
body.tela-bloqueio-ativa .mek-footer {
  display: none !important;
}

.mek-footer-credit {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--mek-muted, #9a8f7a);
  letter-spacing: 0.02em;
}

.mek-footer-credit span {
  font-family: var(--mek-display, Cinzel, serif);
  color: #f7efd8;
  letter-spacing: 0.04em;
}

.mek-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.mek-footer-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(0, 0, 0, 0.4);
  color: #e8dfcc;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, color 0.15s, box-shadow 0.15s, background 0.15s;
  padding: 0;
  font-size: 1.2rem;
}

.mek-footer-btn:hover,
.mek-footer-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 197, 71, 0.85);
  color: #f7efd8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  outline: none;
}

.mek-footer-btn--support:hover {
  color: #e8c547;
  border-color: rgba(232, 197, 71, 0.9);
  background: rgba(201, 162, 39, 0.12);
}

.mek-footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Modal suporte ===== */
.sup-modal {
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sup-modal[hidden] {
  display: none !important;
}

.sup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.84);
  backdrop-filter: blur(6px);
}

.sup-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #14110c;
  background-image: linear-gradient(180deg, #2a2216 0%, #121218 42%, #101018 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  animation: supModalIn 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--mek-font, Outfit, sans-serif);
  color: var(--mek-text, #f2ead8);
}

.sup-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  flex-shrink: 0;
}

.sup-modal-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.sup-modal-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: var(--mek-gold, #e8c547);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sup-modal-kicker {
  margin: 0 0 2px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mek-gold, #e8c547);
  font-family: var(--mek-display, Cinzel, serif);
}

.sup-modal-head h2 {
  margin: 0;
  font-family: var(--mek-display, Cinzel, serif);
  font-size: 1.2rem;
  color: #f7efd8;
  line-height: 1.25;
}

.sup-modal-close {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8dfcc;
  cursor: pointer;
  flex-shrink: 0;
}

.sup-modal-close:hover {
  border-color: rgba(232, 197, 71, 0.7);
  color: #f7efd8;
}

.sup-modal-body {
  padding: 16px 20px 8px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.55) rgba(0, 0, 0, 0.28);
}

.sup-modal-intro {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--mek-muted, #9a8f7a);
}

.sup-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sup-card {
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background: rgba(0, 0, 0, 0.32);
}

.sup-card--discord {
  border-color: rgba(88, 101, 242, 0.4);
  background: linear-gradient(165deg, rgba(40, 44, 78, 0.45) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.sup-card--telegram {
  border-color: rgba(0, 168, 232, 0.4);
  background: linear-gradient(165deg, rgba(20, 56, 78, 0.45) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.sup-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sup-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.sup-card--discord .sup-card-icon {
  color: #c5cdff;
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.45);
}

.sup-card--telegram .sup-card-icon {
  color: #9adfff;
  background: rgba(0, 136, 204, 0.2);
  border-color: rgba(0, 168, 232, 0.45);
}

.sup-card-title {
  margin: 0;
  font-family: var(--mek-display, Cinzel, serif);
  font-size: 1rem;
  color: #f7efd8;
  letter-spacing: 0.02em;
}

.sup-card-sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mek-muted, #9a8f7a);
}

.sup-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d8d0c0;
}

.sup-card-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 230, 150, 0.45);
  font-family: var(--mek-display, Cinzel, serif);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  color: #1a1408 !important;
  background: linear-gradient(165deg, #e8c547 0%, #c9a227 48%, #8a6914 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sup-card-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sup-card--discord .sup-card-cta {
  background: linear-gradient(165deg, #7b85f5 0%, #5865f2 48%, #3c45c4 100%);
  border-color: rgba(180, 190, 255, 0.45);
  color: #fff !important;
}

.sup-card--telegram .sup-card-cta {
  background: linear-gradient(165deg, #35b7ef 0%, #0088cc 48%, #006699 100%);
  border-color: rgba(160, 220, 255, 0.45);
  color: #fff !important;
}

.sup-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(180deg, rgba(36, 30, 18, 0.95) 0%, rgba(18, 15, 12, 0.98) 100%);
  flex-shrink: 0;
}

.sup-foot-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8dfcc;
  font-family: var(--mek-display, Cinzel, serif);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sup-foot-btn:hover {
  border-color: rgba(232, 197, 71, 0.65);
  color: #f7efd8;
}

@keyframes supModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .mek-footer {
    margin: 2rem 10px 1.25rem;
    padding: 1.35rem 1rem 1.2rem;
  }

  .sup-modal-foot {
    justify-content: stretch;
  }

  .sup-foot-btn {
    width: 100%;
  }
}
