.gm-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.gm-auth-nav .gm-auth-user {
  font-size: 0.75rem;
  color: var(--gm-gray-light, #9ca3af);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-auth-nav .gm-btn-auth-login {
  background: transparent;
  color: var(--gm-white, #fff);
  border: 1px solid rgba(230, 82, 151, 0.55);
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}
.gm-auth-nav .gm-btn-auth-login:hover {
  background: rgba(230, 82, 151, 0.12);
  border-color: var(--gm-magenta, #e65297);
}
.gm-auth-nav .gm-btn-auth-register {
  background: rgba(246, 215, 107, 0.12);
  color: var(--gm-yellow, #f6d76b);
  border: 1px solid rgba(246, 215, 107, 0.35);
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.gm-auth-nav .gm-btn-auth-register:hover {
  background: rgba(246, 215, 107, 0.2);
}
.gm-auth-nav .gm-btn-auth-logout {
  background: transparent;
  color: var(--gm-gray-light, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.gm-auth-nav .gm-btn-auth-logout:hover {
  color: var(--gm-white, #fff);
  border-color: rgba(255, 255, 255, 0.35);
}

.gm-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gm-auth-modal[hidden] {
  display: none !important;
}
body.gm-auth-modal-open {
  overflow: hidden;
}
.gm-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}
.gm-auth-modal-dialog {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(92vh, 44rem);
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  border: 1px solid rgba(230, 82, 151, 0.35);
  border-radius: 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(230, 82, 151, 0.12);
}
.gm-auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gm-auth-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.gm-auth-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.gm-auth-modal-close:hover {
  color: #f6d76b;
}
.gm-auth-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}
.gm-auth-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}
.gm-auth-modal-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gm-auth-modal-tab {
  flex: 1;
  border: none;
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #9ca3af;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.gm-auth-modal-tab:hover {
  color: #fff;
}
.gm-auth-modal-tab.is-active {
  background: rgba(230, 82, 151, 0.18);
  color: #f6d76b;
  box-shadow: inset 0 0 0 1px rgba(230, 82, 151, 0.35);
}
.gm-auth-modal-panel[hidden] {
  display: none !important;
}
.gm-auth-modal-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(246, 215, 107, 0.35);
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.gm-auth-modal-google:hover {
  box-shadow: 0 0 0 2px rgba(246, 215, 107, 0.45);
  color: #000;
  border-color: #f6d76b;
}
.gm-auth-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: #6b7280;
}
.gm-auth-modal-divider::before,
.gm-auth-modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.gm-auth-modal-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #d1d5db;
}
.gm-auth-modal-input {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
}
.gm-auth-modal-input:focus {
  outline: none;
  border-color: #e65297;
  box-shadow: 0 0 0 2px rgba(230, 82, 151, 0.25);
}
.gm-auth-modal-links {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
}
.gm-auth-modal-links a {
  color: #f6d76b;
  text-decoration: none;
}
.gm-auth-modal-links a:hover {
  text-decoration: underline;
}
.gm-auth-modal-submit {
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  background: #e65297;
  color: #fff;
  font-family: inherit;
}
.gm-auth-modal-submit:hover {
  background: #d94888;
}
.gm-auth-modal-submit-register {
  background: #f6d76b;
  color: #000;
}
.gm-auth-modal-submit-register:hover {
  background: #e8c95a;
}
.gm-auth-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gm-auth-modal-btn {
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.gm-auth-modal-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}
.gm-auth-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Isolate modal from Bootstrap / portal auth styles */
.gm-auth-modal-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.gm-auth-modal-global-error {
  background: rgba(230, 82, 151, 0.12);
  border: 1px solid rgba(230, 82, 151, 0.45);
  color: #ffb8d9;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}
.gm-auth-modal-field-error {
  color: #ffb8d9;
  font-size: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}
.gm-auth-modal-input.is-error {
  border-color: #e65297;
}
.gm-auth-modal-sub-panel {
  margin-bottom: 1rem;
}
.gm-auth-modal-tabs[hidden] {
  display: none;
}

/* Isolate modal from Bootstrap / portal auth styles */
.gm-auth-modal .form-control,
.gm-auth-modal .btn,
.gm-auth-modal .card,
.gm-auth-modal .alert {
  all: unset;
  box-sizing: border-box;
}
