.gm-auth-launcher {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 28, 0.86);
  backdrop-filter: blur(18px);
  color: #edf4ff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-family: inherit;
}

.profile-page .gm-auth-launcher {
  display: none !important;
}

.gm-auth-launcher:hover {
  border-color: rgba(34, 211, 238, 0.26);
}

.gm-auth-launcher__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e66ff, #13d4c6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gm-auth-launcher__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.gm-auth-launcher__title {
  font-size: 13px;
  font-weight: 800;
}

.gm-auth-launcher__sub {
  font-size: 11px;
  color: #8fa4c9;
}

.gm-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px);
}

.gm-auth-modal-backdrop.is-open {
  display: flex;
}

.gm-auth-modal {
  width: min(100%, 460px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(7, 12, 24, 0.98));
  color: #edf4ff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.gm-auth-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
}

.gm-auth-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-auth-modal__title {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.gm-auth-modal__desc {
  margin-top: 10px;
  color: #8fa4c9;
  font-size: 14px;
  line-height: 1.6;
}

.gm-auth-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #c6d5ef;
  cursor: pointer;
}

.gm-auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 24px 18px;
}

.gm-auth-tab {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #8fa4c9;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gm-auth-tab.is-active {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.09);
  color: #edf4ff;
}

.gm-auth-modal__body {
  padding: 0 24px 24px;
}

.gm-auth-form {
  display: grid;
  gap: 14px;
}

.gm-auth-field {
  display: grid;
  gap: 8px;
}

.gm-auth-label {
  font-size: 12px;
  font-weight: 700;
  color: #9eb2d8;
}

.gm-auth-input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ff;
  padding: 0 14px;
  font: inherit;
}

.gm-auth-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.gm-auth-status {
  min-height: 20px;
  font-size: 12px;
  color: #8fa4c9;
}

.gm-auth-status.is-error {
  color: #fca5a5;
}

.gm-auth-status.is-success {
  color: #6ee7b7;
}

.gm-auth-submit,
.gm-auth-secondary {
  height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.gm-auth-submit {
  border: 0;
  background: linear-gradient(135deg, #1e66ff, #13d4c6);
  color: #08101d;
}

.gm-auth-secondary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ff;
}

.gm-auth-linkbtn {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.08);
  color: #d7faff;
  font-size: 14px;
  font-weight: 800;
}

.gm-auth-usercard {
  display: grid;
  gap: 18px;
}

.gm-auth-actions {
  display: grid;
  gap: 12px;
}

.gm-auth-userbox {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-auth-userbox__name {
  font-size: 18px;
  font-weight: 800;
}

.gm-auth-userbox__email {
  margin-top: 6px;
  color: #8fa4c9;
  font-size: 13px;
}

.gm-auth-userbox__plan {
  margin-top: 14px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 102, 255, 0.12);
  color: #7fb0ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gm-auth-setup-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.08);
  color: #facc15;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .gm-auth-launcher {
    top: auto;
    bottom: 18px;
    left: 16px;
    right: auto;
  }
}

@media (max-width: 540px) {
  .gm-auth-modal-backdrop {
    padding: 14px;
  }

  .gm-auth-modal__title {
    font-size: 24px;
  }
}

/* ============================================================
   AUTH — LIGHT / ORANGE THEME OVERRIDES
   ============================================================ */
.gm-auth-launcher {
  border-color: rgba(31, 41, 55, 0.08);
  background: rgba(255, 252, 246, 0.92);
  color: #182131;
  box-shadow: 0 18px 38px rgba(110, 76, 33, 0.10);
}

.gm-auth-launcher:hover {
  border-color: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.20);
}

.gm-auth-launcher__avatar {
  background: linear-gradient(135deg, var(--brand-primary, #ff6a00), var(--brand-primary-light, #ff9e1b));
  color: #fff;
}

.gm-auth-launcher__sub {
  color: #8b95a7;
}

.gm-auth-modal-backdrop {
  background: rgba(73, 52, 27, 0.26);
  backdrop-filter: blur(12px);
}

.gm-auth-modal {
  border-color: rgba(31, 41, 55, 0.08);
  background:
    radial-gradient(circle at top right, rgba(var(--brand-primary-rgb, 255, 106, 0), 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 248, 239, 0.98));
  color: #182131;
  box-shadow: 0 28px 80px rgba(79, 58, 32, 0.18);
}

.gm-auth-modal__badge {
  background: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.09);
  color: var(--brand-primary, #ff6a00);
}

.gm-auth-modal__desc,
.gm-auth-label,
.gm-auth-status,
.gm-auth-userbox__email {
  color: #6b7280;
}

.gm-auth-close {
  border-color: rgba(31, 41, 55, 0.08);
  background: rgba(255,255,255,0.74);
  color: #475467;
}

.gm-auth-tab {
  border-color: rgba(31, 41, 55, 0.08);
  background: rgba(255,255,255,0.74);
  color: #8b95a7;
}

.gm-auth-tab.is-active {
  border-color: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.18);
  background: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.08);
  color: var(--brand-primary, #ff6a00);
}

.gm-auth-input {
  border-color: rgba(31, 41, 55, 0.10);
  background: rgba(255,255,255,0.92);
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.gm-auth-input::placeholder {
  color: #9ca3af;
}

.gm-auth-input:focus {
  border-color: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.24);
  box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb, 255, 106, 0), 0.08);
}

.gm-auth-submit {
  background: linear-gradient(135deg, var(--brand-primary, #ff6a00), var(--brand-primary-light, #ff9e1b));
  color: #fff;
  box-shadow: 0 16px 32px rgba(var(--brand-primary-rgb, 255, 106, 0), 0.24);
}

.gm-auth-secondary {
  border-color: rgba(31, 41, 55, 0.08);
  background: rgba(255,255,255,0.78);
  color: #253041;
}

.gm-auth-linkbtn {
  border-color: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.18);
  background: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.08);
  color: var(--brand-primary, #ff6a00);
}

.gm-auth-userbox {
  background: rgba(255,255,255,0.76);
  border-color: rgba(31, 41, 55, 0.08);
}

.gm-auth-userbox__plan {
  background: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.10);
  color: var(--brand-primary, #ff6a00);
}

.gm-auth-setup-note {
  border-color: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.16);
  background: rgba(var(--brand-primary-rgb, 255, 106, 0), 0.08);
  color: #c2410c;
}

.gm-auth-status.is-error {
  color: #dc2626;
}

.gm-auth-status.is-success {
  color: #16a34a;
}
