#megusto-auth-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100vw - 32px);
}

#megusto-auth-bar .megusto-btn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

#megusto-auth-bar .megusto-btn-ghost {
  background: rgba(36, 36, 48, 0.9);
  border: 1px solid #2e2e3a;
  color: #f4f4f6;
}

#megusto-auth-bar .megusto-btn-primary {
  background: #e85d3b;
  color: #fff;
}

#megusto-auth-bar .megusto-btn:hover { opacity: 0.9; }

.megusto-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.megusto-modal {
  background: #1a1a22;
  border: 1px solid #2e2e3a;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  color: #f4f4f6;
  font-family: Inter, system-ui, sans-serif;
}

.megusto-modal h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #e85d3b;
}

.megusto-modal p.sub {
  color: #9b9bab;
  font-size: 14px;
  margin-bottom: 20px;
}

.megusto-modal label {
  display: block;
  font-size: 13px;
  color: #9b9bab;
  margin-bottom: 4px;
  margin-top: 12px;
}

.megusto-modal input,
.megusto-modal select {
  width: 100%;
  padding: 12px 14px;
  background: #242430;
  border: 1px solid #2e2e3a;
  border-radius: 10px;
  color: #f4f4f6;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.megusto-modal input:focus {
  outline: 2px solid #e85d3b;
  outline-offset: 0;
}

.megusto-modal .megusto-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #e85d3b;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.megusto-modal .megusto-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.megusto-modal .megusto-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 12px;
}

.megusto-modal .megusto-success {
  color: #22c55e;
  font-size: 14px;
  margin-top: 12px;
}

.megusto-modal .megusto-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #9b9bab;
}

.megusto-modal .megusto-switch button {
  background: none;
  border: none;
  color: #e85d3b;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}

.megusto-modal .megusto-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #9b9bab;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.megusto-modal-wrap { position: relative; }

/* Move lang switcher left of auth bar */
#megusto-lang-switch { right: auto !important; left: 16px !important; }

@media (max-width: 640px) {
  #megusto-auth-bar { top: 12px; right: 12px; }
  #megusto-lang-switch { left: 12px !important; }
}
