/* =========================================================
   FTF CUSTOM 1.0.27 — HEADER + FOOTER ALIGNMENT
   ========================================================= */

/* ---------------- TOP SERVER STRIP ---------------- */

.ftf-server-statusline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
  white-space: nowrap;
}

.ftf-server-version,
.ftf-server-action {
  font-size: .72rem;
  line-height: 1;
}

.ftf-server-version {
  color: var(--ftf-text-soft);
  font-weight: 650;
  letter-spacing: .025em;
}

.ftf-server-action {
  color: var(--ftf-muted);
  font-weight: 500;
}

.ftf-server-ip-button,
.ftf-server-copy-button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.ftf-server-ip-button {
  color: var(--ftf-text);
  font-size: .8rem;
  font-weight: 850;
  transition: color .16s ease;
}

.ftf-server-ip-button:hover,
.ftf-server-ip-button:focus-visible {
  color: var(--ftf-gold-bright);
}

.ftf-server-copy-button {
  color: var(--ftf-gold-bright);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ftf-server-copy-button:hover,
.ftf-server-copy-button:focus-visible {
  color: #fff0ba;
}

.ftf-server-ip-button:focus-visible,
.ftf-server-copy-button:focus-visible {
  outline: 1px solid rgba(232, 189, 95, .75);
  outline-offset: 4px;
  border-radius: 3px;
}

.ftf-server-copy-button.is-copied {
  color: var(--ftf-success, #57c879);
}

.ftf-status-dot.is-online {
  background: var(--ftf-success, #57c879) !important;
  box-shadow: 0 0 14px rgba(87, 200, 121, .58) !important;
}

.ftf-status-dot.is-offline {
  background: #e0473d !important;
  box-shadow: 0 0 14px rgba(224, 71, 61, .52) !important;
}

/* ---------------- FOOTER SERVER ADDRESS ---------------- */

.ftf-footer-ip-copy {
  position: relative;
  display: grid !important;
  place-items: center;
  min-height: 48px;
  width: 100%;
  padding: 10px 14px !important;
  overflow: hidden;
  border: 1px solid var(--ftf-line) !important;
  border-radius: 7px !important;
  color: var(--ftf-text) !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .025),
      transparent
    ),
    #111113 !important;
  text-align: center;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    transform .16s ease;
}

.ftf-footer-ip-copy:hover,
.ftf-footer-ip-copy:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 189, 95, .5) !important;
}

.ftf-footer-ip-copy:focus-visible {
  outline: 2px solid rgba(232, 189, 95, .72);
  outline-offset: 3px;
}

.ftf-footer-ip-copy strong,
.ftf-footer-join > a {
  color: var(--ftf-text) !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  letter-spacing: .01em !important;
}

.ftf-footer-join > a {
  display: grid !important;
  place-items: center;
  min-height: 48px;
  padding: 10px 14px !important;
  text-align: center;
}

.ftf-copy-feedback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--ftf-success, #57c879);
  background:
    linear-gradient(
      145deg,
      rgba(87, 200, 121, .035),
      transparent
    ),
    #111113;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: opacity .16s ease;
  pointer-events: none;
}

.ftf-footer-ip-copy.is-copied {
  border-color: rgba(87, 200, 121, .5) !important;
}

.ftf-footer-ip-copy.is-copied .ftf-copy-feedback {
  opacity: 1;
}

/* Prevent older generic footer rules from shifting either footer control. */
.ftf-footer-join .ftf-footer-ip-copy,
.ftf-footer-join > a {
  width: 100%;
  text-decoration: none;
}

@media (max-width: 720px) {
  .ftf-server-statusline {
    gap: 6px;
  }

  .ftf-server-version,
  .ftf-server-action {
    font-size: .66rem;
  }

  .ftf-server-ip-button {
    font-size: .7rem;
  }

  .ftf-server-copy-button {
    font-size: .6rem;
  }
}

@media (max-width: 520px) {
  .ftf-server-action {
    display: none;
  }
}

@media (max-width: 430px) {
  .ftf-server-version {
    display: none;
  }
}

/* Join Discord now uses the same hover lift and gold glow as the IP card. */
.ftf-footer-join > a {
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease !important;
}

.ftf-footer-join > a:hover,
.ftf-footer-join > a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 189, 95, .5) !important;
  box-shadow:
    0 0 0 1px rgba(232, 189, 95, .08),
    0 0 22px rgba(232, 189, 95, .16) !important;
}

.ftf-footer-join > a:focus-visible {
  outline: 2px solid rgba(232, 189, 95, .72);
  outline-offset: 3px;
}

/* =========================================================
   FTF HEADER 1.0.34 — SMALLER MOBILE LOGO
   ========================================================= */

@media (max-width: 720px) {
  .ftf-brand {
    width: min(620px, 72vw) !important;
  }

  .ftf-brand img {
    max-height: 112px !important;
  }
}

@media (max-width: 430px) {
  .ftf-brand {
    width: min(460px, 68vw) !important;
  }

  .ftf-brand img {
    max-height: 96px !important;
  }
}

/* =========================================================
   FTF FOOTER 1.0.38 — TWO-COLUMN PAGE NAVIGATION
   ========================================================= */

.ftf-footer-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px 34px !important;
}

.ftf-footer-link-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.ftf-footer-link-column a {
  color: var(--ftf-text-soft);
  font-size: .82rem;
  text-decoration: none;
  transition: color .16s ease;
}

.ftf-footer-link-column a:hover,
.ftf-footer-link-column a:focus-visible {
  color: var(--ftf-gold-bright);
}

.ftf-footer-link-column a:focus-visible {
  outline: 2px solid rgba(232, 189, 95, .72);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .ftf-footer-links {
    gap: 9px 24px !important;
  }
}
