/* Wrapper alignment (unchanged, but slightly tighter margin) */
.dal-button-wrapper {
  display: contents;
  /* justify-content: center; */
  /* margin: 12px 0; */
}

/* Main Discord button (dimension + style parity with Google button) */
.dal-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #5865F2; /* Discord blurple */
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 10px 14px; /* matches Googleâ€™s padding */
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  width: 100%;
  max-width: 320px; /* same general width as Google button */
}

/* Hover + active states consistent with Googleâ€™s depth behavior */
.dal-button:hover {
  /* background-color: #4752C4; */
  /* transform: translateY(-1px); */
  box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
  text-decoration: none;
}

.dal-button:active {
  box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
}

/* Icon styling (match Google buttonâ€™s SVG) */
.dal-button img.dal-icon,
.dal-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

/* Optional: make the Discord logo grayscale on hover for depth feedback */
.dal-button:hover img.dal-icon {
  filter: brightness(0.9);
}

/* Unlink / disconnect button (keep red style aligned too) */
.dal-button--unlink {
  background: #ef4444; /* red-500 */
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(239, 68, 68, .35);
}
.dal-button--unlink:hover {
  background: #dc2626; /* darker red */
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(239, 68, 68, .45);
}
.dal-button--unlink:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(239, 68, 68, .30);
}

  /* Discord Linker floating notice */
.dal-notice {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 73px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font: 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  /* success (green) + error (red) variants */
  .dal-notice.success {
    background: #16a34a; /* green */
  }
  
  .dal-notice.error {
    background: #dc2626; /* red */
  }
  
  /* fade out animation */
  .dal-notice.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  
  /* Optional: notice button layout used elsewhere */
  .dal-buttons {
    display: inline-block;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    /* margin-top: 10px; */
  }
  
  .dal-buttons .button {
    min-width: 140px;
  }
  
  
  .discord-login-button {
	  flex-grow: 1;
	 }
	 
  /* =========================================================
   Discord username capture modal (Google-style port)
   ========================================================= */

.dal-umodal-backdrop,
.dal-umodal-backdrop * {
  font-family: var(--bcntf-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: var(--bcntf-font-size, 14px);
  line-height: var(--bcntf-line-height, 1.45);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dal-umodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;                /* JS should set to flex */
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

.dal-umodal {
  background: #fff;
  color: #111;
  border-radius: 12px;
  max-width: 420px;
  width: 92vw;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.dal-umodal h3 {
  margin: 0 0 8px;
  color: black !important;
  font-size: 18px;
  font-weight: 700;
}

.dal-umodal p {
  margin: 0 0 12px;
  color: #374151;
  font-size: 14px;
}

.dal-field {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.dal-field input {
  flex: 1 1 auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.dal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Make these match the Google primary/secondary buttons exactly,
   but only inside the modal so we don't change other admin buttons. */
.dal-umodal .button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.dal-umodal .button.button-primary {
  background: #111;
  color: #fff;
}

.dal-umodal .button:not(.button-primary) {
  background: #f3f4f6;
  color: #111;
}

.dal-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.dal-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.dal-sugs button {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.dal-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

.dal-btn-primary {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.dal-btn-secondary {
  background: #f3f4f6;
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

#dal-umodal,
#dal-umodal * {
  font-family: var(--bcntf-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: var(--bcntf-font-size, 14px);
  line-height: var(--bcntf-line-height, 1.45);
}

.dal-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    min-width: 220px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}

.dal-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dal-toast--success {
    background: #166534;
}

.dal-toast--error {
    background: #b91c1c;
}