.footer {
  padding: 1rem 0 1.5rem;
}

.footer-inner,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-inner {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-muted {
  color: var(--muted);
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 1rem;
}

.footer-actions a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.footer-actions a:hover {
  color: var(--accent);
}

.footer-actions {
  justify-content: flex-end;
}

.footer-actions .footer-policy-link {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0 0.45rem;
  white-space: nowrap;
}

.support-menu {
  position: relative;
}

.footer-support-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  list-style: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.footer-support-button::-webkit-details-marker {
  display: none;
}

.footer-support-button:hover,
.footer-support-button:focus-visible,
.support-menu[open] .footer-support-button {
  border-color: var(--primary);
  color: var(--primary);
}

.support-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  z-index: 30;
  display: grid;
  width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.support-popover-head,
.support-method {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.support-popover-head {
  grid-template-columns: 2.35rem minmax(0, 1fr) 2rem;
  padding: 0.1rem 0.15rem 0.35rem;
}

.support-popover-head > div,
.support-method > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.support-popover-head span,
.support-method small {
  color: var(--muted);
  font-size: 0.76rem;
}

.support-popover-icon,
.support-method-icon {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  color: var(--primary);
}

.support-close-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
}

.support-close-button:hover,
.support-close-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.support-upi-qr {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #ffffff;
}

.support-upi-qr img {
  display: block;
  width: 10rem;
  height: 10rem;
  image-rendering: pixelated;
}

.support-upi-qr span {
  color: #5d4818;
  font-size: 0.76rem;
  font-weight: 800;
}

.support-crypto-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-actions .support-method,
.support-method-button {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.footer-actions .support-method:hover,
.support-method-button:hover {
  border-color: var(--primary);
  color: var(--ink);
}

.support-method code {
  overflow: hidden;
  color: var(--primary);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-copy-button {
  min-height: 2.15rem;
  border: 0;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-icon {
  --social-fill: var(--primary);
  position: relative;
  z-index: 0;
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  isolation: isolate;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: var(--social-fill);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon-discord {
  --social-fill: #e11d2e;
}

.social-icon-youtube {
  --social-fill: #ff0033;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .footer-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .support-popover {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 10020;
    width: auto;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 1rem;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon,
  .social-icon::before,
  .social-icon i {
    transition-duration: 0.01ms;
  }
}

body.dashboard-body.guild-dashboard-page {
  background: #eef2ff;
}

body.guild-dashboard-page .dashboard-content {
  padding: 0;
}

body.guild-dashboard-page .loader {
  display: none;
}

body.guild-dashboard-page .guild-container {
  width: 100%;
  margin: 0;
}

body.guild-dashboard-page .alert {
  margin: 1rem;
}
